Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007fe8be3e8e20 in QtPrivate::QMetaTypeInterfaceWrapper<QFlagsQt::WindowState >::metaType () from /usr/lib/libQt6Core.so.6
[Current thread is 1 (Thread 0x7fe8b90439c0 (LWP 946))]
(gdb) bt #0 0x00007fe8be3e8e20 in QtPrivate::QMetaTypeInterfaceWrapper<QFlagsQt::WindowState >::metaType () at /usr/lib/libQt6Core.so.6 #1 0x00007fe8be14b583 in QPersistentModelIndex::row (this=) at /usr/src/debug/qt6-base/qtbase/src/corelib/itemmodels/qabstractitemmodel.cpp:511 #2 QItemSelectionRange::top (this=) at /usr/src/debug/qt6-base/qtbase/src/corelib/itemmodels/qitemselectionmodel.h:31 #3 QItemSelectionRange::intersects (this=0x7ffde0251d70, other=…) at /usr/src/debug/qt6-base/qtbase/src/corelib/itemmodels/qitemselectionmodel.cpp:187 #4 0x00005620865c4dc0 in ??? () #5 0x00005620870b3b50 in ??? () #6 0x0000000000000000 in ??? ()
I did not, for now I wont do it just to see if it can be reproduced. Also its not a locking or some flickering it’s a crash, it shouldn’t do that because of some crap in .config and .cache files.
Posted on qt forum: topic 156764 sigsegv-qtprivate-qmetatypeinterfacewrapper-qflagsqt-windowstate-metatype, any reason why there are no links allowed in this forum?
Well I’ve checked the qtbase, wrote them on the forum (like they’ll need a hint from the gdb bt) anyway I can’t do anything about it, I’ll just wait for reply (don’t think I’ll get one), the s**t I wrote:
this is the return -1 in the code below right? dont see any register full of 0xff’s, something optimized? Are we missing a check in metaType () for -1?, the qabstractitemmodel.cpp:511 :
int QPersistentModelIndex::row() const
{
if (d)
return d->index.row();
return -1;
}