Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

editor_doc_cache errors on editor startup #96798

Closed
KoBeWi opened this issue Sep 10, 2024 · 4 comments · Fixed by #97000
Closed

editor_doc_cache errors on editor startup #96798

KoBeWi opened this issue Sep 10, 2024 · 4 comments · Fixed by #97000

Comments

@KoBeWi
Copy link
Member

KoBeWi commented Sep 10, 2024

Tested versions

4.4 97ef3c8
I've been seeing it for a few versions.

System information

Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 (NVIDIA; 31.0.15.4633) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)

Issue description

Sometimes when I open editor, I get "Unable to write file" error for editor_doc_cache. This also causes tmp files to accumulate in cache directory:
image

Also, not sure if related, but the dialog appears every time I save scene:

godot.windows.editor.dev.x86_64_EpKgM8KcXE.mp4

I noticed it only in dev builds and it seems random.

EDIT:
I tried deleting the file and seems like adb is owning it??
image

Steps to reproduce

  1. No idea. Open editor and it can happen

Minimal reproduction project (MRP)

N/A

@Hilderin
Copy link
Contributor

Hilderin commented Sep 12, 2024

I was able to setup an Android build for a simple test project but was not able to reproduce the errorwhere adb locks the file. The reason why this issue happens only for dev build is probably because the editor_doc_cache file is regenerated when the hash of the version changed.

@Hilderin
Copy link
Contributor

Hilderin commented Sep 12, 2024

I finally was able to reproduce the problem... while not trying to reproduce it! I got the error 2 times and each time it's because I let my PC running without Godot running but with an adb.exe processing running in the background. The next time I load a Godot project I got the error.

adb.exe process command line: adb -L tcp:5037 fork-server server --reply-fd 628

My hypothesis right now is that this process is running in the working folder of the editor and for some reason adb locks files in the working folder at some point. I had to set Godot editor in self-contained mode to reproduce the error. One question is why adb.exe is still running if the setting to close it on exit is on.

@KoBeWi Can you show me your Android export settings, Debug settings like "Small Deploy with Network FileSystem" and can you confirm that you are using self-contained mode for the editor?
image

image

@KoBeWi
Copy link
Member Author

KoBeWi commented Sep 12, 2024

I'm using self-contained mode for my dev builds. My export preset uses default settings and I have small deploy disabled.

@Hilderin
Copy link
Contributor

I was finally able to reproduce the issue at each editor startup and found a workaround to the problem #97000 if you want to try it.

@akien-mga akien-mga added this to the 4.4 milestone Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants