Search Issue Tracker

Fixed in Unity 2018.3

Votes

0

Found in

2017.3.0f3

Issue ID

1005502

Regression

No

Unity crashes when MonoImporter.SetExecutionOrder is called from RuntimeInitializeOnLoadMethod

Scripting

-

-

Priority: 3Not yet prioritized for a release

-

Severity: 1Crash, freeze, data loss, work stops

How to reproduce:
1. Open given Unity project
2. Enter "Title" scene
3. Enter Play Mode
4. Unity crashes

Reproducible with: 2018.2.0a1, 2018.1.0b9, 2017.3.1p2, 2017.2.2f1, 2017.1.3p1, 5.6.5p2

Note:
In script called "Root" 20 line ( UnityEditor.MonoImporter.SetExecutionOrder(monoScript, -32000)) is crashing only when it's in RuntimeInitializeOnLoadMethod (line 8)

Verified fixed in 2018.3.0a1

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.