Search Issue Tracker

Won't Fix

Votes

0

Found in

2022.2.7f1

2023.2.0a3

Issue ID

UUM-29405

Regression

Yes

Crash on alloc_handle traces when opening specific project

--

-

Reproduction steps:
1. Open the attached project “CrashRepro“

Expected result: The project opens
Actual result: Editor crashes

Reproducible with: 2022.2.0a18, 2022.2.0b6, 2022.2.3f1, 2022.2.7f1, 2023.1.0a1, 2023.2.0a3
Not reproducible with: 2020.3.44f1, 2021.3.18f1, 2022.2.0a17, 2022.2.0b7, 2022.2.2f1
Couldn’t test with: 2023.1.0a24 (Project gets stuck while loading), 2023.1.0b5 (Project gets stuck while loading)

Reproducible on: Windows 10 Home 22H2

First lines of stack trace:

{noformat}0x00007FFE6513A94C (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\metadata\boehm-gc.c:1718] alloc_handle
0x00007FFE65096E2A (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\metadata\external-only.c:84] mono_gchandle_new_weakref_v2
0x00007FF61AF3A755 (Unity) ScriptingGCHandle::Acquire
0x00007FF61AF5F29D (Unity) ManagedReferencesRegistry::TrackInstance
0x00007FF61AF10802 (Unity) SerializeTraits<RegisteredReferencedObject<0> >::Transfer<YAMLRead>
0x00007FF61AF12DCE (Unity) YAMLRead::TransferSTLStyleArray<dynamic_array<RegisteredReferencedObject<0>,0> >{noformat}

First lines of stack trace for 2022.2.0b6 and above:

{noformat}0x00007FF6765FBC61 (Unity) BRGInvocationRenderRootNode
0x00007FF6765FC590 (Unity) BRGRenderSelectionOutline
0x00007FF677674485 (Unity) RenderOutline
0x00007FF67766DFB6 (Unity) Camera::DoRenderSelected
0x00007FF677672844 (Unity) Camera::RenderEditorCamera{noformat}

  1. Resolution Note:

    The crash is occurring because the user has used a csc.rsp file to force the C# language version to 10, which is unsupported. The C# 10 language feature they are trying to use (parameterless struct constructor) is not handled by the serialization system because the C# version is currently unsupported.

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.