Search Issue Tracker

Third Party Issue

Votes

1

Found in

2019.4

2019.4.22f1

Issue ID

1321811

Regression

Yes

[Metal] Crash when calling DrawMeshInstancedIndirect() with an Intel HD Graphics 4000 GPU

Metal

-

Reproduction steps:
1. Open attached project "Indirect-Rendering-With-Compute-Shaders" and load Scene "_Scene"
2. Enter Play Mode

Reproducible with: 2019.4.22f1
Not reproducible with: 2018.4.33f1
Could not test with: 2020.3.1f1, 2021.1.0b12, 2021.2.0a10 (Device with specified GPU unavailable for testing)

First lines of the stack trace:
0 libmonobdwgc-2.0.dylib 0x000000014c7eb731 mono_handle_native_crash + 242
1 libmonobdwgc-2.0.dylib 0x000000014c74bb59 mono_sigsegv_signal_handler + 220
2 libsystem_platform.dylib 0x00007fff73952b5d _sigtramp + 29
3 ??? 0x00007fe2ce280780 0x0 + 140612098066304
4 AppleIntelHD4000GraphicsMTLDriver 0x00007fff3f730507 -[MTLIGAccelRenderCommandEncoder drawIndexedPrimitives:indexType:indexBuffer:indexBufferOffset:indirectBuffer:indirectBufferOffset:] + 335

Known affected machine:
Macbook air, 13 inch, mid 2012
Mojave (10.14.6)
Processor 2.5 Ghz Intel Core i5
Memory 8 GB 1600 Mhz DDR3
Startup Disk Macintosh HD
Graphics Intel HD Graphics 4000 1536 MB
Driver version : 12.0.24

  1. Resolution Note (2021.2.X):

    This is an issue with GPU drivers that will not be fixed by Unity

Comments (1)

  1. Andrewleek

    Apr 08, 2021 00:45

    I cannot see the attached archive, but am assuming it is this project: github.com/ellioman/Indirect-Rendering-With-Compute-Shaders

    I can confirm this as well and here is my stack trace:
    Thread 37 Crashed:: UnityGfxDeviceWorker
    0 libsystem_kernel.dylib 0x00007fff7b9f32c2 __pthread_kill + 10
    1 libsystem_pthread.dylib 0x00007fff7baaebf1 pthread_kill + 284
    2 libsystem_c.dylib 0x00007fff7b95d6a6 abort + 127
    3 com.unity3d.UnityEditor5.x 0x000000010eece58e HandleSignal(int, __siginfo*, void*) + 62
    4 libmonobdwgc-2.0.dylib 0x000000014927af21 mono_chain_signal + 79
    5 libsystem_platform.dylib 0x00007fff7baa3b5d _sigtramp + 29
    6 ??? 0x00007fd3049134d0 0 + 140544291452112
    7 com.apple.driver.AppleIntelHD4000GraphicsMTLDriver 0x00007fff47826507 -[MTLIGAccelRenderCommandEncoder drawIndexedPrimitives:indexType:indexBuffer:indexBufferOffset:indirectBuffer:indirectBufferOffset:] + 335
    8 com.unity3d.UnityEditor5.x 0x000000010fe2887b DrawIndirect(id<MTLRenderCommandEncoder>, MTLPrimitiveType, BufferMetal*, unsigned int, BufferMetal, unsigned int) + 395
    9 com.unity3d.UnityEditor5.x 0x000000010fe28614 GfxDeviceMetalBase::DrawBuffersIndirect(GfxBuffer*, unsigned int, GfxBuffer* const*, unsigned int const*, int, VertexDeclaration*, GfxPrimitiveType, ComputeBufferID, unsigned int) + 1156
    10 com.unity3d.UnityEditor5.x 0x000000010dd4dc2b GfxDeviceWorker::RunCommand(ThreadedStreamBuffer&) + 50651
    11 com.unity3d.UnityEditor5.x 0x000000010fe34d7c GfxDeviceWorkerAutoreleasePoolProxy + 60
    12 com.unity3d.UnityEditor5.x 0x000000010dd52540 GfxDeviceWorker::RunExt(ThreadedStreamBuffer&) + 672
    13 com.unity3d.UnityEditor5.x 0x000000010dd41048 GfxDeviceWorker::RunGfxDeviceWorker(void*) + 152
    14 com.unity3d.UnityEditor5.x 0x000000010ed5732c Thread::RunThreadWrapper(void*) + 1228
    15 libsystem_pthread.dylib 0x00007fff7baac2eb _pthread_body + 126
    16 libsystem_pthread.dylib 0x00007fff7baaf249 _pthread_start + 66
    17 libsystem_pthread.dylib 0x00007fff7baab40d thread_start + 13

    Environment Specs:
    Unity version: 2019.4.23f1
    Macbook pro, 13 inch, mid 2012
    Mojave (10.14.6)
    Processor 2.9 Ghz Intel Core i7
    Memory 16 GB 1600 Mhz DDR3
    Startup Disk Macintosh HD
    Graphics Intel HD Graphics 4000 1536 MB
    AppleIntelHD4000GraphicsMTLDriver: 12.10.25 10

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.