Bug 453915 - Broken number addition
Summary: Broken number addition
Status: CONFIRMED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 21.12.3
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-16 22:46 UTC by Exabyte The Protogen
Modified: 2022-05-23 21:31 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot of my Starfinder Armor Class section, displaying this behaviour clearly. (40.20 KB, image/png)
2022-05-16 22:46 UTC, Exabyte The Protogen
Details
Default source PDF from source. Error occurs instant any form is edited. (2.98 MB, application/pdf)
2022-05-23 05:04 UTC, Exabyte The Protogen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exabyte The Protogen 2022-05-16 22:46:00 UTC
Created attachment 148902 [details]
Screenshot of my Starfinder Armor Class section, displaying this behaviour clearly.

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Open Okular
2. Open a PDF which takes fields and adds them for the result

OBSERVED RESULT
As soon as the PDF is updated for the first time, all input results combine. (E.G. 8 and 2 make 82.)

EXPECTED RESULT
When the PDF updates all inputs should add (E.G. 8 and 2 should make 10.)

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Pop!_OS 22.04
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
This issue is not because of a bad PDF file (afaik) as this behavior does not occur in Windows.
Comment 1 Albert Astals Cid 2022-05-16 22:58:17 UTC
> this behavior does not occur in Windows.

With Okular?
Comment 2 Exabyte The Protogen 2022-05-16 23:05:38 UTC
(In reply to Albert Astals Cid from comment #1)
> > this behavior does not occur in Windows.
> 
> With Okular?

No. I forget what program it was as I just used whatever came with windows, but it wasn't with Okular. Would it help to go install Okular on windows and try it there?
Comment 3 Albert Astals Cid 2022-05-18 21:18:47 UTC
> Would it help to go install Okular on windows and try it there?

It's worth a try just in case we fixed between the version you're using in Ubuntu and the Windows version (which is newer)
Comment 4 Exabyte The Protogen 2022-05-19 22:41:39 UTC
(In reply to Albert Astals Cid from comment #3)
> > Would it help to go install Okular on windows and try it there?
> 
> It's worth a try just in case we fixed between the version you're using in
> Ubuntu and the Windows version (which is newer)

Just tried using Ocular in windows, and the same thing happens. The instant I edit a form, the numbers break and I get the same behaviour as in Linux.

Also, the "PDF editor" I use where the PDF behaves as expected is MS Edge, so I know it's not a bad PDF.
Comment 5 Albert Astals Cid 2022-05-22 21:48:20 UTC
Without a PDF to reproduce the error, this is hard to fix.
Comment 6 Exabyte The Protogen 2022-05-23 05:00:45 UTC
(In reply to Albert Astals Cid from comment #5)
> Without a PDF to reproduce the error, this is hard to fix.

It's Shar's Smart Starfinder Character Sheet. I'll also add the file itself in question so you don't have to go hunting it down. Note that the issue won't be initially present as I've just been using Brave in the meantime while this gets worked out, which works as expected.
Comment 7 Exabyte The Protogen 2022-05-23 05:04:23 UTC
Created attachment 149128 [details]
Default source PDF from source. Error occurs instant any form is edited.

Unedited download. Change any form in Okular, and all fields break. Most noticeable in the numbers within the "Armor Class" section on the right half of the first page.