Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Bug The state of 3.7.0 is unusable

Discussion in 'Editor & General Support' started by MrLucid72, Feb 22, 2024.

  1. MrLucid72

    MrLucid72

    Joined:
    Jan 12, 2016
    Posts:
    1,006
    I decided to get rid of my old versions and add the latest LTS:

    1. I tried to uninstall, but it just infinitely shows "uninstalling" hours later.
    2. I tried to install the latest LTS, but I get validation failed. Heck, there's still a thread bumped from years ago still trying to resolve this exact issue that seems to have been silently swept under a rug.


     
    Last edited: Feb 22, 2024
    FunTonDev likes this.
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    6,580
    If you were to do a clean install of Windows, I‘m 99.99998% sure it‘ll work. ;)
    Meaning the culprit here is always something specific about the system, not the installer, otherwise nearly everyone would have these issues.

    Common causes include antivirus or similar resident, intrusive applications (malware) or an abnormal OS configuration (personalized user or file system permissions), missing updates and/or a compromised system (including manual or automated „registry cleaning“), or driver/hardware issues. Or following bad advice such as „run as administrator“.

    The best you can do is look at the logs (locations in the manual) to see if they are at least hinting in a certain direction. Cleaning the cache locations can also sometimes help, it can‘t hurt to do so. And ensuring the OS has the latest updates and driver versions.
     
  3. MrLucid72

    MrLucid72

    Joined:
    Jan 12, 2016
    Posts:
    1,006
    No thanks to Unity Hub for vague errors without a hint to where the logs are, I found them at `%appdata%\UnityHub\logs\info-log.json`

    Code (JavaScript):
    1. {"timestamp":"2024-02-22T06:28:51.596Z","level":"info","moduleName":"UnityInstallerWindows","message":"[ 'spawn child process, elevated:', true ]"}
    2. {"timestamp":"2024-02-22T06:28:51.596Z","level":"info","moduleName":"UnityInstallerWindows","message":"[ 'executing', '\"C:\\\\Program Files\\\\Unity Hub\\\\Unity Hub.exe\"', '-- --winInstaller' ]"}
    3. {"timestamp":"2024-02-22T06:28:52.247Z","level":"info","moduleName":"UnityInstallerWindows","message":"[ 'user did not agree to the UAC prompt and the process was not started' ]"}
    4. {"timestamp":"2024-02-22T06:28:52.249Z","level":"info","moduleName":"UnityIPCServer","message":"[ 'IPC server Unity-hubInstallServer closed' ]"}
    5. {"timestamp":"2024-02-22T06:28:52.249Z","level":"error","moduleName":"UnityInstallerWindows","message":"[ { code: 'User did not grant permission.', message: 'The Hub does not have proper permissions to install Unity.' }, undefined, undefined ]"}
    The logs state that I did not grant UAC permission, yet the UAC prompt never came up. Specifically:

    Code (JavaScript):
    1. Unity Hub.exe\"', '-- --winInstaller' ]"}
    2. The Hub does not have proper permissions to install Unity.' }, undefined, undefined ]"}
    ...likely due to `undefined, undefined`. There's also the strange "-- --winInstaller" flag, where a ---flag seems to be partially added but missing. I'd almost bet money that there's some kind of --elevate flag that's supposed to be there. Heck, it probably also detected a bad-named flag named either " " || " --winInstaller" since it's probably detecting the next word after "--" which !exists.

    Hub has a track record of having poor-quality updates - if Unity was Conanical or someone trusted to actually have proper QA testing, this would be different. However, we're talking about Unity, here, infamous for lacking QA - with Hub intensifying this statement tenfold. I doubt it's me.

    The two `undefined` vars on top of the missing --flag seem to scream "we were *supposed* to elevate, but an untested Unity Hub bug prevented it".
     
    Last edited: Feb 22, 2024
  4. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,509
    those parts seem ok.

    could check what are your UAC settings in windows?

    related hub source, seems to suggest that error message is not always accurate?
    undefined parts are those stdout and stderror most likely:
    upload_2024-2-22_11-38-36.png