igo95862 / bubblejail

Bubblewrap based sandboxing for desktop applications
261 stars 17 forks source link

Mod Organizer 2: GUI crash #141

Open hotcapy opened 3 weeks ago

hotcapy commented 3 weeks ago

Output of bubblejail --version

0.9.3

Your distro name and version

ArchLinux

Description

100% reproducible crash while in sandbox. Happens shortly after MO2 is provoked to show any kind of tooltip (by hovering mouse cursor over various GUI elements). Unfortunately, option to disable tooltips does not exist, and it's not an easy task to avoid them on purpose either.

GUI-only: game itself works perfectly fine while MO2 is locked in background. Has no effect on playing - only on managing mods.

X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  130 (MIT-SHM)
  Minor opcode of failed request:  3 (X_ShmPutImage)
  Value in failed request:  0x80
  Serial number of failed request:  11005
  Current serial number in output stream:  11008

X server permission issue? IIRC Firejail suffered from similar (same?) problem.

igo95862 commented 3 weeks ago

Hello @hotcapy

Can you do an strace on this program and post the output. (something like strace --failed-only -ff -- %program%)

You can run a separate terminal inside the sandbox to only capture the strace of this program instead of entire sandbox.

hotcapy commented 3 weeks ago

Hi @igo95862

$ bubblejail run umu qterminal $ cd ~/Games/umu/skyrim/drive_c/mo2/ $ strace --failed-only -f -o strace.txt -- env GAMEID=skyrim umu-run ~/Games/umu/skyrim/drive_c/mo2/ModOrganizer.exe

strace_1.txt strace_2.txt strace_3.txt

igo95862 commented 3 weeks ago

The only interesting thing I found is in the strace_1.txt

23    stat("/sys/module/nvidia_uvm", 0x7ffc55089600) = -1 ENOENT (No such file or directory)
85    execve("/usr/local/sbin/nvidia-modprobe", ["nvidia-modprobe", "-u", "-c=0"], 0x9d2fc00 /* 58 vars */) = -1 ENOENT (No such file or directory)
85    access("/sys/module/nvidia_uvm/initstate", R_OK) = -1 ENOENT (No such file or directory)
85    stat("/sys/bus/pci/devices", 0x7ffe7ede8890) = -1 ENOENT (No such file or directory)
85    +++ exited with 1 +++

However, I am not entirely sure if it is related to this issue.