[Linux] Cannot play with debug build

Moderator: Raze Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Talon1024
 
 
Posts: 377
Joined: Mon Jun 27, 2016 7:26 pm
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support

[Linux] Cannot play with debug build

Post by Talon1024 »

I cannot play any game with a Raze debug build on Linux. As soon as I try to do so, I get this:

Code: Select all

Raze 0.4.1 - 2020-02-08 23:13:29 +0300 - SDL version
Compiled on Feb  9 2020

Log started: 2020-02-09 12:15:50
raze: /home/kevinc/Games/code/Raze/source/common/utility/zstring.h:205: const char& FString::Back() const: Assertion `IsNotEmpty()' failed.
This happens on every game I've tried with it so far.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [Linux] Cannot play with debug build

Post by Graf Zahl »

I need a call stack. There's insufficient information in your post.
Talon1024
 
 
Posts: 377
Joined: Mon Jun 27, 2016 7:26 pm
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support

Re: [Linux] Cannot play with debug build

Post by Talon1024 »

Here's the backtrace I got after running Raze with GDB:

Code: Select all

#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007ffff5982801 in __GI_abort () at abort.c:79
#2  0x00007ffff597239a in __assert_fail_base (
    fmt=0x7ffff5af97d8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", 
    assertion=assertion@entry=0x555555dc6b05 "IsNotEmpty()", 
    file=file@entry=0x555555dc6ac8 "/home/kevinc/Games/code/Raze/source/common/utility/zstring.h", 
    line=line@entry=205, 
    function=function@entry=0x555555dc6e80 <FString::Back() const::__PRETTY_FUNCTION__> "const char& FString::Back() const") at assert.c:92
#3  0x00007ffff5972412 in __GI___assert_fail (assertion=0x555555dc6b05 "IsNotEmpty()", 
    file=0x555555dc6ac8 "/home/kevinc/Games/code/Raze/source/common/utility/zstring.h", line=205, 
    function=0x555555dc6e80 <FString::Back() const::__PRETTY_FUNCTION__> "const char& FString::Back() const") at assert.c:101
#4  0x0000555555847a3e in FString::Back (this=0x7fffffffc810)
    at /home/kevinc/Games/code/Raze/source/common/utility/zstring.h:205
#5  0x0000555555841cd1 in AddSearchPath (searchpaths=..., path=0x555559864b2c "/usr/share/games/jfduke3d")
    at /home/kevinc/Games/code/Raze/source/common/searchpaths.cpp:61
#6  0x0000555555842246 in CollectSearchPaths ()
    at /home/kevinc/Games/code/Raze/source/common/searchpaths.cpp:236
#7  0x0000555555842488 in CollectAllFilesInSearchPath ()
    at /home/kevinc/Games/code/Raze/source/common/searchpaths.cpp:283
#8  0x0000555555844776 in GrpScan () at /home/kevinc/Games/code/Raze/source/common/searchpaths.cpp:688
#9  0x000055555583d3ed in SetupGame () at /home/kevinc/Games/code/Raze/source/common/gamecontrol.cpp:437
#10 0x000055555583de9d in RunGame () at /home/kevinc/Games/code/Raze/source/common/gamecontrol.cpp:598
#11 0x000055555583cfca in GameMain () at /home/kevinc/Games/code/Raze/source/common/gamecontrol.cpp:343
#12 0x0000555555779db4 in main (argc=1, argv=0x7fffffffde68)
    at /home/kevinc/Games/code/Raze/source/platform/posix/sdl/i_main.cpp:140

Return to “Closed Bugs [Raze]”