Philip-Scott / Notes-up

Markdown notes editor & manager
GNU General Public License v2.0
621 stars 47 forks source link

flatpak install of notes-up fails on Ubuntu with "Details: serial 178 error_code 10 request_code 130 (MIT-SHM) minor_code 1" #340

Closed tazmo closed 4 years ago

tazmo commented 4 years ago

Expected Behavior

Installed notes-up from flathub on Kubuntu 18.04.3 LTS patched current up to the day this was submitted.

Output of

$ flatpak install flathub com.github.philip_scott.notes-up/x86_64/stable:
Installing in system:
org.freedesktop.Platform.GL.default/x86_64/19.08      flathub 7e1ec0620b94
org.freedesktop.Platform.VAAPI.Intel/x86_64/19.08     flathub 33d45d09596e
org.freedesktop.Platform.openh264/x86_64/19.08        flathub 8801c9a82f9c
com.github.philip_scott.notes-up/x86_64/stable        flathub eaa1997cafa5
  permissions: wayland, x11, dri
  file access: home
  dbus access: org.gtk.vfs, org.gtk.vfs.*
  dbus ownership: com.github.philip-scott.notes-up
com.github.philip_scott.notes_up.Locale/x86_64/stable flathub 34b62972b983
Is this ok [y/n]: y
Installing: org.freedesktop.Platform.GL.default/x86_64/19.08 from flathub
[####################] 24 metadata, 55 content objects fetched; 88704 KiB transferred in 7 seconds
Now at 7e1ec0620b94.
Installing: org.freedesktop.Platform.VAAPI.Intel/x86_64/19.08 from flathub
[####################] 6 metadata, 11 content objects fetched; 8470 KiB transferred in 1 seconds
Now at 33d45d09596e.
Installing: org.freedesktop.Platform.openh264/x86_64/19.08 from flathub
[####################] Downloading files: 6/6 594.2 kB (594.2 kB/s)          
Warning: Failed to install org.freedesktop.Platform.openh264/x86_64/19.08: Error deploying: While trying to apply extra data: runtime/org.freedesktop.Platform/x86_64/19.08 not installed
Installing: com.github.philip_scott.notes-up/x86_64/stable from flathub
[####################] 175 metadata, 3739 content objects fetched; 21346 KiB transferred in 18 seconds
Now at eaa1997cafa5.
Installing: com.github.philip_scott.notes_up.Locale/x86_64/stable from flathub
[####################] 3 metadata, 1 content objects fetched; 14 KiB transferred in 0 seconds
Now at 34b62972b983. 

Current Behavior

Fails to run from any launcher. Running the Exec= statement from the following generated .desktop file from:

/var/lib/flatpak/exports/share/applications/com.github.philip_scott.notes-up.desktop

Results in the following:

$ /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=com.github.philip-scott.notes-up com.github.philip_scott.notes-up
[INFO 16:30:01.153908] Application.vala:155: Notes-Up version: 2.0.0
[INFO 16:30:01.153934] Application.vala:157: Kernel version: 5.0.0-36-generic

(Notes-Up:2): Gdk-ERROR **: 16:30:01.666: The program 'Notes-Up' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAccess (attempt to access private resource denied)'.
  (Details: serial 178 error_code 10 request_code 130 (MIT-SHM) minor_code 1)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Possible Solution

unknown

Steps to Reproduce (for bugs)

See above flatpak cli.

Context

Installed from flathub.

Screenshots of the Problem

Your Environment (for bugs)

(Note that org.gnome.Platform/x86_64/3.34 is installed below)

$ flatpak list
Ref                                                   Options       
com.github.philip_scott.notes-up/x86_64/stable        system,current
nl.openoffice.bluefish/x86_64/stable                  system,current
work.openpaper.Paperwork/x86_64/stable                system,current
edu.stanford.Almond.Locale/x86_64/stable              system,runtime
org.freedesktop.Platform.GL.default/x86_64/19.08      system,runtime
org.freedesktop.Platform.GL.nvidia-390-129/x86_64/1.4 system,runtime
org.freedesktop.Platform.VAAPI.Intel/x86_64/1.6       system,runtime
org.freedesktop.Platform.VAAPI.Intel/x86_64/18.08     system,runtime
org.freedesktop.Platform.VAAPI.Intel/x86_64/19.08     system,runtime
org.freedesktop.Platform.ffmpeg/x86_64/1.6            system,runtime
org.freedesktop.Platform.html5-codecs/x86_64/18.08    system,runtime
org.freedesktop.Platform/x86_64/1.6                   system,runtime
org.freedesktop.Platform/x86_64/18.08                 system,runtime
org.gnome.Platform/x86_64/3.26                        system,runtime
org.gnome.Platform/x86_64/3.30                        system,runtime
org.gnome.Platform/x86_64/3.32                        system,runtime
org.gnome.Platform/x86_64/3.34                        system,runtime

xdpyinfo output shows MIT-SHM X11 extension loaded:

xdpyinfo | more
name of display:    :0
version number:    11.0
vendor string:    The X.Org Foundation
vendor release number:    12004000
X.Org version: 1.20.4
maximum request size:  16777212 bytes

< snip >

number of extensions:    30
    BIG-REQUESTS
    Composite
    DAMAGE
    DOUBLE-BUFFER
    DPMS
    DRI2
    DRI3
    GLX
    Generic Event Extension
    MIT-SCREEN-SAVER
    MIT-SHM

< snip >

Philip-Scott commented 4 years ago

Closing and passing it over to the flatpak maintainers repo. Thank you for submitting the issue! :)