Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault (core dumped): Cannot create EGL context: invalid display (last error: EGL_SUCCESS) #640

Open
bernd-wechner opened this issue Mar 12, 2024 · 2 comments

Comments

@bernd-wechner
Copy link

Distribution

Mint 21.3

Package version

4.0.2

Frequency

Always

Bug description

$ xreader
EGLDisplay Initialization failed: EGL_BAD_ACCESS
EGLDisplay Initialization failed: EGL_NOT_INITIALIZED
Cannot create EGL context: invalid display (last error: EGL_SUCCESS)
Segmentation fault (core dumped)

$ xreader --version
xreader 4.0.2

$ inxi -Fz
System:
  Kernel: 5.15.0-94-generic x86_64 bits: 64 Desktop: Cinnamon 6.0.4
    Distro: Linux Mint 21.3 Virginia
Machine:
  Type: Desktop System: ASUS product: All Series v: N/A
    serial: <superuser required>
  Mobo: ASUSTeK model: MAXIMUS VII FORMULA v: Rev 1.xx
    serial: <superuser required> UEFI: American Megatrends v: 3503
    date: 04/18/2018
CPU:
  Info: quad core model: Intel Core i7-4790 bits: 64 type: MT MCP cache:
    L2: 1024 KiB
  Speed (MHz): avg: 3647 min/max: 800/4000 cores: 1: 3873 2: 3608 3: 3615
    4: 3656 5: 3600 6: 3601 7: 3601 8: 3623
Graphics:
  Device-1: NVIDIA GP108 [GeForce GT 1030] driver: nvidia v: 535.154.05
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: nvidia
    unloaded: fbdev,modesetting,nouveau,vesa gpu: nvidia
    resolution: 3840x2160~60Hz
  OpenGL: renderer: N/A v: N/A
Audio:
  Device-1: Intel 9 Series Family HD Audio driver: snd_hda_intel
  Device-2: NVIDIA GP108 High Definition Audio driver: snd_hda_intel
  Device-3: Logitech G930 type: USB
    driver: hid-generic,snd-usb-audio,usbhid
  Sound Server-1: ALSA v: k5.15.0-94-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Intel Ethernet I218-V driver: e1000e
  IF: eno1 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 9.72 TiB used: 3.5 TiB (36.0%)
  ID-1: /dev/sda vendor: Kingston model: SV300S37A240G size: 223.57 GiB
  ID-2: /dev/sdb vendor: Samsung model: SSD 830 Series size: 119.24 GiB
  ID-3: /dev/sdc vendor: Maxtor model: 6V320F0 size: 298.09 GiB
  ID-4: /dev/sdd vendor: Western Digital model: WD10EACS-00D6B1
    size: 931.51 GiB
  ID-5: /dev/sde vendor: Western Digital model: WD40PURX-64AKYY0
    size: 3.64 TiB
  ID-6: /dev/sdf vendor: Western Digital model: WD20EARX-00PASB0
    size: 1.82 TiB
  ID-7: /dev/sdg vendor: Western Digital model: WD33PURZ-85BWPY0
    size: 2.73 TiB
Partition:
  ID-1: / size: 218.51 GiB used: 39.15 GiB (17.9%) fs: ext4 dev: /dev/sda3
  ID-2: /boot/efi size: 512 MiB used: 16.7 MiB (3.3%) fs: vfat
    dev: /dev/sda2
  ID-3: /home size: 293.22 GiB used: 71.39 GiB (24.3%) fs: ext4
    dev: /dev/sdc1
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 1.99 GiB (99.5%) file: /swapfile
Sensors:
  System Temperatures: cpu: 29.8 C mobo: 27.8 C gpu: nvidia temp: 49 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 0%
Info:
  Processes: 506 Uptime: 30d 7h 20m Memory: 31.28 GiB used: 16.91 GiB (54.0%)
  Shell: Bash inxi: 3.3.13

Steps to reproduce

Start xreader

Expected behavior

Not a segmentation fault ;-)

Additional information

I have a gut feel this will come good with reboot. In short, I have recollection of it happening before and finding that. I'm on 24/7 box though and rebooting is not a simple thing, so not tried it this time yet. In part because it's not a relevant qualifier of bug status (it's a bug regardless) but might point to a cause (put it in the camp of configs). So if it's helpful an amateurishly redacted env:

$ env | sed -E 's/me|mypasswd|myhost/<redacted>/ig'
SHELL=/bin/bash
SESSION_MANAGER=local/<redacted>:@/tmp/.ICE-unix/1849,unix/<redacted>:/tmp/.ICE-unix/1849
QT_ACCESSIBILITY=1
COLORTERM=truecolor
XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GTK_IM_MODULE=ibus
LANGUAGE=en_AU:en
LC_ADDRESS=en_AU.UTF-8
LC_NAME=en_AU.UTF-8
XMODIFIERS=@im=ibus
DESKTOP_SESSION=cinnamon
LC_MONETARY=en_AU.UTF-8
GTK_MODULES=gail:atk-bridge
PWD=/home/<redacted>
LOGNAME=<redacted>
XDG_SESSION_DESKTOP=cinnamon
QT_QPA_PLATFORMTHEME=qt5ct
XDG_SESSION_TYPE=x11
CHROME_CONFIG_HOME=/media/Data/Web/Chrome
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
SYSTEMD_EXEC_PID=22838
XAUTHORITY=/home/<redacted>/.Xauthority
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/<redacted>
GDM_LANG=en_AU
HOME=/home/<redacted>
IM_CONFIG_PHASE=1
LC_PAPER=en_AU.UTF-8
LANG=en_AU.UTF-8
XDG_CURRENT_DESKTOP=X-Cinnamon
VTE_VERSION=6800
KDEDIR=/home/<redacted>/kde
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/0b701d8c_0c69_4618_9b28_ba094dab4c57
CLUTTER_IM_MODULE=ibus
XDG_SESSION_CLASS=user
TERM=xterm-256color
LC_IDENTIFICATION=en_AU.UTF-8
USER=<redacted>
GNOME_TERMINAL_SERVICE=:1.151
DISPLAY=:0
SHLVL=0
LC_TELEPHONE=en_AU.UTF-8
QT_IM_MODULE=ibus
LC_MEASUREMENT=en_AU.UTF-8
PAPERSIZE=a4
XDG_RUNTIME_DIR=/run/user/1000
LC_TIME=en_AU.UTF-8
KDEDIRS=/home/<redacted>/kde
LC_COLLATE=C
GTK3_MODULES=xapp-gtk3-module
XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/home/<redacted>/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
PATH=/home/<redacted>/kde/bin:/home/<redacted>/bin:/home/<redacted>/.local/bin:/home/<redacted>/kde/bin:/home/<redacted>/bin:/home/<redacted>/.local/bin:/home/<redacted>/kde/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/media/Data/PortableSoftware/*/:/media/Data/PortableSoftware:/media/Data/PortableSoftware/AirDC++/:/media/Data/PortableSoftware/Betterbird/:/media/Data/PortableSoftware/Briss/:/media/Data/PortableSoftware/DeepFakeHTTP/:/media/Data/PortableSoftware/Eclipse/:/media/Data/PortableSoftware/Eclipse2023/:/media/Data/PortableSoftware/Firefox Developers Edition/:/media/Data/PortableSoftware/FortiGate SSL VPN/:/media/Data/PortableSoftware/FreeFileSync/:/media/Data/PortableSoftware/ImageJ/:/media/Data/PortableSoftware/Jave/:/media/Data/PortableSoftware/LosslessCut/:/media/Data/PortableSoftware/MS-Windows/:/media/Data/PortableSoftware/Microsoft Windows Software/:/media/Data/PortableSoftware/MusicMagicMixer/:/media/Data/PortableSoftware/NextCloud/:/media/Data/PortableSoftware/PhotoScanner/:/media/Data/PortableSoftware/Saleae Logic Analyzer/:/media/Data/PortableSoftware/SweetHome3D/:/media/Data/PortableSoftware/System Volume Information/:/media/Data/PortableSoftware/Thunderbird.78/:/media/Data/PortableSoftware/Thunderbird/:/media/Data/PortableSoftware/Tor-browser/:/media/Data/PortableSoftware/Zotero/:/media/Data/PortableSoftware/chrome-linux/:/media/Data/PortableSoftware/palemoon/:/media/Data/PortableSoftware/seamonkey/:/media/Data/PortableSoftware
GDMSESSION=cinnamon
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
LC_NUMERIC=en_AU.UTF-8
_=/usr/bin/env
@bernd-wechner
Copy link
Author

As stated above, it's a 24/7 box with rare restarts, but executed one recently, noted xreader is working now, and so took an env snapshot and compared it with diff -y to get:

env: xreader not working					env:  xreader working
SHELL=/bin/bash							SHELL=/bin/bash
SESSION_MANAGER=local/<redacted>:@/tmp/.ICE-unix/1849,unix/<r |	SESSION_MANAGER=local/<redacted>:@/tmp/.ICE-unix/1870,unix/<r
QT_ACCESSIBILITY=1						QT_ACCESSIBILITY=1
COLORTERM=truecolor						COLORTERM=truecolor
XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg			XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0	XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
GNOME_DESKTOP_SESSION_ID=this-is-deprecated			GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GTK_IM_MODULE=ibus						GTK_IM_MODULE=ibus
LANGUAGE=en_AU:en						LANGUAGE=en_AU:en
LC_ADDRESS=en_AU.UTF-8						LC_ADDRESS=en_AU.UTF-8
LC_NAME=en_AU.UTF-8						LC_NAME=en_AU.UTF-8
							      >	CINNAMON_VERSION=6.0.4
XMODIFIERS=@im=ibus						XMODIFIERS=@im=ibus
DESKTOP_SESSION=cinnamon					DESKTOP_SESSION=cinnamon
LC_MONETARY=en_AU.UTF-8						LC_MONETARY=en_AU.UTF-8
GTK_MODULES=gail:atk-bridge					GTK_MODULES=gail:atk-bridge
							      >	XDG_SEAT=seat0
PWD=/home/<redacted>						PWD=/home/<redacted>
LOGNAME=<redacted>						LOGNAME=<redacted>
XDG_SESSION_DESKTOP=cinnamon					XDG_SESSION_DESKTOP=cinnamon
QT_QPA_PLATFORMTHEME=qt5ct					QT_QPA_PLATFORMTHEME=qt5ct
XDG_SESSION_TYPE=x11						XDG_SESSION_TYPE=x11
CHROME_CONFIG_HOME=/media/Data/Web/Chrome			CHROME_CONFIG_HOME=/media/Data/Web/Chrome
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1		GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
SYSTEMD_EXEC_PID=22838					      <
XAUTHORITY=/home/<redacted>/.Xauthority				XAUTHORITY=/home/<redacted>/.Xauthority
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/<redacted>		XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/<redacted>
GDM_LANG=en_AU							GDM_LANG=en_AU
HOME=/home/<redacted>						HOME=/home/<redacted>
IM_CONFIG_PHASE=1					      <
LC_PAPER=en_AU.UTF-8						LC_PAPER=en_AU.UTF-8
LANG=en_AU.UTF-8						LANG=en_AU.UTF-8
XDG_CURRENT_DESKTOP=X-Cinnamon					XDG_CURRENT_DESKTOP=X-Cinnamon
VTE_VERSION=6800						VTE_VERSION=6800
KDEDIR=/home/<redacted>/kde					KDEDIR=/home/<redacted>/kde
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0		XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/0b701d8c_0c6 |	GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/b47123f5_e64
CLUTTER_IM_MODULE=ibus						CLUTTER_IM_MODULE=ibus
XDG_SESSION_CLASS=user						XDG_SESSION_CLASS=user
TERM=xterm-256color						TERM=xterm-256color
LC_IDENTIFICATION=en_AU.UTF-8					LC_IDENTIFICATION=en_AU.UTF-8
USER=<redacted>							USER=<redacted>
GNOME_TERMINAL_SERVICE=:1.151				      |	GNOME_TERMINAL_SERVICE=:1.128
DISPLAY=:0							DISPLAY=:0
SHLVL=0								SHLVL=0
LC_TELEPHONE=en_AU.UTF-8					LC_TELEPHONE=en_AU.UTF-8
QT_IM_MODULE=ibus						QT_IM_MODULE=ibus
LC_MEASUREMENT=en_AU.UTF-8					LC_MEASUREMENT=en_AU.UTF-8
							      >	XDG_VTNR=7
							      >	XDG_SESSION_ID=c1
PAPERSIZE=a4							PAPERSIZE=a4
XDG_RUNTIME_DIR=/run/user/1000					XDG_RUNTIME_DIR=/run/user/1000
LC_TIME=en_AU.UTF-8						LC_TIME=en_AU.UTF-8
KDEDIRS=/home/<redacted>/kde					KDEDIRS=/home/<redacted>/kde
LC_COLLATE=C							LC_COLLATE=C
GTK3_MODULES=xapp-gtk3-module					GTK3_MODULES=xapp-gtk3-module
XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/home/<red	XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:/home/<red
PATH=/home/<redacted>/kde/bin:/home/<redacted>/bin:/home/<red	PATH=/home/<redacted>/kde/bin:/home/<redacted>/bin:/home/<red
GDMSESSION=cinnamon						GDMSESSION=cinnamon
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus		DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
LC_NUMERIC=en_AU.UTF-8						LC_NUMERIC=en_AU.UTF-8
_=/usr/bin/env							_=/usr/bin/env

In case that helps.

@gvdw
Copy link

gvdw commented Jun 26, 2024

I'm getting the same problem on 21.3. Although I prefer xreader, it was easier to remove it and use evince instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants