-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
iOS Simulator 17.4 "native crash" on Template Solution #15135
Comments
Feel free to reach out to me if you want a screen sharing session to help reproduce or check my environment. |
Please check 11.1.0-beta1 version or latest nightly builds. |
I'm seeing the same issue with bate and latest nightly. For me I see the same crashes for 17.2 and 17.01 simulators. Creating a blank MAUI template works flawlessly, btw. Not sure if this helps to pinpoint the issue. |
I had a similar crash issue today (sometimes I haven't built this particular codebase for iOS in a while. I was last able to run it on iOS about two months ago. Since then, multiple variables have changed: .NET SDK version, Avalonia version, XCode's iOS SDK and simulator versions. So I haven't figured out what is the root cause. Here is one of the macOS crash reports when running on iOS simulator: https://gist.github.com/ztl8702/6b5da929be35b89f46dcdfbef3c73424#file-gistfile1-txt My workaround is just to use a real iPhone for now. |
I've found a temporary workaround for the issue where the app crashes on startup when targeting the iOS simulator. Noting that the app can start on a real device but crashes in the simulator, I tried to build the app based on x64 architecture. Since the arm64 iOS simulator can also run x64 iOS apps, try this command line: dotnet build -t:Run -r iossimulator-x64 -p:_DeviceName=:v2:udid=SIMULATOR_ID. |
Can somebody report this issue to https://github.com/xamarin/xamarin-macios ? Preferably with a minimal repro. |
@maxkatz6 I think this might be related to dotnet/runtime#98941 or xamarin/xamarin-macios#20257, apparently fixed in .NET 8.0.5 (I haven't tested personally). But anyway high chance that this is unrelated to Avalonia. |
@maxkatz6 I've faced the same issue in iOS Simulator for both 17.4 and 17.5 versions, crashed on start up |
Closing this issue, as this problem is tracked in #14933 |
@maxkatz6 Why switch to |
Describe the bug
With a clean Avalonia Cross-Platform Template Solution, on macOS 14.4.1 (with Rider 2023.3.4) and Xcode 15.3, when running on iOS Simulator (17.4), it crashes with the following error output. On Android simulator AND on a physical iPhone connected to the mac via cable, there is no problem and the Hello World app launches as expected:
Native Crash Reporting
Got a SIGBUS while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
Native stacktrace:
0x1290540a0 - /Users/danielgorin/Library/Developer/CoreSimulator/Devices/F00DB27F-DD84-4D2E-89BA-5D24F7F7882B/data/Containers/Bundle/Application/5A144CE8-BE4B-4D97-977E-2C24183C8EF2/CheckMade.iOS.app/libmonosgen-2.0.dylib : mono_dump_native_crash_info
0x12900428c - /Users/danielgorin/Library/Developer/CoreSimulator/Devices/F00DB27F-DD84-4D2E-89BA-5D24F7F7882B/data/Containers/Bundle/Application/5A144CE8-BE4B-4D97-977E-2C24183C8EF2/CheckMade.iOS.app/libmonosgen-2.0.dylib : mono_handle_native_crash
0x128f6b798 - /Users/danielgorin/Library/Developer/CoreSimulator/Devices/F00DB27F-DD84-4D2E-89BA-5D24F7F7882B/data/Containers/Bundle/Application/5A144CE8-BE4B-4D97-977E-2C24183C8EF2/CheckMade.iOS.app/libmonosgen-2.0.dylib : mono_sigsegv_signal_handler_debug
0x13eb9b7e0 - /usr/lib/system/libsystem_platform.dylib : _sigtramp
0x1466b9ff8 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/OpenGLES.framework/libCoreVMClient.dylib : cvmsServerElementBuild
0x1466b5e34 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/OpenGLES.framework/libCoreVMClient.dylib : cvms_element_build_from_source
0x1466d6854 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/OpenGLES.framework/libCVMSPluginSupport.dylib : _Z26cvm_deferred_build_modularPv
0x13e767978 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libdispatch.dylib : _dispatch_client_callout
0x13e76fb10 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libdispatch.dylib : _dispatch_lane_serial_drain
0x13e770688 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libdispatch.dylib : _dispatch_lane_invoke
0x13e77ba84 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libdispatch.dylib : _dispatch_root_queue_drain_deferred_wlh
0x13e77b0d0 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libdispatch.dylib : _dispatch_workloop_worker_thread
0x13ed67814 - /usr/lib/system/libsystem_pthread.dylib : _pthread_wqthread
0x13ed665d4 - /usr/lib/system/libsystem_pthread.dylib : start_wqthread
=================================================================
Basic Fault Address Reporting
Memory around native instruction pointer (0x13eb9b410):0x13eb9b400 28 24 40 a8 2a 2c 41 a8 21 80 00 91 42 00 05 cb ($@.*,A.!...B...
0x13eb9b410 0c 34 00 a9 0e 3c 01 a9 42 00 01 f1 29 01 00 54 .4...<..B...)..T
0x13eb9b420 68 24 00 a9 6a 2c 01 a9 63 80 00 91 28 24 40 a8 h$..j,..c...($@.
0x13eb9b430 2a 2c 41 a8 21 80 00 91 42 80 00 f1 28 ff ff 54 *,A.!...B...(..T
=================================================================
Native Crash Reporting
Got a SIGBUS while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
An error has occurred in the native fault reporting. Some diagnostic information will be unavailable.
=================================================================
Native stacktrace:
0x1290540a0 - /Users/danielgorin/Library/Developer/CoreSimulator/Devices/F00DB27F-DD84-4D2E-89BA-5D24F7F7882B/data/Containers/Bundle/Application/5A144CE8-BE4B-4D97-977E-2C24183C8EF2/CheckMade.iOS.app/libmonosgen-2.0.dylib : mono_dump_native_crash_info
0x12900428c - /Users/danielgorin/Library/Developer/CoreSimulator/Devices/F00DB27F-DD84-4D2E-89BA-5D24F7F7882B/data/Containers/Bundle/Application/5A144CE8-BE4B-4D97-977E-2C24183C8EF2/CheckMade.iOS.app/libmonosgen-2.0.dylib : mono_handle_native_crash
0x128f6b798 - /Users/danielgorin/Library/Developer/CoreSimulator/Devices/F00DB27F-DD84-4D2E-89BA-5D24F7F7882B/data/Containers/Bundle/Application/5A144CE8-BE4B-4D97-977E-2C24183C8EF2/CheckMade.iOS.app/libmonosgen-2.0.dylib : mono_sigsegv_signal_handler_debug
0x13eb9b7e0 - /usr/lib/system/libsystem_platform.dylib : _sigtramp
0x1466b9ff8 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/OpenGLES.framework/libCoreVMClient.dylib : cvmsServerElementBuild
0x1466b5e34 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/OpenGLES.framework/libCoreVMClient.dylib : cvms_element_build_from_source
0x1466d6854 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/OpenGLES.framework/libCVMSPluginSupport.dylib : _Z26cvm_deferred_build_modularPv
0x13e767978 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libdispatch.dylib : _dispatch_client_callout
0x13e76fb10 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libdispatch.dylib : _dispatch_lane_serial_drain
0x13e770688 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libdispatch.dylib : _dispatch_lane_invoke
0x13e77ba84 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libdispatch.dylib : _dispatch_root_queue_drain_deferred_wlh
0x13e77b0d0 - /Library/Developer/CoreSimulator/Volumes/iOS_21E213/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libdispatch.dylib : _dispatch_workloop_worker_thread
0x13ed67814 - /usr/lib/system/libsystem_pthread.dylib : _pthread_wqthread
0x13ed665d4 - /usr/lib/system/libsystem_pthread.dylib : start_wqthread
Exiting early due to double fault.
To Reproduce
Expected behavior
No response
Avalonia version
11.0.10
OS
iOS
Additional context
No response
The text was updated successfully, but these errors were encountered: