Closed Bug 74503 Opened 23 years ago Closed 23 years ago

Crash in ImageCache.cpp when cache disabled

Categories

(Core :: Graphics: ImageLib, defect, P4)

x86
Linux
defect

Tracking

()

VERIFIED FIXED
mozilla0.9

People

(Reporter: jag+mozbugs, Assigned: pavlov)

Details

(Keywords: crash)

Attachments

(3 files)

To prefs.js add:

user_pref("browser.cache.enable", false);

(Additionally, have:
user_pref("browser.enable.cache", false);
user_pref("browser.cache.disk.enable", false);
not sure if it's needed but I'm too tired/lazy to figure out right now)

start mozilla. See it crash.

The problem is that an assumption is made about the cache always being
available, which is wrong (GetCacheSession(...)).

I'll attach my quick hack which "fixed" this for me.
+    //NS_ASSERTION(gSession, "Unable to create a cache session");
doesn't make much sense, either add a line that outputs a warning or don't put 
anything back.
Sorry timeless, next time I'll more explicitely say "this is _not_ supposed to
be checked in as is, it is merely an indication of what I did to work around /
fix this bug" to save you the trouble of reviewing the code :-)
Attached patch patchSplinter Review
Status: NEW → ASSIGNED
Keywords: crash, patch
Priority: -- → P4
Target Milestone: --- → mozilla0.9
r=jag
Attached patch patch that worksSplinter Review
this patch actually compiles and doesn't crash :-)
Erh, duh. r=jag
sr=blizzard
fixed
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Verified
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: