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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug Editor won't open no matter what I do.

Discussion in 'Editor & General Support' started by peyoway, Sep 3, 2022.

  1. peyoway

    peyoway

    Joined:
    Jun 26, 2019
    Posts:
    4
    Hi!

    I'm running Windows 11 and I'm trying to open Unity. It feels like I've tried everything when it comes to the issue. I've reinstalled Hub, I've reinstalled the editor. I've tried a different version. I tried to redownload 2015 distibutables. I'm attempting to create a new project and it won't open. I've tried to open unity directly without hub and still nothing. After checking logs it looks like it can't find the project I'm trying to open even though I just made it? Any help would be appreciated.
     
  2. peyoway

    peyoway

    Joined:
    Jun 26, 2019
    Posts:
    4
    Here is where it looks like it crashes according to the logs
    {"timestamp":"2022-09-03T16:14:22.095Z","level":"error","moduleName":"LocalProjectService","message":"[\n 'Error while opening a local new project: ',\n ProjectError\n at Function.<anonymous> (C:\\Program Files\\Unity Hub\\resources\\app.asar\\build\\main\\services\\projectService\\ProjectValidatorService.js:51:23)\n at Generator.next (<anonymous>)\n at fulfilled (C:\\Program Files\\Unity Hub\\resources\\app.asar\\build\\main\\services\\projectService\\ProjectValidatorService.js:5:58) {\n errorCode: 'ERROR.PROJECT.PATH_NOT_FOUND',\n projectName: undefined,\n projectVersion: undefined,\n projectPath: undefined\n }\n]"}
    {"timestamp":"2022-09-03T16:14:22.095Z","level":"error","moduleName":"LocalProjectService","message":"[\n 'Error while opening project: {\"code\":400,\"error\":{\"errorCode\":\"ERROR.PROJECT.PATH_NOT_FOUND\",\"projectName\":\"My project\",\"projectVersion\":\"2021.3.9f1\",\"projectPath\":\"C:\\\\\\\\Users\\\\\\\\pcmaj\\\\\\\\Downloads\\\\\\\\nicer\\\\\\\\My project\"}}'\n]"}
     
  3. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,963
    Check if your username has weird characters (spaces, apostrophes, unicode, etc.) and don't let that be any part of your path.

    Same goes for the project name. I would recommend not using 'my project' but rather 'myproject'

    Also, I put all my Unity stuff in
    c:\unity
    to get around the built-in filesystem creakiness of Windows, such as its ludicrously small overall path size limitations.
     
  4. peyoway

    peyoway

    Joined:
    Jun 26, 2019
    Posts:
    4
    I made a project in C:\Unity/myproject and it still didn't launch. Thanks for the attempt though.
     
  5. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,963
    What if you just empty out the above folder utterly and make this:

    c:\unity\myproject\Assets\
    c:\unity\myproject\ProjectSettings\


    all empty folders and tell Unity to open
    myproject
    ?
     
  6. peyoway

    peyoway

    Joined:
    Jun 26, 2019
    Posts:
    4
    That seemed to do something, only in the logs. It seems unity was able to "open" the project but the editor itself keeps closing.
    Code (CSharp):
    1. {"timestamp":"2022-09-03T18:11:58.367Z","level":"info","moduleName":"LocalProjectService","message":"[\n  'openProject projectPath: C:\\\\Unity\\\\myproject, current editor:',\n  undefined\n]"}
    2. {"timestamp":"2022-09-03T18:11:58.367Z","level":"info","moduleName":"RestEvent:Project","message":"[\n  'onProjectOpen data:',\n  {\n    projectPath: 'C:/Unity/myproject',\n    normalizedProjectPath: 'C:/Unity/myproject'\n  }\n]"}
    3. {"timestamp":"2022-09-03T18:11:58.367Z","level":"info","moduleName":"LicensingSdkService","message":"[ 'checkEntitlements: checking entitlements for: com.unity.editor.ui' ]"}
    4. {"timestamp":"2022-09-03T18:11:58.412Z","level":"info","moduleName":"LicensingSdkService","message":"[ 'Successfully checked for entitlements request.' ]"}
    5. {"timestamp":"2022-09-03T18:11:58.412Z","level":"info","moduleName":"LaunchProcess","message":"[\n  'Spawning editor instance with command: ',\n  'C:\\\\Program Files\\\\Unity\\\\Hub\\\\Editor\\\\2019.4.31f1\\\\Editor\\\\Unity.exe',\n  ', and arguments: ',\n  [\n    '-projectpath',\n    'C:\\\\Unity\\\\myproject',\n    '-useHub',\n    '-hubIPC',\n    '-cloudEnvironment',\n    'production',\n    '-licensingIpc',\n    'LicenseClient-pcmaj',\n    '-hubSessionId',\n    'a4d504b0-2ba7-11ed-9169-47c6c081b676',\n    '-accessToken',\n    'nyNsO7sZz7nWcpVtRC2iBAgyYygVKqC1VqxeRaPnN9E012f'\n  ]\n]"}
    6. {"timestamp":"2022-09-03T18:11:58.421Z","level":"info","moduleName":"LicensingSdkService","message":"[ 'Get all entitlement groups' ]"}
    7. {"timestamp":"2022-09-03T18:11:58.477Z","level":"info","moduleName":"LicensingSdkService","message":"[ 'Successfully received all entitlement groups details' ]"}
    8. {"timestamp":"2022-09-03T18:11:58.478Z","level":"info","moduleName":"LicensingSdkService","message":"[ 'Received 1 entitlement groups' ]"}
    9. {"timestamp":"2022-09-03T18:12:01.358Z","level":"info","moduleName":"LaunchProcess","message":"[ 'child process exited with code 0' ]"}
    10. {"timestamp":"2022-09-03T18:12:17.200Z","level":"info","moduleName":"LicensingSdkService","message":"[ 'Get all entitlement groups' ]"}
    11. {"timestamp":"2022-09-03T18:12:17.274Z","level":"info","moduleName":"LicensingSdkService","message":"[ 'Successfully received all entitlement groups details' ]"}
    12. {"timestamp":"2022-09-03T18:12:17.274Z","level":"info","moduleName":"LicensingSdkService","message":"[ 'Received 1 entitlement groups' ]"}
    13.  
     
  7. MShahbazKharal

    MShahbazKharal

    Joined:
    Aug 5, 2015
    Posts:
    2
    Hi, I had the same issue I checked the logs file (C:\Users\<YOUR USER NAME>\AppData\Local\Unity\Editor\Editor.log and it looked something like this:
    upload_2022-10-17_16-49-29.png
    so all I did is returned license in Unity Hub (Settings -> Licenses) and added one again and it started working.
     

    Attached Files: