[1.35] Crash going after clicking 'Fight'.

Hello,

when I:

  • select single battle mode
  • create a deployment
  • start fight
  • press any key to continue

I get a segfault:

Failed to create texture: box_background.jpg 

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffeb1ea700 (LWP 12412)]
0x00007ffff783ec09 in glGenTextures () from /run/opengl-driver/lib/libGL.so.1
(gdb) bt
#0  0x00007ffff783ec09 in glGenTextures () from /run/opengl-driver/lib/libGL.so.1
#1  0x000000000053ef10 in OGLTexture::OGLTexture(std::string const&, void const*, unsigned int) ()
#2  0x000000000053f262 in GEngine::CreateTexture(std::string const&, std::string const&, std::string const&) ()
#3  0x000000000052abe9 in GEngine::CreateTextureOnDemand(std::string const&) ()
#4  0x000000000052ba63 in GEngine::GetTexture(std::string const&) ()
#5  0x000000000051d981 in CLoadedTexture::SetTexture(char const*) ()
#6  0x000000000051dde8 in CLoadedTexture::GetTexture(char const*) ()
#7  0x000000000051de1c in SmartTexture::SetTexture(std::string const&) ()
#8  0x0000000000584163 in GUI_LensStreakManager::GUI_LensStreakManager() ()
#9  0x00000000006785e4 in GUI_ThreadManager::ProcessTask(GUI_ThreadManager::ThreadTaskItem*) ()
#10 0x0000000000678ae9 in ThreadProcess(void*) ()
#11 0x00007ffff7b3d7dc in SDL_RunThread () from /nix/store/9z10lxddvgpr2az9911dm5xd1q3s7ndr-SDL2-2.0.3/lib/libSDL2-2.0.so.0
#12 0x00007ffff7b98e19 in RunThread () from /nix/store/9z10lxddvgpr2az9911dm5xd1q3s7ndr-SDL2-2.0.3/lib/libSDL2-2.0.so.0
#13 0x00007ffff6ed04c4 in start_thread () from /nix/store/11fpzngsrj177cndbq3fz6hszl9gygpc-glibc-2.21/lib/libpthread.so.0
#14 0x00007ffff63eb05d in clone () from /nix/store/11fpzngsrj177cndbq3fz6hszl9gygpc-glibc-2.21/lib/libc.so.6
(gdb) c
Continuing.


GSB2 has unexpectedly encountered a fatal error.
A full description of the error can be found in the file
/home/jack/.local/share/GratuitousSpaceBattles2/crash.log


Program received signal SIGSEGV, Segmentation fault.
0x00007ffff783ec09 in glGenTextures () from /run/opengl-driver/lib/libGL.so.1

And the crash dump is:


=====================
==== STACK TRACE ====
=====================

/nix/store/50x25mcg6zmll9qpmg1ys9vra68az86h-gsb2-1.35/libexec/positech/gsb2/game/GSB2.bin.x86_64[0x54cd9d]
/nix/store/50x25mcg6zmll9qpmg1ys9vra68az86h-gsb2-1.35/libexec/positech/gsb2/game/GSB2.bin.x86_64[0x54cddd]
/nix/store/11fpzngsrj177cndbq3fz6hszl9gygpc-glibc-2.21/lib/libpthread.so.0(+0x10420)[0x7ffff6ed8420]
/run/opengl-driver/lib/libGL.so.1(+0xcec09)[0x7ffff783ec09]

Where this is Linux-4.2.3, and nvidia-x11-352.41.