Bug 55643

Summary: viewing large images crashes X-Server / complete system
Product: [Applications] konqueror Reporter: Ernst Bachmann <ebachmann>
Component: generalAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: large png file

Description Ernst Bachmann 2003-03-07 15:06:55 UTC
Version:            (using KDE KDE 3.1)
Installed from:    Gentoo Packages
OS:          Linux

when clicking on a large (5000x6000 pixels) png file in konqueror (file browser mode), it attempts to view it in it's embedded image viewer.
Now that viewer tries to allocate a XPixmap of that size (I think). The X-Server now tries to allocate ridiculous ammounts of memory, causing the kernel to kill it (If i got luck) or bringing the complete system to a halt.

Opening that file with kuickshow produces the same effect, so the bug is probably not located in konqueror, but in the kde libs or QT.

Possible solution: add a configuration option to limit the maximum size of an XPixmap the kde libs (or QT) will try to allocate.
Comment 1 Ernst Bachmann 2003-03-07 15:22:50 UTC
Created attachment 1127 [details]
large png file

this png file causes my 256MB box to crash. (5000x6000 pixels, all white)
The file I first noticed the bug with was created by xpertmud (a KDE MUD
client), which needed about 1GB of Ram to save it (using KImageIO, I think),
but it was >2MB, so I couldn't upload it here.
Comment 2 Tommi Tervo 2003-11-03 20:43:08 UTC

*** This bug has been marked as a duplicate of 39693 ***