Results 1 to 1 of 1

Thread: [SOLVED] QFileSystemModel ASSERT error (disable SystemWatcher?)

  1. #1
    Join Date
    Dec 2008
    Location
    Poland
    Posts
    383
    Thanks
    52
    Thanked 42 Times in 42 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Android

    Default [SOLVED] QFileSystemModel ASSERT error (disable SystemWatcher?)

    Hello,
    My application uses 2 treeView with displays QFileSystemModel. That gave me "live" update on the file system (actually particular directory), but sometimes (on random actually) situations my application hangs with fallowing message:
    Qt Code:
    1. ASSERT: "indexNode" in file dialogs\qfilesystemmodel.cpp, line 239
    To copy to clipboard, switch view to plain text mode 
    I do file system modification, so file are deleted/added, and it seams that when I return from my worker thread, tree gets updated and I can see new content but only a few entries (i.e. 5 file names from 25) and then error occurs.
    Can it be because of QSystemWatcher?

    Work flow of my application is as fallows:
    1. treview displays qfilesystem
    2. worker thread manipulate files
    3. at the end, when returning to main application, ASSERT error (on treeview updates)

    Any suggestion?

    EDIT: Solved
    Just by pure luck I commented out stuff related to workerThread (stuff == I checked if thread is running, and if true changed values to terminate long operation) and if() condition gave me "strange" behaviour, to be honest I don't know ATM. why that was happening.
    Last edited by Talei; 7th May 2010 at 00:58.

Similar Threads

  1. how use QFileSystemModel with QListView ?
    By lwifi in forum Qt Programming
    Replies: 4
    Last Post: 26th April 2010, 04:41
  2. Help with QFileSystemModel
    By TheShow in forum Qt Programming
    Replies: 4
    Last Post: 5th January 2010, 21:11
  3. Assert
    By sonuani in forum Newbie
    Replies: 1
    Last Post: 17th April 2008, 16:33
  4. Program crashes with assert error in xcb_lock.c
    By Valheru in forum Qt Programming
    Replies: 3
    Last Post: 18th November 2007, 20:56
  5. QWT assert failure
    By Andimat in forum Qwt
    Replies: 1
    Last Post: 21st June 2007, 15:36

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.