| Summary: | Okular crashes when saving a document | ||
|---|---|---|---|
| Product: | [Applications] okular | Reporter: | Kotori Itsuka <cmdrkotori2> |
| Component: | PDF backend | Assignee: | Okular developers <okular-devel> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | kde, nicolas.fella |
| Priority: | NOR | ||
| Version First Reported In: | 24.01.90 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/graphics/okular/-/commit/f0e98bd5315232f7dc86edc1002d7fdf22181413 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
| Attachments: | crash caught in gdb | ||
|
Description
Kotori Itsuka
2024-01-17 12:37:04 UTC
Also reproducible in 22.12. So. I guess I need to discuss this with Albert and maybe read the pdf standard. The following becomes a bit technical: But apparantly the 4 options is in a 'button group' and okular assumes that all buttons on a button group is in the same page. But 4 is on a page of itself. And Okular gets confused by this (and EditFormButtonsCommand::refreshInternalPageReferences fails (It looks for the form elements on the wrong page) to succeed) and after that, okular seems to be in a bad state and starts crashing. not qt6 specific, bug janitor. A possibly relevant merge request was started @ https://invent.kde.org/graphics/okular/-/merge_requests/915 Git commit 12e40e0d360f9912eee1b162d61e3f183676ea5a by Albert Astals Cid, on behalf of Sune Vuorela. Committed on 25/01/2024 at 23:14. Pushed by aacid into branch 'master'. Button groups can span multiple pages The code needs to be aware of that. M +17 -2 core/documentcommands.cpp M +1 -0 core/documentcommands_p.h M +13 -2 part/formwidgets.cpp https://invent.kde.org/graphics/okular/-/commit/12e40e0d360f9912eee1b162d61e3f183676ea5a Git commit f0e98bd5315232f7dc86edc1002d7fdf22181413 by Albert Astals Cid, on behalf of Sune Vuorela. Committed on 25/01/2024 at 23:17. Pushed by aacid into branch 'release/24.02'. Button groups can span multiple pages The code needs to be aware of that. (cherry picked from commit 12e40e0d360f9912eee1b162d61e3f183676ea5a) M +17 -2 core/documentcommands.cpp M +1 -0 core/documentcommands_p.h M +13 -2 part/formwidgets.cpp https://invent.kde.org/graphics/okular/-/commit/f0e98bd5315232f7dc86edc1002d7fdf22181413 |