Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Editor crashes when opening Project Settings

Discussion in 'Editor & General Support' started by hungrybelome, Mar 1, 2020.

  1. hungrybelome

    hungrybelome

    Joined:
    Dec 31, 2014
    Posts:
    336
    I think I may have the same issue as this: https://issuetracker.unity3d.com/is...-the-player-settings-with-vulkan-graphic-apis on 2019.3.3f1, as I am building for Android (Oculus Quest) with Vulkan graphics API set.

    I can't send a bug report because it just stalls on "Packing the report..." forever.

    Posted in Editor.log:

    Code (CSharp):
    1. 2020-03-01 22:12:42.394 Unity[2617:83603] *** Terminating app due to uncaught exception 'NSGenericException', reason: 'NSRunInformationalAlertPanel may not be invoked inside of transaction begin/commit pair, or inside of transaction commit (usually this means it was invoked inside of a view's -drawRect: method.)'
    2. *** First throw call stack:
    3. (
    4.    0   CoreFoundation                      0x00007fff393dae0b __exceptionPreprocess + 171
    5.    1   libobjc.A.dylib                     0x00007fff60693c76 objc_exception_throw + 48
    6.    2   CoreFoundation                      0x00007fff3946c92d +[NSException raise:format:] + 205
    7.    3   AppKit                              0x00007fff371b4431 _NSRunModal + 484
    8.    4   AppKit                              0x00007fff36cf9c17 NSRunInformationalAlertPanel + 513
    9.    5   Unity                               0x0000000106fb29af _Z13DisplayDialogRKN4core12basic_stringIcNS_20StringStorageDefaultIcEEEES5_S5_S5_ + 1055
    10.    6   Unity                               0x0000000104b00f36 _Z34EditorUtility_CUSTOM_DisplayDialogP37ScriptingBackendNativeStringPtrOpaqueS0_S0_S0_ + 998
    11.    7   ???                                 0x000000017db87942 0x0 + 6404208962
    12.    8   ???                                 0x000000017db6be7b 0x0 + 6404095611
    13. )
    14. libc++abi.dylib: terminating with uncaught exception of type NSException
    15. Obtained 13 stack frames.
    16. #0  0x007fff613fdb66 in __pthread_kill
    17. #1  0x007fff613591ae in abort
    18. #2  0x007fff5f254f8f in __cxa_bad_cast
    19. #3  0x007fff5f25512b in default_unexpected_handler()
    20. #4  0x007fff60695ea3 in _objc_terminate()
    21. #5  0x007fff5f2707c9 in std::__terminate(void (*)())
    22. #6  0x007fff5f27047a in __cxa_rethrow
    23. #7  0x007fff60694139 in objc_exception_rethrow
    24. #8  0x007fff371b44e2 in _NSRunModal
    25. #9  0x007fff36cf9c17 in NSRunInformationalAlertPanel
    26. #10 0x00000106fb29af in DisplayDialog(core::basic_string<char, core::StringStorageDefault<char> > const&, core::basic_string<char, core::StringStorageDefault<char> > const&, core::basic_string<char, core::StringStorageDefault<char> > const&, core::basic_string<char, core::StringStorageDefault<char> > const&)
    27. #11 0x00000104b00f36 in EditorUtility_CUSTOM_DisplayDialog(ScriptingBackendNativeStringPtrOpaque*, ScriptingBackendNativeStringPtrOpaque*, ScriptingBackendNativeStringPtrOpaque*, ScriptingBackendNativeStringPtrOpaque*)
    28. #12 0x0000017db87942 in  (wrapper managed-to-native) UnityEditor.EditorUtility:DisplayDialog (string,string,string,string) {0x7f843eefcc00} + 0xb2 (0x17db87890 0x17db87a15) [0x15929e640 - Unity Child Domain]
    29. Launching bug reporter
    30. [Unity Package Manager (Upm)]
    31. Parent process [2617] was terminated
    Also, I believe this started happening after installing the XR Management package and setting it up for Oculus. So frustrating, I can't access my Project Settings at all without the Editor crashing.


    *EDIT*
    I rolled back to a commit before I installed the XR Management package, and before setting Vulkan. I can now open Project Settings without crashes. I reinstalled the XR Management plugin and set it up for Oculus, and Project Settings still works fine.
     
    Last edited: Mar 1, 2020
  2. Holon777

    Holon777

    Joined:
    Sep 29, 2012
    Posts:
    28
    I had the same issue, I uninstalled XR Management and Oculus XR and the crash went away. Reinstalled and still ok.

    I think my mistake was I installed the XR Management and Oculus XR packages, but didn't go to the settings for XR Management and install the Oculus loader. Then I quit the editor and on next load could not load project settings without crashing.
     
    marcos_cooper and hungrybelome like this.
  3. blackfox_studio

    blackfox_studio

    Joined:
    Apr 8, 2019
    Posts:
    40
    @Holon777 I'm having the same problem. Question: if I uninstall the XR packages, will all my scripts and configurations disappear? It took me ages to get them right.
     
  4. Corysia

    Corysia

    Joined:
    Mar 14, 2018
    Posts:
    108
    I ran in to this today with 2019.4.4f1. I'd pulled my project down from github, installing on to another computer. Project Settings would cause the Editor to crash every time.

    I got around it by uninstalling everything related to XR. After that, I added in each package by hand rather than using the XR Management option in Project Settings. After about 2 hours of trial and error, I finally got my project working again.

    Afterwards, I did a "git diff" to see exactly what had changed. Virtually nothing of consequence that I can tell.