Search Issue Tracker

Fixed

Fixed in 2021.3.24f1, 2022.2.18f1, 2023.2.0a13

Votes

2

Found in

2021.3.15f1

Issue ID

UUM-22614

Regression

No

[iOS] Crash on UnityFramework`::ScheduleDependencies() when Graphics Jobs are enabled

--

-

How to reproduce:
1. Open the attached Project
2. Enable "Graphics Jobs (Experimental)" under Project Settings -> Player -> iOS
3. In the Project window, select Assets->_Tech->Build->iOS
4. In the Inspector window, click the "Build" button
5. Launch the built Xcode project on an iOS device
6. Play through the game for 10-15min
7. If a crash does not occur, repeat from step 4

Reproducible with: 2021.3.15f1
Could not test with: 2020.3.44f1, 2021.3.16f1, 2022.2.2f1, 2023.1.0a25 (project requires extensive modification to certain scripts in order to be usable after changing versions)

Reproduced with:
- iPhone 13 (iOS 15.0)
- iPhone 12 mini (iOS 14.1)

Notes:
- The crash may occur as soon as in the character creation screen, however, it may also occur later

Full stack trace of the crash:
* thread #38, name = 'Metal Submission Thread', stop reason = EXC_BAD_ACCESS (code=1, address=0xbdaec33c3d77c69d)
* frame #0: 0x000000011332eaa0 UnityFramework`::ScheduleDependencies() at JobQueue.cpp:360:11 [opt]
frame #1: 0x000000011333026c UnityFramework`::ScheduleJobMultipleDependencies() at JobQueue.cpp:1593:13 [opt]
frame #2: 0x000000011332bce4 UnityFramework`::SyncFencesNoWorkSteal() at Jobs.cpp:67:40 [opt]
frame #3: 0x0000000113aca180 UnityFramework`DoExecuteSyncFenceForDevices at GfxTaskExecutorMetal.mm:386:9 [opt]
frame #4: 0x0000000113ac9d24 UnityFramework`HandleTaskStream at GfxTaskExecutorMetal.mm:157:17 [opt]
frame #5: 0x0000000113aca1a8 UnityFramework`ThreadEntry at GfxTaskExecutorMetal.mm:174:15 [opt]
frame #6: 0x00000001133e9d78 UnityFramework`::RunThreadWrapper() at Thread.cpp:82:14 [opt]
frame #7: 0x00000001f0c35a60 libsystem_pthread.dylib`_pthread_start + 148

Comments (2)

  1. EminemJ

    Mar 21, 2023 09:50

    Similar issues here. The game randomly crashes when some character(SkinnedMeshRenderer?) meets particle systems.

  2. xodennisxo

    Mar 21, 2023 09:43

    same problem in my project. iphone 14/13 crashes after about 1 min playing. once disabling GRAPHICS JOBS, the crash was gone.
    it rarely crashes on old iphone device, and we didn't meet crash on the android devices we tested.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.