Search Issue Tracker
Fixed
Fixed in 2022.3.40f1, 6000.0.0b1
Votes
51
Found in
2022.3.14f1
2023.2.1f1
2023.3.0a15
6000.0.0b11
7000.0.0a1
Issue ID
UUM-57742
Regression
Yes
Crash in CollectManagedImportDependencyGetters inside OpenScene in batch mode
Every time this project tries to run its build script from inside Jenkins on 2022.3.0+, it crashes with the below callstack. It upgraded from 21.3, and had never seen the crash before the upgrade.
Nobody on that project has seen it happen in any circumstances outside of Jenkins.
Internal links in a comment below.
0x00007FF91227CF19 (KERNELBASE) RaiseException
0x00007FF89B8D064C (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\utils\mono-log-common.c:143] mono_log_write_logfile
0x00007FF89B8BC4A2 (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\eglib\goutput.c:172] monoeg_g_logv_nofree
0x00007FF89B8BC57C (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\eglib\goutput.c:215] monoeg_assertion_message
0x00007FF89B8BC5E6 (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\eglib\goutput.c:239] mono_assertion_message_unreachable
0x00007FF89B919BA2 (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\metadata\class.c:2214] mono_class_from_mono_type_internal
0x00007FF89BA811DC (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\metadata\reflection.c:448] mono_type_get_object_checked
0x00007FF89BA810E6 (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\metadata\reflection.c:432] mono_type_get_object
0x00007FF6C1C91611 (Unity) scripting_class_get_object
0x00007FF6C3015212 (Unity) AssetDatabase::CollectManagedImportDependencyGetters
0x00007FF6C309ECFA (Unity) CalculateDependenciesOfOutOfDateAssets
0x00007FF6C30B1756 (Unity) AssetImportManager::Import
0x00007FF6C30B57F1 (Unity) ImportOutOfDateAssets
0x00007FF6C30C0509 (Unity) RefreshInternalV2
0x00007FF6C30C7D0F (Unity) StopAssetImportingV2Internal
0x00007FF6C30B49BC (Unity) ImportAtPathV2
0x00007FF6C3033D82 (Unity) AssetDatabase::ImportAtPath
0x00007FF6C14B3261 (Unity) AssetDatabase_CUSTOM_ImportAsset
0x000001A77406CE25 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.AssetDatabase:ImportAsset (string,UnityEditor.ImportAssetOptions)
0x000001A77406CD6B (Mono JIT Code) UnityEditor.AssetDatabase:ImportAsset (string)
0x000001A77406B1CB (Mono JIT Code) [E:\JenkinsWorkspace\BabystepPipelineBuild\babysteps\Assets\Tools\Scripts\Editor\BBSTileUtils.cs:336] BBSTileUtils:CreatePlayerVersionOfScene (string,bool,bool)
0x000001A774068F8B (Mono JIT Code) [E:\JenkinsWorkspace\BabystepPipelineBuild\babysteps\Assets\Tools\Scripts\Editor\GameBuilder.cs:379] GameBuilder:BakePlayerVersionOfScene (SECTR_Chunk,bool,bool)
0x000001A73FD1B533 (Mono JIT Code) [E:\JenkinsWorkspace\BabystepPipelineBuild\babysteps\Assets\Tools\Scripts\Editor\GameBuilder.cs:302] GameBuilder:RevertLoadedChunksAndBakeStaleScenes (bool,bool)
0x000001A73FD1AFFB (Mono JIT Code) [E:\JenkinsWorkspace\BabystepPipelineBuild\babysteps\Assets\Tools\Scripts\Editor\JenkinsBuild.cs:414] JenkinsBuild/<RevertLoadedChunks>d__51:MoveNext ()
0x000001A73FCC0FBA (Mono JIT Code) [.\Library\PackageCache\com.unity.editorcoroutines@1.0.0\Editor\EditorCoroutine.cs:80] Unity.EditorCoroutines.Editor.EditorCoroutine/YieldProcessor:MoveNext (System.Collections.IEnumerator)
0x000001A73FCC094B (Mono JIT Code) [.\Library\PackageCache\com.unity.editorcoroutines@1.0.0\Editor\EditorCoroutine.cs:134] Unity.EditorCoroutines.Editor.EditorCoroutine:ProcessIEnumeratorRecursive (System.Collections.IEnumerator)
0x000001A73FCC05A3 (Mono JIT Code) [.\Library\PackageCache\com.unity.editorcoroutines@1.0.0\Editor\EditorCoroutine.cs:115] Unity.EditorCoroutines.Editor.EditorCoroutine:MoveNext ()
0x000001A6F9A5F510 (Mono JIT Code) UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
0x000001A72812E615 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr)
0x00007FF89BADE0E4 (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\mini\mini-runtime.c:3445] mono_jit_runtime_invoke
0x00007FF89BA1EB84 (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\metadata\object.c:3066] do_runtime_invoke
0x00007FF89BA1ED1C (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\metadata\object.c:3113] mono_runtime_invoke
0x00007FF6C1C92534 (Unity) scripting_method_invoke
0x00007FF6C1C711B4 (Unity) ScriptingInvocation::Invoke
0x00007FF6C1C6BE05 (Unity) ScriptingInvocation::Invoke<void>
0x00007FF6C1DB2F0B (Unity) Scripting::UnityEditor::EditorApplicationProxy::Internal_CallUpdateFunctions
0x00007FF6C27B47D5 (Unity) SceneTracker::Update
0x00007FF6C28D7269 (Unity) Application::TickTimer
0x00007FF6C2D4A7BA (Unity) MainMessageLoop
0x00007FF6C2D4F8C0 (Unity) WinMain
0x00007FF6C41342FE (Unity) __scrt_common_main_seh
0x00007FF9149C7614 (KERNEL32) BaseThreadInitThunk
0x00007FF914B026B1 (ntdll) RtlUserThreadStart
-
chunglv
Apr 18, 2024 02:49
UNICODE CHARACTER ERROR IN CONSOLE WHEN BROWSING ASSETS IN PACKAGE MANAGER. UNITY 2022.3.23 AND 2022.3.24
-
chunglv
Apr 17, 2024 14:27
UNICODE CHARACTER ERROR IN CONSOLE WHEN BROWSING ASSETS IN PACKAGE MANAGER
-
unity_9D410BE05C9C0B198103
Apr 08, 2024 16:45
A workaround for my case was to include the build target as part of the command line arguments when running the Unity editor in batch mode instead of setting it via `PlayerSettings.SetArchitecture`.
This avoided a change in built target during execution of my build method, which was the reason `CollectManagedImportDependencyGetters` was called in my case.
-
unity_9D410BE05C9C0B198103
Apr 08, 2024 11:47
Any workaround, or tips for identifying the asset that may be the cause of the crash?
-
MarblXR70
Apr 08, 2024 06:36
I was experiencing the crash but finally made the builds work by removing the line "EditorUserBuildSettings.androidBuildTarget = MobileTextureSubtarget....;" from the Pre-Export Method script and moved setting the texture compression to a Pre-build script.
Not sure why this became an issue with Unity 2022 but I assume the additional texture import is causing the crash...
-
Programmer-6
Mar 18, 2024 09:41
I finally found a workaround!
In my case the file that was provoking this error when reimported in batchmode was a photoshop file. After exporting sprites and deleting the file, this error stopped happening.
-
unity_1Ue7fjCrT7yQNg
Mar 01, 2024 18:06
Is there a workaround for this?
-
Programmer-6
Feb 20, 2024 16:11
Any workaround for this ?
-
tmars
Feb 18, 2024 10:31
broken since 2022.3.5
-
NuclearCookieTF
Jan 25, 2024 11:04
Is there a workaround for this?
The issue has been open for over 5 months now.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Inspector's custom tooltip is displayed incorrectly when the name is truncated in UI toolkit
- Crash on ScriptableRenderLoopDraw when rendering a specific VFX in Play Mode
- The script is not renamed in the Project window when renaming and a compilation Error is present
- Average FPS in Play Mode degradation on a newly created BiRP project when it's upgraded from 2020.3.48f1 to a newer Editor version
- DecoratorDrawer indentation is incorrect when it is called with EditorGUI
Resolution Note (fix version 6000.0.0b1):
Fix not possible to fully verify