Closed Piers-Walter closed 6 years ago
I think this is an Android Studio bug - note the top line of the backtrace:
#00 pc 000000000005160c /data/data/com.***.sd.***/libperfa_arm64.so
libperfa_arm64.so is related to Android Studio's profiler, and I found https://issuetracker.google.com/110924477 which seems likely to be related.
I would try reproducing using a Gradle build instead of building with Android Studio, and/or trying an older version of Android Studio. If you still hit issues, please feel free to reopen (though I'm not sure how you would given that libperfa wouldn't be in the back stack in that case).
Thanks for that, I'll keep an eye on that google issue and hope it gets resolved in the near future
I am having an issue with Volley which is causing my app to crash inconsistently. It seems that when I add multiple requests to the queue, and the threadPoolSize is greater than 1 the app can crash with the following error:
07-26 16:46:58.732 30178-30207/com.***.sd.*** A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x18 in tid 30207 (Thread-7), pid 30178 (.sd.***)
The crash never happens if the RequestQueue that I send these to has a threadPoolSize of 1, so I can only assume there is something with multithreading going on that is breaking inside Volley.
The crash is intermittent happening about 50% of the time which isn't very helpful when it comes to diagnosing it.
The RequestQueue is a static variable attached to my Application class being initialised in the following way:
but it also happens if the queue is initialised like this:
My requests are added to the queue in the following way:
with stringRequest being a standard POST StringRequest with custom Authorization and Content-Type headers
The crash happens on multiple devices and with the app being built on multiple computers with Android Studio. I am using Volley 1.1.1. Any ideas as to what might be causing this?
The full tombstone for my app is as follows: