Editor Crash on failure to upload artifact

We're using unity accelerator on a machine that sometimes restarts. It seems that users that are using the cache server whilst it is not possible to connect are crashing.

Unfortunately I haven't been able to reproduce this in a smaller project, which means I can't really open an official bug report. I still wanted to drop the info here though, so here are some snippets of logs that are likely relevant:

Log

[spoiler]

Starting new worker id: 0 with log in C:/Projects//Unity//Logs/AssetImportWorker0.log
AcceleratorClientConnectionCallback - disconnected - UnityCacheServer:80
Worker ready: AssetImportWorker0 0
Request Asset Garbage Collect because used heap size increased from 0.71 GB to 1.03 GB, exceeding the threshold of 256.0 MB.
Unloading 883 Unused Serialized files (Serialized files now loaded: 0)
Unloading 154 unused Assets / (7.2 MB). Loaded Objects now: 107466.
Memory consumption went from 1.06 GB to 1.05 GB.
Total: 63.189500 ms (FindLiveObjects: 9.877700 ms CreateObjectMapping: 8.099300 ms MarkObjects: 43.621600 ms DeleteObjects: 1.589600 ms)

[Worker0] Start importing Assets/Art/Environment/Collections/Blocks/CityCenter/.prefab using Guid(27c49695a1bd9f2478a52d234dae6c2a) Importer(815301076,1909f56bfc062723c751e8b465ee728b)
[Worker0] -> (artifact id: '8decbb39eec7a42ba2faac1123374d7c') in 2.368010 seconds
AcceleratorClientConnectionCallback - disconnected - UnityCacheServer:80
Failed to upload artifact(artifact id=8decbb39eec7a42ba2faac1123374d7c, static dependencies=ad8fcf659010171f760fb0105d6e3870, content hash=ba64cf468e602f7eea592e4a0fe632d2) to cacheserver
AcceleratorClientConnectionCallback - disconnected - UnityCacheServer:80
Failed to upload artifact(artifact id=8decbb39eec7a42ba2faac1123374d7c, static dependencies=ad8fcf659010171f760fb0105d6e3870, content hash=ba7afd09c4947e1bc87aa8bd0ac49124) to cacheserver
AcceleratorClientConnectionCallback - disconnected - UnityCacheServer:80
Assertion failed on expression: 'it != m_SendMap.end()'
Crash!!!

[...]

========== OUTPUTTING STACK TRACE ==================

0x00007FF70FA999B5 (Unity) TcpProtobufClient::EndBatch
0x00007FF70F98C25C (Unity) ::hushed:perator()
0x00007FF70FA87352 (Unity) asio::detail::completion_handler >::do_complete
0x00007FF70FA895DD (Unity) asio::detail::win_iocp_io_service::do_one
0x00007FF70FA8C9FE (Unity) asio::io_service::run
0x00007FF70FA857F1 (Unity) IOService::Run
0x00007FF70FA8632B (Unity) IOService::Impl::ThreadFunction
0x00007FF70E4C6E57 (Unity) Thread::RunThreadWrapper
0x00007FFE996A7034 (KERNEL32) BaseThreadInitThunk
0x00007FFE99CE2651 (ntdll) RtlUserThreadStart

========== END OF STACKTRACE ===========

[/spoiler]

Unfortunately I wasn't able to get the AssetImportWorker log. (the issues are not occuring on my own machine because I have the cache server disabled for other reasons) I'll try to make sure to get it the next time this happens.

Maybe this:
https://issuetracker.unity3d.com/issues/crash-on-tcpprotobufclient-endbatch-when-creating-a-prefab-and-cache-server-is-disconnected

1 Like

Having the same problem