KPatience dies with ASSERT: "!pixmap().isNull()"

Bug #285265 reported by Roland Hieber
80
This bug affects 6 people
Affects Status Importance Assigned to Milestone
KDE Games
Fix Released
High
kdegames (Ubuntu)
Fix Released
Medium
Unassigned
Nominated for Intrepid by prunier charly

Bug Description

I am using Gnome on Intrepid which I upgraded from Hardy. If I try to start KPatience, the program windows becomes visibile and immediately after that the program crashes with the following lines on the terminal:

QFSFileEngine::open: No file name specified
ASSERT: "!pixmap().isNull()" in file /build/buildd/kdegames-4.1.2/kpat/card.cpp, line 470
Aborted (core dumped)

Revision history for this message
Harald Sitter (apachelogger) wrote :

Please install kdegames-dbg and try to get a backtrace for this crash. https://wiki.ubuntu.com/Backtrace
Thank you.

Changed in kdegames-kde4:
status: New → Incomplete
Revision history for this message
Roland Hieber (rohieb) wrote :

Hmm... it works now, after I reinstalled the package kpat...

Revision history for this message
Harald Sitter (apachelogger) wrote :

Maybe the package just didn't get upgraded properly.

Closing bug.

Changed in kdegames:
status: Incomplete → Invalid
Revision history for this message
prunier charly (psyko-charly) wrote :

i got the same problem with a fresh install of intrepid with kde4.
a friend got the same problem too.

Revision history for this message
prunier charly (psyko-charly) wrote :

I got the same problem, and a friend too

Changed in kdegames:
status: Invalid → Confirmed
Revision history for this message
Roland Hieber (rohieb) wrote :

I saw the bug once again today, here is the debugging information.

Revision history for this message
Roland Hieber (rohieb) wrote :

I got kpat-4:4.1.3-0ubuntu1~intrepid1 from intrepid-backports today, and the bug is still there.

Revision history for this message
prunier charly (psyko-charly) wrote :

add strace

Revision history for this message
Guillaume Martres (smarter) wrote :

[...]
open("/28.png.jpg", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/28.png.mng", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/28.png.pbm", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/28.png.pcx", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/28.png.pgm", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
[...]
Something, somewhere, is really wrong. Does someone has an idea of what it could be? :]

Revision history for this message
Benjamin Colard (scrounch) wrote :

the same

Revision history for this message
Benjamin Colard (scrounch) wrote :

Application : KPatience (kpat), signal SIGABRT

(no debugging symbols found)
...
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0x7fb8f70c7730 (LWP 2000)]
(no debugging symbols found)
...
(no debugging symbols found)
[KCrash handler]
#4 0x00007fb8f092afd5 in raise () from /lib/libc.so.6
#5 0x00007fb8f092cb43 in abort () from /lib/libc.so.6
#6 0x00007fb8f4e366b5 in qt_message_output () from /usr/lib/libQtCore.so.4
#7 0x00007fb8f4e367fd in qFatal () from /usr/lib/libQtCore.so.4
#8 0x0000000000419d7c in _start ()
#0 0x00007fb8f099ff15 in waitpid () from /lib/libc.so.6

Revision history for this message
pfaelzerchen (pfaelzerchen) wrote :

I have the same problem in Kubuntu Intrepid. Reinstalling (purging the packages and installing them again) kpat and kdegames-card-data had no effect.

I attached my backtrace to this report.

Revision history for this message
Harald Sitter (apachelogger) wrote : Re: [Bug 285265] Re: KPatience dies with ASSERT: "!pixmap().isNull()"

Someone please try with a new user.

Thank you.

Revision history for this message
Roland Hieber (rohieb) wrote :

There is no difference when I to start kpat with a newly created user.

Revision history for this message
Harald Sitter (apachelogger) wrote :

I am seriously running out of ideas.

The problem seems to be what Guillaume pointed to in an earlier comment, the portions where kpat searches for the images files in / don't appear in a working setup.

However, I have no clue what the difference between a working and a broken setup is.
I installed a clean Kubuntu 8.10 and installed kpat => works
I installed a clean Ubuntu 8.10 and installed kpat => works
Due to earlier comments I am lead to belive that it would not work in fresh installations, even though it does. So we can rule out a dependency issue.
Since it is not working with a new user we can also rule out a caching or configuration problem.

The only thing we know for sure is that the problem appears in rendering/opening the card decks, since the assert kicks in when the card deck pixmap is empty.

It appears the deck information get cached using the KDE system cache, a natural guess would be that the cache just didn't get generated, my testing indicates different though (also the strace shows clear documentation of successful ksycoca queries).

So since I am not sure how to processed I'd really appreciate some ideas (even very absurd ones ;-). Also talking to upstream could help a great deal.
Otherwise the last option we have is adding loads of kDebug messages to the affected code. That is going to be a pretty nice waste of resource though since we would have to be poking the code blinding because no one within the development team is affected by this issue.

Revision history for this message
Harald Sitter (apachelogger) wrote :

Oh, another thing we could try:
* run kdebugdialog
* activate everything
* start kpat from a console
* post a copy of the complete output

...
* run kdebugdialog again and deactivate everything, otherwise you will end up with loads of debug output for all KDE 4 applications :)

Revision history for this message
Roland Hieber (rohieb) wrote :

Here is the debug output with everything checked in kdebugdialog.

After that, I only get a windows of KCrash saying that "The application KPatience (kpat) crashed and caused the signal 6 (SIGABRT)." I guess that KCrash generates the same backtrace as already provided in a previous comment, so I'm not posting it here.

Revision history for this message
cuertymet (cuertymet) wrote :

i have the same problem kpat crash in my new and fresh instalation of intrepid.
The application KPatience (kpat) crashed and caused the signal 6 (SIGABRT).
The problem disapear installing intenational support for kde. (kde-i18n-es). I'm using gnome.
excuse my poor english.
Espero haber ayudado.

Revision history for this message
JanMalte (janmalte) wrote :

Take a look here:
https://bugs.kde.org/show_bug.cgi?id=173932#c10

Seems to be a multilingual problem. Hope it will be fixed soon

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

This has been fixed both for KDE 4.2 and KDE 4.1.4.

Changed in kdegames:
importance: Undecided → Medium
status: Confirmed → Fix Released
Changed in kdegames:
status: Unknown → Fix Released
Revision history for this message
Roland Hieber (rohieb) wrote :

I installed the new 4.1.4 packages from intrepid-updates today, and it works. Thanks.

Changed in kdegames:
importance: Unknown → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.