Search Issue Tracker

Fixed in 2022.2.X

Fixed in 2020.3.X, 2021.2.X, 2022.1.X

Votes

7

Found in

2020.3

2021.2

2021.2.12f1

2022.1

2022.2.0a4

Issue ID

1405248

Regression

Yes

Editor crashes on BufferMetal::IsBusy after opening a Scene

Metal

-

How to reproduce:
1. Open the attached project "GameViewCrash.zip"
2. Open "Rabbit PA Base Demo" Scene
3. Open Game view

Reproducible with: 2020.3.30f1, 2021.2.14f1, 2022.1.0b10, 2022.2.0a4, 2022.2.0a6
Not reproducible with: 2019.4.36f1, 2022.2.0a3

Stack trace:
#0 BufferMetal::IsBusy(bool*) const
#1 RenderBufferManager::Buffers::GetTempBuffer(unsigned long, GfxBufferTarget, unsigned int)
#2 SkinnedMeshRenderer::SkinOnGPU(MatrixArrayJobOutput*)
#3 SkinnedMeshRenderer::UpdateSkinnedMeshes(SkinnedMeshRenderer::UpdateType, dynamic_array<SkinnedMeshRenderer*, 0ul>&)
#4 SkinnedMeshRendererManager::UpdateAllSkinnedMeshes(SkinnedMeshRenderer::UpdateType, dynamic_array<SkinnedMeshRenderer*, 0ul>*)
#5 SkinnedMeshRenderer::InitializeClass()::PostLateUpdateUpdateAllSkinnedMeshesRegistrator::Forward()

  1. Resolution Note (fix version 2022.2):

    Fixed in: 2022.2.0a8

  2. Resolution Note (fix version 2022.1):

    Fixed in: 2022.1.0b12

  3. Resolution Note (fix version 2021.2):

    Fixed in: 2021.2.17f1

  4. Resolution Note (fix version 2020.3):

    Fixed in: 2020.3.32f1

Comments (1)

  1. Poonaka

    Feb 24, 2022 01:25

    This happened again to me while working on my animator controller. The game view was in the background this time.

    Stack trace:
    Thread 0 Crashed:: tid_103 Dispatch queue: com.apple.main-thread
    0 Unity 0x10e3fe778 BufferMetal::IsBusy(bool*) const + 56
    1 Unity 0x10c16da9d RenderBufferManager::Buffers::GetTempBuffer(unsigned long, GfxBufferTarget, unsigned int) + 349
    2 Unity 0x10c1f9fd6 SkinnedMeshRenderer::SkinOnGPU(MatrixArrayJobOutput*) + 678
    3 Unity 0x10c1fc25b SkinnedMeshRenderer::UpdateSkinnedMeshes(SkinnedMeshRenderer::UpdateType, dynamic_array<SkinnedMeshRenderer*, 0ul>&) + 955
    4 Unity 0x10c1eb3bc SkinnedMeshRendererManager::UpdateAllSkinnedMeshes(SkinnedMeshRenderer::UpdateType, dynamic_array<SkinnedMeshRenderer*, 0ul>*) + 284
    5 Unity 0x10c1fb11b SkinnedMeshRenderer::InitializeClass()::PostLateUpdateUpdateAllSkinnedMeshesRegistrator::Forward() + 107
    6 Unity 0x10c2e60b6 ExecutePlayerLoop(NativePlayerLoopSystem*) + 150
    7 Unity 0x10c2e6073 ExecutePlayerLoop(NativePlayerLoopSystem*) + 83
    8 Unity 0x10c2e63e5 PlayerLoop() + 437
    9 Unity 0x10d64df73 EditorPlayerLoop::Execute() + 35
    10 Unity 0x10d64e7f9 PlayerLoopController::UpdateScene(bool) + 601
    11 Unity 0x10d6473e7 PlayerLoopController::UpdateSceneIfNeeded() + 87
    12 Unity 0x10d6447e1 Application::TickTimer() + 4577
    13 Unity 0x10e53fb3f -[EditorApplication TickTimer] + 559
    14 Foundation 0x7ff8124c76d0 __NSFireTimer + 67
    15 CoreFoundation 0x7ff81163984f __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
    16 CoreFoundation 0x7ff81163933e __CFRunLoopDoTimer + 927
    17 CoreFoundation 0x7ff811638e9d __CFRunLoopDoTimers + 307
    18 CoreFoundation 0x7ff81161f45f __CFRunLoopRun + 1985
    19 CoreFoundation 0x7ff81161e5dd CFRunLoopRunSpecific + 563
    20 HIToolbox 0x7ff81a25b4f1 RunCurrentEventLoopInMode + 292
    21 HIToolbox 0x7ff81a25b247 ReceiveNextEventCommon + 587
    22 HIToolbox 0x7ff81a25afe5 _BlockUntilNextEventMatchingListInModeWithFilter + 70
    23 AppKit 0x7ff81404dd88 _DPSNextEvent + 886
    24 AppKit 0x7ff81404c3f4 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1411
    25 AppKit 0x7ff81403e919 -[NSApplication run] + 586
    26 AppKit 0x7ff8140127b7 NSApplicationMain + 816
    27 Unity 0x10e53cc55 EditorMain(int, char const**) + 949
    28 Unity 0x10e53cf79 main + 9
    29 dyld 0x114bda4fe start + 462

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.