Bug 452201 - Okular crash when edit highlighter's color
Summary: Okular crash when edit highlighter's color
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 21.12.3
Platform: Manjaro Linux
: NOR major
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-02 23:03 UTC by Ricardo
Modified: 2022-04-03 22:27 UTC (History)
1 user (show)

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


Attachments
A video showing the okular crash (1.37 MB, video/x-matroska)
2022-04-03 18:53 UTC, Ricardo
Details
Registry of the error, generated by Gnome-logs (27.09 KB, text/plain)
2022-04-03 19:30 UTC, Ricardo
Details

Note You need to log in before you can comment on or make changes to this bug.
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.