Bug 452042 - "evaluate() threw an exception" message is printed to the terminal
Summary: "evaluate() threw an exception" message is printed to the terminal
Status: CONFIRMED
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 21.12.0
Platform: Other FreeBSD
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-29 16:39 UTC by Yuri
Modified: 2022-03-29 21:43 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri 2022-03-29 16:39:33 UTC
SUMMARY
Unconditional "evaluate() threw an exception" message is printed to the terminal when a particular document is opened.

STEPS TO REPRODUCE
1.  Download https://www.ftb.ca.gov/forms/2019/2019-540-2ez.pdf
2. Open it in Okular
3. Observe the message: evaluate() threw an exception

SOFTWARE/OS VERSIONS
FreeBSD 13
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.2
Comment 1 Albert Astals Cid 2022-03-29 21:09:38 UTC
JavaScript in that PDF uses the "global" property we don't support yet
Comment 2 Yuri 2022-03-29 21:19:09 UTC
(In reply to Albert Astals Cid from comment #1)
> JavaScript in that PDF uses the "global" property we don't support yet

Is this because Okular supports a lower version of ECMAScript?
What version does it support?
Comment 3 Albert Astals Cid 2022-03-29 21:43:55 UTC
This is because Okular supports what it supports.