Trolltech Home | Qt4-preview-feedback Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt4-preview-feedback Archive, March 2007
Qt/X11 4.3 Beta - QFileDialog::getOpenFileNames() cannot work.


Message 1 in thread

QFileDialog::getOpenFileNames() displays the following error and displays no file.

    $ cat filedialog.cpp 
    #include <QtGui>

    int main( int argc, char** argv )
    {
	QApplication app( argc, argv );
	QFileDialog::getOpenFileNames();

	return app.exec();
    }
    $ ./filedialog 
    QThread::start: Thread creation error: 

Kenji Sugita                                          
Senior Manager, Software Research Associates, Inc.    

To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx


Message 2 in thread

Hi,

> QFileDialog::getOpenFileNames() displays the following error and displays no file.
> [...]
>     QThread::start: Thread creation error: 

I can't reproduce that on Linux Fedora Core 6. On which platform does 
this happen?

--
 [ signature omitted ] 

Message 3 in thread

Hi!

From: Dimitri <dimitri@xxxxxxxxxxxxx>
Subject: Re: Qt/X11 4.3 Beta - QFileDialog::getOpenFileNames() cannot work.
Date: Sun, 25 Mar 2007 21:13:44 +0200

;;; > QFileDialog::getOpenFileNames() displays the following error and displays no file.
;;; > [...]
;;; >     QThread::start: Thread creation error: 
;;; 
;;; I can't reproduce that on Linux Fedora Core 6. On which platform does 
;;; this happen?

This happens on Vine Linux 4.1 (http://www.vinelinux.org/).

    $ ltrace -C filedialog
    __libc_start_main(0x804890c, 1, 0xbff20154, 0x8048b28, 0x8048b70 <unfinished ...>
    QApplication::QApplication(int&, char**, int)(0xbff200d4, 0xbff20100, 0xbff20154, 262912, 0xb71a4658) = 0xb7ef8594
    QFileDialog::getOpenFileNames(QWidget*, QString const&, QString const&, QString const&, QString*, QFlags<QFileDialog::Option>)(0xbff200dc, 0, 0xbff200ec, 0xbff200e8, 0xbff200e4 <unfinished ...>
    --- UNKNOWN_SIGNAL (Unknown signal 32) ---
    --- UNKNOWN_SIGNAL (Unknown signal 32) ---
    QThread::start: Thread creation error: 
    <Control-C>
    --- SIGINT (Interrupt) ---
    +++ killed by SIGINT +++
    $ 

The example mandelbrot does not work too.

    $ ./mandelbrot
    QThread::start: Thread creation error:

These programs work well for Qt/X11 4.2.3 and before.

Kenji Sugita                                          
Senior Manager, Software Research Associates, Inc.    

To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx


Message 4 in thread

Kenji Sugita wrote:
> This happens on Vine Linux 4.1 (http://www.vinelinux.org/).
>     $ ltrace -C filedialog
>     __libc_start_main(0x804890c, 1, 0xbff20154, 0x8048b28, 0x8048b70
>     <unfinished ...> QApplication::QApplication(int&, char**,
>     int)(0xbff200d4, 0xbff20100, 0xbff20154, 262912, 0xb71a4658) =
>     0xb7ef8594 QFileDialog::getOpenFileNames(QWidget*, QString const&,
>     QString const&, QString const&, QString*,
>     QFlags<QFileDialog::Option>)(0xbff200dc, 0, 0xbff200ec, 0xbff200e8,
>     0xbff200e4 <unfinished ...> --- UNKNOWN_SIGNAL (Unknown signal 32) ---
>     --- UNKNOWN_SIGNAL (Unknown signal 32) --- QThread::start: Thread
>     creation error: <Control-C> --- SIGINT (Interrupt) --- +++ killed by
>     SIGINT +++ $
> The example mandelbrot does not work too.
>     $ ./mandelbrot
>     QThread::start: Thread creation error:
> These programs work well for Qt/X11 4.2.3 and before.

Hi, Sugita-san. Could you please provide a backtrace? You should probably
also report this through our public bugtracker:

http://www.trolltech.com/support/support/bugreport-form

Andreas

-- 
 [ signature omitted ] 

Message 5 in thread

Hi Andreas,
  i have a similar problem. If i try to reach the root directory in
QFileDialog by clicking the parent directory button a crash will follow.
See the dump at the end of this mail.
With 20070323 snapshot designer i reach the root folder by clicking the
parent directory button, but the list shows only two directories. The one i
came from and the home directory.

Even worse, I am unable to reach the root directory since snapshot 20070320.
The list shows no entries if i select the "Computer" icon.

And where is the new folder created? See attached screenshot.

On Monday 26 March 2007 12:27, Andreas Aardal Hanssen wrote:
> Kenji Sugita wrote:
> > This happens on Vine Linux 4.1 (http://www.vinelinux.org/).
> >     $ ltrace -C filedialog
> >     __libc_start_main(0x804890c, 1, 0xbff20154, 0x8048b28, 0x8048b70
> >     <unfinished ...> QApplication::QApplication(int&, char**,
> >     int)(0xbff200d4, 0xbff20100, 0xbff20154, 262912, 0xb71a4658) =
> >     0xb7ef8594 QFileDialog::getOpenFileNames(QWidget*, QString const&,
> >     QString const&, QString const&, QString*,
> >     QFlags<QFileDialog::Option>)(0xbff200dc, 0, 0xbff200ec, 0xbff200e8,
> >     0xbff200e4 <unfinished ...> --- UNKNOWN_SIGNAL (Unknown signal 32)
> > --- --- UNKNOWN_SIGNAL (Unknown signal 32) --- QThread::start: Thread
> > creation error: <Control-C> --- SIGINT (Interrupt) --- +++ killed by
> > SIGINT +++ $
> > The example mandelbrot does not work too.
> >     $ ./mandelbrot
> >     QThread::start: Thread creation error:
> > These programs work well for Qt/X11 4.2.3 and before.
>
> Hi, Sugita-san. Could you please provide a backtrace? You should probably
> also report this through our public bugtracker:
>
> http://www.trolltech.com/support/support/bugreport-form
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  The version combo box shows no 4.3 preview entry ;-)
>
> Andreas


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 47566335604768 (LWP 6100)]
QString::operator== (this=0xb269b8, other=<value optimized out>) at 
tools/qstring.cpp:1707
1707        const ushort *uc = d->data;
(gdb) where
#0  QString::operator== (this=0xb269b8, other=<value optimized out>) at 
tools/qstring.cpp:1707
#1  0x00002b42e0894eb9 in non-virtual thunk to 
QProgressDialog::~QProgressDialog() ()
   from /usr/local/Trolltech/Qt-4.3.0-snapshot-20070327/lib/libQtGui.so.4
#2  0x00002b42e08971aa in non-virtual thunk to 
QProgressDialog::~QProgressDialog() ()
   from /usr/local/Trolltech/Qt-4.3.0-snapshot-20070327/lib/libQtGui.so.4
#3  0x00002b42e0871857 in QFileDialog::setDirectory () 
from /usr/local/Trolltech/Qt-4.3.0-snapshot-20070327/lib/libQtGui.so.4
#4  0x00002b42e08727b6 in QFileDialog::setDirectory () 
from /usr/local/Trolltech/Qt-4.3.0-snapshot-20070327/lib/libQtGui.so.4
#5  0x00002b42e08785c1 in QFileDialog::qt_metacall () 
from /usr/local/Trolltech/Qt-4.3.0-snapshot-20070327/lib/libQtGui.so.4
#6  0x00002b42e2abc278 in QMetaObject::activate (sender=0xae9f80, 
from_signal_index=29, to_signal_index=30, argv=0x0) at 
kernel/qobject.cpp:3038
#7  0x00002b42e098c697 in QAbstractButton::clicked () 
from /usr/local/Trolltech/Qt-4.3.0-snapshot-20070327/lib/libQtGui.so.4
#8  0x00002b42e078ab0b in QButtonGroup::id () 
from /usr/local/Trolltech/Qt-4.3.0-snapshot-20070327/lib/libQtGui.so.4
#9  0x00002b42e078c1de in QAbstractButton::keyPressEvent () 
from /usr/local/Trolltech/Qt-4.3.0-snapshot-20070327/lib/libQtGui.so.4
#10 0x00002b42e078c401 in QAbstractButton::mouseReleaseEvent () 
from /usr/local/Trolltech/Qt-4.3.0-snapshot-20070327/lib/libQtGui.so.4
#11 0x00002b42e083636a in QToolButton::mouseReleaseEvent () 
from /usr/local/Trolltech/Qt-4.3.0-snapshot-20070327/lib/libQtGui.so.4
#12 0x00002b42e053586e in QWidget::event () 
from /usr/local/Trolltech/Qt-4.3.0-snapshot-20070327/lib/libQtGui.so.4
#13 0x00002b42e078b7c4 in QAbstractButton::event () 
from /usr/local/Trolltech/Qt-4.3.0-snapshot-20070327/lib/libQtGui.so.4
#14 0x00002b42e0836119 in QToolButton::event () 
from /usr/local/Trolltech/Qt-4.3.0-snapshot-20070327/lib/libQtGui.so.4
#15 0x00002b42e04f735c in QApplicationPrivate::notify_helper () 
from /usr/local/Trolltech/Qt-4.3.0-snapshot-20070327/lib/libQtGui.so.4
#16 0x00002b42e04f9c90 in QApplication::notify () 
from /usr/local/Trolltech/Qt-4.3.0-snapshot-20070327/lib/libQtGui.so.4
#17 0x00002b42e2aab300 in QCoreApplication::notifyInternal 
(this=0x7fffcd9bf2c0, receiver=0xae9f80, event=0x7fffcd9bd2c0)
    at kernel/qcoreapplication.cpp:504
#18 0x00002b42e0547c9f in QApplication::x11ProcessEvent () 
from /usr/local/Trolltech/Qt-4.3.0-snapshot-20070327/lib/libQtGui.so.4
#19 0x00002b42e0546d40 in QApplication::x11ProcessEvent () 
from /usr/local/Trolltech/Qt-4.3.0-snapshot-20070327/lib/libQtGui.so.4
#20 0x00002b42e0568935 in QX11Info::copyX11Data () 
from /usr/local/Trolltech/Qt-4.3.0-snapshot-20070327/lib/libQtGui.so.4
#21 0x00002b42e31a4f94 in g_main_context_dispatch () 
from /opt/gnome/lib64/libglib-2.0.so.0
#22 0x00002b42e31a7dc5 in g_main_context_prepare () 
from /opt/gnome/lib64/libglib-2.0.so.0
#23 0x00002b42e31a82ee in g_main_context_iteration () 
from /opt/gnome/lib64/libglib-2.0.so.0
#24 0x00002b42e2acb340 in QEventDispatcherGlib::processEvents (this=0x6dcd60, 
flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:321
#25 0x00002b42e056874f in QX11Info::copyX11Data () 
from /usr/local/Trolltech/Qt-4.3.0-snapshot-20070327/lib/libQtGui.so.4
#26 0x00002b42e2aaa958 in QEventLoop::processEvents (this=<value optimized 
out>, flags=<value optimized out>) at kernel/qeventloop.cpp:124
#27 0x00002b42e2aaaa69 in QEventLoop::exec (this=0x7fffcd9bdae0, 
flags=@0x7fffcd9bdb00) at kernel/qeventloop.cpp:170
#28 0x00002b42e086a96b in QDialog::exec () 
from /usr/local/Trolltech/Qt-4.3.0-snapshot-20070327/lib/libQtGui.so.4
#29 0x00002b42e087be87 in QFileDialog::getOpenFileName () 
from /usr/local/Trolltech/Qt-4.3.0-snapshot-20070327/lib/libQtGui.so.4

Attachment:

Attachment: newFolder.png
Description: PNG image

Attachment: Open.png
Description: PNG image


Message 6 in thread

Dirk Schulz wrote:

> Hi Andreas,
>   i have a similar problem. If i try to reach the root directory in
> QFileDialog by clicking the parent directory button a crash will follow.
> See the dump at the end of this mail.
> With 20070323 snapshot designer i reach the root folder by clicking the
> parent directory button, but the list shows only two directories. The one
> i came from and the home directory.
> 
> Even worse, I am unable to reach the root directory since snapshot
> 20070320. The list shows no entries if i select the "Computer" icon.

Thanks for the report a task has been created to fix this.

> And where is the new folder created? See attached screenshot.

The new folder button appears when using the Save mode.

-Benjamin Meyer

To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx


Message 7 in thread

>> And where is the new folder created? See attached screenshot.
> 
> The new folder button appears when using the Save mode.

Woops jumped the gun on that one (had that question asked a handfull of
times)  The New Folder Action in the right click menu should have been
disabled like the New Folder button was, a task has been made for this.

-Benjamin Meyer

To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx