Tradingview apparmor problem

Tradingview causes repeatedly popups about apparmor incidents. There are so many popups that it’s simply not possible to use it at all.

Main issues are denial of reading access to memory.max and memory.high

[ 1926.277459] audit: type=1400 audit(1726197973.097:8443): apparmor="DENIED" operation="open" class="file" profile="snap.tradingview.tradingview" name="/sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/app.slice/snap.tradingview.tradingview-aaf39...2d.scope/memory.max" pid=12109 comm="tradingview" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000
[ 1926.277465] audit: type=1400 audit(1726197973.097:8444): apparmor="DENIED" operation="open" class="file" profile="snap.tradingview.tradingview" name="/sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/app.slice/snap.tradingview.tradingview-aaf39...2d.scope/memory.high" pid=12109 comm="tradingview" requested_mask="r" denied_mask="r" fsuid=1000 ouid=1000

on startup there are some more apparmor issues, but they are not repeating. I leave it here as a refernece

[ 1851.846791] audit: type=1400 audit(1726197898.668:6523): apparmor="DENIED" operation="capable" class="cap" profile="/usr/lib/snapd/snap-confine" pid=12109 comm="snap-confine" capability=12  capname="net_admin"
[ 1851.846797] audit: type=1400 audit(1726197898.668:6524): apparmor="DENIED" operation="capable" class="cap" profile="/usr/lib/snapd/snap-confine" pid=12109 comm="snap-confine" capability=38  capname="perfmon"
[ 1851.851263] audit: type=1400 audit(1726197898.672:6525): apparmor="DENIED" operation="open" class="file" profile="snap-update-ns.tradingview" name="/proc/12129/maps" pid=12129 comm="5" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[ 1852.181880] audit: type=1107 audit(1726197899.003:6528): pid=1691 uid=102 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=12109 label="snap.tradingview.tradingview" peer_pid=1688 peer_label="unconfined"
[ 1852.189677] audit: type=1400 audit(1726197899.011:6529): apparmor="DENIED" operation="open" class="file" profile="snap.tradingview.tradingview" name="/etc/" pid=12109 comm="tradingview" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[ 1852.190227] audit: type=1400 audit(1726197899.011:6530): apparmor="DENIED" operation="open" class="file" profile="snap.tradingview.tradingview" name="/etc/vulkan/implicit_layer.d/" pid=12197 comm="tradingview" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[ 1852.190242] audit: type=1400 audit(1726197899.011:6531): apparmor="DENIED" operation="open" class="file" profile="snap.tradingview.tradingview" name="/etc/vulkan/implicit_layer.d/" pid=12197 comm="tradingview" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[ 1852.190288] audit: type=1400 audit(1726197899.011:6532): apparmor="DENIED" operation="open" class="file" profile="snap.tradingview.tradingview" name="/etc/vulkan/icd.d/" pid=12197 comm="tradingview" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0

I did try to manually connect the system-observe interface, but it didn’t help:

sudo snap connect tradingview:system-observe 

How to fix the memory.high and memory.max errors?

OS: Xubuntu 24.04.1 LTS

Snap info:

snap 2.63.1+24.04

snapd 2.63.1+24.04

series 16

ubuntu 24.04

kernel 6.8.0-44-generic

and here the output of “snap connections tradingview”, just in case…

name@machine:~$ snap connections tradingview
Schnittstelle             Plug                         Slot                             Notizen
audio-playback            tradingview:audio-playback   :audio-playback                  -
browser-support           tradingview:browser-support  :browser-support                 -
camera                    tradingview:camera           -                                -
content[gnome-3-28-1804]  tradingview:gnome-3-28-1804  gnome-3-28-1804:gnome-3-28-1804  -
content[gtk-3-themes]     tradingview:gtk-3-themes     gtk-common-themes:gtk-3-themes   -
content[icon-themes]      tradingview:icon-themes      gtk-common-themes:icon-themes    -
content[sound-themes]     tradingview:sound-themes     gtk-common-themes:sound-themes   -
desktop                   tradingview:desktop          :desktop                         -
desktop-legacy            tradingview:desktop-legacy   :desktop-legacy                  -
gsettings                 tradingview:gsettings        :gsettings                       -
home                      tradingview:home             :home                            -
network                   tradingview:network          :network                         -
opengl                    tradingview:opengl           :opengl                          -
pulseaudio                tradingview:pulseaudio       -                                -
removable-media           tradingview:removable-media  -                                -
system-observe            tradingview:system-observe   :system-observe                  manual
unity7                    tradingview:unity7           :unity7                          -
wayland                   tradingview:wayland          :wayland                         -
x11                       tradingview:x11              :x11