Open AtlantisDe opened 3 days ago
Do you have any logs or error messages or additional information? Based on just "its not working" its hard to say anything useful.
Do you have any logs or error messages or additional information? Based on just "its not working" its hard to say anything useful.
@jfversluis 💯%Hello, I have submitted the detailed log. Thank you. ❤️❤️❤️❤️ Visual Studio 2022 log shows no abnormal information, and adb shell log shows a lot of failure information.
Forwarding debugger port 8808
Detecting existing process
> am start -a "android.intent.action.MAIN" -c "android.intent.category.LAUNCHER" -n "com.companyname.mauiapp1/crc64e632a077a20c694c.MainActivity"
> Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.companyname.mauiapp1/crc64e632a077a20c694c.MainActivity }
[main] type=1400 audit(0.0:5144): avc: denied { mounton } for path="/sys/class/thermal" dev="sysfs" ino=4179 scontext=u:r:zygote:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=1
[main] type=1400 audit(0.0:5145): avc: denied { mounton } for path="/proc/sys/kernel/ostype" dev="proc" ino=35086 scontext=u:r:zygote:s0 tcontext=u:object_r:proc:s0 tclass=file permissive=1
[libc_hashmap] _hashmap_rehash --> Do we need to increase the initial table size?
[nyname.mauiapp] Late-enabling -Xcheck:jni
[main] type=1400 audit(0.0:5146): avc: denied { mounton } for path="/proc/sys/kernel/hostname" dev="proc" ino=13372 scontext=u:r:zygote:s0 tcontext=u:object_r:proc_hostname:s0 tclass=file permissive=1
[main] type=1400 audit(0.0:5147): avc: denied { mounton } for path="/proc/version" dev="proc" ino=4026531938 scontext=u:r:zygote:s0 tcontext=u:object_r:proc_version:s0 tclass=file permissive=1
[main] type=1400 audit(0.0:5148): avc: denied { mounton } for path="/sys/fs/selinux/enforce" dev="selinuxfs" ino=4 scontext=u:r:zygote:s0 tcontext=u:object_r:selinuxfs:s0 tclass=file permissive=1
[nyname.mauiapp] Unquickening 12 vdex files!
[main] type=1400 audit(0.0:5149): avc: denied { mounton } for path="/system/xbin" dev="overlay" ino=2972 scontext=u:r:zygote:s0 tcontext=u:object_r:system_file:s0 tclass=dir permissive=1
[libc_hashmap] _hashmap_rehash --> Do we need to increase the initial table size?
[nyname.mauiapp] The ClassLoaderContext is a special shared library.
[HookMain] toHook /data/plugin/com.companyname.mauiapp1
[NetworkSecurityConfig] No Network Security Config specified, using platform default
[NetworkSecurityConfig] No Network Security Config specified, using platform default
[debug-app-helper] Checking if libmonodroid was unpacked to /data/app/~~xFuKGjkersf2tnNMYEmJaA==/com.companyname.mauiapp1-qs0o0V2vw5epwln7Fu5Qmg==/lib/arm64/libmonodroid.so
[debug-app-helper] Native libs extracted to /data/app/~~xFuKGjkersf2tnNMYEmJaA==/com.companyname.mauiapp1-qs0o0V2vw5epwln7Fu5Qmg==/lib/arm64, assuming application/android:extractNativeLibs == true
[debug-app-helper] Setting up for DSO lookup in app data directories
[debug-app-helper] Added filesystem DSO lookup location: /data/app/~~xFuKGjkersf2tnNMYEmJaA==/com.companyname.mauiapp1-qs0o0V2vw5epwln7Fu5Qmg==/lib/arm64
[debug-app-helper] Using runtime path: /data/app/~~xFuKGjkersf2tnNMYEmJaA==/com.companyname.mauiapp1-qs0o0V2vw5epwln7Fu5Qmg==/lib/arm64
[debug-app-helper] checking directory: `/data/user/0/com.companyname.mauiapp1/files/.__override__/lib`
[debug-app-helper] directory does not exist: `/data/user/0/com.companyname.mauiapp1/files/.__override__/lib`
[debug-app-helper] Checking whether Mono runtime exists at: /data/user/0/com.companyname.mauiapp1/files/.__override__/libmonosgen-2.0.so
[debug-app-helper] Checking whether Mono runtime exists at: /data/app/~~xFuKGjkersf2tnNMYEmJaA==/com.companyname.mauiapp1-qs0o0V2vw5epwln7Fu5Qmg==/lib/arm64/libmonosgen-2.0.so
[debug-app-helper] Mono runtime found at: /data/app/~~xFuKGjkersf2tnNMYEmJaA==/com.companyname.mauiapp1-qs0o0V2vw5epwln7Fu5Qmg==/lib/arm64/libmonosgen-2.0.so
[nyname.mauiapp] Attempt to remove non-JNI local reference, dumping thread
[DOTNET] JNI_OnLoad: JNI_OnLoad in pal_jni.c
[DOTNET] GetOptionalClassGRef: optional class com/android/org/conscrypt/OpenSSLEngineImpl was not found
[monodroid] Creating public update directory: `/data/user/0/com.companyname.mauiapp1/files/.__override__`
[nyname.mauiapp] Attempt to remove non-JNI local reference, dumping thread
[monodroid-debug] Trying to initialize the debugger with options: --debugger-agent=transport=dt_socket,loglevel=0,address=127.0.0.1:8808,server=y,embedding=1,timeout=1730758256
[libc] Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x18 in tid 4963 (nyname.mauiapp1), pid 4963 (nyname.mauiapp1)
The logs indicate that the MAUI application encountered issues during startup. Key points from the log include:
avc: denied
Warnings:
avc: denied
suggest that access control (SELinux) is blocking certain operations. This typically does not cause application crashes but may affect functionality.Unquickening 12 vdex files!
:
Fatal signal 11 (SIGSEGV)
:
Fatal signal 11 (SIGSEGV)
, indicating a segmentation fault. This is the direct cause of the application crash, typically due to attempts to access unallocated or illegal memory addresses.JNI Call Issues:
Memory Problems:
Native Library Errors:
Check JNI Calls:
Debug Memory Issues:
Ensure Native Library Integrity:
Update MAUI and Dependencies:
Test on Different Devices and Environments:
Increase Logging:
If the issue persists, consider simplifying the code step by step to identify the exact location causing the crash and investigate accordingly. If you need further assistance, please provide relevant code or context.
uname -m
# aarch64
---------------------------------------------------------
📋Min./ Max. SDK: 21: 23: Android 6.0 (Marshmallow)
📋Target / Compile SDK: 34: Android 34: Android
📋ABIs: armeabi-v7a arm64-v8a x86 x86_64
💯💯💯💯Try the test ---- Xamarin.Android💯💯💯💯
---------------------------------------------------------
✅✅✅✅✅✅✅✅✅ OK OK OK
Xamarin.Android
It can run and test perfectly under the Xamarin.Android framework.
✅✅✅✅✅✅✅✅✅
❣️❣️❣️Try the test ---- arm64-v8a❣️❣️❣️
---------------------------------------------------------
# net8.0-android34.0⬅️
dotnet publish -c Release -f net8.0-android34.0 -r android-arm64 --self-contained
#dotnet publish -c Release -f net8.0-android34.0 -r android-arm64 --self-contained
#dotnet publish -c Release -f net8.0-android34.0 -r android-armv7 --self-contained
#dotnet publish -c Release -f net8.0-android34.0 -r android-x86 --self-contained
#dotnet publish -c Release -f net8.0-android34.0 -r android-x86_64 --self-contained
# net8.0-android
#dotnet publish -c Release -f:net8.0-android -r android-arm64 --self-contained
#dotnet publish -c Release -f:net8.0-android -r android-armv7 --self-contained
#dotnet publish -c Release -f:net8.0-android -r android-x86 --self-contained
#dotnet publish -c Release -f:net8.0-android -r android-x86_64 --self-contained
# Can run OK ✅✅✅✅✅✅✅✅✅ On LineageOS Android 11
# Can not, run Failed ❌❌❌❌❌❌❌❌❌ Other Rom Android 11
Installed Workload Id Manifest Version Installation Source
---------------------------------------------------------
maui-windows 8.0.82/8.0.100 VS 17.11.35327.3
maccatalyst 18.0.8303/8.0.100 VS 17.11.35327.3
ios 18.0.8303/8.0.100 VS 17.11.35327.3
android 34.0.113/8.0.100 VS 17.11.35327.3
# Can not, run Failed ❌❌❌❌❌❌❌❌❌
Installed Workload Id Manifest Version Installation Source
----------------------------------------------------------------------------------------------------
android 35.0.0-rc.2.152/9.0.100-rc.2 SDK 9.0.100-rc.2, VS 17.12.35424.110
aspire 8.2.2/8.0.100 SDK 9.0.100-rc.2, VS 17.12.35424.110
ios 18.0.9600-net9-rc2/9.0.100-rc.2 SDK 9.0.100-rc.2, VS 17.12.35424.110
maccatalyst 18.0.9600-net9-rc2/9.0.100-rc.2 SDK 9.0.100-rc.2, VS 17.12.35424.110
maui-windows 9.0.0-rc.2.24503.2/9.0.100-rc.2 SDK 9.0.100-rc.2, VS 17.12.35424.110
Description
Issue: Unable to Run MAUI Apps on Android 11 ❌
Description
I am experiencing issues running a .NET 8 MAUI application on an Android 11 device. The app was created using the default MAUI template, and I haven't made any changes to it.
Details
Testing
Problem
Unable to run the MAUI app on the specified Android version.
Request for Help
Any guidance or solutions to resolve this issue would be greatly appreciated.
Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
9.0.0-rc.2.24503.2
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 11
Did you find any workaround?
No response
Relevant log output