Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crashes in the release mode on Android after updating to MAUI 9.0.40 #27832

Closed
holecekp opened this issue Feb 16, 2025 · 2 comments
Closed
Labels
t/bug Something isn't working

Comments

@holecekp
Copy link

Description

After updating Microsoft.Maui.Controls from 9.0.30 to 9.0.40, the app cannot run in the release mode on Android anymore. It just shows the splash screen and then it crashes with "Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE)". Debug version works well. The problem is only in the release version. Previous version of Microsoft.Maui.Controls (9.0.30) runs well also in the release mode so this is a new issue in MAUI.

I'm including error messages from logcat. I'm sorry that there are no more useful information. The app is quite complex and it's not easy to strip the code down to the bare minimum that would crash and could be used for reproducing the issue. I've only found out that the constructor in the App.xaml.cs finishes correctly but MainActivity.OnCreate, which should run next, is not launched. So the problem is somewhere in between.

Steps to Reproduce

Sorry, I haven't found what exactly causes the issue so I cannot provide a public repository to reproduce it yet. I'll try to prepare something later. My app crashes with the new MAUI version any time when it is run in the release mode on Android.

Link to public reproduction project repository

No response

Version with bug

9.0.40 SR4

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

9.0.30 SR3

Affected platforms

Android

Affected platform versions

Crash experienced on Android 11 emulator, Android 12 physical device

Did you find any workaround?

No. I had to downgrade to the previous MAUI version.

Relevant log output

02-16 19:48:50.849	pixel_7_-_api_30	Error	10764	nyname.mauiapp	* Assertion at /__w/1/s/src/mono/mono/mini/aot-runtime.c:2573, condition `is_ok (error)' not met, function:decode_cached_class_info, Image out of date: Microsoft.Maui.Controls.so
02-16 19:48:51.345	pixel_7_-_api_30	Error	10793	DEBUG	backtrace:
      #00 pc 00000b89  [vdso] (__kernel_vsyscall+9)
      #01 pc 0005ad58  /apex/com.android.runtime/lib/bionic/libc.so (syscall+40) (BuildId: f10845bd3cfdcd0076d81b46b7a06459)
      #02 pc 00076501  /apex/com.android.runtime/lib/bionic/libc.so (abort+209) (BuildId: f10845bd3cfdcd0076d81b46b7a06459)
      #03 pc 00046f2e  /data/app/~~WitYiL-3LKbkyAIIznmr1A==/com.companyname.mauiapp1-TuoPM3xPDfzdoc2S82hduw==/lib/x86/libmonodroid.so (xamarin::android::Helpers::abort_application(_LogCategories, char const*, bool, std::__ndk1::source_location)+158) (BuildId: 21610af0e93232922b25af42885b47093d06abf0)
      #04 pc 000147b3  /data/app/~~WitYiL-3LKbkyAIIznmr1A==/com.companyname.mauiapp1-TuoPM3xPDfzdoc2S82hduw==/lib/x86/libmonodroid.so (xamarin::android::Helpers::abort_application(char const*, bool, std::__ndk1::source_location)+51) (BuildId: 21610af0e93232922b25af42885b47093d06abf0)
      #05 pc 00028589  /data/app/~~WitYiL-3LKbkyAIIznmr1A==/com.companyname.mauiapp1-TuoPM3xPDfzdoc2S82hduw==/lib/x86/libmonodroid.so (xamarin::android::internal::MonodroidRuntime::mono_log_handler(char const*, char const*, char const*, int, void*)+185) (BuildId: 21610af0e93232922b25af42885b47093d06abf0)
      #06 pc 001e70ad  /data/app/~~WitYiL-3LKbkyAIIznmr1A==/com.companyname.mauiapp1-TuoPM3xPDfzdoc2S82hduw==/lib/x86/libmonosgen-2.0.so (BuildId: 3a9fb70244e0948b450a1220500a82600eb2c62c)
      #07 pc 001d90d2  /data/app/~~WitYiL-3LKbkyAIIznmr1A==/com.companyname.mauiapp1-TuoPM3xPDfzdoc2S82hduw==/lib/x86/libmonosgen-2.0.so (BuildId: 3a9fb70244e0948b450a1220500a82600eb2c62c)
      #08 pc 001d9182  /data/app/~~WitYiL-3LKbkyAIIznmr1A==/com.companyname.mauiapp1-TuoPM3xPDfzdoc2S82hduw==/lib/x86/libmonosgen-2.0.so (BuildId: 3a9fb70244e0948b450a1220500a82600eb2c62c)
      #09 pc 00138a92  /data/app/~~WitYiL-3LKbkyAIIznmr1A==/com.companyname.mauiapp1-TuoPM3xPDfzdoc2S82hduw==/lib/x86/libmonosgen-2.0.so (BuildId: 3a9fb70244e0948b450a1220500a82600eb2c62c)
      #10 pc 00138b65  /data/app/~~WitYiL-3LKbkyAIIznmr1A==/com.companyname.mauiapp1-TuoPM3xPDfzdoc2S82hduw==/lib/x86/libmonosgen-2.0.so (BuildId: 3a9fb70244e0948b450a1220500a82600eb2c62c)
      #11 pc 0020b27a  /data/app/~~WitYiL-3LKbkyAIIznmr1A==/com.companyname.mauiapp1-TuoPM3xPDfzdoc2S82hduw==/lib/x86/libmonosgen-2.0.so (BuildId: 3a9fb70244e0948b450a1220500a82600eb2c62c)
      #12 pc 0020fede  /data/app/~~WitYiL-3LKbkyAIIznmr1A==/com.companyname.mauiapp1-TuoPM3xPDfzdoc2S82hduw==/lib/x86/libmonosgen-2.0.so (mono_class_init_internal+430) (BuildId: 3a9fb70244e0948b450a1220500a82600eb2c62c)
      #13 pc 0020b7ee  /data/app/~~WitYiL-3LKbkyAIIznmr1A==/com.companyname.mauiapp1-TuoPM3xPDfzdoc2S82hduw==/lib/x86/libmonosgen-2.0.so (mono_ldtoken_checked+574) (BuildId: 3a9fb70244e0948b450a1220500a82600eb2c62c)
      #14 pc 000d827c  /data/app/~~WitYiL-3LKbkyAIIznmr1A==/com.companyname.mauiapp1-TuoPM3xPDfzdoc2S82hduw==/lib/x86/libmonosgen-2.0.so (BuildId: 3a9fb70244e0948b450a1220500a82600eb2c62c)
      #15 pc 000b471f  /data/app/~~WitYiL-3LKbkyAIIznmr1A==/com.companyname.mauiapp1-TuoPM3xPDfzdoc2S82hduw==/lib/x86/libmonosgen-2.0.so (BuildId: 3a9fb70244e0948b450a1220500a82600eb2c62c)
      #16 pc 000b75a0  /data/app/~~WitYiL-3LKbkyAIIznmr1A==/com.companyname.mauiapp1-TuoPM3xPDfzdoc2S82hduw==/lib/x86/libmonosgen-2.0.so (BuildId: 3a9fb70244e0948b450a1220500a82600eb2c62c)
      #17 pc 000c25cf  /data/app/~~WitYiL-3LKbkyAIIznmr1A==/com.companyname.mauiapp1-TuoPM3xPDfzdoc2S82hduw==/lib/x86/libmonosgen-2.0.so (BuildId: 3a9fb70244e0948b450a1220500a82600eb2c62c)
      #18 pc 000bbdc3  /data/app/~~WitYiL-3LKbkyAIIznmr1A==/com.companyname.mauiapp1-TuoPM3xPDfzdoc2S82hduw==/lib/x86/libmonosgen-2.0.so (BuildId: 3a9fb70244e0948b450a1220500a82600eb2c62c)
      #19 pc 00152776  /data/app/~~WitYiL-3LKbkyAIIznmr1A==/com.companyname.mauiapp1-TuoPM3xPDfzdoc2S82hduw==/lib/x86/libmonosgen-2.0.so (BuildId: 3a9fb70244e0948b450a1220500a82600eb2c62c)
      #20 pc 00152324  /data/app/~~WitYiL-3LKbkyAIIznmr1A==/com.companyname.mauiapp1-TuoPM3xPDfzdoc2S82hduw==/lib/x86/libmonosgen-2.0.so (BuildId: 3a9fb70244e0948b450a1220500a82600eb2c62c)
      #21 pc 00000187  <anonymous:d9342000>
02-16 19:48:51.034	pixel_7_-_api_30	Error	10793	DEBUG	'
    eax 00000000  ebx 00002a0c  ecx 00002a0c  edx 00000006
    edi e29a180e  esi ff810460
    ebp e8191b80  esp ff810408  eip e8191b89
02-16 19:48:51.034	pixel_7_-_api_30	Error	10793	DEBUG	Abort message: '* Assertion at /__w/1/s/src/mono/mono/mini/aot-runtime.c:2573, condition `is_ok (error)' not met, function:decode_cached_class_info, Image out of date: Microsoft.Maui.Controls.so
02-16 19:48:51.034	pixel_7_-_api_30	Error	10793	DEBUG	signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
02-16 19:48:51.033	pixel_7_-_api_30	Error	10793	DEBUG	uid: 10167
02-16 19:48:51.033	pixel_7_-_api_30	Error	10793	DEBUG	pid: 10764, tid: 10764, name: nyname.mauiapp1  >>> com.companyname.mauiapp1 <<<
02-16 19:48:51.033	pixel_7_-_api_30	Error	10793	DEBUG	Timestamp: 2025-02-16 19:48:51+0000
02-16 19:48:51.033	pixel_7_-_api_30	Error	10793	DEBUG	ABI: 'x86'
02-16 19:48:51.033	pixel_7_-_api_30	Error	10793	DEBUG	Revision: '0'
02-16 19:48:51.033	pixel_7_-_api_30	Error	10793	DEBUG	Build fingerprint: 'google/sdk_gphone_x86/generic_x86_arm:11/RSR1.240422.006/12134477:userdebug/dev-keys'
02-16 19:48:51.033	pixel_7_-_api_30	Error	10793	DEBUG	*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
02-16 19:48:51.022	pixel_7_-_api_30	Info	10793	crash_dump32	performing dump of process 10764 (target tid = 10764)
02-16 19:48:51.019	pixel_7_-_api_30	Info	288	tombstoned	received crash request for pid 10764
02-16 19:48:50.993	pixel_7_-_api_30	Info	10793	crash_dump32	obtaining output fd from tombstoned, type: kDebuggerdTombstone
02-16 19:48:50.856	pixel_7_-_api_30	Error	10764	libc	Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 10764 (nyname.mauiapp1), pid 10764 (nyname.mauiapp1)
02-16 19:48:50.849	pixel_7_-_api_30	Error	10764	monodroid	Abort at mono-log-adapter.cc:46:3 ('static void xamarin::android::internal::MonodroidRuntime::mono_log_handler(const char *, const char *, const char *, mono_bool, void *)')
02-16 19:48:50.849	pixel_7_-_api_30	Error	10764	monodroid	* Assertion at /__w/1/s/src/mono/mono/mini/aot-runtime.c:2573, condition `is_ok (error)' not met, function:decode_cached_class_info, Image out of date: Microsoft.Maui.Controls.so
@holecekp holecekp added the t/bug Something isn't working label Feb 16, 2025
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@holecekp
Copy link
Author

I'm sorry for posting this issue. Problem was solved by updating to the latest preview of VS (VS 17.14.0 Preview 1.0) and by deleting bin and obj folders.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant