Created attachment 158404 [details] Log with debug messages SUMMARY AppImage segfaults upon attempting to edit IPTC Copyright field. STEPS TO REPRODUCE 1. Select an image. 2. Action: edit metadata 3. In the metadata editing window, go to the IPTC tab. 4. Put the cursor in the Copyright field and try deleting existing text – I had the Copyright field checked and it had contents copied from a template. OBSERVED RESULT AppImage crashed as soon as I tried deleting text in the IPTC copyright field. EXPECTED RESULT AppImage does not crash; Copyright field can be edited. SOFTWARE/OS VERSIONS Operating System: Kubuntu 22.04 KDE Plasma Version: 5.24.7 KDE Frameworks Version: 5.98.0 Qt Version: 5.15.3 Kernel Version: 5.15.0-70-generic (64-bit) ADDITIONAL INFORMATION ExifTool 12.60 exiv2 0.27.5
Created attachment 158405 [details] Screenshot of Metadata > Behavior
We need a gdb backtrace of the crash. See here for details : https://www.digikam.org/contribute/ Also please share the image responsible of the crash to reproduce here. Best
Created attachment 158412 [details] GDB backtrace
(In reply to caulier.gilles from comment #2) > We need a gdb backtrace of the crash. See here for details : > > https://www.digikam.org/contribute/ Attached. > Also please share the image responsible of the crash to reproduce here. The latest AppImage, 8.0.0.
There is nothing to see in the backtrace. Please use the debug version of the AppImage (heavy file with -debug in file name)
Gilles, I think this is the cause. It needs to be changed to QPlainTextEdit. The same in DTextEdit at this point. https://invent.kde.org/graphics/digikam/-/blob/master/core/libs/widgets/text/dplaintextedit.cpp#L217 Maik
yes, you are right Maik. feel free to fix it in git, i'm busy in my office currently
Git commit fa463ea8555d494590890f29669094af0db30e8c by Maik Qualmann. Committed on 25/04/2023 at 16:34. Pushed by mqualmann into branch 'master'. fix infinite loop in D(Plain)TextEdit::keyPressEvent() FIXED-IN: 8.1.0 M +1 -1 NEWS M +1 -1 core/libs/widgets/text/dplaintextedit.cpp M +1 -1 core/libs/widgets/text/dtextedit.cpp https://invent.kde.org/graphics/digikam/commit/fa463ea8555d494590890f29669094af0db30e8c
The problem could be reproduced when the text exceeded the maximum number of characters allowed in this edit field and an attempt was made to delete characters. Maik