Not sure whether realize that URP sample project at samples-1.0-exp branch is not working properly with
1.0.0-exp.8 and Unity 2022.2.0b8? When enter play mode and switch to some scenes it will just crash editor. And also when try to use build config to build android player runtime I will just get error and the build just stopped.
Would it be possible for you to provide the crash call stack from the Editor log? There is at least one known issue in the scenes that contain a particle system.
I will try to get the log. Btw how about error log when try to build?
ArgumentException: Invalid GUID 00000000000000000000000000000000
Unity.Scenes.Editor.GameObjectSceneMetaDataImporter.GetGameObjectSceneMetaData (Unity.Entities.Hash128 sceneGUID, System.Boolean async, Unity.Entities.BlobAssetReference1[Unity.Scenes.Editor.GameObjectSceneMetaDataImporter+GameObjectSceneMetaData]& sceneMetaDataRef) (at Library/PackageCache/com.unity.entities@1.0.0-exp.8/Unity.Scenes.Editor/GameObjectSceneMetaDataImporter.cs:73) Unity.Scenes.Editor.GameObjectSceneMetaDataImporter.GetSubScenes (UnityEditor.GUID guid) (at Library/PackageCache/com.unity.entities@1.0.0-exp.8/Unity.Scenes.Editor/GameObjectSceneMetaDataImporter.cs:79) Unity.Scenes.Editor.EditorEntityScenes.GetSubScenes (UnityEditor.GUID guid) (at Library/PackageCache/com.unity.entities@1.0.0-exp.8/Unity.Scenes.Editor/EditorEntityScenes.cs:1168) Unity.Scenes.Editor.SubSceneFilesProvider+<>c.<OnBeforeRegisterAdditionalFilesToDeploy>b__3_0 (System.String scenePath) (at Library/PackageCache/com.unity.entities@1.0.0-exp.8/Unity.Scenes.Editor/SubSceneFilesProvider.cs:33) System.Linq.Enumerable+SelectManySingleSelectorIterator
2[TSource,TResult].MoveNext () (at :0)
System.Collections.Generic.HashSet1[T].UnionWith (System.Collections.Generic.IEnumerable
1[T] other) (at :0)
System.Collections.Generic.HashSet1[T]..ctor (System.Collections.Generic.IEnumerable
1[T] collection, System.Collections.Generic.IEqualityComparer1[T] comparer) (at <b017b385d9884952b62c7b35f9fed747>:0) System.Collections.Generic.HashSet
1[T]…ctor (System.Collections.Generic.IEnumerable`1[T] collection) (at :0)
Unity.Scenes.Editor.SubSceneFilesProvider.OnBeforeRegisterAdditionalFilesToDeploy () (at Library/PackageCache/com.unity.entities@1.0.0-exp.8/Unity.Scenes.Editor/SubSceneFilesProvider.cs:33)
Unity.Build.Classic.Private.CopyAdditionallyProvidedFilesStepBeforeBuild.Run (Unity.Build.BuildContext context) (at Library/PackageCache/com.unity.platforms@1.0.0-exp.6/Editor/Unity.Build.Classic.Private/NonIncremental/Steps/CopyAdditionallyProvidedFilesStepBeforeBuild.cs:26)
Unity.Build.BuildStepCollection.Run (Unity.Build.BuildContext context) (at Library/PackageCache/com.unity.platforms@1.0.0-exp.6/Editor/Unity.Build/BuildStepCollection.cs:77)
UnityEngine.Debug:LogException(Exception, Object)
Unity.Build.BuildPipelineResult:LogResult() (at Library/PackageCache/com.unity.platforms@1.0.0-exp.6/Editor/Unity.Build/BuildPipelineResult.cs:46)
Unity.Build.Editor.BuildAction:Execute(BuildConfiguration) (at Library/PackageCache/com.unity.platforms@1.0.0-exp.6/Editor/Unity.Build.Editor/BuildConfigurationInspector.cs:54)
Unity.Build.Editor.<>c__DisplayClass45_1:b__12() (at Library/PackageCache/com.unity.platforms@1.0.0-exp.6/Editor/Unity.Build.Editor/BuildConfigurationInspector.cs:238)
UnityEditor.EditorApplication:Internal_CallDelayFunctions()
Obtained 68 stack frames
0x00007ff6c9fac3c0 (Unity) BatchRendererGroup::OnBeforeCulling
0x00007ff6ca040f8b (Unity) CullScene
0x00007ff6ca219ea1 (Unity) CullScriptable
0x00007ff6c964849b (Unity) ScriptableRenderContext_CUSTOM_Internal_Cull_Injected
0x00000166930e8cf8 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.Rendering.ScriptableRenderContext:Internal_Cull_Injected (UnityEngine.Rendering.ScriptableCullingParameters&,UnityEngine.Rendering.ScriptableRenderContext&,intptr)
0x00000166930e8c1b (Mono JIT Code) UnityEngine.Rendering.ScriptableRenderContext:Internal_Cull (UnityEngine.Rendering.ScriptableCullingParameters&,UnityEngine.Rendering.ScriptableRenderContext,intptr)
0x00000166930e8b6b (Mono JIT Code) UnityEngine.Rendering.ScriptableRenderContext:Cull (UnityEngine.Rendering.ScriptableCullingParameters&)
0x00000166930e5703 (Mono JIT Code) [UniversalRenderPipeline.cs:544] UnityEngine.Rendering.Universal.UniversalRenderPipeline:RenderSingleCamera (UnityEngine.Rendering.ScriptableRenderContext,UnityEngine.Rendering.Universal.CameraData&,bool)
0x000001668f7eda63 (Mono JIT Code) [UniversalRenderPipeline.cs:730] UnityEngine.Rendering.Universal.UniversalRenderPipeline:RenderCameraStack (UnityEngine.Rendering.ScriptableRenderContext,UnityEngine.Camera)
0x00000166930d6003 (Mono JIT Code) [UniversalRenderPipeline.cs:308] UnityEngine.Rendering.Universal.UniversalRenderPipeline:Render (UnityEngine.Rendering.ScriptableRenderContext,System.Collections.Generic.List`1<UnityEngine.Camera>)
0x00000166930d5739 (Mono JIT Code) UnityEngine.Rendering.RenderPipeline:InternalRender (UnityEngine.Rendering.ScriptableRenderContext,System.Collections.Generic.List`1<UnityEngine.Camera>)
0x00000166930957d3 (Mono JIT Code) UnityEngine.Rendering.RenderPipelineManager:smile:oRenderLoop_Internal (UnityEngine.Rendering.RenderPipelineAsset,intptr,UnityEngine.Object,Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle)
0x0000016693095aa8 (Mono JIT Code) (wrapper runtime-invoke) :runtime_invoke_void_object_intptr_object_AtomicSafetyHandle (object,intptr,intptr,intptr)
0x00007ffdb2ff0304 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke
0x00007ffdb2f2eb44 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke
0x00007ffdb2f2ecdc (mono-2.0-bdwgc) [object.c:3113] mono_runtime_invoke
0x00007ff6ca60d414 (Unity) scripting_method_invoke
0x00007ff6ca5eddb4 (Unity) ScriptingInvocation::Invoke
0x00007ff6ca20a7ef (Unity) ScriptableRenderContext::ExtractAndExecuteRenderPipeline
0x00007ff6ca029bd8 (Unity) RenderManager::RenderCamerasWithScriptableRenderLoop
0x00007ff6ca029182 (Unity) RenderManager::RenderCameras
0x00007ff6cb139a30 (Unity) RepaintController::RenderPlayModeViewCameras
0x00007ff6cb5d469e (Unity) EditorGUIUtility::RenderPlayModeViewCamerasInternal
0x00007ff6c9b3a373 (Unity) EditorGUIUtility_CUSTOM_RenderPlayModeViewCamerasInternal_Injected
0x000001669ed0e9d8 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.EditorGUIUtility:RenderPlayModeViewCamerasInternal_Injected (UnityEngine.RenderTexture,int,UnityEngine.Vector2&,bool,bool)
0x000001669ed0e8e3 (Mono JIT Code) UnityEditor.EditorGUIUtility:RenderPlayModeViewCamerasInternal (UnityEngine.RenderTexture,int,UnityEngine.Vector2,bool,bool)
0x000001669ed0df3b (Mono JIT Code) UnityEditor.PlayModeView:RenderView (UnityEngine.Vector2,bool)
0x00000166932cb9a3 (Mono JIT Code) UnityEditor.GameView:OnGUI ()
0x000001668f86b24a (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect)
0x000001668f86b063 (Mono JIT Code) UnityEditor.DockArea:smile:rawView (UnityEngine.Rect)
0x000001668f73ba9b (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()
0x000001668f65d9f7 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:smile:oOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
0x000001668f726bbb (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
0x000001668f72489b (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:smile:oIMGUIRepaint ()
0x000001668f722d04 (Mono JIT Code) UnityEngine.UIElements.UIR.RenderChainCommand:ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams,single,System.Exception&)
0x000001668f7212c3 (Mono JIT Code) UnityEngine.UIElements.UIR.UIRenderDevice:EvaluateChain (UnityEngine.UIElements.UIR.RenderChainCommand,UnityEngine.Material,UnityEngine.Material,UnityEngine.Texture,UnityEngine.Texture,single,Unity.Collections.NativeSlice1<UnityEngine.UIElements.UIR.Transform3x4>,Unity.Collections.NativeSlice
1<UnityEngine.Vector4>,UnityEngine.MaterialPropertyBlock,bool,System.Exception&)
0x000001668f71d563 (Mono JIT Code) UnityEngine.UIElements.UIR.RenderChain:Render ()
0x000001668f682e03 (Mono JIT Code) UnityEngine.UIElements.UIRRepaintUpdater:Update ()
0x000001669193fe3e (Mono JIT Code) UnityEngine.UIElements.VisualTreeUpdater:UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase)
0x000001669194ff5b (Mono JIT Code) UnityEngine.UIElements.Panel:UpdateForRepaint ()
0x000001669195fa6b (Mono JIT Code) UnityEngine.UIElements.Panel:Repaint (UnityEngine.Event)
0x000001669195ebdc (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:smile:oDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
0x000001669195e883 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
0x000001669195e63f (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:ProcessEvent (int,intptr)
0x000001669195e55b (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
0x000001669195e3bd (Mono JIT Code) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
0x000001669195e476 (Mono JIT Code) (wrapper runtime-invoke) :runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
0x00007ffdb2ff0304 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke
0x00007ffdb2f2eb44 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke
0x00007ffdb2f2ecdc (mono-2.0-bdwgc) [object.c:3113] mono_runtime_invoke
0x00007ff6ca60d414 (Unity) scripting_method_invoke
0x00007ff6ca5eddb4 (Unity) ScriptingInvocation::Invoke
0x00007ff6ca5e8a15 (Unity) ScriptingInvocation::Invoke
0x00007ff6ca730d3a (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
0x00007ff6cb101f68 (Unity) GUIView::ProcessRetainedMode
0x00007ff6cb6d7796 (Unity) GUIView::OnInputEvent
0x00007ff6cb101eb3 (Unity) GUIView::ProcessInputEventFromAPI
0x00007ff6cb101d88 (Unity) GUIView::ProcessInputEvent
0x00007ff6cb6d049c (Unity) GUIView:oPaint
0x00007ff6cb6d96ac (Unity) GUIView::RepaintAll
0x00007ff6cb2209ae (Unity) PlayerLoopController::InternalUpdateScene
0x00007ff6cb22d04d (Unity) PlayerLoopController::UpdateSceneIfNeededFromMainLoop
0x00007ff6cb22b441 (Unity) Application::TickTimer
0x00007ff6cb6ab30a (Unity) MainMessageLoop
0x00007ff6cb6b0280 (Unity) WinMain
0x00007ff6cca6855e (Unity) __scrt_common_main_seh
0x00007ffe34407034 (KERNEL32) BaseThreadInitThunk
0x00007ffe345426a1 (ntdll) RtlUserThreadStart
This crash is a known issue. It has already been fixed, but sadly it did not make it before the cutoff. Should be fixed in 2022.2.0b10.
How about cannot build player runtime error when pressing build at android build config? Can u provide the code snippet at here so I can fix locally? I believe it’s caused by some code logic bug at package. Or it’s just sample missing some setup reference?
in Unity 2022.2.0b10, it also crush by same problem
Obtained 69 stack frames
0x00007ff7104b309d (Unity) BatchRendererGroup::UpdateRegisteredResources
0x00007ff7104aee05 (Unity) BatchRendererGroup::OnBeforeCulling
0x00007ff7105435db (Unity) CullScene
0x00007ff71071c4c1 (Unity) CullScriptable
0x00007ff70fb5894b (Unity) ScriptableRenderContext_CUSTOM_Internal_Cull_Injected
0x000001d287d19eb7 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.Rendering.ScriptableRenderContext:Internal_Cull_Injected (UnityEngine.Rendering.ScriptableCullingParameters&,UnityEngine.Rendering.ScriptableRenderContext&,intptr)
0x000001d287d19d43 (Mono JIT Code) UnityEngine.Rendering.ScriptableRenderContext:Internal_Cull (UnityEngine.Rendering.ScriptableCullingParameters&,UnityEngine.Rendering.ScriptableRenderContext,intptr)
0x000001d287d19b03 (Mono JIT Code) UnityEngine.Rendering.ScriptableRenderContext:Cull (UnityEngine.Rendering.ScriptableCullingParameters&)
0x000001d287d1275b (Mono JIT Code) [UniversalRenderPipeline.cs:547] UnityEngine.Rendering.Universal.UniversalRenderPipeline:RenderSingleCamera (UnityEngine.Rendering.ScriptableRenderContext,UnityEngine.Rendering.Universal.CameraData&,bool)
0x000001d287cf269b (Mono JIT Code) [UniversalRenderPipeline.cs:733] UnityEngine.Rendering.Universal.UniversalRenderPipeline:RenderCameraStack (UnityEngine.Rendering.ScriptableRenderContext,UnityEngine.Camera)
0x000001d1d34fae4b (Mono JIT Code) [UniversalRenderPipeline.cs:312] UnityEngine.Rendering.Universal.UniversalRenderPipeline:Render (UnityEngine.Rendering.ScriptableRenderContext,System.Collections.Generic.List`1<UnityEngine.Camera>)
0x000001d1d34f9759 (Mono JIT Code) UnityEngine.Rendering.RenderPipeline:InternalRender (UnityEngine.Rendering.ScriptableRenderContext,System.Collections.Generic.List`1<UnityEngine.Camera>)
0x000001d1d346e41b (Mono JIT Code) UnityEngine.Rendering.RenderPipelineManager:smile:oRenderLoop_Internal (UnityEngine.Rendering.RenderPipelineAsset,intptr,UnityEngine.Object,Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle)
0x000001d1d346e995 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_object_intptr_object_AtomicSafetyHandle (object,intptr,intptr,intptr)
0x00007ffd18ee0304 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke
0x00007ffd18e1eb44 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke
0x00007ffd18e1ecdc (mono-2.0-bdwgc) [object.c:3113] mono_runtime_invoke
0x00007ff710b10ba4 (Unity) scripting_method_invoke
0x00007ff710af1544 (Unity) ScriptingInvocation::Invoke
0x00007ff71070ce3f (Unity) ScriptableRenderContext::ExtractAndExecuteRenderPipeline
0x00007ff71052c228 (Unity) RenderManager::RenderCamerasWithScriptableRenderLoop
0x00007ff71052b7d2 (Unity) RenderManager::RenderCameras
0x00007ff71163d270 (Unity) RepaintController::RenderPlayModeViewCameras
0x00007ff711ad978e (Unity) EditorGUIUtility::RenderPlayModeViewCamerasInternal
0x00007ff71005bee3 (Unity) EditorGUIUtility_CUSTOM_RenderPlayModeViewCamerasInternal_Injected
0x000001d1d346d3e7 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.EditorGUIUtility:RenderPlayModeViewCamerasInternal_Injected (UnityEngine.RenderTexture,int,UnityEngine.Vector2&,bool,bool)
0x000001d1d346d263 (Mono JIT Code) UnityEditor.EditorGUIUtility:RenderPlayModeViewCamerasInternal (UnityEngine.RenderTexture,int,UnityEngine.Vector2,bool,bool)
0x000001d1d3469afb (Mono JIT Code) UnityEditor.PlayModeView:RenderView (UnityEngine.Vector2,bool)
0x000001d1b0d539bb (Mono JIT Code) UnityEditor.GameView:OnGUI ()
0x000001d1b0d4d699 (Mono JIT Code) UnityEditor.HostView:InvokeOnGUI (UnityEngine.Rect)
0x000001d1b0d4d193 (Mono JIT Code) UnityEditor.DockArea:smile:rawView (UnityEngine.Rect)
0x000001d1b0d19e13 (Mono JIT Code) UnityEditor.DockArea:OldOnGUI ()
0x000001d1b0ce1de9 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:smile:oOnGUI (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,bool,UnityEngine.Rect,System.Action,bool)
0x000001d1b0cdf073 (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:HandleIMGUIEvent (UnityEngine.Event,UnityEngine.Matrix4x4,UnityEngine.Rect,System.Action,bool)
0x000001d1d33b8ffb (Mono JIT Code) UnityEngine.UIElements.IMGUIContainer:smile:oIMGUIRepaint ()
0x000001d1d33b5852 (Mono JIT Code) UnityEngine.UIElements.UIR.RenderChainCommand:ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams,single,System.Exception&)
0x000001d1d33b2843 (Mono JIT Code) UnityEngine.UIElements.UIR.UIRenderDevice:EvaluateChain (UnityEngine.UIElements.UIR.RenderChainCommand,UnityEngine.Material,UnityEngine.Material,UnityEngine.Texture,UnityEngine.Texture,single,Unity.Collections.NativeSlice`1<UnityEngine.UIElements.UIR.Transform3x4>,Unity.Collections.NativeSlice`1<UnityEngine.Vector4>,UnityEngine.MaterialPropertyBlock,bool,System.Exception&)
0x000001d28ca89fdb (Mono JIT Code) UnityEngine.UIElements.UIR.RenderChain:Render ()
0x000001d1d2306b33 (Mono JIT Code) UnityEngine.UIElements.UIRRepaintUpdater:Update ()
0x000001d1b0a519ca (Mono JIT Code) UnityEngine.UIElements.VisualTreeUpdater:UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase)
0x000001d1d227e823 (Mono JIT Code) UnityEngine.UIElements.Panel:UpdateForRepaint ()
0x000001d1d227ac73 (Mono JIT Code) UnityEngine.UIElements.Panel:Repaint (UnityEngine.Event)
0x000001d1b0a50479 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:smile:oDispatch (UnityEngine.UIElements.BaseVisualElementPanel)
0x000001d1b0a4f613 (Mono JIT Code) UnityEngine.UIElements.UIElementsUtility:UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (int,intptr,bool&)
0x000001d1b0a4ef84 (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration:ProcessEvent (int,intptr)
0x000001d1b0a4ec7b (Mono JIT Code) UnityEngine.UIElements.UIEventRegistration/<>c:<.cctor>b__1_2 (int,intptr)
0x000001d1b0a4e725 (Mono JIT Code) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
0x000001d1b0a4e966 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_int_intptr_intptr& (object,intptr,intptr,intptr)
0x00007ffd18ee0304 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke
0x00007ffd18e1eb44 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke
0x00007ffd18e1ecdc (mono-2.0-bdwgc) [object.c:3113] mono_runtime_invoke
0x00007ff710b10ba4 (Unity) scripting_method_invoke
0x00007ff710af1544 (Unity) ScriptingInvocation::Invoke
0x00007ff710aec1a5 (Unity) ScriptingInvocation::Invoke<void>
0x00007ff710c344ca (Unity) Scripting::UnityEngine::GUIUtilityProxy::ProcessEvent
0x00007ff7116057a8 (Unity) GUIView::ProcessRetainedMode
0x00007ff711bdc886 (Unity) GUIView::OnInputEvent
0x00007ff7116056f3 (Unity) GUIView::ProcessInputEventFromAPI
0x00007ff7116055c8 (Unity) GUIView::ProcessInputEvent
0x00007ff711bd558c (Unity) GUIView::smile:oPaint
0x00007ff711bde79c (Unity) GUIView::RepaintAll
0x00007ff7117241ee (Unity) PlayerLoopController::InternalUpdateScene
0x00007ff71173088d (Unity) PlayerLoopController::UpdateSceneIfNeededFromMainLoop
0x00007ff71172ec81 (Unity) Application::TickTimer
0x00007ff711bb03fa (Unity) MainMessageLoop
0x00007ff711bb5370 (Unity) WinMain
0x00007ff712f71b8e (Unity) __scrt_common_main_seh
0x00007ffdab9d7034 (KERNEL32) BaseThreadInitThunk
0x00007ffdabbe26a1 (ntdll) RtlUserThreadStart
Mhmm. We discussed a bit this issue and it seems there are indeed still some cases in which this crash can happen. 2022.2.0b10 should fix most of them, but we have a pull request on track supposed to fix more of those crashes. It hasn’t landed yet, so I can’t tell exactly in which version it’s going to be included.
We change entities package source code to build specified subscenes, and we can load subscene through assetbundle in Unity Editor Mode。
The crash happened when we change scene in editor runtime,and if we make subscene load by synchronization method (AsyncLoadSceneOperation.UpdateBlocking), the crash would not happen.