View Issue Details

IDProjectCategoryView StatusLast Update
0004470The Dark ModCodingpublic18.05.2021 17:47
Reporterakru Assigned To 
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionwon't fix 
Product VersionTDM 2.04 
Summary0004470: fatal error shutdown: Unable to initialize OpenGL
Description./thedarkmod.x86

...

--------------------------------------
----- R_InitOpenGL -----
Setup X display connection
dlopen(libGL.so.1)
dlopen(libGL.so.1)
idRenderSystem::Shutdown()
signal caught: Segmentation fault
si_code 1
Was in fatal error shutdown: Unable to initialize OpenGL
Trying to exit gracefully..
About to exit with code 0

Steps To Reproduce./thedarkmod.x86
Additional Informationsee attached

TDM-install-problems.txt
TagsNo tags attached.
Attached Files
TDM-install-problems.txt (9,284 bytes)   
./thedarkmod.x86 

...

----- Initializing Sound System ------
sound system initialized.
--------------------------------------
----- R_InitOpenGL -----
Setup X display connection
dlopen(libGL.so.1)
dlopen(libGL.so.1)
idRenderSystem::Shutdown()
signal caught: Segmentation fault
si_code 1
Was in fatal error shutdown: Unable to initialize OpenGL
Trying to exit gracefully..
About to exit with code 0






Then I tried gdb debugging:


gdb ./thedarkmod.x86 

GNU gdb (Debian 7.12-4) 7.12
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./thedarkmod.x86...(no debugging symbols found)...done.

(gdb) run
Starting program: /home/_____/darkmod/thedarkmod.x86 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
TDM 2.04 #6596 linux-x86 Jul  7 2016 15:43:56
found interface lo - loopback
found interface wlp1s0 - 192.168.0.9/255.255.255.0
Found Intel CPU with Hyper-Threading enabled, features: MMX SSE SSE2 SSE3 CMOV
tdm using generic code for SIMD processing.
------ Initializing File System ------
Current search path:
  /home/_____/darkmod/
  /home/_____/darkmod/tdm_textures_wood01.pk4 (317 files)
  /home/_____/darkmod/tdm_textures_window01.pk4 (348 files)
  /home/_____/darkmod/tdm_textures_stone_sculpted01.pk4 (424 files)
  /home/_____/darkmod/tdm_textures_stone_natural01.pk4 (123 files)
  /home/_____/darkmod/tdm_textures_stone_flat01.pk4 (281 files)
  /home/_____/darkmod/tdm_textures_stone_cobblestones01.pk4 (214 files)
  /home/_____/darkmod/tdm_textures_stone_brick01.pk4 (440 files)
  /home/_____/darkmod/tdm_textures_sfx01.pk4 (64 files)
  /home/_____/darkmod/tdm_textures_roof01.pk4 (65 files)
  /home/_____/darkmod/tdm_textures_plaster01.pk4 (140 files)
  /home/_____/darkmod/tdm_textures_paint_paper01.pk4 (42 files)
  /home/_____/darkmod/tdm_textures_other01.pk4 (51 files)
  /home/_____/darkmod/tdm_textures_nature01.pk4 (256 files)
  /home/_____/darkmod/tdm_textures_metal01.pk4 (465 files)
  /home/_____/darkmod/tdm_textures_glass01.pk4 (50 files)
  /home/_____/darkmod/tdm_textures_fabric01.pk4 (41 files)
  /home/_____/darkmod/tdm_textures_door01.pk4 (171 files)
  /home/_____/darkmod/tdm_textures_decals01.pk4 (367 files)
  /home/_____/darkmod/tdm_textures_carpet01.pk4 (92 files)
  /home/_____/darkmod/tdm_textures_base01.pk4 (375 files)
  /home/_____/darkmod/tdm_standalone.pk4 (4 files)
  /home/_____/darkmod/tdm_sound_vocals_decls01.pk4 (27 files)
  /home/_____/darkmod/tdm_sound_vocals07.pk4 (1111 files)
  /home/_____/darkmod/tdm_sound_vocals06.pk4 (688 files)
  /home/_____/darkmod/tdm_sound_vocals05.pk4 (128 files)
  /home/_____/darkmod/tdm_sound_vocals04.pk4 (2854 files)
  /home/_____/darkmod/tdm_sound_vocals03.pk4 (743 files)
  /home/_____/darkmod/tdm_sound_vocals02.pk4 (1300 files)
  /home/_____/darkmod/tdm_sound_vocals01.pk4 (82 files)
  /home/_____/darkmod/tdm_sound_sfx02.pk4 (596 files)
  /home/_____/darkmod/tdm_sound_sfx01.pk4 (924 files)
  /home/_____/darkmod/tdm_sound_ambient_decls01.pk4 (8 files)
  /home/_____/darkmod/tdm_sound_ambient03.pk4 (24 files)
  /home/_____/darkmod/tdm_sound_ambient02.pk4 (156 files)
  /home/_____/darkmod/tdm_sound_ambient01.pk4 (209 files)
  /home/_____/darkmod/tdm_prefabs01.pk4 (557 files)
  /home/_____/darkmod/tdm_player01.pk4 (125 files)
  /home/_____/darkmod/tdm_models_decls01.pk4 (93 files)
  /home/_____/darkmod/tdm_models02.pk4 (1836 files)
  /home/_____/darkmod/tdm_models01.pk4 (1916 files)
  /home/_____/darkmod/tdm_gui_credits01.pk4 (49 files)
  /home/_____/darkmod/tdm_gui01.pk4 (679 files)
  /home/_____/darkmod/tdm_game02.pk4 (2 files)
  /home/_____/darkmod/tdm_game01.pk4 (2 files)
  /home/_____/darkmod/tdm_fonts01.pk4 (696 files)
  /home/_____/darkmod/tdm_env01.pk4 (98 files)
  /home/_____/darkmod/tdm_defs01.pk4 (166 files)
  /home/_____/darkmod/tdm_base01.pk4 (156 files)
  /home/_____/darkmod/tdm_ai_steambots01.pk4 (24 files)
  /home/_____/darkmod/tdm_ai_monsters_spiders01.pk4 (82 files)
  /home/_____/darkmod/tdm_ai_humanoid_undead01.pk4 (50 files)
  /home/_____/darkmod/tdm_ai_humanoid_townsfolk01.pk4 (95 files)
  /home/_____/darkmod/tdm_ai_humanoid_pagans01.pk4 (10 files)
  /home/_____/darkmod/tdm_ai_humanoid_nobles01.pk4 (48 files)
  /home/_____/darkmod/tdm_ai_humanoid_mages01.pk4 (8 files)
  /home/_____/darkmod/tdm_ai_humanoid_heads01.pk4 (96 files)
  /home/_____/darkmod/tdm_ai_humanoid_guards01.pk4 (373 files)
  /home/_____/darkmod/tdm_ai_humanoid_females01.pk4 (169 files)
  /home/_____/darkmod/tdm_ai_humanoid_builders01.pk4 (91 files)
  /home/_____/darkmod/tdm_ai_base01.pk4 (8 files)
  /home/_____/darkmod/tdm_ai_animals01.pk4 (80 files)
File System Initialized.
--------------------------------------
[New Thread 0xf787ab40 (LWP 17502)]
----- Initializing Decls -----
------------------------------
------- Initializing renderSystem --------
using ARB renderSystem
renderSystem initialized.
--------------------------------------
I18N: SetLanguage: 'english'.
I18N: Found no character remapping for english.
I18N: 1228 strings read from strings/english.lang
I18N: 'strings/fm/english.lang' not found.
WARNING:Couldn't load image: guis/assets/splash/launch
Couldn't open journal files
Couldn't exec editor.cfg - file does not exist.
execing default.cfg
Unknown command 'use'
Unknown command 'console'
Unknown command 'next'
Unknown command 'prev'
Unknown command 'previous'
Unknown command 'next'
Unknown command 'crouch'
Unknown command 'Lean'
Unknown command 'lean'
Unknown command 'Readables'
Unknown command 'spyglass'
Unknown command 'compass'
Unknown command 'lantern'
Unknown command 'maps'
Unknown command 'objectives'
Unknown command 'keys'
Unknown command 'lockpicks'
Unknown command 'lean'
Unknown command 'Inventory'
Unknown command 'Mantle'
Unknown command 'creep'
Unknown command 'frob'
Unknown command 'inventory'
Couldn't exec autoexec.cfg - file does not exist.
I18N: SetLanguage: 'english'.
I18N: Found no character remapping for english.
I18N: 1228 strings read from strings/english.lang
I18N: 'strings/fm/english.lang' not found.
----- Initializing Sound System ------
sound system initialized.
--------------------------------------
----- R_InitOpenGL -----
Setup X display connection
dlopen(libGL.so.1)
dlopen(libGL.so.1)
idRenderSystem::Shutdown()

Thread 1 "thedarkmod.x86" received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()


(gdb) backtrace 
#0  0x00000000 in ?? ()
#1  0x082ad252 in GLimp_Shutdown() ()
#2  0x08144c9d in idRenderSystemLocal::ShutdownOpenGL() ()
#3  0x0805c2e6 in idCommonLocal::ShutdownGame(bool) ()
#4  0x0805ec8b in idCommonLocal::Shutdown() ()
#5  0x0805b5ea in idCommonLocal::FatalError(char const*, ...) ()
#6  0x0814d63c in R_InitOpenGL() ()
#7  0x0814e7a5 in idRenderSystemLocal::InitOpenGL() ()
#8  0x08060995 in idCommonLocal::InitGame() ()
#9  0x08060e83 in idCommonLocal::Init(int, char const**, char const*) ()
#10 0x082aaece in main ()
(gdb) 



This is the kernel:

cat /proc/version
Linux version 4.9.0-1-amd64 (debian-kernel@lists.debian.org) (gcc version 6.3.0 20161229 (Debian 6.3.0-2) ) #1 SMP Debian 4.9.2-2 (2017-01-12)


This is the graphics adapter:

inxi -G
Graphics:  Card: Intel Device 5916
           Display Server: X.Org 1.19.0 drivers: modesetting (unloaded: fbdev,vesa)
           Resolution: 1920x1080@60.05hz
           GLX Renderer: Mesa DRI Intel HD Graphics 620 (Kabylake GT2) GLX Version: 3.0 Mesa 13.0.3


And this is the OpenGL system:

glxinfo | grep OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 620 (Kabylake GT2) 
OpenGL core profile version string: 4.5 (Core Profile) Mesa 13.0.3
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 13.0.3
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 13.0.3
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:


What else can I lookup to help me solve this? Thanks!


It is a "Debian stretch (testing)".  I had done this:

su
dpkg --add-architecture i386
apt update
apt-get install lib32z1 lib32ncurses5 libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386 libxext6:i386 libxxf86vm1:i386 python-opengl build-essential libgl1-mesa-dev  libglew-dev libsdl2-dev libsdl2-image-dev libglm-dev libfreetype6-dev gdb
exit

chmod +x tdm_update.linux 
./tdm_update.linux 
./thedarkmod.x86 
gdb ./thedarkmod.x86 


TDM-install-problems.txt (9,284 bytes)   

Activities

akru

akru

29.01.2017 04:55

reporter   ~0008730

I don't know why your bugtracker ignored my OS input, but it is a

Debian stretch (testing)

cat /proc/version
Linux version 4.9.0-1-amd64 (debian-kernel@lists.debian.org) (gcc version 6.3.0 20161229 (Debian 6.3.0-2) ) 0000001 SMP Debian 4.9.2-2 (2017-01-12)

Graphics adapter:

inxi -G
Graphics: Card: Intel Device 5916
           Display Server: X.Org 1.19.0 drivers: modesetting (unloaded: fbdev,vesa)
           Resolution: 1920x1080@60.05hz
           GLX Renderer: Mesa DRI Intel HD Graphics 620 (Kabylake GT2) GLX Version: 3.0 Mesa 13.0.3


OpenGL system:

glxinfo | grep OpenGL
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 620 (Kabylake GT2)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 13.0.3
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 13.0.3
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 13.0.3
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:
nbohr1more

nbohr1more

14.09.2017 17:35

developer   ~0009237

The Dark Mod requires 32-bit S3TC texture compression which "Open Source drivers" cannot include.

Please see our FAQ for Linux install details.

http://wiki.thedarkmod.com/index.php?title=FAQ

TDM 2.06 is targeted to include a 64-bit build so native non-free S3TC libraries will be easier to use.

Issue History

Date Modified Username Field Change
29.01.2017 04:52 akru New Issue
29.01.2017 04:52 akru File Added: TDM-install-problems.txt
29.01.2017 04:55 akru Note Added: 0008730
14.09.2017 17:35 nbohr1more Note Added: 0009237
14.09.2017 17:36 nbohr1more Status new => closed
14.09.2017 17:36 nbohr1more Resolution open => won't fix
18.05.2021 17:47 stgatilov Category TDM Launcher => Coding