Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#20231 - [Qt] and [GNOME] non-static QFileDialog causes Qt program in GNOME crash

Attached to Project: Arch Linux
Opened by Chen Xing (chenxing) - Tuesday, 20 July 2010, 06:54 GMT
Last edited by Andrea Scarpino (BaSh) - Friday, 13 January 2012, 21:25 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Ronald van Haren (pressh)
Andrea Scarpino (BaSh)
Ionut Biru (wonder)
Jan Alexander Steffens (heftig)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
I am programming using Qt in GNOME desktop environment. Whenever it creates an QFileDialog object, the program will crash.

Additional info:
* Qt: 4.6.4


Steps to reproduce:
The problem can be reproduced every time, when:
1. qtconfig shows that the Qt's GUI style is "GTK+"
2. Run the code with
QFileDialog qfd;
The program always crashes with this output:

I/O error : No such file or directory
/usr/share/mime/inode/directory.xml:1: parser error : Extra content at the end of the document

^
I/O error : No such file or directory
/usr/share/mime/inode/directory.xml:1: parser error : Extra content at the end of the document

^
The program has unexpectedly finished.

However, when I use a static method of QFileDialog or I choose a different GUI style of Qt with qtconfig, the problem disappears.

I guess this problem can be related to Qt or its GTK+ GUI style, but can't decide which.

There are other people who have reported the problem: http://www.qtforum.org/article/31860/qfiledialog-causes-crash-when-non-static-functions-used.html
He is also in Archlinux
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Friday, 13 January 2012, 21:25 GMT
Reason for closing:  None
Additional comments about closing:  Old. Re-open if necessary
Comment by Jan de Groot (JGC) - Tuesday, 20 July 2010, 07:44 GMT
Can you attach a simple testcase that demonstrates the problem?
Comment by Cagnulein (Cagnulein) - Wednesday, 04 May 2011, 07:59 GMT
  • Field changed: Percent Complete (100% → 0%)
i have the same issue with this code:

QString name;
if((name=QFileDialog::getOpenFileName(this,tr("Open ISO..."),"/","*.iso"))!="")
{

}

Loading...