Segmentation fault (core dumped): Cannot create EGL context: invalid display (last error: EGL_SUCCESS)
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 283
- Forks
- 82
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the crash when launching xreader on the reported Mint, X11, and NVIDIA setup, then trace the EGL initialization failure through startup. The fix is complete when an invalid EGL display no longer causes a segmentation fault and the application handles the startup failure safely.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, linux
- Domain
- computer-graphics, desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100