STEPS TO REPRODUCE 1. Open a pdf 2. Go to highlight too / text 3. Insert a note on the document 4. Go to the left panel and click on "annotations" 5. Retrieve the previous note, click on "properties" 6. On the opened windows, try to change "text color" OBSERVED RESULT Okular close immediately EXPECTED RESULT Change text color SOFTWARE/OS VERSIONS (available in the Info Center app, or by running `kinfo` in a terminal window) Linux/KDE Plasma: Ubuntu 24.04.2 LTS
If it is crashing we need a backtrace https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports#Backtraces
(In reply to Albert Astals Cid from comment #1) > If it is crashing we need a backtrace > > https://community.kde.org/Guidelines_and_HOWTOs/Debugging/ > How_to_create_useful_crash_reports#Backtraces Hello Albert, sorry for the inconvenience. I just installed gdb by following the (K)Ubuntu guidelines. When I try to run Okular in gdb, it can go any further as there is a "warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libcap.so.2 cannot fstatat canonical snap directory: Permission denied". I set environment variable for all user Can you help me please ? See: pascal@pascal-Latitude-5580:~/.wine/drive_c/Comptes$ gdb okular GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git Copyright (C) 2024 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <https://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from okular... (No debugging symbols found in okular) (gdb) run Starting program: /snap/bin/okular This GDB supports auto-downloading debuginfo from the following URLs: <https://debuginfod.ubuntu.com> Enable debuginfod for this session? (y or [n]) n Debuginfod has been disabled. To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7fffb12ff6c0 (LWP 3784)] [New Thread 0x7fffb0afe6c0 (LWP 3785)] [New Thread 0x7fffabfff6c0 (LWP 3786)] [New Thread 0x7fffab7fe6c0 (LWP 3787)] [New Thread 0x7fffaaffd6c0 (LWP 3788)] [New Thread 0x7fffaa7fc6c0 (LWP 3789)] [Detaching after vfork from child process 3790] [Thread 0x7fffaa7fc6c0 (LWP 3789) exited] [Thread 0x7fffaaffd6c0 (LWP 3788) exited] [Thread 0x7fffab7fe6c0 (LWP 3787) exited] [Thread 0x7fffb0afe6c0 (LWP 3785) exited] [Thread 0x7fffb12ff6c0 (LWP 3784) exited] [Thread 0x7fffabfff6c0 (LWP 3786) exited] process 3780 is executing new program: /usr/lib/snapd/snap-confine [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libcap.so.2 cannot fstatat canonical snap directory: Permission denied [Inferior 1 (process 3780) exited with code 01]
> Enable debuginfod for this session? (y or [n]) n HEre the answer should be probably yes. Anyhow it seems you are using Okular from a snap? I have no idea how to debug that or if it can be debugged. I'll ping some people that maybe can help.
Hello, >>Enable debuginfod for this session? (y or [n]) n >HEre the answer should be probably yes. Ok, I tried but I always got the "cannot fstatat canonical snap directory: Permission denied" >Anyhow it seems you are using Okular from a snap? I have no idea how to debug that or if it can be debugged. I'll ping some people that >maybe can help. Thanks a lot. BR, Pascal
I have been pointed to https://snapcraft.io/docs/using-gdb-gdbserver Not sure it helps, my suggestion would be to not use okular packaged from snap, it always seem to bring problems.
Pascal, I tested the exact thing, exact way that you shared to reproduce the bug. I tested it with the revision 265. The color changed perfectly. So, I'd request some debugging info from you. Please share the output of these commands snap info okular snap connections okular After these, run this command snap run okular And give the complete output until okular crashes
Hello Soumyadeep Ghosh, thanks a lot for your reply. You'll found below my outputs (In reply to Soumyadeep Ghosh from comment #6) > Pascal, I tested the exact thing, exact way that you shared to reproduce the > bug. I tested it with the revision 265. The color changed perfectly. So, I'd > request some debugging info from you. Please share the output of these > commands > > snap info okular pascal@pascal-Latitude-5580:~$ snap info okular name: okular summary: Document Viewer publisher: KDE✓ store-url: https://snapcraft.io/okular contact: https://bugs.kde.org/enter_bug.cgi?product=neon&component=Snaps license: GPL-2.0+ AND GFDL-1.3 description: | Okular is a universal document viewer developed by KDE. Okular works on multiple platforms, including but not limited to Linux, Windows, Mac OS X, \*BSD, etc. Features: - Supported Formats: PDF, PS, Tiff, CHM, DjVu, Images, DVI, XPS, ODT, Fiction Book, Comic Book, Plucker, EPub, Fax - Sidebar with contents, thumbnails, reviews and bookmarks - Annotations support commands: - okular snap-id: SfUqQ280Y4bJ0k64qtBKTTXq5ml46tvQ tracking: latest/stable refresh-date: Il y a 7 jours, à 19 h 54 HNR channels: latest/stable: 24.12.3 2025-03-12 (165) 132MB - latest/candidate: 23.08.5 2024-04-12 (152) 277MB - latest/beta: 24.08.3 2024-11-28 (160) 68MB - latest/edge: 24.12.3 2025-03-07 (165) 132MB - installed: 24.12.3 (165) 132MB - > snap connections okular pascal@pascal-Latitude-5580:~$ snap connections okular Interface Connecteur Prise Notes audio-playback okular:audio-playback :audio-playback - content[gpu-2404] okular:gpu-2404 mesa-2404:gpu-2404 - content[gtk-2-themes] okular:gtk-2-themes gtk-common-themes:gtk-2-themes - content[gtk-3-themes] okular:gtk-3-themes gtk-common-themes:gtk-3-themes - content[icon-themes] okular:icon-themes gtk-common-themes:icon-themes - content[kf6-core24-all] okular:kf6-core24 kf6-core24:kf6-core24-slot - content[sound-themes] okular:sound-themes gtk-common-themes:sound-themes - cups-control okular:cups-control :cups-control - dbus - okular:session-dbus-interface - desktop okular:desktop :desktop - desktop-legacy okular:desktop-legacy :desktop-legacy - home okular:home :home - network okular:network :network - network-bind okular:network-bind :network-bind - opengl okular:opengl :opengl - personal-files okular:dot-pki-nssdb - - removable-media okular:removable-media :removable-media - system-packages-doc okular:system-packages-doc :system-packages-doc - udisks2 okular:udisks2 - - unity7 okular:unity7 :unity7 - wayland okular:wayland :wayland - x11 okular:x11 :x11 - > After these, run this command > snap run okular > And give the complete output until okular crashes pascal@pascal-Latitude-5580:~$ snap run okular Qt: Session management error: Could not open network socket kf.config.core: Watching absolute paths is not supported "/snap/okular/165/kf6/usr/share/color-schemes/BreezeLight.colors" (okular:13981): GLib-GIO-ERROR **: 08:54:55.331: No GSettings schemas are installed on the system Trappe pour point d'arrêt et de trace (core dumped) I specify thant my Okular version is based on a fresh install of Xubuntu 24.04.2 Thanks a lot in advance
No, please share the output of snap run okular until okular crashes
(In reply to Soumyadeep Ghosh from comment #8) > No, please share the output of > > snap run okular > > until okular crashes I did, look my last message at the end :) pascal@pascal-Latitude-5580:~$ snap run okular Qt: Session management error: Could not open network socket kf.config.core: Watching absolute paths is not supported "/snap/okular/165/kf6/usr/share/color-schemes/BreezeLight.colors" (okular:13981): GLib-GIO-ERROR **: 08:54:55.331: No GSettings schemas are installed on the system Trappe pour point d'arrêt et de trace (core dumped)
It also works perfectly for me. Can you please: snap info kf6-core24 thanks
(In reply to Scarlett Moore from comment #10) > It also works perfectly for me. Can you please: > snap info kf6-core24 > thanks Hello Scarlett, thanks a lot for your reply. Here the output: pascal@pascal-Latitude-5580:~$ snap info kf6-core24 name: kf6-core24 summary: KDE Frameworks 6 publisher: KDE✓ store-url: https://snapcraft.io/kf6-core24 license: unset description: | KDE Frameworks are addons and useful extensions to Qt snap-id: kvNmVu4h6kL6NMJjXqPyvG3K3EhDO1S9 tracking: latest/stable refresh-date: Il y a 6 jours, à 21 h 2 HNR channels: latest/stable: 6.8.2-6.11.0-6.2.5-24.12.3 2025-04-07 (22) 1GB - latest/candidate: ↑ latest/beta: 6.8.2-6.11.0-6.2.5-24.12.3 2025-04-07 (22) 1GB - latest/edge: 6.8.2-6.11.0-6.2.5-24.12.3 2025-04-05 (21) 1GB - installed: 6.8.2-6.11.0-6.2.5-24.12.3 (22) 1GB -
Hello to all, I finally found a very simple solution: installing Okular from Flathub and then remove the Snap package ;) The bug isn't there. Hope there won't be another ! Thanks a lot for your help.
Not the fix I was aiming for, very difficult to fix a bug I cannot reproduce, so sorry, glad flatpak works for you. Cheers, Scarlett