Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, August 2007
QFileDialog generates Xlib: unexpected async reply (sequence 0x19208)!


Message 1 in thread

Hi All,

I am using Ubuntu 7.04 with Qt 4.3. I am not using the libs and headers downloaded using apt-get, but am using a custom compile of Qt 4.3.0. I have an application which compiles and works fine on Windows and on Linux (well for the most part(. On Ubuntu Linux, when I branch into a part of the code that uses QFileDialog, the application hangs and I get a message like this

Xlib: unexpected async reply (sequence 0x19208)!

And there is more. If I run my Qt application the soon after I boot into Ubuntu and log into my account then the Xlib error is shown when QFileDialog is used for the second time. After that, I can see the Xlib error pretty much every time I use QFileDialog.

I have used (QFileDialog::DontUseNativeDialog|QFileDialog::DontUseSheet) options, even though they may not make sense on Linux.

How can I fix this problem?

Best Regards,
Prashanth N Udupa





       
____________________________________________________________________________________
Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545469

--
 [ signature omitted ] 

Message 2 in thread

On Wednesday 01 August 2007 15:32:25 Prashanth Udupa wrote:
> Hi All,
>
> I am using Ubuntu 7.04 with Qt 4.3. I am not using the libs and headers
> downloaded using apt-get, but am using a custom compile of Qt 4.3.0. I have
> an application which compiles and works fine on Windows and on Linux (well
> for the most part(. On Ubuntu Linux, when I branch into a part of the code
> that uses QFileDialog, the application hangs and I get a message like this
>
> Xlib: unexpected async reply (sequence 0x19208)!
>
> And there is more. If I run my Qt application the soon after I boot into
> Ubuntu and log into my account then the Xlib error is shown when
> QFileDialog is used for the second time. After that, I can see the Xlib
> error pretty much every time I use QFileDialog.
>
> I have used (QFileDialog::DontUseNativeDialog|QFileDialog::DontUseSheet)
> options, even though they may not make sense on Linux.
>
> How can I fix this problem?
>
> Best Regards,
> Prashanth N Udupa

Hmm, I guess try to simplilfy the problem, do you see it in 4.2?  If you run 
examples/itemviews/dirview do you see the problem?  Does the starting 
directory make a difference?  If you make a 3 line application does it still 
occur? etc

-Benjamin Meyer

--
 [ signature omitted ] 

Message 3 in thread

Hi,

> Hmm, I guess try to simplilfy the problem, do you see it in 4.2?  If you run 
> examples/itemviews/dirview do you see the problem?  Does the starting 
> directory make a difference?  If you make a 3 line application does it still 
> occur? etc


No it does not occur in a 3 line application. QFileDialog works fine there.

Can you give me any hints as to where I can look for mistakes in my application? I am not using threads. I am using VTK and its QVTKWidget class, but that is again linked with the same Qt 4.3 library that my application uses. 


Best Regards,
Prashanth N Udupa







      ____________________________________________________________________________________
Shape Yahoo! in your own image.  Join our Network Research Panel today!   http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 



--
 [ signature omitted ] 

Message 4 in thread

On Wednesday 01 August 2007 9:29:58 am Prashanth Udupa wrote:
> Hi,
>
> > Hmm, I guess try to simplilfy the problem, do you see it in 4.2?  If you
> > run examples/itemviews/dirview do you see the problem?  Does the starting
> > directory make a difference?  If you make a 3 line application does it
> > still occur? etc
>
> No it does not occur in a 3 line application. QFileDialog works fine there.
>
> Can you give me any hints as to where I can look for mistakes in my
> application? I am not using threads. I am using VTK and its QVTKWidget
> class, but that is again linked with the same Qt 4.3 library that my
> application uses.
>

Tips for debugging Xlib errors can be found here:
http://lists.trolltech.com/qt-interest/2007-06/thread00849-0.html

Clint

--
 [ signature omitted ]