Error: AutoCompleteUtils: Could not write to cache file: [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIFileOutputStream.init]" nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)" location: "JS frame :: file:///home/steakdepapillon/Devel/fennec/mobilebase/mobile/dist/bin/components/AutoCompleteCache.js :: saveCache :: line 182" data: no] Source File: file:///home/steakdepapillon/Devel/fennec/mobilebase/mobile/dist/bin/components/AutoCompleteCache.js Line: 192 Since a few days I seeing this a lot
Does this happen only at startup every time? Only at startup after a new build?
I'm seeing it every times on desktop but only after a delay, not at startup, I'll try to pay more attention to it next time. (I wonder if this file is corrupted or not on my computer)
Created attachment 440765 [details] [diff] [review] patch I introduced this error when I added the bookmark listener. The AutoCompleteUtils class is not initialized so the file is null. This patch puts a check to not initialize twice and it initializes from the bookmark listener. Tests run without any errors now.
Assignee: nobody → mark.finkle
Attachment #440765 - Flags: review?(21)
Comment on attachment 440765 [details] [diff] [review] patch Good catch! I'll see in the next few day if I see the error again.
Attachment #440765 - Flags: review?(21) → review+
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.