Search Issue Tracker

Duplicate

Votes

0

Found in

2020.3.24f1

2021.2

2021.2.2f1

2022.1

Issue ID

1380521

Regression

Yes

Crash on UnityGfxDeviceWorker when running a Player Build

Metal

-

Reproduction steps:
1. Open the attached 'Bug Test' project
2. Open the 'TestScene'
3. Go to the 'File Settings -> Build and Run'
4. Observe a crash

Reproducible with: 2020.3.24f1, 2020.3.25f1, 2021.2.7f1, 2022.1.0b2
Not reproducible with: 2019.4.34f1, 2020.3.23f1, 2022.2.0a1

Note: reproducible only on macOS

First lines of the stacktrace of the crashed thread:
Thread 57 Crashed:: UnityGfxDeviceWorker
0 libsystem_kernel.dylib 0x00007fff2034b92e __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff2037a5bd pthread_kill + 263
2 libsystem_c.dylib 0x00007fff202cf4a0 __abort + 139
3 libsystem_c.dylib 0x00007fff202cf415 abort + 140
4 libsystem_c.dylib 0x00007fff202ce7d8 __assert_rtn + 314
5 com.apple.Metal 0x00007fff283beec4 MTLReportFailure.cold.1 + 43
6 com.apple.Metal 0x00007fff283ad45a MTLReportFailure + 538
7 com.apple.Metal 0x00007fff2831df9f -[_MTLCommandEncoder dealloc] + 123
8 com.apple.AMDRadeonX6000MTLDriver 0x00000001235d22b0 -[GFX10_MtlRenderCmdEncoder dealloc] + 164

Application-Specific Information:
-[_MTLCommandEncoder dealloc]:131: failed assertion `Command encoder released without endEncoding'

  1. Resolution Note (2022.2.X):

    Fixed in 2022.2.0a1

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.