we create lots of identical 236color palettes



Core Graveyard
GFX: Win32
16 years ago
9 years ago


(Reporter: timeless, Assigned: dcone (gone))


Windows 98

Firefox Tracking Flags

(Not tracked)




(1 attachment)



16 years ago
GDI Leak tracking tools for w9x are available in source only form from:
I'm going to attach a zip containing the compiled GDIUsage.exe and MenuUsage.exe
(compiled by kaie)

Steps, run GDIUsage, take snapshot, run mozilla, open lots of mozilla things,
click compare, click details in the compare collumn, type 'p' to jump to the
palette section, press down to see each palette in turn, focus on the 236color

For my first test, I took a snapshot, and opened a new mozilla window, my
homepage is a randomizer, this time it took me to
http://www.jobnext.com/resources/top10interviewtips.shtml which has 3 images all
gifs. I clicked compare, details and found 3 new identical 236 color palettes.

Comment 1

16 years ago
Created attachment 79998 [details]
GDIUsage.exe and MenuUsage.exe

Comment 2

16 years ago
bugs in report: I'm using a recent branch build instead of the actual release or
trunk [Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0rc1) Gecko/20020416.17].

Comment 3

16 years ago
Moving bugs to new Image: GFX component
Component: ImageLib → Image: GFX

Comment 4

16 years ago
saari?  can you comment on this?
Target Milestone: --- → mozilla1.1beta

Comment 5

16 years ago
probably, palette ownership is per image... we should create one shared palette
and just delete it when shutting down.

Comment 6

16 years ago
How much memory does each palette take up?

Comment 7

16 years ago
*** Bug 146001 has been marked as a duplicate of this bug. ***

Comment 8

16 years ago
This happens in the windows image code.. can you take a look and see if this 
could be a good win?
Assignee: pavlov → dcone

Comment 9

15 years ago
Each image will create it own palette.. for 8 bit images.  Has to be this way..
currently we dont even have 8 bit images so this is not an issue.  It will come
back soon... as soon as I check in my 8 bit gif change.. but the memory savings
is huge when going from 24 bit to 8 bit.  Anyway.. marking this works for me..
since this is no longer true.  
Last Resolved: 15 years ago
Resolution: --- → WORKSFORME

Comment 10

15 years ago
*** Bug 143909 has been marked as a duplicate of this bug. ***


15 years ago
Component: Image: GFX → GFX: Win32
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.