Search Issue Tracker

Active

Under Consideration for 6000.0.X, 6000.2.X, 6000.3.X, 6000.4.X

Votes

0

Found in

6000.0.57f1

6000.2.0b3

6000.3.0b1

6000.4.0a1

6000.5.0a1

Issue ID

UUM-119732

Regression

No

Asset Import Workers crash when .ASMDEF is deleted

-

Steps to reproduce:

Option 1: 
Note: every try should be done on an initial state of the project, meaning that you need to unzip the new copy of the project for each try

1. Open the attached "Repo test cleaned.zip" project
2. In Background Tasks window you should see QuickSearch Indexing process - wait while it is finished
3. Go to menu Window->General->TestRunner{},{} and open the Test Runner window  
4. Open Windows Task Manager, find and unfold Unity.exe process - wait while extra spawned workers to shut down, and there should stay only two idle ones 
5. Go in Project Browser and open All Materials, All Models, etc. and scroll around there for a bit - this will spawn workers for Preview Generation - they are needed to cause the crashes
6. In Test Runner, select Asmdef Worker Crash and hit 'Run selected'
7. Wait and observe the AssetImportWorker crash

Option 2: 

1 Create new 3D HDRP project through HUB (probably works with other types of projects as well, but I haven't tried)
2 Close the project
3 Reopen the project
4 Go to All Materials, All Models, etc to start some Preview Generation to spawn workers
5 In the Project Browser create the new Script - so compilation/Domain reload starts
6 In Windows Explorer go into Library/PackageCache/Collab and delete both the .asmdef and its .meta
7 Go back to the Editor and get Import Workers crashes with the crash we are looking for
Note: it is not always reproducible, but happens at least every second try

Actual results: AssetImportWorkers crash

Expected results: AssetImportWorkers should not crash

Reproducible with versions: 6000.0.57f1, 6000.2.3f1, 6000.3.0b1,  6000.4.0a1

Not reproducible with versions: haven't tested 2022.3

Tested on (OS): macOS 15.6.1 (M1 Max), Windows 10, Windows 11

Notes: "Fatal Error! Compilation Pipeline: Could not read file" Error is printed before AssetImportWorker crashes

StackTrace:
{quote}The AssetImportWorker1 has crashed. Please report a bug with the following Stack Trace:
========== OUTPUTTING STACK TRACE ==================0x00007FFB206FB699 (KERNELBASE) RaiseException
0x00007FFA5C5FA3B9 (Unity) EditorMonoConsole::LogToConsoleImplementation
0x00007FFA5C5FB0A0 (Unity) EditorMonoConsole::LogToConsoleImplementation
0x00007FFA5D2A7DDD (Unity) DebugStringToFilePostprocessedStacktrace
0x00007FFA5D2A7159 (Unity) DebugStringToFile
0x00007FFA5CB88065 (Unity) RegisterAssemblyDefinition
0x00007FFA5CFAAFD5 (Unity) ProcessAssemblyAssets
0x00007FFA5CFABD36 (Unity) UpdateScriptCompilationPipelineCaches
0x00007FFA5CEC3964 (Unity) AssetImportWorkerClient::RegisterTransientArtifacts
0x00007FFA5CEC3BE2 (Unity) AssetImportWorkerClient::ReloadScriptingDomain
0x00007FFA5CE9EAF0 (Unity) <lambda_dfe2fdae22f1629f164682966ac9a93e>::operator()
0x00007FFA5CF7F99F (Unity) asio::detail::completion_handler<core::mutable_function<void __cdecl(void)>,asio::io_context::basic_executor_type<std::allocator<void>,0> >::do_complete
0x00007FFA5CF6D161 (Unity) asio::detail::win_iocp_io_context::do_one
0x00007FFA5CF6E46E (Unity) asio::detail::win_iocp_io_context::run
0x00007FFA5CF7E009 (Unity) IOService::Run
0x00007FFA5CEC7B35 (Unity) RunAssetImportWorkerClientV2
0x00007FFA5CEC7BFB (Unity) RunAssetImporterV2
0x00007FFA5C6F9AA0 (Unity) Application::InitializeProject
0x00007FFA5CCDD465 (Unity) UnityMain
0x00007FF71B6A2F2A (Unity) __scrt_common_main_seh
0x00007FFB21517374 (KERNEL32) BaseThreadInitThunk
0x00007FFB22F5CC91 (ntdll) RtlUserThreadStart========== END OF STACKTRACE ===========
 -- for more information, check Logs/AssetImportWorker1.log
{quote}

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.