Signal 11 crash after image tracker initialization from neon_gaussian_3x3
Please provide your development details as below;
1. SDK Version: Unity 5.0.6
2. Development Environment: Unity-Android
3. Tracker/Scanner: Image Tracker
4. License Type: Free
5. Target Device(Optional): Pixel 3a
Crash log was acquired via Logcat
Snippet from crash:
2022/10/05 10:45:34.655 8763 8790 Error AndroidRuntime FATAL EXCEPTION: UnityMain
2022/10/05 10:45:34.655 8763 8790 Error AndroidRuntime Process: [our app bundle id], PID: 8763
2022/10/05 10:45:34.655 8763 8790 Error AndroidRuntime java.lang.Error: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2022/10/05 10:45:34.655 8763 8790 Error AndroidRuntime Version '2020.3.20f1 (41c4e627c95f)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
2022/10/05 10:45:34.655 8763 8790 Error AndroidRuntime Build fingerprint: 'google/sargo/sargo:12/SP2A.220505.008/8782922:user/release-keys'
2022/10/05 10:45:34.655 8763 8790 Error AndroidRuntime Revision: 'MP1.0'
2022/10/05 10:45:34.655 8763 8790 Error AndroidRuntime ABI: 'arm64'
2022/10/05 10:45:34.655 8763 8790 Error AndroidRuntime Timestamp: 2022-10-05 10:45:33-0500
2022/10/05 10:45:34.655 8763 8790 Error AndroidRuntime pid: 8763, tid: 8912, name: UnityMain >>> [our app bundle id] <<<
2022/10/05 10:45:34.655 8763 8790 Error AndroidRuntime uid: 10442
2022/10/05 10:45:34.655 8763 8790 Error AndroidRuntime signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x7c35023000
2022/10/05 10:45:34.655 8763 8790 Error AndroidRuntime x0 0000000000000280 x1 0000000000000280 x2 0000000000000167 x3 0000007c35022b00
...
2022/10/05 10:45:34.655 8763 8790 Error AndroidRuntime backtrace:
2022/10/05 10:45:34.655 8763 8790 Error AndroidRuntime #00 pc 000000000056beac /data/app/~~JsZVbkjtHMu1y_L6kY1cJw==/[our app bundle id]-AYbmvLPPtuiNBC4DYwtNIg==/split_config.arm64_v8a.apk (neon_gaussian_3x3(int, int, int, unsigned char*, unsigned char*)+172) (BuildId: bfb5981ed1e3f6a58290edfa9e05b9354c3a8e01)
2022/10/05 10:45:34.655 8763 8790 Error AndroidRuntime #01 pc 00000000003abe80 /data/app/~~JsZVbkjtHMu1y_L6kY1cJw==/[our app bundle id]-AYbmvLPPtuiNBC4DYwtNIg==/split_config.arm64_v8a.apk (maxstAR::GrayImage::makeGaussianImageN(maxstAR::GrayImage*)+1496) (BuildId: bfb5981ed1e3f6a58290edfa9e05b9354c3a8e01)
2022/10/05 10:45:34.655 8763 8790 Error AndroidRuntime #02 pc 00000000003981f0 /data/app/~~JsZVbkjtHMu1y_L6kY1cJw==/[our app bundle id]-AYbmvLPPtuiNBC4DYwtNIg==/split_config.arm64_v8a.apk (maxstAR::DescriptorExtractor::extract(std::vector<maxstAR::Feature*, std::allocator<maxstAR::Feature*> >&, maxstAR::Frame*, std::vector<maxstAR::Keypoint*, std::allocator<maxstAR::Keypoint*> >&, bool)+332) (BuildId: bfb5981ed1e3f6a58290edfa9e05b9354c3a8e01)
2022/10/05 10:45:34.655 8763 8790 Error AndroidRuntime #03 pc 0000000000477350 /data/app/~~JsZVbkjtHMu1y_L6kY1cJw==/[our app bundle id]-AYbmvLPPtuiNBC4DYwtNIg==/split_config.arm64_v8a.apk (maxstAR::Recognizer::extractFeatures2(std::vector<maxstAR::Feature*, std::allocator<maxstAR::Feature*> >&, maxstAR::Frame*)+360) (BuildId: bfb5981ed1e3f6a58290edfa9e05b9354c3a8e01)
Larger crash log, leading to end:
The crash occurs when our AR scene is loaded on the Pixel 3a device running Android 12, however it works fine on other devices, including the Samsung Galaxy S21 Ultra, also running Android 12. We have previously had similar troubles with other Pixel devices, such as the Pixel 5, so it is likely not isolated to the Pixel 3a alone.
We had a similar error in the past on another project, it seems likely that this is related to this project targetting API Level 31, which we are forced to target due to recent Google Playstore policy changes.
Additionally, this seems to be similar to the error noted in https://developer.maxst.com/BoardQuestions/Details/1377
We can post more of the log leading up to the crash and code snippets of image loading process if needed.
A response soon would be appreciated, as we need the AR portion of our app to be functional as soon as possible.
UPDATE: We've also since tested making a blank Unity 2020.3.20f1 project with a fresh MaxstAR and found that targetting API Levels 31,32, and 33 resulted in the same crash on the Pixel 3a XL, while API level 30 worked fine. We used the "ImageTracker" sample for an AR scene.
Thank you for your interest in MAXST AR SDK.
First, We apologize for any inconvenience.
For this debugging, we will test the Pixel device with API Levels 31, 32, and 33.
Please wait.
If you have related the MAXST AR SDK questions, feel free to ask.
Best regards,
Francisco
MAXST Support Team
As a result of our own testing with pixel4a, 5, it works fine.
Are you using Flutter?
Sorry, we don't support Flutter.
If you have related the MAXST AR SDK questions, feel free to ask.
Best regards,
Francisco
MAXST Support Team
Hello Francisco,
We are not using Flutter and are still able to replicate the crash simply by:
- Creating a completely blank Unity project (With version 2020.3.20f1, 3D template)
- Switching to the Android platform and setting the project's package name
- Adding the 5.0.6 MaxstAR package and setting the license generated according to the package name
- Including the ImageTracker sample scene in the build
- Setting Target API Level to API Level 31
- Removing minSdkVersion and add android:exported in AndroidManifest to fix build errors
- Installing it to our Pixel 3a via "Build and Run".
Here is a download of the project if it may be helpful: https://drive.google.com/file/d/1sDL7hsb_NS66TS-VmDUHhZT6VTdYX2Yg/view?usp=share_link
The crash occurs moments after the camera view is displayed. Here is the full log of the application, acquired via logcat from the Pixel 3a, which appears to terminate with the same reference to libMaxstAR.neon_gaussian_3x3: https://pastebin.com/raw/QB5bLP3d