Skip to content

[iOS] AOT: mono_gc_pthread_create Cannot transition thread 0x16b77b000 from STATE_BLOCKING with DO_BLOCKING #47121

@EgorBo

Description

@EgorBo

Steps to reproduce (on a clean repo):

cd src/mono/netcore/sample/iOS
make all MONO_CONFIG=Debug MONO_ARCH=arm64 USE_LLVM=false AOT=true

(or MONO_ARCH=x64 for simulators)

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.:

image

try to deploy the app to a physical device or a simulator.

Observe a runtime crash:

2021-01-18 16:22:07.980830+0300 HelloiOS[738:177189] assembly_preload_hook: System.Private.CoreLib (null) /private/var/containers/Bundle/Application/1EC7039A-4661-454C-B89A-815E6F80932D/HelloiOS.app
2021-01-18 16:22:07.985347+0300 HelloiOS[738:177189] Looking for aot data for assembly 'System.Private.CoreLib'.
2021-01-18 16:22:07.985593+0300 HelloiOS[738:177189] Loaded aot data for System.Private.CoreLib.
2021-01-18 16:22:08.056385+0300 HelloiOS[738:177189] ((null) error) mono_gc_pthread_create Cannot transition thread 0x16be63000 from STATE_BLOCKING with DO_BLOCKING
2021-01-18 16:22:08.056427+0300 HelloiOS[738:177189] Exit code: 1.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions