Summary: | qpixmap Out of memory - crasch app when using KSystemtray | ||
---|---|---|---|
Product: | [Plasma] kicker | Reporter: | Karim Ryde <karye2004> |
Component: | systemtray | Assignee: | Aaron J. Seigo <aseigo> |
Status: | RESOLVED NOT A BUG | ||
Severity: | crash | CC: | kde.org, l.lunak |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Karim Ryde
2005-01-28 17:10:13 UTC
It seems the application either causes memory corruption or provides an invalid pixmap. Please report the problem to the application developer. I'm the developer. What leads you to these conclusions? The apps works ok in KDE-3.3.2 but crasches in KDE-3.4_beta1. checkpng says pixmaps are ok. Maybe it's memory corruption... Checkpng checks the images on the disk. By invalid pixmap I meant QPixmap object that the application passes to the function. And since the linked CVS commit is fairly trivial I find it unlikely the problem is there. The Qt error message is most likely triggered by invalid pixmap size causing an attempt to allocate huge amount of memory. I suggest you put some debugging code in the function added by the commit that would print information about the pixmap, or you could run you application in Valgrind to find memory corruptions. And if it will still appear to be a KDE problem, please provide some better testcase for the problem. A frontend for something related to Gentoo packages is not something everybody can try. I will create a small app by stripping all gentoo specific code but leaving all QPixmap related stuff. Though I wonder how this can be bugging: ... KIconLoader *ldr = KGlobal::iconLoader(); pxKuroo = ldr->loadIcon("kuroo", KIcon::NoGroup, KIcon::SizeSmallMedium, KIcon::DefaultState, NULL, true); pxEmerging = ldr->loadIcon("kuroo1", KIcon::NoGroup, KIcon::SizeSmallMedium, KIcon::DefaultState, NULL, true); m_systemTray->setPixmap( pxKuroo ); .... (And I've tested different groups too...) Do you know if the pixmaps must be present in all sizes? I have them now like: hi16-app-kuroo.png, hi32-app-kuroo.png, hi16-app-kuroo1.png, hi32-app-kuroo1.png Bug in the app were due to corrupted stack. KSystemtray was not at fault. |