godot: Can not edit projects in Godot 3.5

Godot version

v3.5.stable.official [991bb6ac7]

System information

Windows 10 (Version 21H2 Build 19044.1889), CPU: Intel I7-9700k x64, GPU: MSI GeForce GTX 1660 Driver Version 31.0.15.1694

Issue description

I am able to run projects from the launcher but not edit them. When trying to edit a project in Godot, the Godot splash screens shows up, then crashes after a second. This is what the log shows after the crash

ERROR: Condition "res != ((HRESULT)0x00000000)" is true. Returned: String()
   at: get_system_dir (platform/windows/os_windows.cpp:3677)
ERROR: Condition "res != ((HRESULT)0x00000000)" is true. Returned: String()
   at: get_system_dir (platform/windows/os_windows.cpp:3677)

While on Godot 3.4 I did not face this issue

Steps to reproduce

  1. Open a project

Minimal reproduction project

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 41 (12 by maintainers)

Most upvoted comments

The best thing to do would probably be to just give a better error message if so few people have had problems with it. It also seems to be limited to just 3.5 so it should be fine for people to just come look at this thread if they have this problem.

It does not look like mine!

I am sooooo sorry for missing that and wasting your guys time, this has now fixed it and I am going to close the ticket.

Once again so sorry for missing that, but I guess that is what happens when you debug when you are sleep deprived

I wonder if there is anything that can be done on Godot’s side. Ultimately this is an issue with Windows not doing a great job with Onedrive synchronization, but it is a bad user experience to download Godot, create a project and instantly crash without any way of knowing what just happened.

I am having this same problem. I can link a procmon log but I don’t have a way of fixing it right now.

@siddharth-narayan The same questions and troubleshooting steps from the beginning apply to you. It’s likely a windows problem based on your custom configuration of Windows. The procmon log is for you to identify what configuration you’ve done so you can try resetting it back to defaults at least for testing.

I don’t know why Godot cares about these folders, but this section of code has been unchanged for 3 years. Perhaps code that calls this section has changed more recently. However, at least hundreds of people if not thousands have been using Godot 3.5, even before 3.4 was released, and so far it’s limited to the two of you. Some code might be able to be changed to account for your particular situations, but only if you can identify the cause on your system and it is apparent that it should be addressed in Godot rather than on your individual system. Since it’s not reproducible by any dev yet, you’re the only ones who can troubleshoot.

@TheDjgamerProductions Did you remember to run regedit as administrator? It annoyingly won’t ask you automatically.

Can you create and edit a new project from 3.5?

The code and line specified is here in the get_system_dir function: https://github.com/godotengine/godot/blob/991bb6ac74ac8c09d7683041b50a8ced3a2defb1/platform/windows/os_windows.cpp#L3677

Here is the gdscript version and documentation page: https://docs.godotengine.org/en/stable/classes/class_os.html#class-os-method-get-system-dir

Looks like it can’t access one or more of your system directories. https://docs.godotengine.org/en/stable/classes/class_os.html#enum-os-systemdir

Go through all of them and ensure that the user running Godot has read and write access to all of those named folders. Also make sure of your godot projects directory, and your %appdata%\godot folders. You may need to take ownership and reset permissions. Also run a file system check before changing permissions.

FOLDERID_Desktop, FOLDERID_Downloads, etc shown in the C++ code are defined by the windows API If you search for them here, you’ll find default paths, eg FOLDERID_Ringtones = %LOCALAPPDATA%\Microsoft\Windows\Ringtones https://docs.microsoft.com/en-us/windows/win32/shell/knownfolderid

If there’s still trouble after these, please attach your full log found in %appdata%\godot. And your if you are accessing the project folder on a local drive and what file system.