Created attachment 177398 [details] I tried to remove meta data and identifying information from the PDF. SUMMARY I have a personal information form (PDF) where interacting with one specific dropdown form input freezes Okular at 24% CPU usage (fortunately only that) without any further reaction. STEPS TO REPRODUCE 1. open the attached PDF page 2. enable Form interaction (top right corner) 3. choose a new value for the first dropdown (combo) box "Beschäftigt als:" OBSERVED RESULT It will not change the value. Instead, it hangs indefinitely. EXPECTED RESULT Changes the value to the chosen value but at least remains serviceable without restarting the process. SOFTWARE/OS VERSIONS Windows: 11 Linux/KDE Plasma: 6.12.9 KDE Plasma Version: 6.2.5 KDE Frameworks Version: 6.10.0 Qt Version: 6.8.1 ADDITIONAL INFORMATION Bug does not appear in Firefox but also happens on Windows with Okular.
It's not hung, it's just looping for very long time, if you give it enough time it will finish, but yeah needs fixing, basically the thing is that that option form has 30 thousand entries and we had never tested with some many and the code is awfully inefficient when that happens.
A possibly relevant merge request was started @ https://invent.kde.org/graphics/okular/-/merge_requests/1117
Git commit 0ffceee4350a83a6190b14a2a605c0b9e6cff485 by Albert Astals Cid. Committed on 20/01/2025 at 12:21. Pushed by aacid into branch 'master'. Fix apparent hang in files with lots of entries in a choice field M +4 -1 generators/poppler/formfields.cpp M +2 -0 generators/poppler/formfields.h https://invent.kde.org/graphics/okular/-/commit/0ffceee4350a83a6190b14a2a605c0b9e6cff485
Git commit d67b3ff1227d85acea53f6990482e031062d8177 by Albert Astals Cid. Committed on 20/01/2025 at 15:55. Pushed by aacid into branch 'release/24.12'. Fix apparent hang in files with lots of entries in a choice field (cherry picked from commit 0ffceee4350a83a6190b14a2a605c0b9e6cff485) M +4 -1 generators/poppler/formfields.cpp M +2 -0 generators/poppler/formfields.h https://invent.kde.org/graphics/okular/-/commit/d67b3ff1227d85acea53f6990482e031062d8177