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

"Problems writing cached data file" #63605

Closed
roblourens opened this issue Nov 21, 2018 · 7 comments
Closed

"Problems writing cached data file" #63605

roblourens opened this issue Nov 21, 2018 · 7 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@roblourens
Copy link
Member

Many errors regarding cached data in Insiders today:

console.ts:134 [Extension Host] Rejected cached data from file: /Users/roblou/Library/Application Support/Code - Insiders/CachedData/c348be666adf9650b1ae1d212f019e6e9f226b7d/index-eb31c0dc7851bb6b80b6ed3b3027cee9.code (at Object.t.validateConfigurationOptions.t.function.t.onNodeCachedData.t.onNodeCachedData (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/loader.js:9:48))
t.log @ console.ts:134
console.ts:134 [Extension Host] Rejected cached data from file: /Users/roblou/Library/Application Support/Code - Insiders/CachedData/c348be666adf9650b1ae1d212f019e6e9f226b7d/bindings-878a90d896a8c8d332b9f7f8a6752e51.code (at Object.t.validateConfigurationOptions.t.function.t.onNodeCachedData.t.onNodeCachedData (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/loader.js:9:48))
t.log @ console.ts:134
console.ts:134 [Extension Host] Rejected cached data from file: /Users/roblou/Library/Application Support/Code - Insiders/CachedData/c348be666adf9650b1ae1d212f019e6e9f226b7d/index-bf7947859778de1e6e02eefd3476fc7f.code (at Object.t.validateConfigurationOptions.t.function.t.onNodeCachedData.t.onNodeCachedData (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/loader.js:9:48))
t.log @ console.ts:134
console.ts:134 [Extension Host] Problems writing cached data file: /Users/roblou/Library/Application Support/Code - Insiders/CachedData/c348be666adf9650b1ae1d212f019e6e9f226b7d/index-39bad1156a33a997b02c7cbb4dcc539a.code (at Object.t.validateConfigurationOptions.t.function.t.onNodeCachedData.t.onNodeCachedData (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/loader.js:9:155))
t.log @ console.ts:134
console.ts:134 [Extension Host] Error: ENOENT: no such file or directory, unlink '/Users/roblou/Library/Application Support/Code - Insiders/CachedData/c348be666adf9650b1ae1d212f019e6e9f226b7d/index-39bad1156a33a997b02c7cbb4dcc539a.code' (at Object.t.validateConfigurationOptions.t.function.t.onNodeCachedData.t.onNodeCachedData (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/loader.js:9:215))
t.log @ console.ts:134
console.ts:134 [Extension Host] Problems writing cached data file: /Users/roblou/Library/Application Support/Code - Insiders/CachedData/c348be666adf9650b1ae1d212f019e6e9f226b7d/safer-bb8a32b320acb9f8972624b678fec941.code (at Object.t.validateConfigurationOptions.t.function.t.onNodeCachedData.t.onNodeCachedData (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/loader.js:9:155))
t.log @ console.ts:134
console.ts:134 [Extension Host] Error: ENOENT: no such file or directory, unlink '/Users/roblou/Library/Application Support/Code - Insiders/CachedData/c348be666adf9650b1ae1d212f019e6e9f226b7d/safer-bb8a32b320acb9f8972624b678fec941.code' (at Object.t.validateConfigurationOptions.t.function.t.onNodeCachedData.t.onNodeCachedData (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/loader.js:9:215))
t.log @ console.ts:134
console.ts:134 [Extension Host] Git extension API method 'getGitPath' is deprecated. (at c.r.value (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/git/dist/main.js:53:44825))
t.log @ console.ts:134
console.ts:134 [Extension Host] Problems writing cached data file: /Users/roblou/Library/Application Support/Code - Insiders/CachedData/c348be666adf9650b1ae1d212f019e6e9f226b7d/index-eb31c0dc7851bb6b80b6ed3b3027cee9.code (at Object.t.validateConfigurationOptions.t.function.t.onNodeCachedData.t.onNodeCachedData (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/loader.js:9:155))
t.log @ console.ts:134
console.ts:134 [Extension Host] Error: ENOENT: no such file or directory, unlink '/Users/roblou/Library/Application Support/Code - Insiders/CachedData/c348be666adf9650b1ae1d212f019e6e9f226b7d/index-eb31c0dc7851bb6b80b6ed3b3027cee9.code' (at Object.t.validateConfigurationOptions.t.function.t.onNodeCachedData.t.onNodeCachedData (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/loader.js:9:215))
t.log @ console.ts:134
console.ts:134 [Extension Host] Problems writing cached data file: /Users/roblou/Library/Application Support/Code - Insiders/CachedData/c348be666adf9650b1ae1d212f019e6e9f226b7d/bindings-878a90d896a8c8d332b9f7f8a6752e51.code (at Object.t.validateConfigurationOptions.t.function.t.onNodeCachedData.t.onNodeCachedData (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/loader.js:9:155))
t.log @ console.ts:134
console.ts:134 [Extension Host] Error: ENOENT: no such file or directory, unlink '/Users/roblou/Library/Application Support/Code - Insiders/CachedData/c348be666adf9650b1ae1d212f019e6e9f226b7d/bindings-878a90d896a8c8d332b9f7f8a6752e51.code' (at Object.t.validateConfigurationOptions.t.function.t.onNodeCachedData.t.onNodeCachedData (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/loader.js:9:215))
t.log @ console.ts:134
console.ts:134 [IPC Library: Search] Problems writing cached data file: /Users/roblou/Library/Application Support/Code - Insiders/CachedData/c348be666adf9650b1ae1d212f019e6e9f226b7d/extend-node-b1de32580699b54f4e0f2a99636bc673.code
t.log @ console.ts:134
console.ts:134 [IPC Library: Search] Error: ENOENT: no such file or directory, unlink '/Users/roblou/Library/Application Support/Code - Insiders/CachedData/c348be666adf9650b1ae1d212f019e6e9f226b7d/extend-node-b1de32580699b54f4e0f2a99636bc673.code'
t.log @ console.ts:134
console.ts:134 [Extension Host] Problems writing cached data file: /Users/roblou/Library/Application Support/Code - Insiders/CachedData/c348be666adf9650b1ae1d212f019e6e9f226b7d/index-bf7947859778de1e6e02eefd3476fc7f.code (at Object.t.validateConfigurationOptions.t.function.t.onNodeCachedData.t.onNodeCachedData (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/loader.js:9:155))
t.log @ console.ts:134
console.ts:134 [Extension Host] Error: ENOENT: no such file or directory, unlink '/Users/roblou/Library/Application Support/Code - Insiders/CachedData/c348be666adf9650b1ae1d212f019e6e9f226b7d/index-bf7947859778de1e6e02eefd3476fc7f.code' (at Object.t.validateConfigurationOptions.t.function.t.onNodeCachedData.t.onNodeCachedData (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/loader.js:9:215))
t.log @ console.ts:134
console.ts:134 [IPC Library: Search] Problems writing cached data file: /Users/roblou/Library/Application Support/Code - Insiders/CachedData/c348be666adf9650b1ae1d212f019e6e9f226b7d/bom-handling-d53b9dff6c48d2d055defb0be4dcaad5.code
t.log @ console.ts:134
console.ts:134 [IPC Library: Search] Error: ENOENT: no such file or directory, unlink '/Users/roblou/Library/Application Support/Code - Insiders/CachedData/c348be666adf9650b1ae1d212f019e6e9f226b7d/bom-handling-d53b9dff6c48d2d055defb0be4dcaad5.code'
t.log @ console.ts:134
console.ts:134 [IPC Library: Search] Problems writing cached data file: /Users/roblou/Library/Application Support/Code - Insiders/CachedData/c348be666adf9650b1ae1d212f019e6e9f226b7d/legacy-streams-b45d516d8f95b68d180e176343c94d27.code
t.log @ console.ts:134
console.ts:134 [IPC Library: Search] Error: ENOENT: no such file or directory, unlink '/Users/roblou/Library/Application Support/Code - Insiders/CachedData/c348be666adf9650b1ae1d212f019e6e9f226b7d/legacy-streams-b45d516d8f95b68d180e176343c94d27.code'
t.log @ console.ts:134
console.ts:134 [IPC Library: Search] Problems writing cached data file: /Users/roblou/Library/Application Support/Code - Insiders/CachedData/c348be666adf9650b1ae1d212f019e6e9f226b7d/index-7beb6804d1356a455980f8cf61f1a14f.code
t.log @ console.ts:134
console.ts:134 [IPC Library: Search] Error: ENOENT: no such file or directory, unlink '/Users/roblou/Library/Application Support/Code - Insiders/CachedData/c348be666adf9650b1ae1d212f019e6e9f226b7d/index-7beb6804d1356a455980f8cf61f1a14f.code'
@jrieken jrieken added this to the November 2018 milestone Nov 22, 2018
@jrieken jrieken added the bug Issue identified by VS Code Team member as probable bug label Nov 22, 2018
@jrieken
Copy link
Member

jrieken commented Nov 22, 2018

@roblourens Can you check if that folder exists for you? /Users/roblou/Library/Application Support/Code - Insiders/CachedData/c348be666adf9650b1ae1d212f019e6e9f226b7d should really be there...

@jrieken jrieken added the info-needed Issue requires more information from poster label Nov 22, 2018
@jrieken
Copy link
Member

jrieken commented Nov 22, 2018

console.ts:134 [Extension Host] Rejected cached data from file: /Users/roblou/Library/Application Support/Code - Insiders/CachedData/c348be666adf9650b1ae1d212f019e6e9f226b7d/bindings-878a90d896a8c8d332b9f7f8a6752e51.code

That is weird... It means that we have generated cached data that we are now not accepting... This one is the file 'binding.js' for which we only happened to have one (the binding-npm-module) and which is used by spdlog...

Two possibilities

  • two or mores processes (shared and exthost) generate different data for the same JS input file
  • one process reads the cached data file when it's not yet fully written

both would cause a rejection and subsequent deletion of the file in question. Question is which of them causes this...

@roblourens Can you reproduce this or does this just happen once in a while? Also cc @chrmarti who has reported a similar issue...

@chrmarti
Copy link
Contributor

This seems to happen quite regularly on my machine.

@jrieken
Copy link
Member

jrieken commented Nov 26, 2018

Hm... This also happens when having an 'atomic' save logic (write to tmp, then rename)

@roblourens
Copy link
Member Author

I see it today too, and the directory with the new hash does exist.

@roblourens
Copy link
Member Author

It happens every time I reload the window:

image

jrieken added a commit to microsoft/vscode-loader that referenced this issue Nov 27, 2018
jrieken added a commit that referenced this issue Nov 27, 2018
@jrieken
Copy link
Member

jrieken commented Nov 27, 2018

The problem must be that different instances of V8 read the same data but don't accept it. We don't really know why that is and what makes V8 reject data. I have pushed a change that adds a static name seed to each loader instance so that cached data isn't shared anymore between different loader-instances. This roughly adds 50 files to the cached data dir, but with that change I cannot reproduce this issue...

@jrieken jrieken closed this as completed Nov 27, 2018
@jrieken jrieken removed the info-needed Issue requires more information from poster label Dec 6, 2018
@roblourens roblourens added the verified Verification succeeded label Dec 7, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

3 participants