Search Issue Tracker

Fixed in 2021.2.X

Fixed in 2019.4.X, 2020.2.X, 2021.1.X

Votes

0

Found in

2019.3

2019.3.4f1

2019.4

Issue ID

1227236

Regression

Yes

Crash on MTLReportFailure.cold.2 + 43 when running Build with Graphics Jobs enabled

Metal

-

Reproduction steps:
1. Download the Build "Case_1227236.zip" from the attached link
2. Run the script "rustcrashtest.sh" located in the build
3. Wait for the Build to load and let it run for a while

Reproducible with: 2019.3.3f1, 2019.3.5f1, 2019.4.7f1
Not reproducible with: 2019.2.21f1

First lines of the stack trace:
Thread 26 Crashed:: Metal Submission Thread
0 libsystem_kernel.dylib 0x00007fff6ddfe33a __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff6debae60 pthread_kill + 430
2 libsystem_c.dylib 0x00007fff6dd85808 abort + 120
3 libsystem_c.dylib 0x00007fff6dd84ac6 __assert_rtn + 314
4 com.apple.Metal 0x00007fff3917f729 MTLReportFailure.cold.2 + 43

Notes:
1. As only a Build was provided, we are unable to test the other streams if they are affected
2. Takes around 4-5min to crash after the game has fully loaded
3. The user mentioned themselves that the issue reproduces with Graphics Jobs enabled
4 The Unity log file does not contain a stack trace, only this error:
"-[MTLIOAccelCommandBuffer validate]:208: failed assertion `commit command buffer with uncommitted encoder'
-[_MTLCommandEncoder dealloc]:70"
5. In order to run the script, on macOS, open a Terminal window at the Build's folder, and run "sh rustcrashtest.sh"
6. After the crash, the log file will be located in the Build folder "output_log.txt"

  1. Resolution Note (fix version 2021.2):

    Fixed in 2021.2.0a5

  2. Resolution Note (fix version 2021.1):

    Fixed in 2021.1.0b9

  3. Resolution Note (fix version 2020.2):

    Fixed in 2020.2.7f1

  4. Resolution Note (fix version 2019.4):

    Fixed in 2019.4.22f1

Comments (4)

  1. Nico8292

    Sep 21, 2021 14:04

    It is fixed for us with 2019.4.30

  2. Nico8292

    Jul 09, 2021 09:27

    Same on our side on 2019.4.23

  3. studentvz

    May 09, 2021 17:52

    We also have a huge number of similar crashes, the same as from the comment below.

    Forum thread: https://forum.unity.com/threads/crashes-metal-mtlreportfailure-cold-1-mtlreportfailure-468.1092490/

  4. tkslan

    Apr 13, 2021 15:18

    Hi, We have very similar crash on iOS now.. May be related...
    Thread 0 Crashed:
    0 libobjc.A.dylib 0x0000000195d530f8 objc_msgSend + 24
    1 TestFairy 0x00000001044b5418 post_crash_callback + 32 (TestFairyCrashManager.m:63)
    2 TestFairy 0x00000001044dc8b4 0x104484000 + 362676
    3 TestFairy 0x00000001044d70fc 0x104484000 + 340220
    4 TestFairy 0x00000001044d701c 0x104484000 + 339996
    5 libsystem_platform.dylib 0x00000001cc62d290 _sigtramp + 56 (sigtramp.c:116)
    6 libsystem_pthread.dylib 0x00000001cc632b40 pthread_kill + 272 (pthread.c:1388)
    7 libsystem_c.dylib 0x000000018a185b74 abort + 104 (abort.c:110)
    8 libsystem_c.dylib 0x000000018a184e24 __assert_rtn + 208 (assert.c:96)
    9 Metal 0x00000001975676f0 MTLReportFailure.cold.1 + 56 (MTLDebug.mm:254)
    10 Metal 0x000000019754eda4 MTLReportFailure + 468 (MTLDebug.mm:254)
    11 Metal 0x000000019753ea98 -[_MTLCommandEncoder dealloc] + 128 (MTLCommandEncoder.m:131)
    12 UnityFramework 0x000000010503acc4 MetalContext::~MetalContext() + 76 (MetalContext.mm:95)
    13 UnityFramework 0x00000001050237cc GfxDeviceMetalBase::~GfxDeviceMetalBase() + 144 (GfxDeviceMetal.mm:2310)

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.