Open mfeingol opened 3 weeks ago
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Does this happen specifically within your app? Does it happen with a new MAUI UI Template app? Does it happen on a dotnet Android (dotnet new android
) app that doesn't use MAUI UI?
@drasticactions: clean new sample app seems to work with LLVM enabled.
Verified this original issue with Visual Studio 17.11.0 Preview 2.0 (8.0.60 & 8.0.3 ). Cannot repro it on android
I installed VS 17.11.0 Preview 2.0. Was able to repro with 8.0.60. Attempted to install 9.0.0-preview.5.24307.10 and had a bunch of unresolved resources and namespaces when compiling for Android... which I didn't have time to work through so I gave up on that.
tldr, it still repros with the latest VS preview.
@jonathanpeppers any thoughts?
I think we can move this to runtime.
@mfeingol you might see if you can get a more detailed log with:
# clear the log
adb logcat -c
# enable more logging
adb shell setprop debug.mono.log default,assembly,mono_log_level=debug,mono_log_mask=all
# make the app crash
# save the log (share it here)
adb logcat -d > log.txt
Later, when you want to disable the logging, call adb shell setprop debug.mono.log "''"
or reboot the device.
Description
tldr my release build works fine but when I enable LLVM it crashes on startup.
Might relate to https://github.com/dotnet/runtime/issues/95406
Steps to Reproduce
This seems to do it:
Link to public reproduction project repository
No response
Version with bug
8.0.40 SR5
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 14
Did you find any workaround?
Don't use LLVM
Relevant log output