Search Issue Tracker

Fixed in Unity 2019.1

Votes

0

Found in

2018.2.10f1

Issue ID

1086670

Regression

No

Registry.GetValue crashes Unity build when using IL2CPP

IL2CPP

-

-

Priority: 3Not yet prioritized for a release

-

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

Steps to reproduce:
1. Add a Registry string value:
Path: "HKEY_LOCAL_MACHINE\\SOFTWARE\\VRstudios"
Name: "EnableDebugPath"
Value: "true"
(see attached picture)
2. Open the build in the User-attached project ("...\BUILDS\IL2CPP\IL2CPP_NotWindowsPlatform_Bug.exe")

Expected: the build does not crash
Actual: the build crashes

Reproduced in: 2018.2.12f1, 2018.3.0b6, 2019.1.0a4

Note: does not reproduce on Mono
If the crash does not occur:
Delete its output log at "C:\Users\<USER>\AppData\LocalLow\DefaultCompany\IL2CPP_NotWindowsPlatform_Bug" and it will crash again.

Could not test on 2017.4 due to script errors

-----------------------------------------------------
fixed in 2018.2.18f1.

Response avatar

Resolution Note:

IL2CPP was not properly marshaling Char[] types when CharSet.Unicode was used, which is the case in the Win32 registry assembly used in this project.

All about bugs

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