MAUI Android App Throwing SIGSEGV errors
My app when deployed to emulator after first deployed will throw the error in build output in VisualStrudio:
[libc] Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x78 in tid 5184 (WM.task-1), pid 5156
If I delete the app and redeploy, the error goes away. Additionally when deployed on my actual device, the app will occasionally crash immediately after the splash screen each time I try to open it. But if I persist, it will eventually open. But there is nothing in logcat to give any indication of what the error might be.
Can someone give me advice on where to start to try and track down the issue? How to get more useful information in logcat?
Right before the SIGSIEV in the logcat shows:
Time Device Name Type PID Tag Message
07-31 10:42:05.869 pixel_5_-api_32 Debug 595 WifiNetworkFactory got request NetworkRequest [ REQUEST id=222, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10179 RequestorUid: 10179 RequestorPkg: com.devonuto.myapp] ]
07-31 10:42:05.869 pixel_5-api_32 Debug 595 UntrustedWifiNetworkFactory got request NetworkRequest [ REQUEST id=222, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10179 RequestorUid: 10179 RequestorPkg: com.devonuto.myapp] ]
07-31 10:42:05.869 pixel_5-api_32 Debug 595 OemPaidWifiNetworkFactory got request NetworkRequest [ REQUEST id=222, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10179 RequestorUid: 10179 RequestorPkg: com.devonuto.myapp] ]
07-31 10:42:05.880 pixel_5-_api_32 Debug 1490 BoundBrokerSvc onUnbind: Intent { act=com.google.android.gms.auth.service.START pkg=com.google.android.gms }
Then after:
Time Device Name Type PID Tag Message
07-31 10:42:05.900 pixel_5_-api_32 Info 6644 crash_dump64 obtaining output fd from tombstoned, type: kDebuggerdTombstoneProto
07-31 10:42:05.901 pixel_5-api_32 Info 272 tombstoned received crash request for pid 6641
07-31 10:42:05.901 pixel_5-api_32 Info 6644 crash_dump64 performing dump of process 6619 (target tid = 6641)
07-31 10:42:06.018 pixel_5-api_32 Error 6644 DEBUG Cause: null pointer dereference
rax 0000791d7824a720 rbx 0000791d7824a780 rcx 0000000000000001 rdx 0000000000000001
r8 0000791d7824a768 r9 000000000000034a r10 00000000707c1560 r11 0000791d7e288a90
r12 0000000000000060 r13 0000791f2a421700 r14 0000791d7824a720 r15 0000000000000000
rdi 0000791d7824a720 rsi 0000791d7824a780
rbp 0000791d7824a750 rsp 0000791d7824a710 rip 0000791d803152cd
07-31 10:42:05.905 pixel_5-_api_32 Error 6644 DEBUG failed to read /proc/uptime: Permission denied
Does any of this mean anything for my issue?
I have the following permissions in Android MainActivity.cs:
[assembly: UsesPermission(Android.Manifest.Permission.AccessBackgroundLocation)]
[assembly: UsesPermission(Android.Manifest.Permission.AccessNetworkState)]
[assembly: UsesPermission(Android.Manifest.Permission.Internet)]
[assembly: UsesPermission(Android.Manifest.Permission.WriteSecureSettings)]