Bug 469664 - Temporary freezing while editing form in pdf document
Summary: Temporary freezing while editing form in pdf document
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 23.04.1
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-12 13:54 UTC by Gaël de Chalendar (aka Kleag)
Modified: 2023-05-15 11:28 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
A file presenting the problem (2.42 MB, application/pdf)
2023-05-12 14:05 UTC, Gaël de Chalendar (aka Kleag)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gaël de Chalendar (aka Kleag) 2023-05-12 13:54:48 UTC
SUMMARY

STEPS TO REPRODUCE
1. Open a pdf file containing forms
2. Click "Display forms"
3. Try to edit text fiels

OBSERVED RESULT
Each key press takes more than 4 seconds to appear. If several keys are pressed the window switches to the "unresponsive" state.

EXPECTED RESULT
Keys pressed should appear immediately. 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: up to date KDE Neon
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version:  5.105.0
Qt Version: 5.15.9

ADDITIONAL INFORMATION
Comment 1 Gaël de Chalendar (aka Kleag) 2023-05-12 14:05:23 UTC
Created attachment 158891 [details]
A file presenting the problem
Comment 2 Gaël de Chalendar (aka Kleag) 2023-05-12 14:06:04 UTC
In the attached file, it happens only in the largest text field.
Comment 3 Sune Vuorela 2023-05-12 19:11:09 UTC
It looks like it is related to 1) the number of newlines and 2) the number of fonts in the system. But likely a poppler issue.
Comment 4 Sune Vuorela 2023-05-12 19:14:49 UTC
Any chance you can compile a patched poppler ?

https://gitlab.freedesktop.org/poppler/poppler/-/merge_requests/1384
Comment 5 Gaël de Chalendar (aka Kleag) 2023-05-15 09:55:16 UTC
This has already been merged. Should I compile it and test it? If yes, how can I retrieve the correct version?
Comment 6 Sune Vuorela 2023-05-15 10:07:43 UTC
(In reply to Gaël de Chalendar (aka Kleag) from comment #5)
> This has already been merged. Should I compile it and test it? If yes, how
> can I retrieve the correct version?

The correct version would be git master. But you might also be able to get away with getting poppler from your linux distribution and just apply that patch on top.
Comment 7 Gaël de Chalendar (aka Kleag) 2023-05-15 10:09:10 UTC
I built the master of poppler. Installed it in a local folder. Added its bin and lib to PATH and LD_LIBRARY_PATH and started okular from this shell. The bug seems to be effectively corrected.
Comment 8 Sune Vuorela 2023-05-15 10:22:00 UTC
(In reply to Gaël de Chalendar (aka Kleag) from comment #7)
> I built the master of poppler. Installed it in a local folder. Added its bin
> and lib to PATH and LD_LIBRARY_PATH and started okular from this shell. The
> bug seems to be effectively corrected.

thank you for your quick reply. I'm going to mark this as "resolved, upstream". It does not require any more work from KDE people; only from poppler people and distributors.
Comment 9 Gaël de Chalendar (aka Kleag) 2023-05-15 11:28:54 UTC
Great. Thanks a lot for your quick actions.