Avoid Fatal Signal 6 (SIGABRT) on Android

I use HttpURLConnection to get a web service, the server is on the same network, but the response can be delayed up to 60,000 ms (bcs of some difficult reasons I have to set it to 60,000 ms) when I click on the list item to call the web service and wait answer and lose the Wi-Fi signal and continue to click on the list of my application crashes, without exception, error A/libc(9052): Fatal signal 6 (SIGABRT) on android at 0x000001e5 (code=0), thread 9052 more clearly: webservice call+ wifi lost+ clicks = Fatal signal 6 code=0 I try to avoid this:

  • UI blocking or showing, please wait, but mine please waite do not appear bcause there are continuous clicks
  • Avoid UI Clicks
    but no way! please help, any propos and discussions will be appreciated.

     public static boolean stopUserInteractions=false; private class GetXmlAndStopUI extends AsyncTask<List, Void, String> { private final ProgressDialog dialog = new ProgressDialog(context); @Override protected void onPreExecute() { this.dialog.setMessage("Please wait..."); this.dialog.setCancelable(false); this.dialog.show(); } @Override protected String doInBackground(final List... items) { runOnUiThread(new Runnable() { @Override public void run() { webserviceCall(items[0]); } }); return "MSG"; } @Override protected void onPostExecute(String result) { stopUserInteractions=false; if (this.dialog.isShowing()) { this.dialog.dismiss(); } } } @Override public boolean dispatchTouchEvent(MotionEvent ev) { if (stopUserInteractions) { Toast.makeText(context, "STOP!!!!", Toast.LENGTH_SHORT).show(); return true; } else { return super.dispatchTouchEvent(ev); } } 
+7
android multithreading
source share

No one has answered this question yet.

See similar questions:

17
Fatal signal 6 (SIGABRT) code = -6 on first run

or similar:

3606
Close / hide Android soft keyboard
3295
Why is the Android emulator so slow? How can we speed up Android emulator development?
3288
Correct use cases for Android UserManager.isUserAGoat ()?
2609
Is there a unique identifier for an Android device?
2510
How to keep Android activity state by saving instance state?
2284
How can I fix the 'android.os.NetworkOnMainThreadException'?
2097
Is there a way to run Python on Android?
1858
"Debug certificate expired" error in Android Eclipse plugins
1844
What is "Context" on Android?
one
Android AlarmManager for reading periodic sensors

All Articles