Bug 274096 - Crashes related Oxygen::TileSet::render
Summary: Crashes related Oxygen::TileSet::render
Status: RESOLVED NOT A BUG
Alias: None
Product: Oxygen
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Hugo Pereira Da Costa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-25 12:29 UTC by Georg Wittenburg
Modified: 2011-06-15 19:10 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Backtrace (13.00 KB, application/octet-stream)
2011-05-25 12:29 UTC, Georg Wittenburg
Details
2nd backtrace (5.16 KB, application/octet-stream)
2011-05-25 12:29 UTC, Georg Wittenburg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Georg Wittenburg 2011-05-25 12:29:24 UTC
Created attachment 60297 [details]
Backtrace

Version:           unspecified (using KDE 4.6.3) 
OS:                Linux

I've seen two crashes of Kontact and Dr. Konqi with Oxygen::TileSet::render featured prominently in the backtrace (see below). No user interaction took place with these applications immediately prior to the crash. This is a new laptop, so I don't rule out that it might be an X / driver issue.

Reproducible: Sometimes
Comment 1 Georg Wittenburg 2011-05-25 12:29:57 UTC
Created attachment 60298 [details]
2nd backtrace
Comment 2 Georg Wittenburg 2011-05-25 12:32:16 UTC
Let me specify "no user interaction": I didn't click on anything, but I can't rule out any onMouseOver-like events.
Comment 3 Hugo Pereira Da Costa 2011-05-25 12:38:51 UTC
mmm. Floating point exception in QPainter.

I just looked into QPainter.cpp code at the guilty lines mentionned by the crash.

sx = qRound(sx) % qRound(sw);        
sy = qRound(sy) % qRound(sh);

I guess either sw or sh (which are the pixmaps size) must be zero. 
Meaning. Invalid pixmap. I'll digg into the tileset code ... (this should not happen)
Comment 4 Hugo Pereira Da Costa 2011-05-25 12:41:08 UTC
PS: I do not think it is driver related.
Comment 5 Hugo Pereira Da Costa 2011-05-25 13:09:23 UTC
mmmm. That's not it.
QPainter, line 6696 checks for the validity of the pixmap.

    if (!d->engine || pixmap.isNull() || r.isEmpty())

So no clue :(
Comment 6 Georg Wittenburg 2011-06-15 19:10:44 UTC
After more time with this new laptop, I'm now pretty certain that it's an X or Intel i915 driver issue. Evidence is that large batch processes crash, but only when run from an X terminal window, not if run with X disabled.

Sorry for the trouble. :)