I recently ran into a problem with my application: a weird crash happens when scanning QR codes coming from a particular website.
Anything generated by https://businesscards.tec-it.com/it causes a SIGSEGV crash with the following line in the logcat:
Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 19717
(FirebaseMLHandl), pid 19583 (is.qrsync.debug)
I am using Firebase ML Kit version 16.0.0 and it works fine with, so far, any other QR code generator.
Is this a known issue? How can I investigate this further?
Thanks
Related
I have been stuck with Fatal Signal errors since using Visual Studio 2019 or 2022 to compile my Xamarin Android Project for more than 3 weeks.
I have used ndk-stack and other tools to see any meaningful stack trace I have failed and our project is not going ahead because of this.
Please note that the same exact code base works perfectly stable if I produce an APK using visual Studio 2017.
Visual Studio 2019 uses Xamarin.Andriod.SDK 12.0.0.3
Visual Studio 2017 uses Xamarin.Android.SDK 9.7.1.0
I have attempted to upgrade to Android 12 but our project is Huge and require significant amount of work. It does not seem to be an option at this point.
The reason I want to use 2019 or 2022 is because of google play store and producing app bundle instead of APK. Visual Studio 2017 does not have app bundle option.
My projects target Android 9 and I am also using PortSip Libraries. I have done extensive googling. I have not found any solid evidence if there is a problem with Xamarin Android SKD in 2019 or a problem with my Samsung Device Tab S6. The only answer I found here is:
Why application is dying randomly?
If this the case why an APK produced by 2017 does not have any segmentation faults or any race conditions.
I have handlers in c# to catch any error but non of them catches these. My app uses google MAPs and we are drawing many layers and updates on the MAP.
My app also receives many signalr updates and makes calls to WCF services.
Examples of errors:
03-09 19:54:53.811 9984 12254 F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x40000000080 in tid 12254 (Thread Pool Wor), pid 9984 (------)
03-09 19:54:53.836 12404 12404 E chromium: [0309/195453.835730:ERROR:scoped_ptrace_attach.cc(27)] ptrace: Operation not permitted (1)
03-11 00:35:05.469 27236 27236 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x7c13725238
We had a very similar problem with PortSip (null reference exception that was caused by the Garbage Collection thread in PortSip). We found that the problem was in the way a key class PortSip constructor contained mutual references with other classes. When those classes were disposed a null reference exception occurred on the garbage collection thread.
You reported that "I have handlers in C# to catch any error but none of them catches these". We found that to be the case as well. It turned out that since the crash was happening on the CG thread inside the PortSip library - adding error handling in C# had no effect.
If your crashes are also experiencing these symptoms - I will dig into the code and document our fix.
Azure SpatialAnchors NDK crashes on inserting/looking up AppProperties.
After unsuccessful attempts to fix it in my custom app I added the code to the official Microsoft tutorial which builds and works fine.
https://github.com/Azure/azure-spatial-anchors-samples/blob/master/Android/NDK/app/src/main/cpp/AzureSpatialAnchorsApplication.cpp#L570
visual.cloudAnchor = std::make_shared<CloudSpatialAnchor>();
visual.cloudAnchor->LocalAnchor(visual.localAnchor);
std::shared_ptr<IMap<std::string, std::string>> properties = visual.cloudAnchor->AppProperties(); // new code
// verified properties is not null
properties->Insert(R"(model-type)", R"(frame)"); // crash!
ERROR: A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 22056
Here is the documentation which shows how to set app properties https://learn.microsoft.com/en-us/azure/spatial-anchors/how-tos/create-locate-anchors-cpp-ndk
Thank you for reaching out!
This is a duplicate of this GitHub issue
The team will follow up there
I am integrating ARcore sceneform in my Android Native Project . I am facing below issue while opening camera. It happens some times only . I am not able to find the exact issue .
E/third_party/arcore/ar/sceneform/android/jni/arsceneview_jni.cc: nativeReportEngineType: Couldn't get session's nativeHandle
2019-05-15 19:30:28.411 22577-22577/com.innovare.plugxr
E/NdkImageReader: AImageReader_getWindow
2019-05-15 19:30:28.600 22577-22577/com.innovare.plugxr
E/native: session.cc:1527 Invalid ray produced by view data!
2019-05-15 19:30:28.850 22577-22577/com.innovare.plugxr
A/libc: Fatal signal 7 (SIGBUS), code 1, fault addr 0x728e1b48 in tid 22577 (innovare.plugxr)
I am getting this error in my app but only on some devices. So far only a few crashes have been reported. I recently enabled multiDex support and since then it crashes on some of the pre-lollipop devices.
A/libc(28851): Fatal signal 11 (SIGSEGV), thread 29117 (pool-16-thread-)
There is no other information given in the logcat. I saw some other posts on SO but they are different and don't apply to my case. I guess it has to do with memory usage ?
I am working on Augmented reality app but facing Fatal error issue only on one device (Karbon Android one ) .
My code is working on other device (Samsung) without any error , but on Karbon it is giving
Fatal signal 11 (SIGSEGV) .
What can be the issue or solution for this ?
In logcat , I cant see any error even except Fatal Signal 11 .... I have searched on it and found most of time
Fatal signal error occur when you are trying to access any object which is not created at that time , but if it is the case then how my app is running on other device .
Please suggest me the solution .
Thanks..