Bug 452201

Summary: Okular crash when edit highlighter's color
Product: [Applications] okular Reporter: Ricardo <richypg>
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED UPSTREAM    
Severity: major CC: aacid
Priority: NOR    
Version First Reported In: 21.12.3   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: A video showing the okular crash
Registry of the error, generated by Gnome-logs

Description Ricardo 2022-04-02 23:03:57 UTC
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. Click button "Yellow highlighter" or "Resaltador amarillo" (in spanish).
2. Click on "Configure highlighter" ("Configurar anotaciones" in spanish).
3. Yellow highlighter / Edit / Color. 

OBSERVED RESULT
The program crashes and exit unexpectedly when you try to change the color of the highlighter.

EXPECTED RESULT
Change the highlighter's color.

SOFTWARE/OS VERSIONS
Linux/Manjaro Gnome: Manjaro Linux x86_64
(available in About System)
Gnome version: 41.4
Kernel: 5.15.28-1-MANJARO

ADDITIONAL INFORMATION
Okular:
KDE Frameworks Version 5.91.0
Qt Version 5.15.3 (compiled witch 5.15.2)
Comment 1 Ricardo 2022-04-02 23:07:31 UTC
I was using Wayland session on Gnome
Comment 2 Albert Astals Cid 2022-04-02 23:32:41 UTC
Can you reproduce the crash? If so with any file or just with one in particular?

Can you attach a backtrace with debug symbols?
Comment 3 Ricardo 2022-04-03 18:53:53 UTC
Created attachment 147942 [details]
A video showing the okular crash
Comment 4 Ricardo 2022-04-03 19:30:21 UTC
Created attachment 147943 [details]
Registry of the error, generated by Gnome-logs

I hope this registry will be helpful. I am not familiarized witch debugs.
Comment 5 Ricardo 2022-04-03 19:35:36 UTC
(In reply to Albert Astals Cid from comment #2)
> Can you reproduce the crash? If so with any file or just with one in
> particular?
> 
> Can you attach a backtrace with debug symbols?

Hello, yes the program crashes all the time and witch any document. I attached a video and a gnome-logs file. I hope It can help. Thanks
Comment 6 Albert Astals Cid 2022-04-03 22:27:55 UTC
Yes, those logs are relatively useful.

They show the crash is happening in libqgnomeplatformtheme.so which is something outside of Okular's control. Basically we say "show a color dialog" and then every platform can decide what you show, and libqgnomeplatformtheme.so is crashing there. 

This is either a bug in gtkj, a bug in libqgnomeplatformtheme.so itself or a bug in manjaro that needs to recompile qgnomeplatform.

Oh qgnomeplatform is in AUR...  i then would guess you shot yourself in the foot for using that and potentially need to recompile it yourself, anyhow nothing we can do to fix this problem since it's not Okular's problem.