I also had the same crash on exit issue after upgrading to Unity 2020.3.42.
However, the cause of the exit was different, so I am splitting it into a separate thread.
Does anyone know if these are related issues?
I have same issue too for ubuntu 22.04 looking for fix but no one solved, @TomasKucinskas dear moderator please add new 2020. version and fix it, I do not want to jump 2021 because my unity project is very big and in 2021 i have a lot of problem, so i want to just fix this…
in 2020.3.42f1 we experience Segmentation fault (core dumped) on application quit, so I have digged into it.
In someway, AsyncUploadManager::StaticDestroy is being added to RegisterRuntimeInitializeAndCleanup::ExecuteCleanup()'s cleanup list and AsyncUploadManager::StaticDestroy is using JobQueue::WaitForJobGroupID which uses gQueue but RegisterRuntimeInitializeAndCleanup::ExecuteCleanup() is being called after DestroyJobQueue(JobQueue *a1) therefore gQueue is being null then causes Segmentation fault on application quit.
As I do not have the source code, I do not know what adds AsyncUploadManager::StaticDestroy to RegisterRuntimeInitializeAndCleanup::ExecuteCleanup()'s cleanup list but we run our servers on Unity and we need a solution ASAP, please provide us a work-around or fix it fastly.
Can you please report this as a bug? No need for repro, just reference forum thread and mark somewhere to assign to alexey. And thanks for details - indeed this was fixed in 2021 and simply not backported to 2020.3 (thats why the need for the bug - so it is properly tracked).
If you have the same callstack - yes (it should be platform-independent). Again - this is just for tracking, no worries, the fix is done and is in the “process”
I discovered the same issue after upgrading to 2020.3.43.
Not sure about 2020.3.44 but I just upgraded Unity to 2021.3.16 and it looks like it doesn’t happen there (at least on windows)
We see the same crash reports on android after update from 2020.3.32f1 to 2020.3.44f1. I guess based on the history of Unity releases - updates usually come out somewhere in the middle of each month. Then perhaps the update will be only in mid-February. So, since we can’t wait fix we’ll try roll back to 2020.3.41f1 as written here that there is no crash