Search Issue Tracker

Active

Under Consideration for 6000.0.X, 6000.1.X, 6000.2.X

Votes

0

Found in

6000.0.39f1

6000.1.0b7

6000.2.0a5

Issue ID

UUM-98111

Regression

No

Crash on ResizeScriptingList<ScriptingObjectPtr> when passing an undeclared variable to the results parameter for GameObject.FindGameObjectsWithTag

-

Reproduction steps:
1. Open the attached project ("ReproProject")
2. Open scene "Scenes/SampleScene"
3. Enter Play mode

Expected result: The Editor enters Play mode and throws an error in console regarding the undeclared variable
Actual result: The Editor crashes

Reproducible with: 2023.1.0a16, 6000.0.39f1, 6000.1.0b7, 6000.2.0a5
Couldn't test with: 2022.3.58f1, 2023.1.0a15 (FindGameObjectsWithTag does not take 2 parameters in these versions)

Reproducible on: Windows 11 (User), MacOS 15.2 (Intel)
Not reproducible on: No other environment tested

Note:
If reproduction fails on the provided project, just put the attached ReproScript.cs in a new project and attach it to any GameObject in any scene, then enter Play mode

Stacktrace:
#0 0x000001058aabd4 in void ResizeScriptingList<ScriptingObjectPtr>(GenericListData&, ScriptingClassPtr, int)
#1 0x000001058582e9 in GameObjectBindings::FindGameObjectsWithTagForListInternal(core::basic_string<char, core::StringStorageDefault<char>> const&, ScriptingObjectPtr, ScriptingExceptionPtr*)
#2 0x00000105858208 in GameObject_CUSTOM_FindGameObjectsWithTagForListInternal(ScriptingBackendNativeStringPtrOpaque*, ScriptingBackendNativeObjectPtrOpaque*)
#3 0x000001f8818d14 in (wrapper managed-to-native) UnityEngine.GameObject:FindGameObjectsWithTagForListInternal (string,object) [

{0x7fdde1dba148}

+ 0xc4] (0x1f8818c50 0x1f8818def) [0x162f02a80 - Unity Child Domain]
#4 0x000001633a6b8e in mono_jit_runtime_invoke
#5 0x0000016355abf4 in do_runtime_invoke
#6 0x0000016355ab58 in mono_runtime_invoke

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.