Bug 478276 - Wrong paper color until zoom when overprint preview enabled
Summary: Wrong paper color until zoom when overprint preview enabled
Status: CONFIRMED
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 23.08.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-08 17:43 UTC by nathan
Modified: 2024-07-08 09:22 UTC (History)
4 users (show)

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


Attachments
Screenshot of wrong paper color (193.52 KB, image/png)
2023-12-08 17:43 UTC, nathan
Details
Screenshot showing correct paper color after zooming (228.31 KB, image/png)
2023-12-08 17:44 UTC, nathan
Details
Example PDF (338.40 KB, application/pdf)
2023-12-08 17:44 UTC, nathan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nathan 2023-12-08 17:43:46 UTC
Created attachment 164016 [details]
Screenshot of wrong paper color

SUMMARY
On some PDFs, the paper color appears black until you zoom in and out again.

STEPS TO REPRODUCE
1. Open PDF
2. Observe incorrect paper color
3. Zoom 
4. Observe correct paper color

Operating System: EndeavourOS 
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.112.0
Qt Version: 5.15.11
Kernel Version: 6.6.4-arch1-1 (64-bit)
Graphics Platform: X11
Comment 1 nathan 2023-12-08 17:44:11 UTC
Created attachment 164017 [details]
Screenshot showing correct paper color after zooming
Comment 2 nathan 2023-12-08 17:44:31 UTC
Created attachment 164018 [details]
Example PDF
Comment 3 Albert Astals Cid 2023-12-09 00:41:41 UTC
Can't reproduce, do you have some non standard setup either in Plasma or in okular accessiblitt settings that could be interferring here?
Comment 4 nathan 2023-12-10 20:15:22 UTC
(In reply to Albert Astals Cid from comment #3)
> Can't reproduce, do you have some non standard setup either in Plasma or in
> okular accessiblitt settings that could be interferring here?

No, not as far as I'm aware. Accessibility settings are default, and I'm using plain-old Breeze Dark. Maybe worth mentioning that I do use color management in plasma settings to apply a profile - I don't know if that's relevant?
Comment 5 Albert Astals Cid 2023-12-10 21:45:40 UTC
ok, needs someone that can reproduce the issue and then they can fix it
Comment 6 nathan 2024-01-17 00:04:08 UTC
(In reply to Albert Astals Cid from comment #5)
> ok, needs someone that can reproduce the issue and then they can fix it

Do you have any recommendations as to how I could begin to try to isolate the issue? I'm not seeing anything when opening via the terminal.
Comment 7 nathan 2024-01-17 00:16:17 UTC
(In reply to nathan from comment #6)
> (In reply to Albert Astals Cid from comment #5)
> > ok, needs someone that can reproduce the issue and then they can fix it
> 
> Do you have any recommendations as to how I could begin to try to isolate
> the issue? I'm not seeing anything when opening via the terminal.

Actually, I think I've got it. The issue only occurs when ~/.config/okular-generator-popplerrc contains: 

OverprintPreviewEnabled=true

Which is a shame because overprint preview is quite important for me.
Comment 8 Albert Astals Cid 2024-01-25 22:16:28 UTC
Kevin, an overprint preview bug, maybe you can have a look?
Comment 9 Kevin Ottens 2024-01-31 18:13:20 UTC
I can indeed confirm it. Now I don't have much bandwidth at the moment, so don't hold your breath... in any case, at first glance, it looks like it might be something in Poppler/Qt rather than Okular itself.
Comment 10 Daniel Kraus 2024-06-25 18:38:10 UTC
Same here, can confirm that it depends on "Overprint preview" enabled and can be temporarily fixed by changing the zoom factor.

Operating System: KDE neon 6.0
KDE Plasma Version: 6.1.0
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.0
Kernel Version: 6.5.0-41-generic (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i5-8250U CPU @ 1.60GHz
Memory: 23,2 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620