Results 1 to 2 of 2

Thread: Strange freeze in QFileSystemBrowser

  1. #1
    Join Date
    Aug 2010
    Posts
    8
    Platforms
    MacOS X

    Default Strange freeze in QFileSystemBrowser

    Hi,

    I've developed an application in which I have 2 Tree Views (left and right) and I copy system files from one tree to another. The two tree views have QFileSystemModel as a model.

    My problem is that sometimes this copy operation causes a freeze in Qt (about 10 seconds during which the application becomes unresponsive). Here is the stack I get in the thread that freezes:

    0: __kernel_vsyscall
    1: pthread_cond_wait@glib
    2: QWaitCondition::wait()
    3: QFileInfoGatherer::run()
    4: QThreadPrivate::start()
    5: start_thread
    6: clone

    My issue is on Linux. Does someone have a clue why this freeze happens?

    Many thanks,
    Alex

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Strange freeze in QFileSystemBrowser

    It seems the model tries to update itself and while doing so it has to put the thread trying to access the model on hold.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QSerialDevice cause GUI to freeze
    By dkoryagin in forum Qt Programming
    Replies: 2
    Last Post: 26th September 2010, 17:13
  2. Thread,GUI Freeze
    By darshan in forum Qt Programming
    Replies: 2
    Last Post: 25th February 2009, 20:17
  3. Qt4.2.2: Application freeze
    By arunvv in forum Newbie
    Replies: 1
    Last Post: 9th September 2008, 21:16
  4. SelectAll causes freeze
    By Khal Drogo in forum Qt Programming
    Replies: 20
    Last Post: 4th December 2007, 18:26
  5. QThread , GUI freeze
    By cs_raja in forum Qt Programming
    Replies: 4
    Last Post: 19th November 2006, 10:47

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.