Bug 460242

Summary: Everything disappears from linear view when root node is dragged, app crashes
Product: unknown Reporter: Razee <razee>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED DOWNSTREAM    
Severity: crash CC: nate
Priority: NOR Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Razee 2022-10-11 14:21:16 UTC
Application: semantik (1.2.8)

Qt Version: 5.15.4
Frameworks Version: 5.98.0
Operating System: Linux 5.19.0-2-amd64 x86_64
Windowing System: X11
Distribution: Debian GNU/Linux bookworm/sid
DrKonqi: 5.25.5 [KCrashBackend]

-- Information about the crash:
If I click and drag the root node from the linear view and release on empty space (where there is no node), then the linear view becomes empty. But things are still present in the 2D view. Now if I select some node from the 2D view, then the app crashes. 

Semantik downloaded, compiled and installed from source, following steps from https://waf.io/semantik.html (2022-05-22 source).

The crash can be reproduced every time.

-- Backtrace:
Application: Semantik (semantik), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f3b78bcf2c6 in QAbstractItemView::model() const () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#5  0x00007f3b78c52d11 in QTreeWidgetItem::treeModel(QTreeWidget*) const () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#6  0x00007f3b78c531d6 in QTreeWidgetItem::setSelected(bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#7  0x000056264c4f1aab in linear_view::notify_select(QList<int> const&, QList<int> const&) ()
#8  0x00007f3b792e89dc in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007f3b7a064f3a in sem_mediator::sig_select(QList<int> const&, QList<int> const&) () from /lib/libsemantik.so.1
#10 0x00007f3b7a005613 in mem_sel::redo() () from /lib/libsemantik.so.1
#11 0x00007f3b7a006925 in mem_sel::apply() () from /lib/libsemantik.so.1
#12 0x000056264c4df754 in canvas_view::check_selection() ()
#13 0x000056264c4e5fb9 in canvas_view::mouseReleaseEvent(QMouseEvent*) ()
#14 0x00007f3b789a4cb8 in QWidget::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007f3b78a5019e in QFrame::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007f3b792b139b in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007f3b78962f3e in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007f3b7896b4f2 in QApplication::notify(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007f3b792b1618 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007f3b789695fe in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007f3b789bdac8 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x00007f3b789c0e50 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x00007f3b78962f4e in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#24 0x00007f3b792b1618 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#25 0x00007f3b7813d625 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#26 0x00007f3b78111ddc in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#27 0x00007f3b692fbe4a in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#28 0x00007f3b76469739 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007f3b764699c8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007f3b76469a5c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007f3b793091c6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#32 0x00007f3b792b009b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#33 0x00007f3b792b8206 in QCoreApplication::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#34 0x000056264c4d3867 in main ()
[Inferior 1 (process 229738) detached]

Reported using DrKonqi
Comment 1 Nate Graham 2022-10-11 16:44:44 UTC
Semantic isn't a KDE app; it's an app made to integrate well within KDE Plasma. But its bug tracker is elsewhere; you'll want to re-file this at https://gitlab.com/ita1024/semantik/-/issues
Comment 2 Razee 2022-10-11 16:54:13 UTC
Understood. As a note, I filed this through DrKonqi, and not manually.