Error: basic_string::_S_construct NULL not valid

Error: basic_string::_S_construct NULL not valid

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
fruehling
Posts: 17
Joined: 24 Nov 2010, 20:49

Error: basic_string::_S_construct NULL not valid

Post by fruehling »

Hey,

I just installed Spring on debian Lenny, but from experimental. So I'm using spring 0.82.6.1.

When I want to start a mod in springlobby, it opens up, starts loading, but then crashes and says: basic_string::_S_construct NULL not valid ... and I'm back in lobby-

I tried the stable ca, ba and spring1944 mods.

I have sent the debug files via the normal dialog. I searched the forums for this message but found nothing ... :(

Is there anything else i can do?
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Error: basic_string::_S_construct NULL not valid

Post by zerver »

A bug somewhere that tries to create a string from a NULL pointer.

Try running it through GDB and hopefully your will get a stack trace.
fruehling
Posts: 17
Joined: 24 Nov 2010, 20:49

Re: Error: basic_string::_S_construct NULL not valid

Post by fruehling »

zerver wrote:A bug somewhere that tries to create a string from a NULL pointer.

Try running it through GDB and hopefully your will get a stack trace.
Could you please explain how to do that for a noob?
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Error: basic_string::_S_construct NULL not valid

Post by hoijui »

install the debug symbol packages for spring too. then recreate the error, and attach infolog.txt to your next post, as file attachment.
if that does not help, we may instruct you to use gdb.
fruehling
Posts: 17
Joined: 24 Nov 2010, 20:49

Re: Error: basic_string::_S_construct NULL not valid

Post by fruehling »

Thanks for the help, here you go.
Attachments
infolog.txt
(3.69 KiB) Downloaded 121 times
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Error: basic_string::_S_construct NULL not valid

Post by jK »

[ 0] GL: 1.4 (2.1 Mesa 7.0.4)
[ 0] GL: Mesa project: www.mesa3d.org
[ 0] GL: Mesa GLX Indirect
[ 0] GLSL: (null)
install/setup a real gfx driver for your gpu
fruehling
Posts: 17
Joined: 24 Nov 2010, 20:49

Re: Error: basic_string::_S_construct NULL not valid

Post by fruehling »

jK wrote:
[ 0] GL: 1.4 (2.1 Mesa 7.0.4)
[ 0] GL: Mesa project: http://www.mesa3d.org
[ 0] GL: Mesa GLX Indirect
[ 0] GLSL: (null)
install/setup a real gfx driver for your gpu
lspci says:
VGA compatible controller: ATI Technologies Inc Mobility Radeon HD 3650
What kind of gfx driver would you recommend? I remember I tried to install one a year ago, but ended up with a black display ...
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Error: basic_string::_S_construct NULL not valid

Post by zerver »

Before installing that driver, plz help us find where this crash occurs.
fruehling
Posts: 17
Joined: 24 Nov 2010, 20:49

Re: Error: basic_string::_S_construct NULL not valid

Post by fruehling »

zerver wrote:Before installing that driver, plz help us find where this crash occurs.
Okay, what can I do for you?
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Error: basic_string::_S_construct NULL not valid

Post by hoijui »

are these last few lines from the infolog not enough already?

Code: Select all

[      0] [myGL::CheckParseErrors] Shader compilation error at index 41 (near "ARB_fragment_program_shadow;") when loading fragment-program file ARB/GroundDecalsSMF.fp:
(null)
[      0] Fatal Error basic_string::_S_construct NULL not valid
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Error: basic_string::_S_construct NULL not valid

Post by jK »

hoijui wrote:are these last few lines from the infolog not enough already?

Code: Select all

[      0] [myGL::CheckParseErrors] Shader compilation error at index 41 (near "ARB_fragment_program_shadow;") when loading fragment-program file ARB/GroundDecalsSMF.fp:
(null)
[      0] Fatal Error basic_string::_S_construct NULL not valid
Yup, I assume it is a bug in Mesa Shader emulation code (which is experimental AFAIK), which is passed to Spring via dwarf2.
fruehling
Posts: 17
Joined: 24 Nov 2010, 20:49

Re: Error: basic_string::_S_construct NULL not valid

Post by fruehling »

Okay, as this issue seems to be cleared ... any held here?
lspci says:
VGA compatible controller: ATI Technologies Inc Mobility Radeon HD 3650
What kind of gfx driver would you recommend? I remember I tried to install one a year ago, but ended up with a black display ...
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Error: basic_string::_S_construct NULL not valid

Post by zerver »

hoijui wrote:are these last few lines from the infolog not enough already?

Code: Select all

[      0] [myGL::CheckParseErrors] Shader compilation error at index 41 (near "ARB_fragment_program_shadow;") when loading fragment-program file ARB/GroundDecalsSMF.fp:
(null)
[      0] Fatal Error basic_string::_S_construct NULL not valid
Oh sry, yes they are, I will fix the bug.

Edit:
https://github.com/spring/spring/commit ... bcf0c0d530
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Error: basic_string::_S_construct NULL not valid

Post by hoijui »

spring uses OpenGL, and best OpenGL support/performance for ATI under linux is usually achieved with the fglrx drivers (ATI proprietary one), try to get it working with that (use google). if that wont work, or if pages you find tell you it will not work for your card and X-server or something, try the open-source ATI driver (forgot the name.. but you will sure find it in your search).
in case you do not know already...
if you want to use OpenGL under linux.. try to get Nvidia for your next system. no, i do not get money for saying this.. it is simply much much nicer for you as a user.
fruehling
Posts: 17
Joined: 24 Nov 2010, 20:49

Re: Error: basic_string::_S_construct NULL not valid

Post by fruehling »

hoijui wrote:spring uses OpenGL, and best OpenGL support/performance for ATI under linux is usually achieved with the fglrx drivers (ATI proprietary one), try to get it working with that (use google). if that wont work, or if pages you find tell you it will not work for your card and X-server or something, try the open-source ATI driver (forgot the name.. but you will sure find it in your search).
in case you do not know already...
if you want to use OpenGL under linux.. try to get Nvidia for your next system. no, i do not get money for saying this.. it is simply much much nicer for you as a user.
Okay, thanks a lot, I will try. :)
Post Reply

Return to “Help & Bugs”