Summary: | selecting File --> Print --> causes crash in konqueror with ASSERT in qprintdialog_unix.cpp \"index >= 0\" | ||
---|---|---|---|
Product: | [Unmaintained] kdelibs | Reporter: | A. Spehr <zahl> |
Component: | qt | Assignee: | kdelibs bugs <kdelibs-bugs> |
Status: | RESOLVED UPSTREAM | ||
Severity: | crash | CC: | faure, jlayt, zahl, zander |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
A. Spehr
2008-12-01 10:51:24 UTC
I've also seen this, but I had initially attributed it to either my hacking around with qt-copy, or not actually having any printers installed. Using a clean qt-copy I get it consistently when trying to print from kwrite (I haven't tried other apps yet). Using a freshly compiled download of Qt 4.4.3 I initially didn't get it but later did. Using openSuse 11.1 Qt 4.4.3 packages I haven't seen it at all (yet). I have a vague recollection tzander mentioned somewhere about problems with asserts being the root of the print problem in Qt 4.4.0? Can you confirm what qt you are using, and that you have real printers configured? I'll try a few variations on this tonight. No printers installed, and a recent compile of qt-copy. I'll check what version tonight. Installed a printer and suddenly it all works again, as suspected seeing as the assert was checking to see the number of printers in the list was >= 0. There must be some issue with the initialisation sequence of the dialog, as there should be at least the 'Print to PDF' and 'Print to PS' options there by that stage. Hmmm. Qt 4.4.3 from openSUSE packages works fine. Qt 4.4.3 newly downloaded and self compiled falls over. qt-copy (4.4.3 as well?) falls over. So what's different about openSUSE (and probably every other distro packages)? I think this is Thomas' code. Raised in Qt Task Tracker, awaiting response. See also bug http://bugs.kde.org/show_bug.cgi?id=177544 where the dialog doesn't crash but the file name line edit is not enabled, which is what I get using the openSuse packages for 4.4.3, as opposed to the crash which I get when running qt-copy. Looks very similar to http://trolltech.com/developer/task-tracker/index_html?method=entry&id=228614 hunk src/gui/dialogs/qprintdialog_unix.cpp 705 - Q_ASSERT(index >= 0); + if (index < 0) + return; Thomas is correct, must have missed that one when looking in the tracker. Fix is scheduled for Qt 4.4.4. I guess openSUSE must have backported it in their binary packages. |