Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved Some VFX crash on opening project

Discussion in '2022.2 Beta' started by RunninglVlan, Jul 20, 2022.

  1. RunninglVlan

    RunninglVlan

    Joined:
    Nov 6, 2018
    Posts:
    182
    Wanted to upgrade from 2022.1.10f1 to 2022.2.0b1, but can't even start the project
    Previously tried upgrading to alpha versions, had some visual lags (I guess some shader graphs needed to be updated), but could run the project
    =================================================================
    Native Crash Reporting
    =================================================================
    Got a UNKNOWN while executing native code. This usually indicates
    a fatal error in the mono runtime or one of the native libraries
    used by your application.
    =================================================================

    =================================================================
    Managed Stacktrace:
    =================================================================
    at <unknown> <0xffffffff>
    at UnityEditor.VFX.VFXMemorySerializer:StoreObjectsToByteArray <0x000eb>
    at UnityEditor.VFX.VFXGraphPreprocessor:OnCompileResource <0x00442>
    at UnityEditor.VFX.VisualEffectResource:CompileResource <0x000e2>
    at System.Object:runtime_invoke_void__this__ <0x00187>
    at <unknown> <0xffffffff>
    at UnityEditor.AssetDatabase:ImportAsset <0x000eb>
    at UnityEditor.VFX.VFXGraphPreprocessor:OnPostprocessAllAssets <0x00db2>
    at <Module>:runtime_invoke_void_object_object_object_object <0x00208>
    at <unknown> <0xffffffff>
    at System.Reflection.RuntimeMethodInfo:InternalInvoke <0x00151>
    at System.Reflection.RuntimeMethodInfo:Invoke <0x00522>
    at System.Reflection.MethodBase:Invoke <0x0008e>
    at UnityEditor.AssetPostprocessingInternal:InvokeMethod <0x002c2>
    at UnityEditor.AssetPostprocessingInternal:postprocessAllAssets <0x00eca>
    at <Module>:runtime_invoke_void_object_object_object_object_object_byte <0x00212>
    =================================================================
    Received signal SIGSEGV
    Obtained 52 stack frames
    0x00007ff6f3e04738 (Unity) VFXMemorySerializerBindings::StoreObjectsToByteArray
    0x00007ff6f1fd127d (Unity) VFXMemorySerializer_CUSTOM_StoreObjectsToByteArray
    0x0000023afed0e32c (Mono JIT Code) (wrapper managed-to-native) UnityEditor.VFX.VFXMemorySerializer:StoreObjectsToByteArray (UnityEngine.ScriptableObject[],UnityEngine.CompressionLevel)
    0x0000023afdc7a0a3 (Mono JIT Code) [VFXGraph.cs:120] UnityEditor.VFX.VFXGraphPreprocessor:OnCompileResource (UnityEditor.VFX.VisualEffectResource)
    0x0000023afdc79be3 (Mono JIT Code) UnityEditor.VFX.VisualEffectResource:CompileResource ()
    0x0000023a1d92a4f8 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
    0x00007ffe8a9e02f4 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke
    0x00007ffe8a91eb34 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke
    0x00007ffe8a91eccc (mono-2.0-bdwgc) [object.c:3113] mono_runtime_invoke
    0x00007ff6f275cbf4 (Unity) scripting_method_invoke
    0x00007ff6f273d594 (Unity) ScriptingInvocation::Invoke
    0x00007ff6f3dff925 (Unity) VisualEffectImporter::GenerateAssetData
    0x00007ff6f3ae77b6 (Unity) ImportToObjects
    0x00007ff6f3ae6803 (Unity) ImportAsset
    0x00007ff6f3b0a72a (Unity) AssetImportWorker::Import
    0x00007ff6f3b3a45a (Unity) AssetImportManager::ImportInProcess
    0x00007ff6f3b3740d (Unity) AssetImportManager::Import
    0x00007ff6f3b3b08f (Unity) ImportOutOfDateAssets
    0x00007ff6f3b46088 (Unity) RefreshInternalV2
    0x00007ff6f3b4db8f (Unity) StopAssetImportingV2Internal
    0x00007ff6f3b39f0c (Unity) ImportAtPathV2
    0x00007ff6f3abc192 (Unity) AssetDatabase::ImportAtPath
    0x00007ff6f1cb7521 (Unity) AssetDatabase_CUSTOM_ImportAsset
    0x0000023afed0dffc (Mono JIT Code) (wrapper managed-to-native) UnityEditor.AssetDatabase:ImportAsset (string,UnityEditor.ImportAssetOptions)
    0x0000023afdcc8073 (Mono JIT Code) [VFXGraph.cs:75] UnityEditor.VFX.VFXGraphPreprocessor:OnPostprocessAllAssets (string[],string[],string[],string[])
    0x0000023afdcc86d9 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_object_object_object_object (object,intptr,intptr,intptr)
    0x00007ffe8a9e02f4 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke
    0x00007ffe8a91eb34 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke
    0x00007ffe8a925bcf (mono-2.0-bdwgc) [object.c:5777] mono_runtime_try_invoke_array
    0x00007ffe8a85ce90 (mono-2.0-bdwgc) [icall.c:4025] ves_icall_InternalInvoke
    0x00007ffe8a881681 (mono-2.0-bdwgc) [icall-def.h:687] ves_icall_InternalInvoke_raw
    0x0000023a1f1caea2 (Mono JIT Code) (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo:InternalInvoke (System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
    0x0000023a1f1c7a53 (Mono JIT Code) System.Reflection.RuntimeMethodInfo:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
    0x0000023a1f1c74bf (Mono JIT Code) System.Reflection.MethodBase:Invoke (object,object[])
    0x0000023afdc8c2b3 (Mono JIT Code) UnityEditor.AssetPostprocessingInternal:InvokeMethod (System.Reflection.MethodInfo,object[])
    0x0000023afdc7ef8b (Mono JIT Code) UnityEditor.AssetPostprocessingInternal:postprocessAllAssets (string[],string[],string[],string[],string[],bool)
    0x0000023afdc7fa53 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_object_object_object_object_object_byte (object,intptr,intptr,intptr)
    0x00007ffe8a9e02f4 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke
    0x00007ffe8a91eb34 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke
    0x00007ffe8a91eccc (mono-2.0-bdwgc) [object.c:3113] mono_runtime_invoke
    0x00007ff6f275cbf4 (Unity) scripting_method_invoke
    0x00007ff6f273d594 (Unity) ScriptingInvocation::Invoke
    0x00007ff6f315ddd4 (Unity) MonoPostprocessAllAssets
    0x00007ff6f3b252ab (Unity) CallPostProcessAllAssetsCallbacks
    0x00007ff6f3b42c3b (Unity) ProcessPostProcessAllAssetNotificationsAndHotReload
    0x00007ff6f3b4dca6 (Unity) StopAssetImportingV2Internal
    0x00007ff6f3b3b5fd (Unity) InitialRefreshV2
    0x00007ff6f33539e2 (Unity) Application::InitializeProject
    0x00007ff6f37dd755 (Unity) WinMain
    0x00007ff6f4b7fece (Unity) __scrt_common_main_seh
    0x00007fff213f7034 (KERNEL32) BaseThreadInitThunk
    0x00007fff222c2651 (ntdll) RtlUserThreadStart
     
  2. RunninglVlan

    RunninglVlan

    Joined:
    Nov 6, 2018
    Posts:
    182
    Still happening with b3
    =================================================================
    Native Crash Reporting
    =================================================================
    Got a UNKNOWN while executing native code. This usually indicates
    a fatal error in the mono runtime or one of the native libraries
    used by your application.
    =================================================================

    =================================================================
    Managed Stacktrace:
    =================================================================
    at <unknown> <0xffffffff>
    at UnityEditor.VFX.VFXMemorySerializer:StoreObjectsToByteArray <0x000eb>
    at UnityEditor.VFX.VFXGraphPreprocessor:OnCompileResource <0x00442>
    at UnityEditor.VFX.VisualEffectResource:CompileResource <0x000e2>
    at System.Object:runtime_invoke_void__this__ <0x00187>
    at <unknown> <0xffffffff>
    at UnityEditor.AssetDatabase:ImportAsset <0x000eb>
    at UnityEditor.VFX.VFXGraphPreprocessor:OnPostprocessAllAssets <0x00db2>
    at <Module>:runtime_invoke_void_object_object_object_object <0x00208>
    at <unknown> <0xffffffff>
    at System.Reflection.RuntimeMethodInfo:InternalInvoke <0x00151>
    at System.Reflection.RuntimeMethodInfo:Invoke <0x00522>
    at System.Reflection.MethodBase:Invoke <0x0008e>
    at UnityEditor.AssetPostprocessingInternal:InvokeMethod <0x002c2>
    at UnityEditor.AssetPostprocessingInternal:postprocessAllAssets <0x00eca>
    at <Module>:runtime_invoke_void_object_object_object_object_object_byte <0x00212>
    at <unknown> <0xffffffff>
    at UnityEditor.AssetDatabase:StopAssetEditing <0x000f0>
    at UnityEditor.VFX.VFXGraphPreprocessor:CheckCompilationVersion <0x0076a>
    at UnityEditor.EditorApplication:Internal_CallUpdateFunctions <0x00327>
    at System.Object:runtime_invoke_void <0x00184>
    =================================================================
    Received signal SIGSEGV
    Obtained 65 stack frames
    0x00007ff641f6a7a8 (Unity) VFXMemorySerializerBindings::StoreObjectsToByteArray
    0x00007ff63fe1a66d (Unity) VFXMemorySerializer_CUSTOM_StoreObjectsToByteArray
    0x0000025df18c928c (Mono JIT Code) (wrapper managed-to-native) UnityEditor.VFX.VFXMemorySerializer:StoreObjectsToByteArray (UnityEngine.ScriptableObject[],UnityEngine.CompressionLevel)
    0x0000025de5caec03 (Mono JIT Code) [VFXGraph.cs:120] UnityEditor.VFX.VFXGraphPreprocessor:OnCompileResource (UnityEditor.VFX.VisualEffectResource)
    0x0000025de5cae743 (Mono JIT Code) UnityEditor.VFX.VisualEffectResource:CompileResource ()
    0x0000025c9319e9a8 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
    0x00007ffb14cf0304 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke
    0x00007ffb14c2eb44 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke
    0x00007ffb14c2ecdc (mono-2.0-bdwgc) [object.c:3113] mono_runtime_invoke
    0x00007ff6408c1ca4 (Unity) scripting_method_invoke
    0x00007ff6408a2644 (Unity) ScriptingInvocation::Invoke
    0x00007ff641f65995 (Unity) VisualEffectImporter::GenerateAssetData
    0x00007ff641c4d876 (Unity) ImportToObjects
    0x00007ff641c4c8c3 (Unity) ImportAsset
    0x00007ff641c707ea (Unity) AssetImportWorker::Import
    0x00007ff641ca051a (Unity) AssetImportManager::ImportInProcess
    0x00007ff641c9d4cd (Unity) AssetImportManager::Import
    0x00007ff641ca114f (Unity) ImportOutOfDateAssets
    0x00007ff641cac148 (Unity) RefreshInternalV2
    0x00007ff641cb3c4f (Unity) StopAssetImportingV2Internal
    0x00007ff641c9ffcc (Unity) ImportAtPathV2
    0x00007ff641c22252 (Unity) AssetDatabase::ImportAtPath
    0x00007ff63fe3fc61 (Unity) AssetDatabase_CUSTOM_ImportAsset
    0x0000025de38be79c (Mono JIT Code) (wrapper managed-to-native) UnityEditor.AssetDatabase:ImportAsset (string,UnityEditor.ImportAssetOptions)
    0x0000025de395b7e3 (Mono JIT Code) [VFXGraph.cs:75] UnityEditor.VFX.VFXGraphPreprocessor:OnPostprocessAllAssets (string[],string[],string[],string[])
    0x0000025de395be19 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_object_object_object_object (object,intptr,intptr,intptr)
    0x00007ffb14cf0304 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke
    0x00007ffb14c2eb44 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke
    0x00007ffb14c35bdf (mono-2.0-bdwgc) [object.c:5777] mono_runtime_try_invoke_array
    0x00007ffb14b6cea0 (mono-2.0-bdwgc) [icall.c:4025] ves_icall_InternalInvoke
    0x00007ffb14b91691 (mono-2.0-bdwgc) [icall-def.h:687] ves_icall_InternalInvoke_raw
    0x0000025d89d5d8b2 (Mono JIT Code) (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo:InternalInvoke (System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
    0x0000025d89d5a463 (Mono JIT Code) System.Reflection.RuntimeMethodInfo:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
    0x0000025d89d59ecf (Mono JIT Code) System.Reflection.MethodBase:Invoke (object,object[])
    0x0000025dffdc35b3 (Mono JIT Code) UnityEditor.AssetPostprocessingInternal:InvokeMethod (System.Reflection.MethodInfo,object[])
    0x0000025dffdb68bb (Mono JIT Code) UnityEditor.AssetPostprocessingInternal:postprocessAllAssets (string[],string[],string[],string[],string[],bool)
    0x0000025dffdb7383 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_object_object_object_object_object_byte (object,intptr,intptr,intptr)
    0x00007ffb14cf0304 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke
    0x00007ffb14c2eb44 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke
    0x00007ffb14c2ecdc (mono-2.0-bdwgc) [object.c:3113] mono_runtime_invoke
    0x00007ff6408c1ca4 (Unity) scripting_method_invoke
    0x00007ff6408a2644 (Unity) ScriptingInvocation::Invoke
    0x00007ff6412c2e54 (Unity) MonoPostprocessAllAssets
    0x00007ff641c8b36b (Unity) CallPostProcessAllAssetsCallbacks
    0x00007ff641ca8cfb (Unity) ProcessPostProcessAllAssetNotificationsAndHotReload
    0x00007ff641cb3d66 (Unity) StopAssetImportingV2Internal
    0x00007ff63fe320b3 (Unity) AssetDatabase_CUSTOM_StopAssetEditing
    0x0000025de5ae66b1 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.AssetDatabase:StopAssetEditing ()
    0x0000025de5ae5a9b (Mono JIT Code) [VFXGraph.cs:201] UnityEditor.VFX.VFXGraphPreprocessor:CheckCompilationVersion ()
    0x0000025de5922c68 (Mono JIT Code) UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
    0x0000025d89cb46c5 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr)
    0x00007ffb14cf0304 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke
    0x00007ffb14c2eb44 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke
    0x00007ffb14c2ecdc (mono-2.0-bdwgc) [object.c:3113] mono_runtime_invoke
    0x00007ff6408c1ca4 (Unity) scripting_method_invoke
    0x00007ff6408a2644 (Unity) ScriptingInvocation::Invoke
    0x00007ff64089d2a5 (Unity) ScriptingInvocation::Invoke<void>
    0x00007ff6409d8a3b (Unity) Scripting::UnityEditor::EditorApplicationProxy::Internal_CallUpdateFunctions
    0x00007ff64139fa15 (Unity) SceneTracker::Update
    0x00007ff6414c4849 (Unity) Application::TickTimer
    0x00007ff64193defa (Unity) MainMessageLoop
    0x00007ff641942e50 (Unity) WinMain
    0x00007ff642ce8c1e (Unity) __scrt_common_main_seh
    0x00007ffbb8387034 (KERNEL32) BaseThreadInitThunk
    0x00007ffbba362651 (ntdll) RtlUserThreadStart
     
  3. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    2,983
    Did you report a bug? :)
     
  4. RunninglVlan

    RunninglVlan

    Joined:
    Nov 6, 2018
    Posts:
    182
    I didn't report it yet as I don't know how to reproduce it in a new project. I can't share our project unfortunately
     
  5. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,281
    I’ve seen a bugfix that may affect this. It’s waiting to be backported, and relates to our recent job system improvements. There is an issue if an fbx file has lots of meshes inside it.

    sorry I don’t have links handy, I’m not technically at work today!
     
    RunninglVlan likes this.
  6. RunninglVlan

    RunninglVlan

    Joined:
    Nov 6, 2018
    Posts:
    182
    Hello, I don't know why I first created the thread with FBX crash in the title, the crash happens because of VFX importing actually =D Updated the title now ;)
    I removed all VFX and opened the project without problems.
    I'll try to create some VFX in a new 2022.1.13f1 project (we now use this version) and try to open it (or import) in 2022.2.0b7 (latest beta), then create a bug report!
     
    Last edited: Sep 5, 2022
    LeonhardP likes this.
  7. RunninglVlan

    RunninglVlan

    Joined:
    Nov 6, 2018
    Posts:
    182
    We recompiled problematic VFX and project stopped crashing, but we get following error constantly: Generic message code 233 has not been handled
    upload_2022-9-6_14-40-34.png
     
  8. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,281
    I've asked the team about this. It's coming from way deep down in the code!
     
    Cartographer and RunninglVlan like this.
  9. Cartographer

    Cartographer

    Joined:
    Mar 19, 2013
    Posts:
    78
    Not got much to add sorry, but I just started getting the "Generic message code 233 has not been handled" message. All I did was close the editor and reopen it and it started happening. Unity 2022.2.0b7
     
  10. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,281
    I've tried to find out who owns this but can't get a definitive answer.
    Could you submit a bug report that shows this in your logs? Then QA will process and it and hopefully the report will find the right team that way!

    If you link to this message from me in the report, it may help QA. Thanks again!
     
  11. RunninglVlan

    RunninglVlan

    Joined:
    Nov 6, 2018
    Posts:
    182
    Unfortunately I don't get this error message anymore =(
    Tried importing all VFX again, restarting project - still no message
     
    richardkettlewell likes this.
  12. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,281
    I've stumbled across some more chatter internally about this error message. I think I've found who needs to fix it :)
    It looks like we already fixed it in 2023, so I'm just trying to get a backport organised.
     
    Last edited: Sep 14, 2022
  13. lcfitz1

    lcfitz1

    Joined:
    Apr 27, 2018
    Posts:
    3
    I am also getting this error after opening a project in 2022.2.0b8.3023
     
  14. mjc33

    mjc33

    Joined:
    Oct 9, 2019
    Posts:
    26
    Also have this error filling the console with 2022.2.0b9
     
  15. Power37371

    Power37371

    Joined:
    Sep 22, 2019
    Posts:
    7
    My unity started crashing due to importing VFX as soon as i changed some HDRP settings that needed the fix option clicked to allow raytracing. The specific VFX it seems to crash when importing seems to be SimpleHeadsAndSparks.vfx. This doesnt seem deletable either as it seems to "re-make" itself when the project opens. Ive tried opening the project with 2023.1.0a12, 2022.2.0b9, and 2021.2.19f1.
     
  16. RunninglVlan

    RunninglVlan

    Joined:
    Nov 6, 2018
    Posts:
    182
    What errors are you getting, guys? As I said, we
    i.e., recompiling VFX in Unity that is not crashing
    Have you tried recompiling your VFX?
     
  17. Power37371

    Power37371

    Joined:
    Sep 22, 2019
    Posts:
    7
    Its Not my VFX thats crashing it anymore, I've got rid of that for the mean time, its VFX that comes with the HDRP unity project (Templates and etc). I cant seem to not have it in the project either, and I cant get into the project to recompile it.
     
  18. StefanWo

    StefanWo

    Joined:
    May 24, 2015
    Posts:
    119
    I have the same problem, showing up "Generic message code 233 has not been handled" while importing. Turns out unity is crashing when i try to select one of my VFX files in the poject-tab included in that subscene. A reimport of that folder also crashs unity directly.
    Anyone an idea how to solve/workaround that?

    => I created a Bugreport with that file after the crash. No idea how to get to the link to the issue, but i got an answer with caseId 18831 if that helps.
     
  19. demo_0

    demo_0

    Joined:
    Oct 16, 2021
    Posts:
    1
    I was able to resolve my "Generic message code 233 has not been handled" message by reinstalling Unity Hub, there was nothing wrong with any project.
     
    StefanWo and mjc33 like this.
  20. mjc33

    mjc33

    Joined:
    Oct 9, 2019
    Posts:
    26
    Great find seems like that fixed it for me too. Was even happening in brand new empty projects
     
  21. StefanWo

    StefanWo

    Joined:
    May 24, 2015
    Posts:
    119
    Oh year, thanks a lot! Reinstalling the hub also fixed it for me... Great... I wonder what's the relationship to the hub is. I also had another trouble with it, that its adding the "trial version" watermark in the 2021.3 build, due to problems with the hub (3.3.0) What a mess...
     
  22. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,281
    The backport of the "233" error code spam is now fixed in 2022.2.0b13
     
  23. Deleted User

    Deleted User

    Guest

    Getting this error too, it looks like I can only presently go to b10, do you know when the b13 build will be accessible?