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

Question Can't open project, "child process exited with code 3221225595" error

Discussion in 'Editor & General Support' started by Leonniar, Jul 12, 2023.

  1. Leonniar

    Leonniar

    Joined:
    Aug 14, 2018
    Posts:
    24
    So after reinstalling windows I can' open any of my projects. Looking at the logs this is the only error there is. I tried a clean re-installation of Unity Hub and Editors (also tried other editors) to no avail. Found this solution online: "delete the "Library","Logs","obj" and "Temp" folders" and it didn't work. I also tried running Unity Hub with or without administrator privileges and made no difference

    Trying to create a new project doesn't work either, a project is added to Unity Hub. Looking at the log before trying to open the project I find the same error. When I try to run it after it completes I get the error that it can't find the path specified and indeed looking at my files the path doesn't exist (so to my understanding the project was never created) most likely to be expected since it errored during creation.

    Here is a link for the error when opening projects: https://pastebin.com/qa1SF4kD
    Here is a link for the error when creating projects: https://pastebin.com/urDMKWMQ

    Hub Version is: 3.5.0
    Unity Version is: 2022.3.4f1 (LTS)
    Platform: Windows 10 Pro (64-bit)
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    3,899
    I suspect permission issues. Those folders will still be using the old system's permissions and the new user may not be included or the new installation doesn't understand the old system's "user account" group setting.

    Check the permissions of the F:\Unity folder. Make sure your current user account has full access and that these permissions are inherited down to child folders and files. When you do that, be sure to have all Unity editor instances and the Hub closed, especially if you installed them in that root folder. Updating the permissions may take a couple minutes, if not hours, depending on the number of folders and files.
     
  3. Leonniar

    Leonniar

    Joined:
    Aug 14, 2018
    Posts:
    24
    My installation of Unity Hub and Unity editors are completely new and on the C drive. Only thing I have on the F drive are my projects. But even when trying to make a new project on the C drive (so nothing is under the old system's user) it still fails. I will check in the meantime to see if the new user has permission or not and give it a shot. Thanks, will update when I am done !

    Edit:
    For clarification, F drive doesn't have a windows installation and it wasn't the drive I had windows on before, it's just a secondary HDD that I use for storage and not clutter my SSD (C, That currently has windows installed and is brand new (the previous windows installation was on a different drive that is no longer in the system)
     
    Last edited: Jul 12, 2023
  4. Leonniar

    Leonniar

    Joined:
    Aug 14, 2018
    Posts:
    24
    After trying many things, making sure permissions were set correctly, to all users and to my user specifically, even changes the location of the projects it didn't work. I still get the same issue
     
  5. Leonniar

    Leonniar

    Joined:
    Aug 14, 2018
    Posts:
    24
    12 Days later no replies and still no fix. Maybe this is bug that Unity needs to look into ? How can I have the error code and find no fixes this is ridiculous
     
  6. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,498
    That error code is 0xC000007B, which stands for STATUS_INVALID_IMAGE_FORMAT. Did you try running Unity.exe directly? That might give you a better error message.
     
  7. Leonniar

    Leonniar

    Joined:
    Aug 14, 2018
    Posts:
    24
    I am terribly sorry, I just saw your message as I was talking to unity support (to no avail sadly...) trying to fix this issue and then gave up. I am trying to still solve it with newer versions of editors and unity hub and still get the same problems. The error "0xC000007B" I get it when I try to run the "Unity 2022.3.4f.1.exe" since I don't have a standalone "Unity.exe" anywhere, not on my install, not on my projects, not on the unity hub files or anything.
     
  8. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,498
    What is the full exact path to Unity 2022.3.4f.1.exe? And how did you download it?
     
  9. Leonniar

    Leonniar

    Joined:
    Aug 14, 2018
    Posts:
    24
    The path is:
    C:\Program Files\Unity\Hub\Editor\2021.3.28f1\Editor\Unity.exe
    I have a shortcut with all my game dev .exe and each version of the editor I download created a shortcut to the desktop from that exact path and renames the shortcut from Unity.exe to Unity "editor version".exe

    All unity editor versions are downloaded through Unity Hub
     
  10. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,498
    And what happens if you run "C:\Program Files\Unity\Hub\Editor\2021.3.28f1\Editor\Unity.exe" directly?
     
  11. Leonniar

    Leonniar

    Joined:
    Aug 14, 2018
    Posts:
    24
    I tried both ways , I always get the same thing. Meaning The error "0xC000007B"
     
  12. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,498
    Can you show a screenshot of that error? Can you check Windows Event Log if it contains any more information?
     
  13. Leonniar

    Leonniar

    Joined:
    Aug 14, 2018
    Posts:
    24
    This is the error that I get when running the editor exe : https://imgur.com/a/QTbHupc
    About the other errors, when trying to run a project I get no pop-up and I found the errors through the log.
    Creating a new project also has no pop-up but running the new project gives me this : https://imgur.com/a/cTUZ3ED
    After re-testing everything the error codes are all the same.

    I can't find any error in the Event Viewer, I looked for errors in the last 24hours (since I just re-run everything to test) and I found no Source for unity or anything related and under source "Application Error" again nothing related to unity. I have not used this many times but I don't think I missed something, unless I should be looking under a different source or not only looking for errors ? Please let me know
     
  14. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,498
    When that dialog is open, can you by any chance find Unity.exe in the task manager? If so, can you right click it and press "Create Dump File"?
     
  15. Leonniar

    Leonniar

    Joined:
    Aug 14, 2018
    Posts:
    24
  16. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,498
    Thanks. Something is going awfully wrong, so please bear with me. This will be a bit tricky to investigate as this failure happens before any of our code executes and we're unable to automatically capture the logs.

    First of all, you will need two tools: Visual Studio and Debugging Tools for Windows.

    1. Visual Studio can be installed directly through the Hub, or through downloaded from Microsoft.
    2. Debugging Tools for Windows is an optional component of the Windows SDK. You may already have it installed, look whether the folder "C:\Program Files (x86)\Windows Kits\10\Debuggers\x64" exists. If it doesn't, download the latest version of the Windows SDK installer (from https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/) and install it with this checkbox checked:

    upload_2023-10-11_11-20-58.png

    Now that you have both tools, run cmd.exe as administrator and execute this command line:

    Code (csharp):
    1. "C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\gflags.exe" -i Unity.exe +sls
    This command line enables the "Loader Snaps" feature of Windows for Unity.exe, which will make it dump a whole bunch of debug output into the debugger console when this app runs.

    Next, open up a new instance of Visual Studio, press "Open a project or solution", navigate to the folder Unity.exe is installed in and select it: upload_2023-10-11_11-23-15.png

    Then hit F5 or the "Start" button at the top (which is what F5 ends up doing) and observe what happens. You will probably either get the debugger to stop at some point saying there's an exception/crash somewhere, or it will pop up that same "Application error" dialog.

    In either case, open the "Output" tab in the debugger, copy the contents and paste them here. Secondly, if you don't get the "Application error" dialog but the debugger says there's a crash or an exception, capture a dump using DEBUG -> "Save Dump As..." and send that to me too.

    Finally, disable loader snaps for Unity.exe as it will prevent Unity from running normally (even after we solve this issue) using elevated cmd.exe:

    Code (csharp):
    1. "C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\gflags.exe" -i Unity.exe -sls
     
  17. Leonniar

    Leonniar

    Joined:
    Aug 14, 2018
    Posts:
    24
    I think I did everything correctly. Hitting F5 in visual studio I got am Application Error and this is a pastebin of the output https://pastebin.com/3ksZ6E1c
     
  18. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,498
    This is the issue:

    Code (csharp):
    1. 2084:1cec @ 102003718 - LdrpMinimalMapModule - ENTER: DLL name: C:\Windows\SYSTEM32\MSVCP100.dll
    2. 'Unity.exe' (Win32): Loaded 'C:\Windows\System32\msvcp100.dll'.
    3. 'Unity.exe' (Win32): Unloaded 'C:\Windows\System32\msvcp100.dll'
    4. 2084:1cec @ 102003718 - LdrpMinimalMapModule - RETURN: Status: 0x4000000e
    Looks like msvcp100.dll is wrong architecture on your machine. Did you ever touch this file/copy it manually?

    Can you run this command from "developer command prompt" and paste the outputs here?

    Code (csharp):
    1. dumpbin /headers C:\Windows\SYSTEM32\MSVCP100.dll
     
  19. Leonniar

    Leonniar

    Joined:
    Aug 14, 2018
    Posts:
    24

    Hello and sorry for my late reply, I've run into some medical issues.
    I remember downloading some missing dlls for errors I was running into before, they were msvcrp100, msvcp100, msvcr120, msvcp120. By the time I posted this question I had completely forgotten sorry for not including it, I changed them a week before posting here. I think i tried downloading them from DLL-files as well as having a friend of mine with windows 10 send me theirs so I am guessing all of them might have a problem ?
    Running the command I get
    Code (csharp):
    1. 'dumpbin' is not recognized as an internal or external command,
    2. operable program or batch file.
    I am trying to find what component or tool I am missing to install it but google has been of no help so far, if you can please let me know so I can run the command and post the results

    Thank you for all the help !
     
  20. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,498
    dumpbin should be in the "C:\Program Files (x86)\Windows Kits\10\bin\SDK_VER\x64" directory, where SDK_VER is some specific version of Windows SDK, like 10.0.22621.0.

    You should never download DLLs from the Internet and put them into your system folder manually. At best you will break things. At worst, you will get malware.

    Do you remember the exact list of DLLs you put in there? I would suggest deleting them. Then installing Visual C++ redistributables manually (msvcp100.dll comes from Visual Studio 2010 redistributable package, msvcr120.dll/msvcp120.dll come from Visual Studio 2012 redistributable package):

    2010 redistributable download: https://www.microsoft.com/en-us/download/details.aspx?id=26999
    2013 redistributable download: https://www.microsoft.com/en-us/download/details.aspx?id=40784

    You want the x64 version for both. Generally, Unity should install them for both but since you manually copied the DLLs it must have gotten confused and thought they're already installed.
     
  21. Leonniar

    Leonniar

    Joined:
    Aug 14, 2018
    Posts:
    24
    I don't seem to have a dumpbin file in that directory, I checked all SDK_VER just to make sure.

    I only added the 4 dlls I mentioned above, I did that as they were missing after I had already installed unity and there was a problem with it so for some reason it didn't download them automatically.
    After download the redistributables error still occurs, msvcrp100 and msvcp100 were installed but msvcrp120 and msvcp120 were not. Any ideas why ?
     
  22. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,498
    Try uninstalling the 2013 redistributable from the control panel and then installing it again.
     
  23. Leonniar

    Leonniar

    Joined:
    Aug 14, 2018
    Posts:
    24
    Still no luck...
     
  24. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,498
    What executables do you have in there?

    Can you recap what you've done so far since I discovered the issues with those DLLs? And can you enable gflags again and capture the output? Perhaps there are more issues.
     
  25. Leonniar

    Leonniar

    Joined:
    Aug 14, 2018
    Posts:
    24
    I have a lot of .exe there like "accevent.exe","certmgr.exe","graphedt.exe","mftrace.exe","wsdcodegen.exe" etc. kinda hard to list them all.

    I deleted all the problematic dlls, installed the 2 redistributables you provided through your links. Since there are 2 I installed them in chronological order.
    First time I picked repair on both installers since I already had a version installed (I guess, repair was an option so I tried).
    Second time uninstalled, completely reinstalled the first redistributable and picked repair on the second.
    Lastly uninstalling and completely reinstalling the second redistributable.
    I also gave this a shot : https://www.microsoft.com/en-us/download/details.aspx?id=30679
    Either installing it 1st, 2nd or 3rd or installing it on it's own. None of all these worked and I keep getting the same errors. msvcrp120 and msvcp120 dlls are still missing and were never installed.

    This i the output with gflags enabled: https://pastebin.com/HbikxzK8

    (Quick sidenote, when I try to open "Unity.exe" through visual studio I can only do it with administrator permissions, i don't know if this changes anything. My guess is it doesn't but I am not 100% sure either)
     
  26. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,498
    Can you tell if uninstalling and installing VS2013 is actually adding any files to the system32 folder? You're installing the vcredist_x64.exe, right?
     
  27. Leonniar

    Leonniar

    Joined:
    Aug 14, 2018
    Posts:
    24
    Yep, both of the versions are removing and adding files to the System32 folder.

    I tried it once again to confirm and still no msvcr120 and msvcp120 dlls but I did just noticed these:
    msvcr120_clr0400.dll
    msvcp120_clr0400.dll

    Yeah I am using the vcredist_x64.exe.
     
  28. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,498
    Any chance you could look in %TEMP% for vcredist installer log? Perhaps it will tell us why those DLLs don't get installed.
     
  29. Leonniar

    Leonniar

    Joined:
    Aug 14, 2018
    Posts:
    24
    Certainly, I am not entirely sure which log to grab, I think this is the one, I have a lot of them but from the name this is the last one that got executed
     

    Attached Files:

  30. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,498
    That's the log from 2012 redistributable, you are missing DLLs from the 2013 one. Could you look for that one? Or perhaps try reinstalling it again and grabbing the latest generated log?
     
  31. Leonniar

    Leonniar

    Joined:
    Aug 14, 2018
    Posts:
    24
    Weird, last one I did was the 2013 one. I just reinstalled the 2013 once again and here is the log
     

    Attached Files:

  32. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,498
    So if I'm reading it correctly, this is the issue:

    Code (csharp):
    1. [1E44:1784][2023-10-21T00:11:37]i000: Setting string variable 'WixBundleName' to value 'Microsoft Visual C++ 2013 Redistributable (x64) - 12.0.30501'
    2. [1E44:1784][2023-10-21T00:11:37]i100: Detect begin, 2 packages
    3. [1E44:1784][2023-10-21T00:11:37]i108: Detected compatible package: vcRuntimeMinimum_x64, provider: Microsoft.VS.VC_RuntimeMinimumVSU_amd64,v12, installed: {CB0836EC-B072-368D-82B2-D3470BF95707}, version: 12.0.40660, chained: {A749D8E6-B613-3BE3-8F5F-045C84EBA29B}
    4. [1E44:1784][2023-10-21T00:11:37]i103: Detected related package: {CB0836EC-B072-368D-82B2-D3470BF95707}, scope: PerMachine, version: 12.0.40660.0, language: 0 operation: Downgrade
    5. [1E44:1784][2023-10-21T00:11:37]i108: Detected compatible package: vcRuntimeAdditional_x64, provider: Microsoft.VS.VC_RuntimeAdditionalVSU_amd64,v12, installed: {5740BD44-B58D-321A-AFC0-6D3D4556DD6C}, version: 12.0.40660, chained: {929FBD26-9020-399B-9A7A-751D61F0B942}
    6. [1E44:1784][2023-10-21T00:11:37]i103: Detected related package: {5740BD44-B58D-321A-AFC0-6D3D4556DD6C}, scope: PerMachine, version: 12.0.40660.0, language: 0 operation: Downgrade
    The version that you're installing (that I linked) is 12.0.30501. Whereas it thinks that you already have version 12.0.40660 installed for some reason.

    Google reveals that 12.0.40660 was released in a newer update, and is hosted on this page: https://support.microsoft.com/en-us...-package-5b2ac5ab-4139-8acc-08e2-9578ec9b2cf1

    Perhaps try installing that one?
     
  33. Leonniar

    Leonniar

    Joined:
    Aug 14, 2018
    Posts:
    24
    When installing it I get a prompt to repair my installation which I did. msvcr120 and msvcp120 are finally installed. After all this time it seems like it's FINALLY working now ! I will do some more testing, open more of my projects, try some older ones, play test a little and update if anything comes up. Thank you so much for the time and effort you put into this, I really appreciate it !