Search Issue Tracker

Won't Fix

Votes

0

Found in

2021.3.5f1

2022.1.7f1

2022.2.0a17

2023.1.0a2

2023.2.0a1

Issue ID

UUM-8442

Regression

No

Crash on FindBrightestDirectionalLight when saving a script and reentering Play mode

--

-

To reproduce:
1. Open the project “hfc-ktu”
2. Enter Play mode
3. Make a change in any script and save
4. Focus the Editor
5. Exit Play mode
6. Enter Play mode
7. Observe crash

Reproducible with: 2021.3.5f1, 2022.1.7f1, 2022.2.0a17, 2023.1.0a2
Could not test with: 2020.3.36f1 (package errors)

Reproduced on: macOS Monterey 12.4 (Intel)

First few stack frames:
#0 0x00000109fb6f93 in FindBrightestDirectionalLight(bool, unsigned long long)
#1 0x000001099d5051 in RenderSettings_Get_Custom_PropSun()
#2 0x000001f49d82f8 in (wrapper managed-to-native) UnityEngine.RenderSettings:get_sun () \[\{0x7fef17415a08} + 0x78] (0x1f49d8280 0x1f49d83ad) \[0x155942a80 - Unity Child Domain]
#3 0x00000160c2b90c in mono_jit_runtime_invoke
#4 0x00000160de10f7 in do_runtime_invoke
#5 0x00000160ddd5b5 in mono_runtime_class_init_full
#6 0x00000160da2010 in ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_RunClassConstructor_raw

User’s note: I'm not sure what component causes this, but I suspect either ARFoundation Remote 2.0 or Quick Outline asset

  1. Resolution Note:

    This is fixed in 2023.2.0a1 and backported to 2022.3.0f1. Since there is a fix in a released version and it is possible to avoid this issue by not editing scripts while in playmode we will not pursue this issue any furter.

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.