Bug 479688 - Crash when trying to save changed translation in a row
Summary: Crash when trying to save changed translation in a row
Status: REPORTED
Alias: None
Product: lokalize
Classification: Applications
Component: general (other bugs)
Version First Reported In: 23.08.4
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Simon Depiets
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2024-01-12 10:25 UTC by Freek de Kruijf
Modified: 2024-01-26 10:02 UTC (History)
2 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 Freek de Kruijf 2024-01-12 10:25:04 UTC
Application: lokalize (23.08.4)

Qt Version: 5.15.12
Frameworks Version: 5.113.0
Operating System: Linux 6.6.10-1-default x86_64
Windowing System: X11
Distribution: "openSUSE Tumbleweed"
DrKonqi: 5.27.10 [KCrashBackend]

-- Information about the crash:
I found 6 wrong translations of an element with two English words. So I clicked right on the wrong translation in TM and selected to open the po file with the wrong translation and changed it in the right translation for 2 or 3 times. The next time pressing Ctrl+S lokalize crashed.

The reporter is unsure if this crash is reproducible.

-- Backtrace:
Application: Lokalize (lokalize), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f34002bc3d2 in QSortFilterProxyModel::parent (child=..., this=0x55c22f8e4170) at itemmodels/qsortfilterproxymodel.cpp:2219
#5  QSortFilterProxyModel::parent (this=0x55c22f8e4170, child=...) at itemmodels/qsortfilterproxymodel.cpp:2212
#6  0x000055c22e01c622 in QModelIndex::parent (this=0x55c232942bb0) at /usr/include/qt5/QtCore/qabstractitemmodel.h:443
#7  TM::DBFilesModel::updateStats (this=0x55c22f8e4170, topLeft=..., bottomRight=...) at /usr/src/debug/lokalize-23.08.4/src/tm/dbfilesmodel.cpp:145
#8  0x00007f34003196f0 in QObject::event (this=0x55c22f8e4170, e=0x7f33d40043b0) at kernel/qobject.cpp:1347
#9  0x00007f3400fa51ae in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55c22f8e4170, e=0x7f33d40043b0) at kernel/qapplication.cpp:3640
#10 0x00007f34002ed938 in QCoreApplication::notifyInternal2 (receiver=0x55c22f8e4170, event=0x7f33d40043b0) at kernel/qcoreapplication.cpp:1064
#11 0x00007f34002edafe in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>) at kernel/qcoreapplication.cpp:1462
#12 0x00007f34002f0f31 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x55c22f7ac060) at kernel/qcoreapplication.cpp:1821
#13 0x00007f34002f1478 in QCoreApplication::sendPostedEvents (receiver=<optimized out>, event_type=<optimized out>) at kernel/qcoreapplication.cpp:1680
#14 0x00007f3400347063 in postEventSourceDispatch (s=0x55c22f8af8d0) at kernel/qeventdispatcher_glib.cpp:277
#15 0x00007f33fe313f30 in ?? () from /lib64/libglib-2.0.so.0
#16 0x00007f33fe315b58 in ?? () from /lib64/libglib-2.0.so.0
#17 0x00007f33fe31620c in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#18 0x00007f3400346876 in QEventDispatcherGlib::processEvents (this=0x55c22f8b4a40, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#19 0x00007f34002ec3cb in QEventLoop::exec (this=this@entry=0x7ffc0c7b8230, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#20 0x00007f34002f4860 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#21 0x000055c22df80a26 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/lokalize-23.08.4/src/main.cpp:128
[Inferior 1 (process 3965) detached]

Reported using DrKonqi
Comment 1 Albert Astals Cid 2024-01-25 21:29:57 UTC
The backtrace is sadly not very useful, would be nice to know if you can reproduce this and if you can getting a valgrind trace would be even better.

Could you try?
Comment 2 Freek de Kruijf 2024-01-26 10:02:52 UTC
Sadly, I can't reproduce this. After starting lokalize again I managed to change all remaining wrong translations without any problem.