Build crashes in several cases (always in the same cases) after updating Unity from 2021 to 2022.3.24f1, but not in the editor and not as a developer build. No errors in the log files and I have no clue how to fix that. Any recommendations?
You can try attach the debugger but for release builds this may not be too informative unless you disable optimization (see player settings).
This is generally what I would try first, knowing it works in dev/debug builds but not release: change optimization settings and disable code stripping. If any of these make the crash go away, I’d try to narrow down the actual setting that causes the crash and then perhaps reason about causes or whether to just lower the optimization/stripping level.
If it still crashes without optimizations at least debugging is easier if the code is unoptimized (ie executed “as is”).
Thank you for your help! I have tried disabling stripping but it still crashes at the same point. Also added a debugging console to the release build which shows no error. I’ve googled everything I can think of on the subject but couldn’t find anything.
It loads the “LoadingScene”, which had only one script. It does an update and crashes. No errors nothing
Still need help on this, any ideas?
