-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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] AOT: mono_gc_pthread_create Cannot transition thread 0x16b77b000 from STATE_BLOCKING with DO_BLOCKING #47121
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Probably due to the switch to hybrid suspend in #46873 - going to try to fix it if I can get a stack trace (it should be straightforward - we're calling |
@lambdageek I'm running into this now on iOS:
is there a way to disable hybrid suspend on my side, or do I have to wait until it's fixed in mono? |
when lazy thread creation is used, this external API function is called from a thread in GC Safe mode, so enter GC Unsafe before calling runtime functions. Fixes a double transition to GC Safe in mono_gc_pthread_create. Fixes dotnet#47121
Thanks for the stack trace, @rolfbjarne. PR is up. meanwhile setenv |
The default was changed to be hybrid suspend, and due to bugs in Mono that crashes: dotnet/runtime#47121 In the meantime we can go back to the older GC mode until Mono has fixed any issues with the hybrid suspend mode.
when lazy thread creation is used, this external API function is called from a thread in GC Safe mode, so enter GC Unsafe before calling runtime functions. Fixes a double transition to GC Safe in mono_gc_pthread_create. Fixes #47121
The default was changed to be hybrid suspend, and due to bugs in Mono that crashes: dotnet/runtime#47121 In the meantime we can go back to the older GC mode until Mono has fixed any issues with the hybrid suspend mode.
Steps to reproduce (on a clean repo):
Open
~/prj/runtime/src/mono/netcore/sample/iOS/bin/ios-arm64/publish/app/HelloiOS/HelloiOS.xcodeproj
in XCode, solve all signing issues if any (in case of physical devices), e.g.:try to deploy the app to a physical device or a simulator.
Observe a runtime crash:
The text was updated successfully, but these errors were encountered: