Bug 485909 - Lokalize crashed while jumping to next untranslated entry
Summary: Lokalize crashed while jumping to next untranslated entry
Status: RESOLVED WORKSFORME
Alias: None
Product: lokalize
Classification: Applications
Component: general (other bugs)
Version First Reported In: 24.02.2
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Simon Depiets
URL:
Keywords: drkonqi
: 467562 492254 492760 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-04-21 17:03 UTC by Kishore Gopalakrishnan
Modified: 2026-01-09 03:47 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kishore Gopalakrishnan 2024-04-21 17:03:01 UTC
Application: lokalize (24.02.2)

Qt Version: 6.7.0
Frameworks Version: 6.1.0
Operating System: Linux 6.8.7-arch1-1 x86_64
Windowing System: X11
Distribution: Arch Linux
DrKonqi: 6.0.4 [KCrashBackend]

-- Information about the crash:
Lokalize crashed when I pressed the Ctrl+Shift+Pgdn shortcut to jump to the next untranslated entry. This happens only occasionally, so I am not sure exactly what triggers the crash.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Lokalize (lokalize), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = <optimized out>}
[KCrash Handler]
#6  0x0000767efde7297a in QSortFilterProxyModel::parent (child=<optimized out>, this=0x61ef53e6c200) at itemmodels/qsortfilterproxymodel.cpp:2219
#7  QSortFilterProxyModel::parent (this=0x61ef53e6c200, child=<optimized out>) at itemmodels/qsortfilterproxymodel.cpp:2212
#8  0x000061ef52054e10 in QModelIndex::parent (this=0x61ef550f6fd0) at /usr/include/qt/QtCore/qabstractitemmodel.h:443
#9  TM::DBFilesModel::updateStats (this=0x61ef53e6c200, topLeft=..., bottomRight=<optimized out>) at /usr/src/debug/lokalize/lokalize-24.02.2/src/tm/dbfilesmodel.cpp:145
#10 0x0000767efdebb4da in QObject::event (this=0x61ef53e6c200, e=0x767eb8001c60) at kernel/qobject.cpp:1347
#11 0x0000767efeb578ff in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x61ef53e6c200, e=0x767eb8001c60) at kernel/qapplication.cpp:3640
#12 0x0000767efde93a68 in QCoreApplication::notifyInternal2 (receiver=0x61ef53e6c200, event=0x767eb8001c60) at kernel/qcoreapplication.cpp:1064
#13 0x0000767efde989cb in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x61ef52e80580) at kernel/qcoreapplication.cpp:1821
#14 0x0000767efdedea48 in postEventSourceDispatch (s=0x61ef52f6a250) at kernel/qeventdispatcher_glib.cpp:277
#15 0x0000767efc04d199 in g_main_dispatch (context=0x767ef4000ed0) at ../glib/glib/gmain.c:3344
#16 0x0000767efc0ac3bf in g_main_context_dispatch_unlocked (context=0x767ef4000ed0) at ../glib/glib/gmain.c:4152
#17 g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x767ef4000ed0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4217
#18 0x0000767efc04c712 in g_main_context_iteration (context=0x767ef4000ed0, may_block=1) at ../glib/glib/gmain.c:4282
#19 0x0000767efdee288c in QEventDispatcherGlib::processEvents (this=0x61ef52e9c7e0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#20 0x0000767efde92774 in QEventLoop::exec (this=this@entry=0x7ffd6befbcb0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#21 0x0000767efde93c13 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#22 0x0000767efe32bef2 in QGuiApplication::exec () at kernel/qguiapplication.cpp:1870
#23 0x0000767efeb55cda in QApplication::exec () at kernel/qapplication.cpp:2832
#24 0x000061ef51fb0c91 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/lokalize/lokalize-24.02.2/src/main.cpp:135
[Inferior 1 (process 64680) detached]

Reported using DrKonqi
Comment 1 duha.bugs 2024-08-27 18:50:09 UTC
*** Bug 492254 has been marked as a duplicate of this bug. ***
Comment 2 wojnilowicz 2024-12-02 16:55:43 UTC
It crashes at https://invent.kde.org/sdk/lokalize/-/blob/master/src/tm/dbfilesmodel.cpp?ref_type=heads#L143 i.e. this line
"calcStats(topLeft.parent(), topLeft.row(), bottomRight.row());" and namely "topLeft.parent()". "topLeft" doesn't have a parent or lost it recently, and that's why it crashes. Why it needs to read it, is unknown to me.
There is a timer named m_timeSinceLastUpdate which protects from that, and makes this bug "occasional".
Comment 3 Kishore Gopalakrishnan 2024-12-08 07:40:14 UTC
Happened again today with a similar backtrace.

lokalize 24.08.3
Comment 4 Kishore Gopalakrishnan 2024-12-08 07:41:47 UTC
*** Bug 492760 has been marked as a duplicate of this bug. ***
Comment 5 Kishore Gopalakrishnan 2024-12-08 07:43:31 UTC
*** Bug 467562 has been marked as a duplicate of this bug. ***
Comment 6 Finley Watson 2025-12-10 01:43:01 UTC
Hi! Have you seen this happen recently on an up-to-date version of Lokalize? Thanks.
Comment 7 wojnilowicz 2025-12-10 14:38:24 UTC
Hi! Me not.
Comment 8 Bug Janitor Service 2025-12-25 03:46:33 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 9 Bug Janitor Service 2026-01-09 03:47:14 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.