Onat-H
March 15, 2022, 1:38pm
1
Unity constantly crashes on mac using virtual texturing.
I unfortunately can’t file a bug report as the project size is over 100gb…
Tested on 2022.1b11 and 2021.2f15
Edit: After disabling VT (which is not an option for our project), Unity is stable again, so I can confirm that VT causes instabilities in current Unity versions.
Here is the relevant part of an editor.log
[./Modules/VirtualTexturing/Public/VirtualTexturingManager.cpp line 1857]
Virtual texturing: Deleting GPU cache BC1 RT
=================================================================
Native Crash Reporting
Got a segv while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
Native stacktrace:
0x2efbc7724 - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_dump_native_crash_info
0x2efb89d00 - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_handle_native_crash
0x2efb1262c - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_sigsegv_signal_handler_debug
0x1a68194c4 - /usr/lib/system/libsystem_platform.dylib : _sigtramp
0x1027a9bdc - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/MacOS/Unity : _ZNK11BufferMetal6IsBusyEPb
0x1008ab7fc - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/MacOS/Unity : _ZN19RenderBufferManager7Buffers13GetTempBufferEm15GfxBufferTargetj
0x100b02914 - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/MacOS/Unity : _ZN18SharedMaterialData19UpdatePerMaterialCBEPK6Shader
0x100b02e30 - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/MacOS/Unity : _ZN8Material25AcquireSharedMaterialDataEv
0x1006da680 - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/MacOS/Unity : _ZN12BaseRenderer25FlattenSharedMaterialDataILb0EEEvRKS_R22PerThreadPageAllocatorR10RenderNode
0x1008eb8f4 - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/MacOS/Unity : _ZL22PrepareMeshRenderNodesILb0EEvR35RenderNodeQueuePrepareThreadContext
0x100750578 - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/MacOS/Unity : _Z24EndRenderQueueExtractionP29RenderNodeQueuePrepareContextRK13dynamic_arrayIP16CustomCullResultLm0EER18JobBatchDispatcher
0x100750ab4 - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/MacOS/Unity : _Z27ExtractSceneRenderNodeQueueRK11CullResults15ExtractionFlagsR15RenderNodeQueue
0x1007a319c - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/MacOS/Unity : _ZN11CullResults30GetOrCreateSharedRendererSceneEv
0x1009773d4 - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/MacOS/Unity : _Z14CullScriptableRK23ScriptableRenderContextRK27ScriptableCullingParameters
0x100203184 - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/MacOS/Unity : _Z53ScriptableRenderContext_CUSTOM_Internal_Cull_InjectedR27ScriptableCullingParametersRK30ScriptableRenderContextManagedPv
0x4fb95101c - Unknown
0x4fb950f44 - Unknown
0x4fb950e80 - Unknown
0x4fb942014 - Unknown
0x4fb9123dc - Unknown
0x4fb910140 - Unknown
0x4c96d0144 - Unknown
0x4c96d040c - Unknown
0x2efb158ec - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_jit_runtime_invoke
0x2efc9b644 - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : do_runtime_invoke
0x2efc9b564 - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_runtime_invoke
0x100d8b08c - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/MacOS/Unity : _Z23scripting_method_invoke18ScriptingMethodPtr18ScriptingObjectPtrR18ScriptingArgumentsP21ScriptingExceptionPtrb
0x100d8614c - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/MacOS/Unity : _ZN19ScriptingInvocation6InvokeEP21ScriptingExceptionPtrb
0x100972568 - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/MacOS/Unity : _ZN23ScriptableRenderContext31ExtractAndExecuteRenderPipelineERK13dynamic_arrayIP6CameraLm0EEPFvPK9SceneNodePK4AABBR9IndexListPK22SceneCullingParametersEPv18ScriptingObjectPtr
0x1029d93e0 - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/MacOS/Unity : _ZN6Camera27ExecuteCustomRenderPipelineENS_17EditorDrawingModeEPK18DrawGridParametersNS_10RenderFlagERKN4core8hash_setIiNS5_4hashIiEENSt3__18equal_toIiEEEESE_10ColorRGBAfSF_ffib
0x1029da008 - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/MacOS/Unity : _ZN6Camera18RenderEditorCameraENS_17EditorDrawingModeEPK18DrawGridParametersP11CullResultsNS_10RenderFlagEibbRKN4core8hash_setIiNS7_4hashIiEENSt3__18equal_toIiEEEESG_PNS8_IP10GameObjectNS9_ISI_EENSC_ISI_EEEE10ColorRGBAfSN_ffib
0x1029dbc10 - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/MacOS/Unity : _ZN6Camera18RenderEditorCameraENS_17EditorDrawingModeEPK18DrawGridParametersbbPN4core8hash_setIP10GameObjectNS4_4hashIS7_EENSt3__18equal_toIS7_EEEEP11CullResultsPNSA_3setIS7_NSA_4lessIS7_EE13stl_allocatorIS7_L18MemLabelIdentifier1ELi16EEEE10ColorRGBAfSP_f
0x1004b7524 - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/MacOS/Unity : _Z42Handles_CUSTOM_Internal_DrawCameraWithGridP37ScriptingBackendNativeObjectPtrOpaqueN6Camera17EditorDrawingModeER18DrawGridParametershh
0x6f5ee8a1c - Unknown
0x6f5e7c364 - Unknown
0x6f5e7bfec - Unknown
0x6f5e79764 - Unknown
0x6f5e6b8ac - Unknown
0x6f5e6b04c - Unknown
0x4c905720c - Unknown
0x4c916e570 - Unknown
0x4c916d71c - Unknown
0x4c916c110 - Unknown
0x4c91695e8 - Unknown
0x4c9166480 - Unknown
0x4c90b71d4 - Unknown
0x4b71664ac - Unknown
0x4c5f369bc - Unknown
0x4c5f350f4 - Unknown
0x4c5f3420c - Unknown
0x4c5f33ed0 - Unknown
0x4c5f33d14 - Unknown
0x4c5f33c20 - Unknown
0x4c5f33a64 - Unknown
0x4c5f33b00 - Unknown
0x2efb158ec - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_jit_runtime_invoke
0x2efc9b644 - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : do_runtime_invoke
0x2efc9b564 - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/Frameworks/MonoBleedingEdge/MonoEmbedRuntime/osx/libmonobdwgc-2.0.dylib : mono_runtime_invoke
0x100d8b08c - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/MacOS/Unity : _Z23scripting_method_invoke18ScriptingMethodPtr18ScriptingObjectPtrR18ScriptingArgumentsP21ScriptingExceptionPtrb
0x100d8614c - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/MacOS/Unity : _ZN19ScriptingInvocation6InvokeEP21ScriptingExceptionPtrb
0x100e99a0c - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/MacOS/Unity : _ZN9Scripting11UnityEngine15GUIUtilityProxy12ProcessEventEiPvPbP21ScriptingExceptionPtr
0x1017a457c - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/MacOS/Unity : _ZN7GUIView19ProcessRetainedModeER10InputEventR8GUIStatei
0x102a0c6c8 - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/MacOS/Unity : _ZN7GUIView12OnInputEventER10InputEvent
0x1017a3a20 - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/MacOS/Unity : _ZN7GUIView17ProcessInputEventER10InputEvent
0x102a1bbf4 - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/MacOS/Unity : -[GUIRenderView renderRect:]
0x102a1d17c - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/MacOS/Unity : -[GUIMetalView drawRect:]
0x102a0e1c8 - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/MacOS/Unity : _ZN7GUIView7DoPaintEv
0x102a0e478 - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/MacOS/Unity : _ZN7GUIView10RepaintAllEb
0x101c59af0 - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/MacOS/Unity : _ZN20PlayerLoopController11UpdateSceneEbb
0x101c52584 - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/MacOS/Unity : _ZN20PlayerLoopController19UpdateSceneIfNeededEv
0x101c4fc90 - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/MacOS/Unity : _ZN11Application9TickTimerEv
0x102a09a9c - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/MacOS/Unity : -[EditorApplication TickTimer]
0x1a77ebc5c - /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation : __NSFireTimer
0x1a68e92c0 - /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation : CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION
0x1a68e8ea8 - /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation : __CFRunLoopDoTimer
0x1a68e8930 - /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation : __CFRunLoopDoTimers
0x1a68cd3c0 - /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation : __CFRunLoopRun
0x1a68cc490 - /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation : CFRunLoopRunSpecific
0x1af4ecdd8 - /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : RunCurrentEventLoopInMode
0x1af4eca64 - /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : ReceiveNextEventCommon
0x1af4ec908 - /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : _BlockUntilNextEventMatchingListInModeWithFilter
0x1a942bbcc - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : _DPSNextEvent
0x1a942a4c4 - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]
0x1a941c690 - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : -[NSApplication run]
0x1a93edda8 - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : NSApplicationMain
0x102a06edc - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/MacOS/Unity : _Z10EditorMainiPPKc
0x102a07214 - /Applications/Unity/Hub/Editor/2022.1.0b11/Unity.app/Contents/MacOS/Unity : main
0x105e21088 - Unknown
=================================================================
Telemetry Dumper:
Pkilling 0x6319943680x from 0x4394141056x
Pkilling 0x6320517120x from 0x4394141056x
Pkilling 0x17007407104x from 0x4394141056x
Pkilling 0x17011699712x from 0x4394141056x
Pkilling 0x6321090560x from 0x4394141056x
Pkilling 0x17015992320x from 0x4394141056x
Pkilling 0x6321664000x from 0x4394141056x
Pkilling 0x20529049600x from 0x4394141056x
Pkilling 0x20533342208x from 0x4394141056x
Pkilling 0x6322237440x from 0x4394141056x
Pkilling 0x31200604160x from 0x4394141056x
Pkilling 0x6322810880x from 0x4394141056x
Pkilling 0x15120543744x from 0x4394141056x
Pkilling 0x6323384320x from 0x4394141056x
Pkilling 0x15124836352x from 0x4394141056x
Pkilling 0x15129128960x from 0x4394141056x
Pkilling 0x15133421568x from 0x4394141056x
Pkilling 0x16775393280x from 0x4394141056x
Pkilling 0x23745556480x from 0x4394141056x
Pkilling 0x17009553408x from 0x4394141056x
Pkilling 0x20531195904x from 0x4394141056x
Pkilling 0x20499689472x from 0x4394141056x
Pkilling 0x20535488512x from 0x4394141056x
Pkilling 0x12624965632x from 0x4394141056x
Pkilling 0x15118397440x from 0x4394141056x
Pkilling 0x15122690048x from 0x4394141056x
Pkilling 0x12609548288x from 0x4394141056x
Pkilling 0x15126982656x from 0x4394141056x
Pkilling 0x15030841344x from 0x4394141056x
Pkilling 0x22034984960x from 0x4394141056x
Pkilling 0x15131275264x from 0x4394141056x
Pkilling 0x15135567872x from 0x4394141056x
Pkilling 0x13897592832x from 0x4394141056x
Pkilling 0x18658390016x from 0x4394141056x
Pkilling 0x6319370240x from 0x4394141056x
Entering thread summarizer pause from 0x4394141056x
Finished thread summarizer pause from 0x4394141056x.
Failed to create breadcrumb file (null)/crash_hash_0x29759fbb12
debugger-agent: Unable to listen on 92
Waiting for dumping threads to resume
=================================================================
External Debugger Dump:
=================================================================
Basic Fault Address Reporting
Memory around native instruction pointer (0x1027a9be8):0x1027a9bd8 2e 95 93 97 08 60 00 91 02 00 00 14 68 82 01 91 …`…h…
0x1027a9be8 09 29 40 b9 aa 34 01 90 4a 81 36 91 4b 01 40 b9 .)@…4…J.6.K.@.
0x1027a9bf8 3f 01 0b 6b e9 a7 9f 1a 89 02 00 39 08 29 40 b9 ?..k…9.)@.
0x1027a9c08 49 01 40 b9 1f 01 09 6b 8a 00 00 54 68 82 40 f9 I.@…k…Th.@.
=================================================================
Managed Stacktrace:
at <0xffffffff>
at UnityEngine.Rendering.ScriptableRenderContext:Internal_Cull_Injected <0x00007>
at UnityEngine.Rendering.ScriptableRenderContext:Internal_Cull <0x00023>
at UnityEngine.Rendering.ScriptableRenderContext:Cull <0x0007f>
at UnityEngine.Rendering.HighDefinition.HDRenderPipeline:TryCull <0x00413>
at UnityEngine.Rendering.HighDefinition.HDRenderPipeline:Render <0x01a73>
at UnityEngine.Rendering.RenderPipeline:InternalRender <0x00057>
at UnityEngine.Rendering.RenderPipelineManager:smile:oRenderLoop_Internal <0x00143>
at :runtime_invoke_void_object_intptr_object_AtomicSafetyHandle <0x00093>
at <0xffffffff>
at UnityEditor.Handles:Internal_DrawCameraWithGrid <0x00007>
at UnityEditor.Handles:smile:rawCameraImpl <0x0031b>
at UnityEditor.Handles:smile:rawCameraStep1 <0x0008b>
at UnityEditor.SceneView:smile:oDrawCamera <0x005b3>
at UnityEditor.SceneView:smile:oOnGUI <0x00803>
at UnityEditor.SceneView:OnSceneGUI <0x00013>
at UnityEngine.UIElements.IMGUIContainer:smile:oOnGUI <0x005bb>
at UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent <0x002df>
at UnityEngine.UIElements.IMGUIContainer:smile:oIMGUIRepaint <0x002fb>
at UnityEngine.UIElements.UIR.RenderChainCommand:ExecuteNonDrawMesh <0x00327>
at UnityEngine.UIElements.UIR.UIRenderDevice:EvaluateChain <0x00fff>
at UnityEngine.UIElements.UIR.RenderChain:Render <0x003ef>
at UnityEngine.UIElements.UIRRepaintUpdater:Update <0x001c3>
at UnityEngine.UIElements.VisualTreeUpdater:UpdateVisualTreePhase <0x000c3>
at UnityEngine.UIElements.Panel:UpdateForRepaint <0x00073>
at UnityEngine.UIElements.Panel:Repaint <0x0015b>
at UnityEngine.UIElements.UIElementsUtility:smile:oDispatch <0x000f3>
at UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent <0x000c7>
at UnityEngine.UIElements.UIEventRegistration:processEvent <0x00093>
at <>c:<.cctor>b__1_2 <0x0001f>
at UnityEngine.GUIUtility:processEvent <0x00063>
at :runtime_invoke_void_int_intptr_intptr& <0x0007f>
Obtained 0 stack frames.
Launching bug reporter
Attribute Qt::AA_EnableHighDpiScaling must be set before QCoreApplication is created.
QObject: Cannot create children for a parent that is in a different thread.
(Parent is QObject(0x600003c5e700), parent’s thread is QThread(0x600002b04120), current thread is Thread(0x600007a74e10)
1 Like
Hi @Onat-H ,
Are you on M1 or Intel? There is a known issue with VT on M1 machines which we’re currently investigating.
Onat-H
March 16, 2022, 11:48am
3
I’m on m1, but I tested both editor versions, and I have the same problem using the intel version on M1.
Is there a current workaround (that doesn’t involve disabling VT) until this is fixed? And is there an estimate when the fix will land?
We don’t have a fix yet so I can’t share an estimate. Unfortunately, I’m not aware of a workaround.
Onat-H
March 17, 2022, 1:10pm
5
Well, then I hope you find one soon Do you have an issuetracker link so I can track this? Thank you!
The case is being tracked internally only at the moment but I’ll update you when I know more or when it becomes available on the Issue Tracker.
1 Like
Onat-H
March 18, 2022, 10:45am
7
Thhanks, but it seems this was fixed in 2022.1b12. Everything is mostly stable now!
I guess that VT just amplified this Bug (as it wasn’t rare at all but rather all the time…):
macOS: Fixed rare crash in GameView pointing to BufferMetal::IsBusy. (1405248 )
Just for comparison: I couldn’t even launch Unity anymore depending on which scene I was in, and there was a 50-80% chance that opening another scene crashed the editor. Now I had no crash since yesterday when I updated.
1 Like
Well, that’s great to hear. Glad the issue seems to be fixed for you.