Search Issue Tracker

Fixed in 2019.2

Fixed in 2018.3, 2019.1



Found in


Issue ID




"TimeZoneNotFoundException InvalidTimeZoneException" error, when registry "TimeZoneKeyName" is empty, crashes Editor/Build



"TimeZoneNotFoundException InvalidTimeZoneException" error, when registry "TimeZoneKeyName" is empty, crashes or freezes the Editor or Build

Reproduction steps:

1. Change your Time zone to "(UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi"
2. Open "Regedit" -> "Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation"
3. Change "TimeZoneKeyName" value data to empty (Delete the value data)
4. Open "TH20" project or Standalone Build
5. Enter Play mode or Start Standalone Build

Expected Result: Project opens succesfully/Play mode enters successfully/Build launches successfully
Actual Result: The Editor doesn't launch or Editor/Build freezes/crashes

Fixed in: 2019.2.0a3, 2019.1.0b3, 2018.3.5f1

Reproduced with: 2018.1.9f1

The registry "TimeZoneKeyName" is empty sometimes when using some Chinese time zones and/or Language settings
Reproduces in Editor and Standalone
Launching the Editor when "TimeZoneKeyName" is empty almost always silently crashes/exits the Editor

Comments (1)

  1. Ac3d8d34ad9e40ea2fc859b9ccc8f82d?d=mm


    Jun 25, 2019 01:51

    This bug still occur in 2018.4.2f1.

    System.TimeZoneInfo.FindSystemTimeZoneById (System.String id) (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
    System.TimeZoneInfo.CreateLocal () (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
    System.TimeZoneInfo.get_Local () (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
    System.TimeZoneInfo.GetDateTimeNowUtcOffsetFromUtc (System.DateTime time, System.Boolean& isAmbiguousLocalDst) (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
    System.DateTime.get_Now () (at <d7ac571ca2d04b2f981d0d886fa067cf>:0)
    UnityEngine.GUI..cctor () (at <a0287f84f481422a879965ed0aa2afc0>:0)
    Rethrow as TypeInitializationException: The type initializer for 'UnityEngine.GUI' threw an exception.
    UnityEngine.GUIUtility.ResetGlobalState () (at <a0287f84f481422a879965ed0aa2afc0>:0)
    UnityEngine.GUIUtility.BeginGUI (System.Int32 skinMode, System.Int32 instanceID, System.Int32 useGUILayout) (at <a0287f84f481422a879965ed0aa2afc0>:0)

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.