Page 1 of 1

errors with cache using/creating

PostPosted: Mon Nov 10, 2014 11:28 am
by dam4rus
Hi. I have some problem with Chromium's cache. First time we run our program and the cache folder is empty the files are downloaded to the cache folder, but never used afterwards. Next time i try to access the same web page, the cache is ignored and the files are downloaded again.

Another problem is, after the first run we get some error messages:
[1110/163209:ERROR:cache_util_win.cc(20)] Unable to move the cache: 5
[1110/163209:ERROR:cache_util.cc(132)] Unable to move cache folder c:\Users\<userName>\AppData\Local\<cacheDir> to c:\Users\<userName>\AppData\Local\old_<cacheDir>_000
[1110/163209:ERROR:cache_creator.cc(132)] Unable to create cache

Looking at the code of Chromium, on Windows it uses MoveFileEx to rename the cache folder, which fails with an error code of 5: ERROR_ACCESS_DENIED. I tried to run our application with Admin rights, but the result was the same. Our program already writes to a folder very similiar to the cache folder (also located in AppData\Local\) and we never run into this problem. We use a separate exe as the child process and don't use sandboxing, if this has anything to do with the problem, then we would need a massive reworking of our application...

Re: errors with cache using/creating

PostPosted: Mon Nov 10, 2014 2:43 pm
by magreenblatt
Are you specifying a CefSettings.cache_path value?

Re: errors with cache using/creating

PostPosted: Tue Nov 11, 2014 4:15 am
by dam4rus
Yes, i did. So far it looks kinda random, since today i didn't encountered this problem, but yesterday the error message showed up every time i started CEF.

Re: errors with cache using/creating

PostPosted: Tue Nov 11, 2014 9:59 am
by magreenblatt
Seems related to viewtopic.php?f=6&t=11492

Re: errors with cache using/creating

PostPosted: Thu Nov 13, 2014 6:42 pm
by tomst