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