Page 1 of 1

Failed to Run: Segmentation fault

PostPosted: 21 Dec 2014, 23:33
by jadedoverload
I cannot run TOL- it seems a lot of things went wrong.

{l Code}: {l Select All Code}
jade@The-Stars-Like-Dust:~/Applications/terminal-overload-0.5.0-linux32$ ./overload
Initializing platform...
Input Init:
%
% AL lib: alsa.c:344: Could not open playback device 'hw:0,0': No such file or directory
AL lib: alsa.c:344: Could not open playback device 'hw:1,0': Device or resource busy
AL lib: oss.c:179: Could not open /dev/dsp: No such file or directory
DebugDrawer Enabled!
GFX Init:
Will request OpenGL 3.2 core profile.
   Null device found
   OpenGL device found
%
GFXStringEnumTranslate: Unassigned value in GFXStringTextureFormat: 13
--------- Loading DIRS ---------
%
--------- Parsing Arguments ---------
Binding server port to default IP
UDP initialized on port 0
The requested renderer, D3D9, doesn't seem to be available. Trying the default, OpenGL.
Attempting to create GFX device: Mesa DRI Intel(R) Haswell Mobile x86/MMX/SSE2 OpenGL []
Device created, setting adapter and enumerating modes
Initializing GFXCardProfiler (GL3.3)
   o Chipset : 'Intel Open Source Technology Center'
   o Card    : 'Mesa DRI Intel(R) Haswell Mobile x86/MMX/SSE2'
   o Version : '3.3 (Core Profile) Mesa 10.1.3'
   o VRAM    : 0 MB
   - Scanning card capabilities...
GFXCardProfiler (GL3.3) - Setting capability 'maxTextureWidth' to 8192.
GFXCardProfiler (GL3.3) - Setting capability 'maxTextureHeight' to 8192.
GFXCardProfiler (GL3.3) - Setting capability 'maxTextureSize' to 8192.
GFXCardProfiler (GL3.3) - Setting capability 'GL::suppVertexBufferObject' to 1.
GFXCardProfiler (GL3.3) - Setting capability 'GL::suppRenderTexture' to 1.
GFXCardProfiler (GL3.3) - Setting capability 'GL::suppRTBlit' to 1.
GFXCardProfiler (GL3.3) - Setting capability 'GL::suppFloatTexture' to 0.
GFXCardProfiler (GL3.3) - Setting capability 'GL::suppAnisotropic' to 0.
GFXCardProfiler (GL3.3) - Setting capability 'GL::suppFragmentShader' to 1.
GFXCardProfiler (GL3.3) - Setting capability 'GL::APPLE::suppFence' to 1.
GFXCardProfiler (GL3.3) - Setting capability 'GL::Workaround::needsExplicitGenerateMipmap' to 0.
GFXCardProfiler (GL3.3) - Setting capability 'GL::Workaround::X1600DepthBufferCopy' to 0.
GFXCardProfiler (GL3.3) - Setting capability 'GL::Workaround::HD2600DepthBufferCopy' to 0.
GFXCardProfiler (GL3.3) - Setting capability 'GL::Workaround::noManualMips' to 0.
   - Loading card profiles...
      - No card profile core/profile/GL33.cs exists
      - No card profile core/profile/GL33.IntelOpenSourceTechnologyCenter.cs exists
      - No card profile core/profile/GL33.IntelOpenSourceTechnologyCenter.MesaDRIIntelRHaswellMobilex86MMXSSE2.cs exists
      - No card profile core/profile/GL33.IntelOpenSourceTechnologyCenter.MesaDRIIntelRHaswellMobilex86MMXSSE2.33CoreProfileMesa1013.cs exists
% - PostFX Manager - Executing core/scripts/client/postFx/default.postfxpreset.cs
% - PostFX Manager - Applying from preset
% - PostFX Manager - PostFX enabled
 % - Initialized Core
%
--------- Initializing Directory: scripts ---------
sfxStartup...
SFXSystem::createDevice - created OpenAL device 'ALSA Software on default'
   Provider: OpenAL
   Device: ALSA Software on default
   Hardware: No
   Buffers: 16
%
--------- Initializing Terminal Overload: Client Scripts ---------
%
--------- Initializing Lighting Systems ---------
Using Basic Lighting
Program shaders/common/gl/particlesV.glsl: 0:2(12): warning: extension `GL_EXT_gpu_shader4' unsupported in vertex shader

Program shaders/common/gl/particlesP.glsl: 0:2(12): warning: extension `GL_EXT_gpu_shader4' unsupported in fragment shader

Program shaders/common/gl/particlesV.glsl / shaders/common/gl/particlesP.glsl:
Program shaders/common/gl/particleCompositeV.glsl: 0:2(12): warning: extension `GL_EXT_gpu_shader4' unsupported in vertex shader

Program shaders/common/gl/particleCompositeP.glsl: 0:2(12): warning: extension `GL_EXT_gpu_shader4' unsupported in fragment shader

Program shaders/common/gl/particleCompositeV.glsl / shaders/common/gl/particleCompositeP.glsl:
%

--------------
Attempting to set resolution to "1024 768 false 32 60 4"
Accepted Mode:
--Resolution : 1024 768
--Full Screen : No
--Bits Per Pixel : 32
--Refresh Rate : 60
--FSAA Level : 4
--------------
Missing file: shell/gui/StartupGui.gui!
shell/gui/motdDlg.cs (25): Unable to find object: '0' attempting to call function 'setText'
Could not create a description for binding: thumbrx
Could not create a description for binding: thumbry
Could not create a description for binding: thumblx
Could not create a description for binding: thumbly
Could not create a description for binding: btn_a
Could not create a description for binding: btn_back
Could not create a description for binding: dpadl
Could not create a description for binding: dpadu
Could not create a description for binding: dpadd
Could not create a description for binding: dpadr
Could not create a description for binding: btn_b
Could not create a description for binding: triggerr
Could not create a description for binding: triggerl
Could not create a description for binding: btn_x
Binding server port to default IP
UDP initialized on port 0
Failed to load profile bitmap (shell/gui/images/selector-button)
 % - Initializing Tools
 % - Initializing Tools Base
 % - Initializing Base Editor
 % - Initializing World Editor
 % - Initializing Material Editor
 % - Initializing Sketch Tool
 % - Initializing Decal Editor
 % - Initializing Shape Editor
Could not create a description for binding: shift -
Could not create a description for binding: shift =
Could not create a description for binding: =
Could not create a description for binding: -
 % - Initializing Gui Editor
 % - Initializing Physics Tools
No physics plugin exists.
 % - Initializing Forest Editor
 - Initializing Road and Path Editor
Could not create a description for binding: =
Could not create a description for binding: -
 % - Initializing Mesh Road Editor
Could not create a description for binding: =
Could not create a description for binding: -
 % - Initializing River Editor
Could not create a description for binding: =
Could not create a description for binding: -
 - Initializing Datablock Editor
 % - Initializing Mission Area Editor
 % - Initializing Particle Editor
 % - Initializing Debugger
Missing file: tools/debugger/Scripts/debugger.ed.cs!
Missing file: tools/debugger/Gui/breakConditionDlg.ed.gui!
Missing file: tools/debugger/Gui/connectDlg.ed.gui!
Missing file: tools/debugger/Gui/editWatchDlg.ed.gui!
Missing file: tools/debugger/Gui/findDlg.ed.gui!
Missing file: tools/debugger/Gui/debugger.ed.gui!
Missing file: tools/debugger/Gui/watchDlg.ed.gui!
Engine initialized...
Window focus status changed: focus: 1
% Segmentation fault


I have Intel graphics, 64-bit, and am running Trisquel GNU/Linux, based off of Ubuntu.
Thank you for even looking at this topic!

Re: Failed to Run: Segmentation fault

PostPosted: 22 Dec 2014, 00:01
by fr1tz
Try running ./overload.sh

Re: Failed to Run: Segmentation fault

PostPosted: 22 Dec 2014, 00:04
by jadedoverload
I get the same output and error from running the shell script and the binary.

Re: Failed to Run: Segmentation fault

PostPosted: 22 Dec 2014, 00:44
by fr1tz
Hmm... bad times. You could try running the windows version using wine. Another possibility would be to build a debug build from source and check what exactly is causing the segfault.

Re: Failed to Run: Segmentation fault

PostPosted: 22 Dec 2014, 01:47
by jadedoverload
I'll try Wine- thank you very much, fr1tz! :)

Re: Failed to Run: Segmentation fault

PostPosted: 08 Apr 2015, 23:25
by qubodup
Hi, I also experience a segfault

{l Code}: {l Select All Code}
Checking for commands required by this script...
/sbin/dirname
/sbin/grep
/sbin/ldconfig
/sbin/objdump
/sbin/test

Checking for libraries required to run Terminal Overload...
Checking for 32 bit version of libGL.so.1...
 -> /usr/lib32/libGL.so.1
Starting game...
%
Initializing platform...
%
Input Init:
%
% libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  155 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  102
  Current serial number in output stream:  103


gdb bt:

{l Code}: {l Select All Code}
Program received signal SIGSEGV, Segmentation fault.
0xf7971b0e in __libc_start_main () from /home/qubodup/terminal-overload-0.6.0-linux32/lib/libc.so.6
(gdb) bt
#0  0xf7971b0e in __libc_start_main () from /home/qubodup/terminal-overload-0.6.0-linux32/lib/libc.so.6
#1  0x08738212 in _start ()


I use the open source amd graphics drivers and that's probably the reason. My system:
{l Code}: {l Select All Code}
              Distro Linux qbox 3.19.2-1-ARCH x86_64 GNU/Linux
           Mainboard Manufacturer: FOXCONN, Product Name: A7GM-S 2.0
                 CPU AMD Phenom(tm) 9550 Quad-Core Processor
               Video Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde PRO [Radeon HD 7750 / R7 250E] (prog-if 00 [VGA controller])


Strange, the releases are 0.6.0 but there's a 0.7.0-dev1 source pack. There seem to be no compile instructions in the zip either, feel free to take these:

Build on Linux:
mkdir build && cd build
make ..
If you're missing dependencies, install them and try again.
If something is weird delete CMakeCache.txt
Once cmake finishes correctly run:
make
If make fails, run
make -j1 &> make_output.txt
And upload the file to codepad.org and report.


That's what happened for me:
http://codepad.org/0VXDcClY
No luck in git either:
http://codepad.org/yZkSWXOm
I see "U32" in there, probably a 64bit problem.

Re: Failed to Run: Segmentation fault

PostPosted: 09 Apr 2015, 00:04
by fr1tz
Yup, the engine modifications aren't compatible with 64bit systems yet.

Don't think I've seen that segfault before. What OpenGL versions does your system support? (output of glxinfo?)

Re: Failed to Run: Segmentation fault

PostPosted: 10 Apr 2015, 05:26
by qubodup
fr1tz {l Wrote}:(output of glxinfo?)

http://codepad.org/K3sjlVox

Re: Failed to Run: Segmentation fault

PostPosted: 10 Apr 2015, 07:08
by fr1tz
Have you tried running it with -OpenGLCompat?

Re: Failed to Run: Segmentation fault

PostPosted: 10 Apr 2015, 17:08
by qubodup
Thanks for the hint.
{l Code}: {l Select All Code}
$ ./overload -OpenGLCompat
Segmentation fault

$ ./overload.sh -OpenGLCompat
--------------------------------
Terminal Overload Startup Script
--------------------------------

Checking for commands required by this script...
/sbin/dirname
/sbin/grep
/sbin/ldconfig
/sbin/objdump
/sbin/test

Checking for libraries required to run Terminal Overload...
Checking for 32 bit version of libGL.so.1...
 -> /usr/lib32/libGL.so.1
Starting game...
Initializing platform...
Input Init:
%
% libGL error: unable to load driver: radeonsi_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: radeonsi
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  155 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  102
  Current serial number in output stream:  103

No effect I'm afraid.

Just for fun: using ./lib/ld-linux.so.2 screws up my console: no more newlines, I don't see my input (urxvt)
Image

Re: Failed to Run: Segmentation fault

PostPosted: 11 Apr 2015, 10:47
by fr1tz
Sorry, no clue what's going wrong. The 64bit compilation errors should be fixed very soon though.