extraymond / zotero-snap

snap for zotero
17 stars 8 forks source link

opening zotero snap causes 3 processes to open (ubuntu mate 21.04) #16

Closed jonpolak closed 3 years ago

jonpolak commented 3 years ago

When opening Zotero Snap, from GUI menu or from command line, 3 processes are opened, and the program GUI is not displayed.

bash $ pgrep -a zot
57987 /bin/bash /snap/zotero-snap/26/zotero -c $(dirname $(readlink -f '/home/jojo/.local/share/applications/zotero-snap_zotero-snap.desktop'))/zotero -url 
58072 /snap/zotero-snap/26/zotero-bin -app /snap/zotero-snap/26/application.ini -c $(dirname $(readlink -f '/home/jojo/.local/share/applications/zotero-snap_zotero-snap.desktop'))/zotero -url 
58074 /snap/zotero-snap/26/zotero-bin -app /snap/zotero-snap/26/application.ini -c $(dirname $(readlink -f '/home/jojo/.local/share/applications/zotero-snap_zotero-snap.desktop'))/zotero -url
bash $

Killing the last process allows the program GUI to start fully and be displayed.

Thinkpad T14s (AMD) 5.11.0-18-generic #19-Ubuntu SMP Fri May 7 14:22:03 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux zotero-snap 5.0.96.2 26 latest/stable extraymond -

edurojasr commented 3 years ago

Hi @jonpolak

I have the same problem in Ubuntu 21.04 in a Thinkpad t14s AMD with Renoir gpu, in a other laptop (thinkpad t460 intel with ubuntu 21.04) this problem does not happen.

Here are the journalctl -t audit -f logs before killing the last process:

jul 13 21:18:46 edu-ThinkPad-T14s audit[5571]: AVC apparmor="DENIED" operation="capable" profile="/snap/snapd/12398/usr/lib/snapd/snap-confine" pid=5571 comm="snap-confine" capability=4 capname="fsetid" jul 13 21:18:55 edu-ThinkPad-T14s audit[5755]: AVC apparmor="DENIED" operation="capable" profile="snap.zotero-snap.zotero-snap" pid=5755 comm="zotero-bin" capability=21 capname="sys_admin" jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5755]: AVC apparmor="DENIED" operation="open" profile="snap.zotero-snap.zotero-snap" name="/proc/5755/net/arp" pid=5755 comm=4C696E6B204D6F6E69746F72 requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 jul 13 21:18:56 edu-ThinkPad-T14s audit[5755]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5755 comm=43616368653220492F4F exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=179 compat=0 ip=0x7f0ec18d237a code=0x50000 jul 13 21:18:56 edu-ThinkPad-T14s audit[5755]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5755 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=179 compat=0 ip=0x7f0ec18d237a code=0x50000

Here are the logs after killing the last process and the GUI to started fully

-- Journal begins at Tue 2021-07-13 16:33:56 CST. -- jul 13 21:28:06 edu-ThinkPad-T14s audit[7643]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7643 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f2ba0fd8c7f code=0x50000 jul 13 21:28:06 edu-ThinkPad-T14s audit[7643]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7643 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f2ba0fd8c7f code=0x50000 jul 13 21:28:06 edu-ThinkPad-T14s audit[7643]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7643 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f2ba0fd8c7f code=0x50000 jul 13 21:28:06 edu-ThinkPad-T14s audit[7643]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7643 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f2ba0fd8c7f code=0x50000 jul 13 21:28:06 edu-ThinkPad-T14s audit[7643]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7643 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f2ba0fd8c7f code=0x50000 jul 13 21:28:06 edu-ThinkPad-T14s audit[7643]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7643 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f2ba0fd8c7f code=0x50000 jul 13 21:28:06 edu-ThinkPad-T14s audit[7643]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7643 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f2ba0fd8c7f code=0x50000 jul 13 21:28:06 edu-ThinkPad-T14s audit[7643]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7643 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f2ba0fd8c7f code=0x50000 jul 13 21:28:06 edu-ThinkPad-T14s audit[7643]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7643 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f2ba0fd8c7f code=0x50000 jul 13 21:28:06 edu-ThinkPad-T14s audit[7641]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7641 comm=43616368653220492F4F exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=179 compat=0 ip=0x7f2b9ffac37a code=0x50000 jul 13 21:28:43 edu-ThinkPad-T14s audit[7641]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7641 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=179 compat=0 ip=0x7f2b9ffac37a code=0x50000 jul 13 21:28:45 edu-ThinkPad-T14s audit[7641]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7641 comm=43616368653220492F4F exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=179 compat=0 ip=0x7f2b9ffac37a code=0x50000 jul 13 21:28:45 edu-ThinkPad-T14s audit[7641]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7641 comm=43616368653220492F4F exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=179 compat=0 ip=0x7f2b9ffac37a code=0x50000 jul 13 21:28:45 edu-ThinkPad-T14s audit[7641]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7641 comm=43616368653220492F4F exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=179 compat=0 ip=0x7f2b9ffac37a code=0x50000 jul 13 21:28:45 edu-ThinkPad-T14s audit[7641]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7641 comm=43616368653220492F4F exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=179 compat=0 ip=0x7f2b9ffac37a code=0x50000 jul 13 21:28:47 edu-ThinkPad-T14s audit[7641]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7641 comm=43616368653220492F4F exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=179 compat=0 ip=0x7f2b9ffac37a code=0x50000 jul 13 21:28:47 edu-ThinkPad-T14s audit[7641]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7641 comm=43616368653220492F4F exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=179 compat=0 ip=0x7f2b9ffac37a code=0x50000 jul 13 21:28:47 edu-ThinkPad-T14s audit[7641]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7641 comm=43616368653220492F4F exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=179 compat=0 ip=0x7f2b9ffac37a code=0x50000 jul 13 21:28:47 edu-ThinkPad-T14s audit[7641]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7641 comm=43616368653220492F4F exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=179 compat=0 ip=0x7f2b9ffac37a code=0x50000 jul 13 21:28:55 edu-ThinkPad-T14s audit[7641]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7641 comm=43616368653220492F4F exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=179 compat=0 ip=0x7f2b9ffac37a code=0x50000 jul 13 21:28:55 edu-ThinkPad-T14s audit[7641]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7641 comm=43616368653220492F4F exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=179 compat=0 ip=0x7f2b9ffac37a code=0x50000 jul 13 21:28:56 edu-ThinkPad-T14s audit[7641]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7641 comm=43616368653220492F4F exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=179 compat=0 ip=0x7f2b9ffac37a code=0x50000

Here is a related Answer from launchpad:

https://answers.launchpad.net/snappy/+question/697307

Maybe this help, related to and AMD amdgpu driver update, because according to the snapcraft web this snap is popular in Ubuntu 20.04 LTS and that one its going to have a kernel update in agust that may provoke problems with this snap in alot of systems.

jonpolak commented 3 years ago

EDIT - my fix below does NOT WORK. Apologies.

I'm also on AMD T14s and see the same problem as you. My intel machine does not have this problem using same versions of Ubuntu.

based on your journal I changed the MESA DRIVER to 21.1.4 (from 21.0.1 ) and the problem went away.

I also have problems with the MS-TEAMS snap and the ZOOM snap..... haven't tested those out with the new mesa driver yet.... will do so soon.

On Tue, Jul 13, 2021 at 8:35 PM Eduardo Rojas Rodríguez < @.***> wrote:

Hi @jonpolak https://github.com/jonpolak

I have the same problem in Ubuntu 21.04 in a Thinkpad t14s AMD with Reinor gpu, in a other laptop (thinkpad t460 intel with ubuntu 21.04) this problem does not happen. Here are the journalctl -t audit -f logs before killing the last process:

jul 13 21:18:46 edu-ThinkPad-T14s audit[5571]: AVC apparmor="DENIED" operation="capable" profile="/snap/snapd/12398/usr/lib/snapd/snap-confine" pid=5571 comm="snap-confine" capability=4 capname="fsetid" jul 13 21:18:55 edu-ThinkPad-T14s audit[5755]: AVC apparmor="DENIED" operation="capable" profile="snap.zotero-snap.zotero-snap" pid=5755 comm="zotero-bin" capability=21 capname="sys_admin" jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5757]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5757 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f0ec28fec7f code=0x50000 jul 13 21:18:55 edu-ThinkPad-T14s audit[5755]: AVC apparmor="DENIED" operation="open" profile="snap.zotero-snap.zotero-snap" name="/proc/5755/net/arp" pid=5755 comm=4C696E6B204D6F6E69746F72 requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 jul 13 21:18:56 edu-ThinkPad-T14s audit[5755]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5755 comm=43616368653220492F4F exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=179 compat=0 ip=0x7f0ec18d237a code=0x50000 jul 13 21:18:56 edu-ThinkPad-T14s audit[5755]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=5755 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=179 compat=0 ip=0x7f0ec18d237a code=0x50000

Here are the logs after killing the last process and the GUI to started fully

-- Journal begins at Tue 2021-07-13 16:33:56 CST. -- jul 13 21:28:06 edu-ThinkPad-T14s audit[7643]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7643 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f2ba0fd8c7f code=0x50000 jul 13 21:28:06 edu-ThinkPad-T14s audit[7643]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7643 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f2ba0fd8c7f code=0x50000 jul 13 21:28:06 edu-ThinkPad-T14s audit[7643]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7643 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f2ba0fd8c7f code=0x50000 jul 13 21:28:06 edu-ThinkPad-T14s audit[7643]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7643 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f2ba0fd8c7f code=0x50000 jul 13 21:28:06 edu-ThinkPad-T14s audit[7643]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7643 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f2ba0fd8c7f code=0x50000 jul 13 21:28:06 edu-ThinkPad-T14s audit[7643]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7643 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f2ba0fd8c7f code=0x50000 jul 13 21:28:06 edu-ThinkPad-T14s audit[7643]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7643 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f2ba0fd8c7f code=0x50000 jul 13 21:28:06 edu-ThinkPad-T14s audit[7643]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7643 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f2ba0fd8c7f code=0x50000 jul 13 21:28:06 edu-ThinkPad-T14s audit[7643]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7643 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=203 compat=0 ip=0x7f2ba0fd8c7f code=0x50000 jul 13 21:28:06 edu-ThinkPad-T14s audit[7641]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7641 comm=43616368653220492F4F exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=179 compat=0 ip=0x7f2b9ffac37a code=0x50000 jul 13 21:28:43 edu-ThinkPad-T14s audit[7641]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7641 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=179 compat=0 ip=0x7f2b9ffac37a code=0x50000 jul 13 21:28:45 edu-ThinkPad-T14s audit[7641]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7641 comm=43616368653220492F4F exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=179 compat=0 ip=0x7f2b9ffac37a code=0x50000 jul 13 21:28:45 edu-ThinkPad-T14s audit[7641]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7641 comm=43616368653220492F4F exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=179 compat=0 ip=0x7f2b9ffac37a code=0x50000 jul 13 21:28:45 edu-ThinkPad-T14s audit[7641]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7641 comm=43616368653220492F4F exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=179 compat=0 ip=0x7f2b9ffac37a code=0x50000 jul 13 21:28:45 edu-ThinkPad-T14s audit[7641]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7641 comm=43616368653220492F4F exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=179 compat=0 ip=0x7f2b9ffac37a code=0x50000 jul 13 21:28:47 edu-ThinkPad-T14s audit[7641]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7641 comm=43616368653220492F4F exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=179 compat=0 ip=0x7f2b9ffac37a code=0x50000 jul 13 21:28:47 edu-ThinkPad-T14s audit[7641]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7641 comm=43616368653220492F4F exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=179 compat=0 ip=0x7f2b9ffac37a code=0x50000 jul 13 21:28:47 edu-ThinkPad-T14s audit[7641]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7641 comm=43616368653220492F4F exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=179 compat=0 ip=0x7f2b9ffac37a code=0x50000 jul 13 21:28:47 edu-ThinkPad-T14s audit[7641]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7641 comm=43616368653220492F4F exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=179 compat=0 ip=0x7f2b9ffac37a code=0x50000 jul 13 21:28:55 edu-ThinkPad-T14s audit[7641]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7641 comm=43616368653220492F4F exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=179 compat=0 ip=0x7f2b9ffac37a code=0x50000 jul 13 21:28:55 edu-ThinkPad-T14s audit[7641]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7641 comm=43616368653220492F4F exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=179 compat=0 ip=0x7f2b9ffac37a code=0x50000 jul 13 21:28:56 edu-ThinkPad-T14s audit[7641]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=snap.zotero-snap.zotero-snap pid=7641 comm=43616368653220492F4F exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e syscall=179 compat=0 ip=0x7f2b9ffac37a code=0x50000

Here is a related Answer from launchpad:

https://answers.launchpad.net/snappy/+question/697307

Maybe this help, related to and AMD amdgpu driver update, because according to the snapcraft web this snap is popular in Ubuntu 20.04 LTS and that one its going to have a kernel update in agust that may provoke problems with this snap in alot of systems.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/extraymond/zotero-snap/issues/16#issuecomment-879559371, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAN2N6477PZKQIZK44VCP3DTXUAYRANCNFSM46GHR2KA .

edurojasr commented 3 years ago

Hi @jonpolak

Ok just to be clear, updating to the new MESA does not fix this problem?

I have open other 2 bugs reports in launchpad.net for Thunderbird and LibreOffice that present the same problem.

LibreOffice: https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1936051

Thunderbird: https://bugs.launchpad.net/ubuntu/+source/thunderbird/+bug/1936047

Maybe you can help me confirming this, to see If it gets some traction.

jonpolak commented 3 years ago

Correct, updating MESA does not help.

can you also check the CHROMIUM snap, if you right click on certain parts of the application like in areas that would generate a drop-down menu That's driven by the application itself, for example on the open tabs along the top. It would freeze

On Wed, Jul 14, 2021, 08:37 Eduardo Rojas Rodríguez < @.***> wrote:

Hi @jonpolak https://github.com/jonpolak

Ok just to be clear, updating to the new MESA does not fix this problem?

I have open other 2 bugs reports in launchpad.net for Thunderbird and LibreOffice that present the same problem.

LibreOffice: https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1936051

Thunderbird: https://bugs.launchpad.net/ubuntu/+source/thunderbird/+bug/1936047

Maybe you can help me confirming this, to see If it gets some traction.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/extraymond/zotero-snap/issues/16#issuecomment-879997707, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAN2N6YNTCCVGIHJJWNDEG3TXWVNBANCNFSM46GHR2KA .

edurojasr commented 3 years ago

Sure! 😃 Later I will check the Chromium snap.

Since this is the Zotero repo, we should try to focus in Zotero-snap.

@extraymond Have you had time to review this issue?

It's looking like a wide spread problem with AMD laptops that may affect Ubuntu LTS (with a lot of users) in the near future.

extraymond commented 3 years ago

@edurojasr Definitely, I'll test it in the weekend! Can you specify snapd version, zotero-snap revision alongside your desktop environment?

edurojasr commented 3 years ago

Sure! thanks :)

Distributor ID: Ubuntu Description: Ubuntu 21.04 Release: 21.04 Codename: hirsute Kernel 5.11.0-22-generic

zotero-snap Version: 5.0.96.2 Rev: 26 Tracking: latest/stable Publisher: extraymond

extraymond commented 3 years ago

Investigating this. I tried it in a 21.04 lxd container and it worked. So it seems it really might be kernel related issues, nice bug hunt down!!! Will try to reproduce using newer kernel with vm and see what I can find.

edurojasr commented 3 years ago

Thanks for looking at it! 😃

edurojasr commented 3 years ago

@extraymond if it's not too much to ask, could you report your findings to share them in the other bugs in launchpad?, maybe they help with the other applications

extraymond commented 3 years ago

@edurojasr No problem, onward for bug hunting!!!

extraymond commented 3 years ago

@edurojasr @jonpolak

Screenshot_20210718_115120

I've just spawned up a ubuntu 21.04 vm, and zotero was able to start up successfully. This is test against kernel: 5.11.0-22-generic, I suspect this might be a driver issue? Can you reproduce without the amd driver? Or use a newer one from a ppa such as oibaf or padoka? I didn't have a renior device with 21.04 so I'm not able to reproduce on that setup.

extraymond commented 3 years ago

Also, you may more than one processes is normal, snap spawned a main one with the zotero-snap command, and in that generated init-script, it's calling the zotero command within the sandbox environment. If I have to guess, the third one might come from the started zotero itself.

edurojasr commented 3 years ago

Hi! @extraymond

I tested with Ubuntu 20.04.2 LTS with Linux Kernel 5.8 and there is not problem opening the snaps.

This week Im in finals so then I won't be able to do many tests for now :(

edurojasr commented 3 years ago

Hi @extraymond I'm back!

Update the AMD drivers from MESA 21.0 to 21.3 using the oibaf PPA does not help, same behavior as before, snap GUI do not show until I end/kill the last zotero-bin process.

In case this is helpful when a use the command snap run zotero-snap I got the fallowing warnings:

(zotero:5465): Gtk-WARNING : 20:34:56.320: Theme parsing error: gtk.css:1555:23: 'font-feature-settings' is not a valid property name (zotero:5465): Gtk-WARNING : 20:34:56.326: Theme parsing error: gtk.css:3593:25: 'font-feature-settings' is not a valid property name (zotero:5465): Gtk-WARNING : 20:34:56.328: Theme parsing error: gtk.css:4055:23: 'font-feature-settings' is not a valid property name (zotero:5465): Gtk-WARNING : 20:34:56.830: Theme parsing error: :1:34: Expected ')' in color definition (zotero:5465): Gtk-WARNING **: 20:34:56.830: Theme parsing error: :1:76: Expected ')' in color definition

edurojasr commented 3 years ago

Hi @extraymond I test the new Ubuntu LTS 20.4.3 with updated Kernel to 5.11 and MESA 21.0 I can confirm that this problem now appears in the LTS version, before in 20.4.2 does not happen.

So it appears that it something related to the updated MESA drivers.

I tested with Ubuntu 21.04 with kernel 5.14 with MESA 21.0.3 and the problem its present

Edit: Tested with Ubuntu 21.04 with kernel 5.14 and MESA 21.3 not luck, the problem persist :(

edurojasr commented 3 years ago

@extraymond I start test using "The snappy-debug snap"

link here: https://snapcraft.io/docs/debug-snaps#heading--snappy-debug

Maybe this will help!

sudo snappy-debug

output before closing last processes with no gui:

eduardo@eduardo-T14s:~$ sudo snappy-debug [sudo] password for eduardo: INFO: Following '/var/log/syslog'. If have dropped messages, use: INFO: $ sudo journalctl --output=short --follow --all | sudo snappy-debug kernel.printk_ratelimit = 0 = AppArmor = Time: Aug 30 21:35:02 Log: apparmor="DENIED" operation="capable" profile="/snap/snapd/12883/usr/lib/snapd/snap-confine" pid=5480 comm="snap-confine" capability=4 capname="fsetid" Capability: fsetid Suggestions:

= AppArmor = Time: Aug 30 21:35:03 Log: apparmor="DENIED" operation="capable" profile="snap.zotero-snap.zotero-snap" pid=5562 comm="zotero-bin" capability=21 capname="sys_admin" Capability: sys_admin Suggestions:

= AppArmor = Time: Aug 30 21:35:05 Log: apparmor="DENIED" operation="open" profile="snap.zotero-snap.zotero-snap" name="/proc/5562/net/arp" pid=5562 comm=4C696E6B204D6F6E69746F72 requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 File: /proc/5562/net/arp (read) Suggestions:

= Seccomp = Time: Aug 30 21:35:05 Log: auid=1000 uid=1000 gid=1000 ses=3 subj==snap.zotero-snap.zotero-snap (enforce) pid=5564 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e 203(sched_setaffinity) compat=0 ip=0x7fbc00dacc7f code=0x50000 Syscall: sched_setaffinity Suggestion:

= Seccomp = Time: Aug 30 21:35:06 Log: auid=1000 uid=1000 gid=1000 ses=3 subj==snap.zotero-snap.zotero-snap (enforce) pid=5562 comm=43616368653220492F4F exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e 179(quotactl) compat=0 ip=0x7fbbffd8037a code=0x50000 Syscall: quotactl Suggestion:

= Seccomp = Time: Aug 30 21:35:06 Log: auid=1000 uid=1000 gid=1000 ses=3 subj==snap.zotero-snap.zotero-snap (enforce) pid=5562 comm="zotero-bin" exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e 179(quotactl) compat=0 ip=0x7fbbffd8037a code=0x50000 Syscall: quotactl Suggestion:

Output after closing the last processes and GUI shows up

eduardo@eduardo-T14s:~$ sudo snappy-debug INFO: Following '/var/log/syslog'. If have dropped messages, use: INFO: $ sudo journalctl --output=short --follow --all | sudo snappy-debug kernel.printk_ratelimit = 0 = Seccomp = Time: Aug 30 21:41:15 Log: auid=1000 uid=1000 gid=1000 ses=3 subj==snap.zotero-snap.zotero-snap (enforce) pid=5562 comm=43616368653220492F4F exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e 179(quotactl) compat=0 ip=0x7fbbffd8037a code=0x50000 Syscall: quotactl Suggestion:

= Seccomp = Time: Aug 30 21:41:15 Log: auid=1000 uid=1000 gid=1000 ses=3 subj==snap.firefox.firefox (enforce) pid=6245 comm="firefox-bin" exe="/snap/firefox/586/firefox-bin" sig=0 arch=c000003e 314(sched_setattr) compat=0 ip=0x7f3119aa2639 code=0x50000 Syscall: sched_setattr Suggestion:

= Seccomp = Time: Aug 30 21:41:15 Log: auid=1000 uid=1000 gid=1000 ses=3 subj==snap.zotero-snap.zotero-snap (enforce) pid=5562 comm=43616368653220492F4F exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e 179(quotactl) compat=0 ip=0x7fbbffd8037a code=0x50000 Syscall: quotactl Suggestion:

= Seccomp = Time: Aug 30 21:41:16 Log: auid=1000 uid=1000 gid=1000 ses=3 subj==snap.firefox.firefox (enforce) pid=6378 comm="MainThread" exe="/snap/firefox/586/firefox-bin" sig=0 arch=c000003e 314(sched_setattr) compat=0 ip=0x7f503576e639 code=0x50000 Syscall: sched_setattr Suggestion:

= Seccomp = Time: Aug 30 21:41:19 Log: auid=1000 uid=1000 gid=1000 ses=3 subj==snap.zotero-snap.zotero-snap (enforce) pid=5562 comm=43616368653220492F4F exe="/snap/zotero-snap/26/zotero-bin" sig=0 arch=c000003e 179(quotactl) compat=0 ip=0x7fbbffd8037a code=0x50000 Syscall: quotactl Suggestion:

extraymond commented 3 years ago

@edurojasr

Thanks for the thorough feedback, I have pushed an new version with gnome-3-34 extension, would you mind testing it by installing it from the edge channel? It'll be revision 29.

edurojasr commented 3 years ago

Installed: zotero-snap Version: 5.0.96.3 Rev: 31 Tracking: latest/edge

No Luck :( problem persist. no GUI shows until I end/kill last zoreto-bin process

snap run zotero-snap

output:

(zotero:14060): Gtk-WARNING **: 16:20:59.225: Theme parsing error: gtk.css:1555:23: 'font-feature-settings' is not a valid property name

(zotero:14060): Gtk-WARNING **: 16:20:59.232: Theme parsing error: gtk.css:3593:25: 'font-feature-settings' is not a valid property name

(zotero:14060): Gtk-WARNING **: 16:20:59.233: Theme parsing error: gtk.css:4055:23: 'font-feature-settings' is not a valid property name

(zotero:14060): Gtk-WARNING **: 16:21:00.635: Theme parsing error: :1:34: Expected ')' in color definition

(zotero:14060): Gtk-WARNING **: 16:21:00.635: Theme parsing error: :1:76: Expected ')' in color definition


sudo snappy-debug

Output before end/kill last zotero-bin process (no GUI show):

eduardo@eduardo-T14s:~$ sudo snappy-debug INFO: Following '/var/log/syslog'. If have dropped messages, use: INFO: $ sudo journalctl --output=short --follow --all | sudo snappy-debug kernel.printk_ratelimit = 0 = AppArmor = Time: Sep 2 16:24:02 Log: apparmor="DENIED" operation="capable" profile="snap.zotero-snap.zotero-snap" pid=14865 comm="zotero-bin" capability=21 capname="sys_admin" Capability: sys_admin Suggestions:

= Seccomp = Time: Sep 2 16:24:03 Log: auid=1000 uid=1000 gid=1000 ses=3 subj==snap.zotero-snap.zotero-snap (enforce) pid=14867 comm="zotero-bin" exe="/snap/zotero-snap/31/zotero-bin" sig=0 arch=c000003e 203(sched_setaffinity) compat=0 ip=0x7f964f026c7f code=0x50000 Syscall: sched_setaffinity Suggestion:

= AppArmor = Time: Sep 2 16:24:03 Log: apparmor="DENIED" operation="open" profile="snap.zotero-snap.zotero-snap" name="/proc/14865/net/arp" pid=14865 comm=4C696E6B204D6F6E69746F72 requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 File: /proc/14865/net/arp (read) Suggestions:

= Seccomp = Time: Sep 2 16:24:03 Log: auid=1000 uid=1000 gid=1000 ses=3 subj==snap.zotero-snap.zotero-snap (enforce) pid=14865 comm=43616368653220492F4F exe="/snap/zotero-snap/31/zotero-bin" sig=0 arch=c000003e 179(quotactl) compat=0 ip=0x7f964dffa37a code=0x50000 Syscall: quotactl Suggestion:

After end/kill last zotero-bin process (GUI Shows)

= Seccomp = Time: Sep 2 16:25:48 Log: auid=1000 uid=1000 gid=1000 ses=3 subj==snap.zotero-snap.zotero-snap (enforce) pid=14865 comm="zotero-bin" exe="/snap/zotero-snap/31/zotero-bin" sig=0 arch=c000003e 179(quotactl) compat=0 ip=0x7f964dffa37a code=0x50000 Syscall: quotactl Suggestion:

= Seccomp = Time: Sep 2 16:25:49 Log: auid=1000 uid=1000 gid=1000 ses=3 subj==snap.zotero-snap.zotero-snap (enforce) pid=14865 comm=43616368653220492F4F exe="/snap/zotero-snap/31/zotero-bin" sig=0 arch=c000003e 179(quotactl) compat=0 ip=0x7f964dffa37a code=0x50000 Syscall: quotactl Suggestion:

extraymond commented 3 years ago

@edurojasr I was not able to reproduce it on my system. I've tested with ubuntu 21.04.

You stated that you were not able to start the gui without killing the main process. Can you elaborate on how you start the main process before hand?

jonpolak commented 3 years ago

I have the same issue, Ubuntu 21.04 /

I start the main process from the main menu. Here is the command it uses:

env

BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/zotero-snap_zotero-snap.desktop /snap/bin/zotero-snap -c "$(dirname $(readlink -f %k))/zotero -url %U"

After running the above command from the gui, filtering your open processes for ZOTERO you see the below screenshot.

[image: image.png]

You need to kill process 115724 in order for the program to start.

On Thu, Sep 2, 2021 at 9:40 PM extraymond @.***> wrote:

@edurojasr https://github.com/edurojasr I was not able to reproduce it on my system. I've tested with ubuntu 21.04.

You stated that you were not able to start the gui without killing the main process. Can you elaborate on how you start the main process before hand?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/extraymond/zotero-snap/issues/16#issuecomment-912249926, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAN2N6YL2XPGW6HCRKDKYGLUABGUHANCNFSM46GHR2KA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

jonpolak commented 3 years ago

Also I think the problem is only occurring on machines with AMD processors.

On Thu, Sep 2, 2021 at 9:50 PM Jonathan Polak @.***> wrote:

I have the same issue, Ubuntu 21.04 /

I start the main process from the main menu. Here is the command it uses:

env

BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/zotero-snap_zotero-snap.desktop /snap/bin/zotero-snap -c "$(dirname $(readlink -f %k))/zotero -url %U"

After running the above command from the gui, filtering your open processes for ZOTERO you see the below screenshot.

[image: image.png]

You need to kill process 115724 in order for the program to start.

On Thu, Sep 2, 2021 at 9:40 PM extraymond @.***> wrote:

@edurojasr https://github.com/edurojasr I was not able to reproduce it on my system. I've tested with ubuntu 21.04.

You stated that you were not able to start the gui without killing the main process. Can you elaborate on how you start the main process before hand?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/extraymond/zotero-snap/issues/16#issuecomment-912249926, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAN2N6YL2XPGW6HCRKDKYGLUABGUHANCNFSM46GHR2KA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

extraymond commented 3 years ago

@jonpolak I'm on a AMD cpu+gpu setup as well. From the original issue, it seems the problem can be found on newer AMD APU models with integrated graphics?

jonpolak commented 3 years ago

You may be right. I have a laptop with integrated GPU. Model is Ryzen 4750

... This is WEIRD.

On Thu, Sep 2, 2021, 22:35 extraymond @.***> wrote:

@jonpolak https://github.com/jonpolak I'm on a AMD cpu+gpu setup as well. From the original issue, it seems the problem can be found on newer AMD APU models with integrated graphics?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/extraymond/zotero-snap/issues/16#issuecomment-912269391, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAN2N6YE52GBAJ4GTMELDFDUABNAVANCNFSM46GHR2KA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

extraymond commented 3 years ago

@jonpolak Would you mind reproduce this with non-snap zotero as well? Maybe the driver issue can cause greater harm on non-snap packages as well.

jonpolak commented 3 years ago

the zoom snap

zoom-client 5.7.6-31792.0820 158 latest/stable ogra

opens right away. However, it has other problems and crashes during meetings.

the ms teams snap

teams-insiders 1.4.00.13653 6 latest/stable msteams✓ -

that one opens right away as well. but also has other problems that crop up once you're already in a meeting

On Fri, Sep 3, 2021 at 12:54 AM extraymond @.***> wrote:

@jonpolak https://github.com/jonpolak Would you mind reproduce this with non-snap zotero as well? Maybe the driver issue can cause greater harm on non-snap packages as well.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/extraymond/zotero-snap/issues/16#issuecomment-912337150, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAN2N6256G63LD4UX3IEDZTUAB5MDANCNFSM46GHR2KA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

edurojasr commented 3 years ago

@edurojasr I was not able to reproduce it on my system. I've tested with ubuntu 21.04.

You stated that you were not able to start the gui without killing the main process. Can you elaborate on how you start the main process before hand?

Sure I will explain in detail, remember I'm in a laptop with AMD 4750U with Reinor GPU Kernel 5.14 Mesa 21.3:

  1. I open the Zotero-snap like a regular app by clicking on the app icon,

  2. Nothing happen.

  3. Check process using the monitor app.

  4. End/Kill the last zotero-bin process usually is the one using less ram. image

  5. After End/killing that process the GUI show like normal and the snap-app works great image

This exact behavior its present in others snaps like Thunderbird and LibreOffice, I have both report bugs on launchpad.net and are confirmed but they have not gained traction, other user have reported that the newer AMD laptop chips AMD Ryzen 7 5800H have the same problem.

The .debs packages do not have this problem, applications open without major problem

edurojasr commented 3 years ago

I have to report that tested the new LibreOffice snap: Name: libreoffice Version: 7.2.0.4 Rev: 227 Tracking: latest/stable Publisher: canonical✓

In the same laptop with AMD 4750U with kernel 5.14 and MESA 21.3

Somehow have fix the problem, now the snap opens without the need to kill the last process in the monitor app. This may indicate that this problem is fixable without the need of driver change, maybe a something in the snap it is?

If you want @extraymond I can do more testing using the LO snap maybe that can give you some ideas?

extraymond commented 3 years ago

@edurojasr That's interesting, we might be able to see what have libreoffice done with their newer version, which we might be able to reproduce as well.

edurojasr commented 3 years ago

So where are con connections form the new LibreOffice snap: eduardo@eduardo-T14s:~$ snap connections libreoffice

Interface Plug Slot Notes

Other observation is that using sudo snappy-debug I dont get any AppArmor violations only seccomp with this new LO snap.

Here is the LO snap repo: https://github.com/ubuntu/libreoffice

jonpolak commented 3 years ago

I just installed the DEB package https://github.com/retorquere/zotero-deb

and it works fine. no problem

On Fri, Sep 3, 2021 at 12:54 AM extraymond @.***> wrote:

@jonpolak https://github.com/jonpolak Would you mind reproduce this with non-snap zotero as well? Maybe the driver issue can cause greater harm on non-snap packages as well.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/extraymond/zotero-snap/issues/16#issuecomment-912337150, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAN2N6256G63LD4UX3IEDZTUAB5MDANCNFSM46GHR2KA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

edurojasr commented 3 years ago

@extraymond Hi!

I have been looking into the changes between LO 7.1 (which have the same problem of this snap NO GUI) and LO 7.2 without this problem.

Maybe this compare help to looking into the yaml file: Diff LibreOffice

some differences I can tell are:

In terms of plugs there are no changes between LO 7.1 and LO 7.2

Hope this help! :)

extraymond commented 3 years ago

I just installed the DEB package https://github.com/retorquere/zotero-deb and it works fine. no problem On Fri, Sep 3, 2021 at 12:54 AM extraymond @.***> wrote: @jonpolak https://github.com/jonpolak Would you mind reproduce this with non-snap zotero as well? Maybe the driver issue can cause greater harm on non-snap packages as well. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#16 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAN2N6256G63LD4UX3IEDZTUAB5MDANCNFSM46GHR2KA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Thanks for bisecting this, it's really helpful.

extraymond commented 3 years ago

@extraymond Hi!

I have been looking into the changes between LO 7.1 (which have the same problem of this snap NO GUI) and LO 7.2 without this problem.

Maybe this compare help to looking into the yaml file: Diff LibreOffice

some differences I can tell are:

* Update to Core20

* Update to gnome-3-38-2004

* There are a bunch of libs updates too

* libgtk2.0-0 is removed from the new snap `This lib is used in this snap I think`

In terms of plugs there are no changes between LO 7.1 and LO 7.2

Hope this help! :)

Awesome! That's some substantial changes. Thanks for bringing this up, let me cook some new builds and see if that works for you.

extraymond commented 3 years ago

@edurojasr @jonpolak

I've pushed a new revision 33 which removed libgtk2 and upgrade to core20 and gnome-3-38, which works on my machine, looking forward to see if that works on yours setup.

edurojasr commented 3 years ago

@extraymond I'm glad to say that it work!!!! :)

No problems! finally Thanks for all your time!

image

extraymond commented 3 years ago

Hurray!!! I'll raise it to beta channel for 1 week and promote it to stable if nothing went wrong. Thanks folks for getting this done!!!