The setup is:
- MAUI Android
- ScreenOrientation = ScreenOrientation.Portrait set to the MainActivity.
- Building in release.
At real physical device, using adb logcat -d > log.txt
the following error can be seen:
Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE)
With those libs: libmonosgen-2.0.so, libmonodroid.so
- It crashes in release only.
- It doesn’t matter how the screen orientation is set. (annotation or overriding onCreate)
- Disabling “concurrent GC” fixes the issue.
I would like to know:
- How to fix the crash,
- Or if it cannot be done – is there another way to force screen orientation?
- Or if it cannot be done – at least some reassuring words that this little fix I found is actually something harmless, and I wont have to pay for it in the future.