Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: signal-desktop fails to start on 6.27.1 with AppArmor permission errors on /etc/vulkan/* #152

Closed
pablovp86 opened this issue Aug 19, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@pablovp86
Copy link

pablovp86 commented Aug 19, 2023

What happened?

It crashed after a while.

What should have happened?

It should have started.

Output of snap info $snap_name

name:      signal-desktop
summary:   Speak Freely - Private Messenger
publisher: Snapcrafters✪
store-url: https://snapcraft.io/signal-desktop
contact:   https://github.com//snapcrafters/signal-desktop/issues
license:   AGPL-3.0-only
description: |
  **Note: To use the Signal desktop app, you must first install Signal on your phone.**
  
  Millions of people use Signal every day for free and instantaneous communication anywhere in the
  world. Send and receive high-fidelity messages, participate in HD voice/video calls, and explore a
  growing set of new features that help you stay connected. Signal's advanced privacy-preserving
  technology is always enabled, so you can focus on sharing the moments that matter with the people
  who matter to you.
  
  - Say anything - State-of-the-art end-to-end encryption (powered by the open source Signal
  Protocol™) keeps your conversations secure. Privacy isn't an optional mode; it's just the way that
  Signal works. Every message, every call, every time.
  - Go fast - Messages are delivered quickly and reliably, even on slow networks. Signal is
  optimized to operate in the most constrained environment possible.
  - Feel free - Signal is a completely independent 501c3 nonprofit. Development is supported by
  users like you. No advertisements. No trackers. No kidding.
  - Be yourself - You can use your existing phone number and address book to securely communicate
  with your friends.
  - Speak up - Whether they live across town or across the ocean, Signal's enhanced audio and video
  quality will make your friends and family feel closer.
  - Whisper in the shadows - Switch to the dark theme if you refuse to see the light.
  
  **Are you having issues?**
  
  Let us know by creating a new issue here: https://github.com/snapcrafters/signal-desktop/issues
  
  **Authors**
  
  This snap is maintained by the Snapcrafters community, and is not necessarily endorsed or
  officially maintained by the upstream developers.
commands:
  - signal-desktop
snap-id:      r4LxMVp7zWramXsJQAKdamxy6TAWlaDD
tracking:     latest/stable
refresh-date: 11 dias atrás, às 09:07 -03
channels:
  latest/stable:    6.27.1 2023-08-08 (510) 181MB -
  latest/candidate: 6.28.0 2023-08-09 (512) 182MB -
  latest/beta:      ↑                             
  latest/edge:      ↑                             
installed:          6.27.1            (510) 181MB -

Output of snap connections $snap_name

Interface                Plug                                   Slot                            Notas
audio-playback          signal-desktop:audio-playback          :audio-playback                 -
audio-record            signal-desktop:audio-record            :audio-record                   -
browser-support         signal-desktop:browser-support         :browser-support                -
camera                  signal-desktop:camera                  :camera                         -
content[gnome-42-2204]  signal-desktop:gnome-42-2204           gnome-42-2204:gnome-42-2204     -
content[gtk-3-themes]   signal-desktop:gtk-3-themes            gtk-common-themes:gtk-3-themes  -
content[icon-themes]    signal-desktop:icon-themes             gtk-common-themes:icon-themes   -
content[sound-themes]   signal-desktop:sound-themes            gtk-common-themes:sound-themes  -
desktop                 signal-desktop:desktop                 :desktop                        -
desktop-legacy          signal-desktop:desktop-legacy          :desktop-legacy                 -
gsettings               signal-desktop:gsettings               :gsettings                      -
home                    signal-desktop:home                    :home                           -
network                 signal-desktop:network                 :network                        -
opengl                  signal-desktop:opengl                  :opengl                         -
removable-media         signal-desktop:removable-media         -                               -
screen-inhibit-control  signal-desktop:screen-inhibit-control  :screen-inhibit-control         -
unity7                  signal-desktop:unity7                  :unity7                         -
wayland                 signal-desktop:wayland                 :wayland                        -
x11                     signal-desktop:x11                     :x11                            -

Output of snap version

snap    2.59.5
snapd   2.59.5
series  16
ubuntu  20.04
kernel  5.15.0-79-generic

Relevant log output

Aug 19 12:02:55 utopia kernel: [72648.922935] audit: type=1326 audit(1692457375.717:1576): auid=1000 uid=1000 gid=1000 ses=3 subj=snap.signal-desktop.signal-desktop pid=147810 comm="signal-desktop" exe="/snap/signal-desktop/510/opt/Signal/signal-desktop" sig=0 arch=c000003e syscall=330 compat=0 ip=0x7fa10798711b code=0x50000
Aug 19 12:02:56 utopia kernel: [72650.132094] audit: type=1107 audit(1692457376.929:1577): pid=1706 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/" interface="org.freedesktop.DBus.ObjectManager" member="GetManagedObjects" mask="send" name="org.bluez" pid=147810 label="snap.signal-desktop.signal-desktop" peer_pid=1701 peer_label="unconfined"
Aug 19 12:02:56 utopia kernel: [72650.132094]  exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
Aug 19 12:02:56 utopia kernel: [72650.152853] audit: type=1400 audit(1692457376.949:1578): apparmor="DENIED" operation="open" profile="snap.signal-desktop.signal-desktop" name="/etc/vulkan/implicit_layer.d/" pid=147934 comm="signal-desktop" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Aug 19 12:02:56 utopia kernel: [72650.152968] audit: type=1400 audit(1692457376.949:1579): apparmor="DENIED" operation="open" profile="snap.signal-desktop.signal-desktop" name="/etc/vulkan/implicit_layer.d/" pid=147934 comm="signal-desktop" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Aug 19 12:02:56 utopia kernel: [72650.153032] audit: type=1400 audit(1692457376.949:1580): apparmor="DENIED" operation="open" profile="snap.signal-desktop.signal-desktop" name="/etc/vulkan/explicit_layer.d/" pid=147934 comm="signal-desktop" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Aug 19 12:02:56 utopia kernel: [72650.153037] audit: type=1400 audit(1692457376.949:1581): apparmor="DENIED" operation="open" profile="snap.signal-desktop.signal-desktop" name="/etc/vulkan/icd.d/" pid=147934 comm="signal-desktop" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Aug 19 12:02:56 utopia kernel: [72650.154794] audit: type=1400 audit(1692457376.949:1582): apparmor="DENIED" operation="open" profile="snap.signal-desktop.signal-desktop" name="/etc/vulkan/implicit_layer.d/" pid=147934 comm="signal-desktop" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Aug 19 12:02:56 utopia kernel: [72650.154923] audit: type=1400 audit(1692457376.949:1583): apparmor="DENIED" operation="open" profile="snap.signal-desktop.signal-desktop" name="/etc/vulkan/implicit_layer.d/" pid=147934 comm="signal-desktop" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Aug 19 12:02:56 utopia kernel: [72650.154982] audit: type=1400 audit(1692457376.949:1584): apparmor="DENIED" operation="open" profile="snap.signal-desktop.signal-desktop" name="/etc/vulkan/implicit_layer.d/" pid=147934 comm="signal-desktop" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Aug 19 12:02:56 utopia kernel: [72650.155039] audit: type=1400 audit(1692457376.949:1585): apparmor="DENIED" operation="open" profile="snap.signal-desktop.signal-desktop" name="/etc/vulkan/explicit_layer.d/" pid=147934 comm="signal-desktop" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Aug 19 12:04:02 utopia kernel: [72716.067978] show_signal: 106 callbacks suppressed
Aug 19 12:04:02 utopia kernel: [72716.067981] traps: signal-desktop[147900] trap int3 ip:55bcd8e01eaf sp:7fa07fa9b610 error:0 in signal-desktop[55bcd5553000+7849000]

Teminal output of app

Set Windows Application User Model ID (AUMID) { appUserModelId: 'org.whispersystems.signal-desktop' }
NODE_ENV production
NODE_CONFIG_DIR /snap/signal-desktop/510/opt/Signal/resources/app.asar/config
NODE_CONFIG {}
ALLOW_CONFIG_MUTATIONS undefined
HOSTNAME undefined
NODE_APP_INSTANCE undefined
SUPPRESS_NO_CONFIG_WARNING undefined
SIGNAL_ENABLE_HTTP undefined
userData: /home/totoro/snap/signal-desktop/510/.config/Signal
config/get: Successfully read user config file
config/get: Successfully read ephemeral config file
making app single instance
Error org.freedesktop.DBus.Error.Failed: cannot find desktop file "/var/lib/snapd/desktop/applications/signal-desktop_signal.desktop"
Error org.freedesktop.DBus.Error.Failed: cannot find desktop file "/var/lib/snapd/desktop/applications/signal-desktop_signal.desktop"
Gtk-Message: 12:02:56.731: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.

(signal-desktop:147810): Gtk-WARNING **: 12:02:56.881: GTK+ module /snap/signal-desktop/510/gnome-platform/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so cannot be loaded.
GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported.
Gtk-Message: 12:02:56.881: Failed to load module "canberra-gtk-module"
Gtk-Message: 12:02:56.883: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.

(signal-desktop:147810): Gtk-WARNING **: 12:02:56.887: GTK+ module /snap/signal-desktop/510/gnome-platform/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so cannot be loaded.
GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported.
Gtk-Message: 12:02:56.887: Failed to load module "canberra-gtk-module"
Gtk-Message: 12:02:56.888: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
{"level":30,"time":"2023-08-19T15:02:57.037Z","msg":"app.ready: preferred system locales: pt-BR, pt, en"}
{"level":30,"time":"2023-08-19T15:02:57.039Z","msg":"locale: Supported locales: af-ZA, ar, az-AZ, bg-BG, bn-BD, bs-BA, ca, cs, da, de, el, en, es, et-EE, eu, fa-IR, fi, fr, ga-IE, gl-ES, gu-IN, he, hi-IN, hr-HR, hu, id, it, ja, ka-GE, kk-KZ, km-KH, kn-IN, ko, ky-KG, lt-LT, lv-LV, mk-MK, ml-IN, mr-IN, ms, my, nb, nl, pa-IN, pl, pt-BR, pt-PT, ro-RO, ru, sk-SK, sl-SI, sq-AL, sr, sv, sw, ta-IN, te-IN, th, tl-PH, tr, ug, uk-UA, ur, vi, yue, zh-CN, zh-HK, zh-Hant"}
{"level":30,"time":"2023-08-19T15:02:57.039Z","msg":"locale: Preferred locales:  pt-BR, pt, en"}
{"level":30,"time":"2023-08-19T15:02:57.042Z","msg":"locale: Matched locale: pt-BR"}
WARNING: Kernel has no file descriptor comparison support: Operation not permitted
{"level":30,"time":"2023-08-19T15:02:57.091Z","msg":"locale: Text info direction for pt-BR: ltr"}
{"level":30,"time":"2023-08-19T15:02:57.093Z","msg":"app ready"}
{"level":30,"time":"2023-08-19T15:02:57.093Z","msg":"starting version 6.27.1"}
{"level":30,"time":"2023-08-19T15:02:57.093Z","msg":"media access status [object Undefined] [object Undefined]"}
{"level":30,"time":"2023-08-19T15:02:57.096Z","msg":"got fast theme-setting value light"}
{"level":30,"time":"2023-08-19T15:02:57.098Z","msg":"got fast theme-setting value light"}
{"level":30,"time":"2023-08-19T15:02:57.098Z","msg":"got fast spellcheck setting true"}
{"level":30,"time":"2023-08-19T15:02:57.099Z","msg":"getSystemTraySetting saw --use-tray-icon flag. Returning MinimizeToSystemTray"}
{"level":30,"time":"2023-08-19T15:02:57.100Z","msg":"Initializing BrowserWindow config: {\"show\":false,\"width\":1920,\"height\":1043,\"minWidth\":300,\"minHeight\":200,\"autoHideMenuBar\":false,\"titleBarStyle\":\"default\",\"titleBarOverlay\":false,\"backgroundColor\":\"#3a76f0\",\"webPreferences\":{\"devTools\":false,\"spellcheck\":true,\"enableBlinkFeatures\":\"CSSPseudoDir,CSSLogical\",\"nodeIntegration\":false,\"nodeIntegrationInWorker\":false,\"sandbox\":false,\"contextIsolation\":true,\"preload\":\"[REDACTED]/preload.bundle.js\",\"backgroundThrottling\":true,\"enablePreferredSizeMode\":true,\"disableBlinkFeatures\":\"Accelerated2dCanvas,AcceleratedSmallCanvases\"},\"icon\":\"[REDACTED]/images/signal-logo-desktop-linux.png\",\"x\":1920,\"y\":37}"}
{"level":30,"time":"2023-08-19T15:02:57.138Z","msg":"spellcheck: user locales: [\"pt-BR\",\"pt\",\"en\"]"}
{"level":30,"time":"2023-08-19T15:02:57.138Z","msg":"spellcheck: available spellchecker languages: [\"af\",\"bg\",\"ca\",\"cs\",\"cy\",\"da\",\"de\",\"de-DE\",\"el\",\"en\",\"en-AU\",\"en-CA\",\"en-GB\",\"en-GB-oxendict\",\"en-US\",\"es\",\"es-419\",\"es-AR\",\"es-ES\",\"es-MX\",\"es-US\",\"et\",\"fa\",\"fo\",\"fr\",\"fr-FR\",\"he\",\"hi\",\"hr\",\"hu\",\"hy\",\"id\",\"it\",\"it-IT\",\"ko\",\"lt\",\"lv\",\"nb\",\"nl\",\"pl\",\"pt\",\"pt-BR\",\"pt-PT\",\"ro\",\"ru\",\"sh\",\"sk\",\"sl\",\"sq\",\"sr\",\"sv\",\"ta\",\"tg\",\"tr\",\"uk\",\"vi\"]"}
{"level":30,"time":"2023-08-19T15:02:57.138Z","msg":"spellcheck: setting languages to: [\"pt-BR\",\"pt\",\"en\"]"}
{"level":30,"time":"2023-08-19T15:02:57.155Z","msg":"MainSQL: updateSchema:\n  Current user_version: 86;\n  Most recent db schema: 86;\n  SQLite version: 3.39.4;\n  SQLCipher version: 4.5.3 community;\n  (deprecated) schema_version: 371;\n"}
[147810:0819/120257.173419:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.login1.Manager.Inhibit: object_path= /org/freedesktop/login1: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.1480" (uid=1000 pid=147810 comm="/snap/signal-desktop/510/opt/Signal/signal-desktop" label="snap.signal-desktop.signal-desktop (enforce)") interface="org.freedesktop.login1.Manager" member="Inhibit" error name="(unset)" requested_reply="0" destination="org.freedesktop.login1" (uid=0 pid=1740 comm="/lib/systemd/systemd-logind " label="unconfined")
{"level":30,"time":"2023-08-19T15:02:57.709Z","msg":"got fast theme-setting value light"}
(node:147977) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `exe --trace-deprecation ...` to show where the warning was created)
{"level":30,"time":"2023-08-19T15:02:58.650Z","msg":"got fast spellcheck setting true"}
{"level":30,"time":"2023-08-19T15:02:58.651Z","msg":"main window is ready-to-show"}
{"level":30,"time":"2023-08-19T15:02:58.651Z","msg":"showing main window"}
{"level":30,"time":"2023-08-19T15:02:58.660Z","msg":"System tray service: created"}
{"level":30,"time":"2023-08-19T15:02:58.660Z","msg":"System tray service: updating main window. Previously, there was not a window, and now there is"}
{"level":30,"time":"2023-08-19T15:02:58.660Z","msg":"System tray service: rendering no tray"}
{"level":30,"time":"2023-08-19T15:02:58.661Z","msg":"System tray service: enabling"}
{"level":30,"time":"2023-08-19T15:02:58.661Z","msg":"System tray service: rendering the tray"}
{"level":30,"time":"2023-08-19T15:02:58.661Z","msg":"System tray service: creating the tray"}
{"level":30,"time":"2023-08-19T15:02:58.665Z","msg":"Begin ensuring permissions"}
{"level":30,"time":"2023-08-19T15:02:58.670Z","msg":"Ensuring file permissions for 4 files"}
{"level":30,"time":"2023-08-19T15:02:58.671Z","msg":"Finish ensuring permissions in 6ms"}
{"level":30,"time":"2023-08-19T15:02:58.862Z","msg":"MainSQL: slow query getAllStories duration=65ms"}
Trace/breakpoint trap (imagem do núcleo gravada)
@pablovp86 pablovp86 added the bug Something isn't working label Aug 19, 2023
@pablovp86
Copy link
Author

After reverting the version with:
snap revert signal-desktop

I was able to run signal, with the previous: 6.26.0

@popey
Copy link
Contributor

popey commented Oct 28, 2023

Is this still an issue with the newer releases? 6.36 is in the stable channel now.

@pablovp86
Copy link
Author

No @popey. I think this issue can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants