Created attachment 105475 [details] Backtrace As the title says Okular crashes when saving a PDF with forms. It only happens after changing the text of a multiline form field. Steps to reproduce: 1. Open PDF which contains multiline form fields 2. Change the text in one of them 3. Close/save the file Okular still successfully saves the changes, but crashes afterwards. Also, when the textfield is not in focus and you enter text the scrolling is quite jerky (input elements stay at their old place until the scrolling is done and you stop entering text for about 1-2 seconds). And the radio buttons have some text behind them when the forms are shown. I cannot upload the file here, but if you need it I can send it to you by mail.
The backtrace is not very helpful. Can you install debug symbols and then post a new backtrace? Or you can send me the file. If I can reproduce the problem on the current git master I can also post the proper backtrace.
Created attachment 105476 [details] valgrind output I've installed the debug symbols for Okular and Poppler but now I don't get a backtrace anymore. However, I can have attached a the output of valgrind, which shows where poppler accesses invalid memory. I also sent you the file.
Created attachment 105477 [details] valgrind output Fix upload
Created attachment 105480 [details] Backtrace with debug symbols
Reproduced on Debian testing with poppler 0.48 and okular git master.
Created attachment 105598 [details] PDF file that causes the crash Here's a sample file which I can add thanks to Oliver Sander.
Looks like a qt bug to me. The destructor of QSyntaxHighlighter should not emit a QTextEdit::textChanged signal.
Can you find or file a Qt bug for that?
Honestly, i'm pretty sure we can fix ourselves without being lazy and saying "this is something Qt should fix"
*** This bug has been marked as a duplicate of bug 393334 ***