Share via

MAUI Android Debug Build Runs when debugging but not when not debugging

Tony Pitman 110 Reputation points
2024-09-30T23:31:20.04+00:00

I have a dotnet MAUI app. I am building and debugging on a apple silicon mac. I am using VSCode and the MAUI plugin.

When I build and debug it runs.

When I then stop debugging and try to run the app on the device, it shows the splashscreen and then crashes.

Here is the output from logcat:

2024-09-30 17:20:00.205 9332-9332/com.xxxxxx E/lley.xxx: * Assertion at /__w/1/s/src/mono/mono/mini/aot-runtime.c:2531, condition `is_ok (error)' not met, function:decode_cached_class_info, Image out of date: Xamarin.AndroidX.Activity.dll.so
    
    
    --------- beginning of crash
2024-09-30 17:20:00.205 9332-9332/com.xxxxx A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 9332 (lley.xxxxxx), pid 9332 (lley.xxxxxx)
2024-09-30 17:20:00.237 9368-9368/? I/crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstoneProto
2024-09-30 17:20:00.237 896-896/? I/tombstoned: received crash request for pid 9332
2024-09-30 17:20:00.237 9368-9368/? I/crash_dump64: performing dump of process 9332 (target tid = 9332)
2024-09-30 17:20:00.356 4028-4111/? I/Finsky:background: [2554] mdw.run(348): Stats for Executor: BlockingExecutor qkj@724427f[Running, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG: Build fingerprint: 'google/flame/flame:13/TP1A.221005.002.B2/9382335:user/release-keys'
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG: Revision: 'MP1.0'
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG: ABI: 'arm64'
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG: Timestamp: 2024-09-30 17:20:00.244102038-0600
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG: Process uptime: 2s
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG: Cmdline: com.xxxxxx
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG: pid: 9332, tid: 9332, name: lley.xxxxxx  >>> com.xxxxxx <<<
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG: uid: 10752
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG: signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG:     x0  0000000000000000  x1  0000000000002474  x2  0000000000000006  x3  0000007ffa37b3c0
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG:     x4  6e6d6e6c2e627172  x5  6e6d6e6c2e627172  x6  6e6d6e6c2e627172  x7  7f7f7f7f7f7f7f7f
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG:     x8  00000000000000f0  x9  0000007a0b42aa00  x10 0000000000000001  x11 0000007a0b468ce4
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG:     x12 0000007ffa37a1e0  x13 00000000000000ba  x14 0000007ffa37a290  x15 00000000cd426920
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG:     x16 0000007a0b4cdd60  x17 0000007a0b4aab70  x18 0000007a1b5d2000  x19 0000000000002474
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG:     x20 0000000000002474  x21 00000000ffffffff  x22 00000076e53de000  x23 0000000000000000
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG:     x24 0000007ffa37bf70  x25 0000000000000000  x26 0000000000000001  x27 0000000000000001
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG:     x28 00000076e53de2bc  x29 0000007ffa37b440
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG:     lr  0000007a0b45a868  sp  0000007ffa37b3a0  pc  0000007a0b45a894  pst 0000000000000000
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG: backtrace:
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG:       #00 pc 0000000000051894  /apex/com.android.runtime/lib64/bionic/libc.so (abort+164) (BuildId: 058e3ec96fa600fb840a6a6956c6b64e)
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG:       #01 pc 000000000002680c  /data/app/~~gmxuKEDtVDjDvuKMx5KXjg==/com.xxxxxx-L76Ml62ijzM_FhYOUFWJ-A==/lib/arm64/libmonodroid.so (xamarin::android::Helpers::abort_application()+8) (BuildId: 184c010f647c8b8b79444ebce19c6cc7884036a1)
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG:       #02 pc 0000000000041edc  /data/app/~~gmxuKEDtVDjDvuKMx5KXjg==/com.xxxxxx-L76Ml62ijzM_FhYOUFWJ-A==/lib/arm64/libmonodroid.so (xamarin::android::internal::MonodroidRuntime::mono_log_handler(char const*, char const*, char const*, int, void*)+144) (BuildId: 184c010f647c8b8b79444ebce19c6cc7884036a1)
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG:       #03 pc 00000000001d7464  /data/app/~~gmxuKEDtVDjDvuKMx5KXjg==/com.xxxxxx-L76Ml62ijzM_FhYOUFWJ-A==/lib/arm64/libmonosgen-2.0.so (BuildId: eb24a52f2dd44e052b62836d7c0d12115d335fb9)
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG:       #04 pc 00000000001d7590  /data/app/~~gmxuKEDtVDjDvuKMx5KXjg==/com.xxxxxx-L76Ml62ijzM_FhYOUFWJ-A==/lib/arm64/libmonosgen-2.0.so (BuildId: eb24a52f2dd44e052b62836d7c0d12115d335fb9)
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG:       #05 pc 000000000013a1bc  /data/app/~~gmxuKEDtVDjDvuKMx5KXjg==/com.xxxxxx-L76Ml62ijzM_FhYOUFWJ-A==/lib/arm64/libmonosgen-2.0.so (BuildId: eb24a52f2dd44e052b62836d7c0d12115d335fb9)
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG:       #06 pc 000000000013a38c  /data/app/~~gmxuKEDtVDjDvuKMx5KXjg==/com.xxxxxx-L76Ml62ijzM_FhYOUFWJ-A==/lib/arm64/libmonosgen-2.0.so (BuildId: eb24a52f2dd44e052b62836d7c0d12115d335fb9)
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG:       #07 pc 000000000020b5e4  /data/app/~~gmxuKEDtVDjDvuKMx5KXjg==/com.xxxxxx-L76Ml62ijzM_FhYOUFWJ-A==/lib/arm64/libmonosgen-2.0.so (mono_class_init_internal+436) (BuildId: eb24a52f2dd44e052b62836d7c0d12115d335fb9)
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG:       #08 pc 000000000020b5d4  /data/app/~~gmxuKEDtVDjDvuKMx5KXjg==/com.xxxxxxL76Ml62ijzM_FhYOUFWJ-A==/lib/arm64/libmonosgen-2.0.so (mono_class_init_internal+420) (BuildId: eb24a52f2dd44e052b62836d7c0d12115d335fb9)
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG:       #09 pc 000000000020b5d4  /data/app/~~gmxuKEDtVDjDvuKMx5KXjg==/com.xxxxxx-L76Ml62ijzM_FhYOUFWJ-A==/lib/arm64/libmonosgen-2.0.so (mono_class_init_internal+420) (BuildId: eb24a52f2dd44e052b62836d7c0d12115d335fb9)
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG:       #10 pc 0000000000213a6c  /data/app/~~gmxuKEDtVDjDvuKMx5KXjg==/com.xxxxxx-L76Ml62ijzM_FhYOUFWJ-A==/lib/arm64/libmonosgen-2.0.so (BuildId: eb24a52f2dd44e052b62836d7c0d12115d335fb9)
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG:       #11 pc 0000000000213750  /data/app/~~gmxuKEDtVDjDvuKMx5KXjg==/com.xxxxxx-L76Ml62ijzM_FhYOUFWJ-A==/lib/arm64/libmonosgen-2.0.so (BuildId: eb24a52f2dd44e052b62836d7c0d12115d335fb9)
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG:       #12 pc 00000000002240a8  /data/app/~~gmxuKEDtVDjDvuKMx5KXjg==/com.xxxxxx-L76Ml62ijzM_FhYOUFWJ-A==/lib/arm64/libmonosgen-2.0.so (mono_class_get_methods_by_name+224) (BuildId: eb24a52f2dd44e052b62836d7c0d12115d335fb9)
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG:       #13 pc 0000000000230758  /data/app/~~gmxuKEDtVDjDvuKMx5KXjg==/com.xxxxxx-L76Ml62ijzM_FhYOUFWJ-A==/lib/arm64/libmonosgen-2.0.so (BuildId: eb24a52f2dd44e052b62836d7c0d12115d335fb9)
2024-09-30 17:20:00.412 9368-9368/? A/DEBUG:       #14 pc 0000000000008ec4  <anonymous:7a0493e000>
2024-09-30 17:20:00.426 896-896/? E/tombstoned: Tombstone written to: tombstone_06
Developer technologies | .NET | .NET Multi-platform App UI

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.