I have a QTreeView with an editable model and everything is working fine, but sometimes the program crashes. It happens sometimes when you move the mouse over a selected item. The model is acts as a two-column list, and it usually contains just a few items. This is the backtrace:

Qt Code:
  1. Program received signal SIGABRT, Aborted.
  2. [Switching to Thread -1223207248 (LWP 6446)]
  3. 0xffffe410 in __kernel_vsyscall ()
  4. (gdb) bt
  5. #0 0xffffe410 in __kernel_vsyscall ()
  6. #1 0xb72e67d0 in raise () from /lib/libc.so.6
  7. #2 0xb72e7ea3 in abort () from /lib/libc.so.6
  8. #3 0xb7547c1a in qt_message_output (msgType=QtFatalMsg,
  9. buf=0xbfd25420 "ASSERT: \"false\" in file itemviews/qtreeview.cpp, line 1909") at global/qglobal.cpp:1931
  10. #4 0xb7547c79 in qFatal (msg=0xb763430c "ASSERT: \"%s\" in file %s, line %d") at global/qglobal.cpp:2147
  11. #5 0xb7547cf9 in qt_assert (assertion=0xb7e3d512 "false", file=0xb7e3d4d8 "itemviews/qtreeview.cpp", line=1909)
  12. at global/qglobal.cpp:1691
  13. #6 0xb7dae137 in QTreeViewPrivate::coordinate (this=0x843b758, item=1) at itemviews/qtreeview.cpp:1909
  14. #7 0xb7dae2a4 in QTreeViewPrivate::item (this=0x843b758, yCoordinate=49) at itemviews/qtreeview.cpp:1948
  15. #8 0xb7daf30e in QTreeView::indexAt (this=0x843b740, point=@0xbfd27afc) at itemviews/qtreeview.cpp:1130
  16. #9 0xb7d86863 in QAbstractItemView::viewportEvent (this=0x843b740, event=0xbfd27af0)
  17. at itemviews/qabstractitemview.cpp:931
  18. #10 0xb7d21d33 in QAbstractScrollAreaPrivate::viewportEvent (this=0x843b758, e=0xbfd27af0)
  19. at widgets/qabstractscrollarea.cpp:93
  20. #11 0xb7d21cb7 in QAbstractScrollAreaViewport::event (this=0x843bea8, e=0xbfd27af0) at widgets/qabstractscrollarea.cpp:105
  21. #12 0xb79f4077 in QApplicationPrivate::notify_helper (this=0x8140100, receiver=0x843bea8, e=0xbfd27af0)
  22. at kernel/qapplication.cpp:3175
  23. #13 0xb79f5748 in QApplication::notify (this=0xbfd282c4, receiver=0x843bea8, e=0xbfd27af0) at kernel/qapplication.cpp:3040
  24. #14 0xb79f1bdb in QCoreApplication::sendEvent (receiver=0x843bea8, event=0xbfd27af0)
  25. at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:173
  26. #15 0xb79f7f68 in QApplication::event (this=0xbfd282c4, e=0xbfd27f30) at kernel/qapplication.cpp:1838
  27. #16 0xb79f4077 in QApplicationPrivate::notify_helper (this=0x8140100, receiver=0xbfd282c4, e=0xbfd27f30)
  28. at kernel/qapplication.cpp:3175
  29. #17 0xb79f439a in QApplication::notify (this=0xbfd282c4, receiver=0xbfd282c4, e=0xbfd27f30) at kernel/qapplication.cpp:2799
  30. #18 0xb75f8d17 in QCoreApplication::sendEvent (receiver=0xbfd282c4, event=0xbfd27f30) at kernel/qcoreapplication.h:173
  31. #19 0xb761f322 in QEventDispatcherUNIX::activateTimers (this=0x814aa30) at kernel/qeventdispatcher_unix.cpp:677
  32. #20 0xb761fdba in QEventDispatcherUNIX::processEvents (this=0x814aa30, flags=@0xbfd280bc)
  33. at kernel/qeventdispatcher_unix.cpp:806
  34. #21 0xb7a6feab in QEventDispatcherX11::processEvents (this=0x814aa30, flags=@0xbfd280f4)
  35. at kernel/qeventdispatcher_x11.cpp:132
  36. #22 0xb75f2d11 in QEventLoop::processEvents (this=0xbfd28178, flags=@0xbfd2812c) at kernel/qeventloop.cpp:124
  37. #23 0xb75f2eb6 in QEventLoop::exec (this=0xbfd28178, flags=@0xbfd28180) at kernel/qeventloop.cpp:169
  38. #24 0xb75f6ff4 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:679
  39. #25 0xb79f5c7c in QApplication::exec () at kernel/qapplication.cpp:2720
  40. #26 0x08068d4b in main (argc=1, argv=0xbfd283f4) at main.cpp:115
  41. (gdb)
To copy to clipboard, switch view to plain text mode 

Apparently, it has nothing to do with my code, since none of my methods appear in the backtrace. Any idea? Might it be a QT bug? I'm using QT 4.1.3.