Submission checklist
Description
The Unity Editor crashes on Windows immediately upon closing the editor.
Crucially, this crash ONLY occurs if the active scene contains at least one Rive component. If I close the editor with a scene that does not have any Rive components, it closes normally without any crash. It seems like a memory deallocation or cleanup issue related to Rive when the editor shuts down.
Previous working version
N/A
Reproduction steps / code
No response
Upload your reproduction files / stack trace
=================================================================
Managed Stacktrace:
=================================================================
at <unknown> <0xffffffff>
at Rive.RenderQueue:unrefRenderQueue <0x00069>
at Rive.RenderQueue:Dispose <0x00052>
at Rive.RenderQueue:Dispose <0x00019>
at Rive.Components.PanelPreview:CleanupResources <0x00192>
at Rive.Components.WorldspacePanelPreview:CleanupResources <0x00022>
at Rive.Components.PanelPreview:Dispose <0x001a6>
at Rive.Components.WorldspacePanelPreview:Dispose <0x00112>
at Rive.Components.PanelContextPreviewManager:OnDisable <0x0003f>
at System.Object:runtime_invoke_void__this__ <0x00087>
=================================================================
========== OUTPUTTING STACK TRACE ==================
0x00007FFBD5013C30 (D3D12Core) D3D12GetInterface
0x00007FFBCC6A0971 (rive) setViewModelInstanceArtboardValue
0x00007FFBCC6A0FEA (rive) setViewModelInstanceArtboardValue
0x00007FFBCC69F3CB (rive) setViewModelInstanceArtboardValue
0x00007FFBCC696446 (rive) unrefRenderQueue
0x0000025BA819C30A (Mono JIT Code) (wrapper managed-to-native) Rive.RenderQueue:unrefRenderQueue (intptr)
0x0000025BA819C243 (Mono JIT Code) [.\Library\PackageCache\app.rive.rive-unity@1c697b14b279\Runtime\RenderQueue.cs:499] Rive.RenderQueue:Dispose (bool)
0x0000025BA819C1BA (Mono JIT Code) [.\Library\PackageCache\app.rive.rive-unity@1c697b14b279\Runtime\RenderQueue.cs:489] Rive.RenderQueue:Dispose ()
0x0000025BA819B843 (Mono JIT Code) [.\Library\PackageCache\app.rive.rive-unity@1c697b14b279\Runtime\Components\Previews\PanelPreview.cs:324] Rive.Components.PanelPreview:CleanupResources ()
0x0000025BA819B663 (Mono JIT Code) [.\Library\PackageCache\app.rive.rive-unity@1c697b14b279\Runtime\Components\Previews\WorldspacePanelPreview.cs:239] Rive.Components.WorldspacePanelPreview:CleanupResources ()
0x0000025BA819B5C7 (Mono JIT Code) [.\Library\PackageCache\app.rive.rive-unity@1c697b14b279\Runtime\Components\Previews\PanelPreview.cs:300] Rive.Components.PanelPreview:Dispose ()
0x0000025BA819B233 (Mono JIT Code) [.\Library\PackageCache\app.rive.rive-unity@1c697b14b279\Runtime\Components\Previews\WorldspacePanelPreview.cs:45] Rive.Components.WorldspacePanelPreview:Dispose ()
0x0000025BA819B0F0 (Mono JIT Code) [.\Library\PackageCache\app.rive.rive-unity@1c697b14b279\Runtime\Components\Previews\PanelContextPreviewManager.cs:69] Rive.Components.PanelContextPreviewManager:OnDisable ()
0x0000025CFD472828 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007FFBD0C16C0E (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\mini\mini-runtime.c:3445] mono_jit_runtime_invoke
0x00007FFBD0B58984 (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\metadata\object.c:3068] do_runtime_invoke
0x00007FFBD0B58A70 (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\metadata\object.c:3115] mono_runtime_invoke
0x00007FFBDED43905 (Unity) scripting_method_invoke
0x00007FFBDED6C0AE (Unity) ScriptingInvocation::Invoke
0x00007FFBDED6C1DE (Unity) ScriptingInvocation::InvokeChecked
0x00007FFBDECD898C (Unity) SerializableManagedRef::CallMethod
0x00007FFBDD25A15C (Unity) MonoBehaviour::CallMethodInactive
0x00007FFBDEDAA8BE (Unity) MonoBehaviour::RemoveFromManager
0x00007FFBDF3CEE8B (Unity) GameObject::ActivateAwakeRecursivelyInternal
0x00007FFBDF3CED2A (Unity) GameObject::ActivateAwakeRecursivelyInternal
0x00007FFBDF3CE933 (Unity) GameObject::ActivateAwakeRecursively
0x00007FFBDF3D13D9 (Unity) GameObject::Deactivate
0x00007FFBDF04517A (Unity) DestroyObjectHighLevel_Internal
0x00007FFBDF044F68 (Unity) DestroyObjectHighLevel
0x00007FFBDF045746 (Unity) DestroyWorldObjects
0x00007FFBDF0455E6 (Unity) DestroyWorld
0x00007FFBDD5A840C (Unity) Application::CoreShutdown
0x00007FFBDD5BB5F1 (Unity) Application::Terminate
0x00007FFBDCF6C5D0 (Unity) ContainerPlatform::ContainerWndProc
0x00007FFC6162EF5C (USER32) CallWindowProcW
0x00007FFC6162E8CC (USER32) DispatchMessageW
0x00007FFC616410C3 (USER32) SendMessageTimeoutW
0x00007FFC619114D4 (ntdll) KiUserCallbackDispatcher
0x00007FFC5F4F1124 (win32u) NtUserMessageCall
0x00007FFC6162CBD5 (USER32) GetWindowTextW
0x00007FFC6162C34F (USER32) IsIconic
0x00007FFC5C86DFA2 (uxtheme) GetUserColorPreference
0x00007FFC5C867092 (uxtheme) Ordinal96
0x00007FFC5C870099 (uxtheme) IsCompositionActive
0x00007FFC5C86FB01 (uxtheme) IsCompositionActive
0x00007FFC6162C7BE (USER32) GetWindowTextW
0x00007FFBDCF6CA8A (Unity) ContainerPlatform::ContainerWndProc
0x00007FFC6162EF5C (USER32) CallWindowProcW
0x00007FFC6162E8CC (USER32) DispatchMessageW
0x00007FFC616410C3 (USER32) SendMessageTimeoutW
0x00007FFC619114D4 (ntdll) KiUserCallbackDispatcher
0x00007FFC5F4F1124 (win32u) NtUserMessageCall
0x00007FFC6162CBD5 (USER32) GetWindowTextW
0x00007FFC6162C34F (USER32) IsIconic
0x00007FFC5C86DFA2 (uxtheme) GetUserColorPreference
0x00007FFC5C866FE7 (uxtheme) Ordinal96
0x00007FFC5C870099 (uxtheme) IsCompositionActive
0x00007FFC5C86FB01 (uxtheme) IsCompositionActive
0x00007FFC6162C7BE (USER32) GetWindowTextW
0x00007FFBDCF6CA8A (Unity) ContainerPlatform::ContainerWndProc
0x00007FFC6162EF5C (USER32) CallWindowProcW
0x00007FFC6162E684 (USER32) DispatchMessageW
0x00007FFBDCFAFDF8 (Unity) MainMessageLoop
0x00007FFBDCFB8AD3 (Unity) UnityMain
0x00007FF72F7E2F2A (Unity) __scrt_common_main_seh
0x00007FFC60707374 (KERNEL32) BaseThreadInitThunk
0x00007FFC618BCC91 (ntdll) RtlUserThreadStart
========== END OF STACKTRACE ===========
Source .riv / .rev file
No response
Screenshots / video
No response
Unity Editor log file
Editor.log.zip
Rive Unity package version
0.4.3
Unity version
6000.4.10f1
Target platform
Windows
Editor OS & version
Window 10
Additional context
DirectX 12
Submission checklist
Description
The Unity Editor crashes on Windows immediately upon closing the editor.
Crucially, this crash ONLY occurs if the active scene contains at least one Rive component. If I close the editor with a scene that does not have any Rive components, it closes normally without any crash. It seems like a memory deallocation or cleanup issue related to Rive when the editor shuts down.
Previous working version
N/A
Reproduction steps / code
No response
Upload your reproduction files / stack trace
Source
.riv/.revfileNo response
Screenshots / video
No response
Unity Editor log file
Editor.log.zip
Rive Unity package version
0.4.3
Unity version
6000.4.10f1
Target platform
Windows
Editor OS & version
Window 10
Additional context
DirectX 12