Page 1 of 2

spring crashes during loading on my working laptop (singlepl

Posted: 12 Jun 2012, 18:05
by jamerlan

Re: spring crashes during loading on my working laptop (singlepl

Posted: 12 Jun 2012, 18:07
by jamerlan
It was generated automatically via fedora linux.
Are such stacktraces useful?

Re: spring crashes during loading on my working laptop (singlepl

Posted: 12 Jun 2012, 23:22
by hoijui
..it is a bti excessive :D

Code: Select all

Program terminated with signal 11, Segmentation fault.
#0  0x0860d994 in CSkirmishAIWrapper::Dieing (this=0x0) at /usr/src/debug/spring_88.0/rts/ExternalAI/SkirmishAIWrapper.cpp:204
i guess this means it dies becuase of the AI used.
could you also give infolog.txt please?
which mod and which AI it was is most interesting.

Re: spring crashes during loading on my working laptop (singlepl

Posted: 13 Jun 2012, 10:11
by jamerlan
infolog attached.
I am not sure that it was created for exactly this stacktrace. But error the same. Singleplayer, BA 7.68, AI: E323AI

Re: spring crashes during loading on my working laptop (singlepl

Posted: 13 Jun 2012, 11:06
by hoijui
this is not the same error.
the other one happened at death of an AI. this one ends before AIs are even beeing initialized.
the stack trace would have to be translated, but i guess.. GFX is hte most likely candiadte for this second problem.

Re: spring crashes during loading on my working laptop (singlepl

Posted: 13 Jun 2012, 15:52
by jamerlan
I made another attempt
http://pastebin.com/uzSCNZ2j

looks like there are several crash places during starting singleplayer game

Re: spring crashes during loading on my working laptop (singlepl

Posted: 15 Jun 2012, 01:58
by abma
as hoijui already said, looks like you are using an invalid / broken ai.

what ai's are you using? please try the commanders script first.. if that works, then add an ai.

Re: spring crashes during loading on my working laptop (singlepl

Posted: 15 Jun 2012, 12:32
by jamerlan
Previous my reports were with "E323AI" AI.

I tried kaik and null ai. Still crashes for both.

Here is log for null ai:
http://pastebin.com/bwNCpgWy

Re: spring crashes during loading on my working laptop (singlepl

Posted: 15 Jun 2012, 13:48
by jamerlan
Also, it crashes for non singleplayer games too (during loading):

(gdb) bt full
#0 0xb7726424 in __kernel_vsyscall ()
No symbol table info available.
#1 0x4521207b in waitpid () at ../sysdeps/unix/syscall-template.S:82
No locals.
#2 0x085cda40 in Platform::MsgBox (message="std::bad_alloc", caption="Spring: Fatal Error (general)", flags=@0xbf81ee4c: 9)
at /usr/src/debug/spring_88.0/rts/System/Platform/Linux/MessageBox.cpp:104
caption2 = "Spring: Fatal Error (general)\n", '\000' <repeats 69 times>"\267, "
pid = <optimized out>
status = <optimized out>
len = <optimized out>
msg2 = "std::bad_alloc\n", '\000' <repeats 984 times>"\277, "
#3 0x0856b6c2 in ExitMessage (forced=<optimized out>, flags=9, caption=..., msg=...)
at /usr/src/debug/spring_88.0/rts/System/Platform/errorhandler.cpp:41
No locals.
#4 ErrorMessageBox (msg="std::bad_alloc", caption="Spring: Fatal Error (general)", flags=9)
at /usr/src/debug/spring_88.0/rts/System/Platform/errorhandler.cpp:98
forcedExitThread = 0xa9900520
#5 0x08556933 in MainFunc (argc=-512, argv=0xfffffe00, ret=0x0) at /usr/src/debug/spring_88.0/rts/System/Main.cpp:52
No locals.
#6 0x08556d1c in Run (argc=argc@entry=3, argv=argv@entry=0xbf81f064) at /usr/src/debug/spring_88.0/rts/System/Main.cpp:62
ret = -1
err = <optimized out>
#7 0x080998fb in main (argc=3, argv=0xbf81f064) at /usr/src/debug/spring_88.0/rts/System/Main.cpp:92
No locals.
(gdb)

Re: spring crashes during loading on my working laptop (singlepl

Posted: 15 Jun 2012, 13:55
by jamerlan
maybe it's bug in my OS configuration and I should reinstall it. Previously spring worked on it. Or maybe some (linux) updates changed something that causes spring crashes. I don't know. I don't know are these reports useful or not. Just posted them with hope that they can help to improve spring.

Re: spring crashes during loading on my working laptop (singlepl

Posted: 15 Jun 2012, 14:41
by abma
can you try --safemode please?

imo you've problems because of bad gfx-drivers / incompatible settings of spring.

Re: spring crashes during loading on my working laptop (singlepl

Posted: 15 Jun 2012, 18:07
by jamerlan
Does not work.

/usr/bin/spring --safemode --config=/home/revenant/.springrc /home/revenant/.spring/script.txt

This time I attached archive with FULL info :-D

Singleplayer, null ai

Re: spring crashes during loading on my working laptop (singlepl

Posted: 15 Jun 2012, 18:15
by abma
please run it from the console:

spring --safemode

and then select as script "Commanders" (thats "no" ai)

NullAI still tries to load a shared library which could be the cause. SIGSEV let me think its either a broken ai or a bad GFX driver.

Re: spring crashes during loading on my working laptop (singlepl

Posted: 15 Jun 2012, 20:58
by jamerlan
I did as you said. And it still crashes.

(gdb) bt full
#0 0xb778e424 in __kernel_vsyscall ()
No symbol table info available.
#1 0x4521207b in waitpid () at ../sysdeps/unix/syscall-template.S:82
No locals.
#2 0x085cda40 in Platform::MsgBox (message="std::bad_alloc", caption="Spring: Fatal Error (general)", flags=@0xbff62e7c: 9)
at /usr/src/debug/spring_88.0/rts/System/Platform/Linux/MessageBox.cpp:104
caption2 = "Spring: Fatal Error (general)\n", '\000' <repeats 69 times>"\267, "
pid = <optimized out>
status = <optimized out>
len = <optimized out>
msg2 = "std::bad_alloc\n", '\000' <repeats 984 times>"\277, "
#3 0x0856b6c2 in ExitMessage (forced=<optimized out>, flags=9, caption=..., msg=...)
at /usr/src/debug/spring_88.0/rts/System/Platform/errorhandler.cpp:41
No locals.
#4 ErrorMessageBox (msg="std::bad_alloc", caption="Spring: Fatal Error (general)", flags=9)
at /usr/src/debug/spring_88.0/rts/System/Platform/errorhandler.cpp:98
forcedExitThread = 0xa9600520
#5 0x08556933 in MainFunc (argc=-512, argv=0xfffffe00, ret=0x0) at /usr/src/debug/spring_88.0/rts/System/Main.cpp:52
No locals.
#6 0x08556d1c in Run (argc=argc@entry=2, argv=argv@entry=0xbff63094) at /usr/src/debug/spring_88.0/rts/System/Main.cpp:62
ret = -1
err = <optimized out>
#7 0x080998fb in main (argc=2, argv=0xbff63094) at /usr/src/debug/spring_88.0/rts/System/Main.cpp:92
---Type <return> to continue, or q <return> to quit---

Re: spring crashes during loading on my working laptop (singlepl

Posted: 15 Jun 2012, 20:59
by jamerlan
I guess this means that problem is not in ai ;-)

Re: spring crashes during loading on my working laptop (singlepl

Posted: 15 Jun 2012, 21:05
by jamerlan
You can ignore this issue if it only my configuration specific. I can play under windows on this laptop. Under windows it works because laptop using "optimus" technology and under windows I run this game using nvidia videocard.

I just wanted to help to understand why it crashes under linux and intel card. Previously game worked. But something happens and game is not working anymore. Maybe it stopped working because of updates or something like that.

Anyway, it's still unplayable using intel video.

Re: spring crashes during loading on my working laptop (singlepl

Posted: 16 Jun 2012, 10:37
by hoijui
you have intel and NV on the smae system, but use intel to play spring under linux? or is it an other system?

Re: spring crashes during loading on my working laptop (singlepl

Posted: 16 Jun 2012, 11:17
by jamerlan
hoijui wrote:you have intel and NV on the smae system, but use intel to play spring under linux? or is it an other system?
Yes. Linux has very poor support for Optimus technology (2 video cards on notebooks). There is only custom ugly solutions like this: http://bumblebee-project.org/.

I am working under Fedora 17 linux and there are no bumblebee packages for it. So I need to compile and install it manually. I tried to do this but I failed. I did as shown in this manual but it still does not work: http://duxyng.wordpress.com/2012/01/26/ ... fedora-16/

So.. yes, I tried to play using intel video card because I can't switch to nvidia card under fedora linux.

Re: spring crashes during loading on my working laptop (singlepl

Posted: 16 Jun 2012, 11:27
by hoijui
it would be nice if you could mention something like this in the beginning. ;-)
i personally consider it worthless trying to fix total fail of hardware(+OS) in spring. though, i can understand that it sucks. :/

Re: spring crashes during loading on my working laptop (singlepl

Posted: 16 Jun 2012, 12:01
by jamerlan
hoijui, I think that game should not crash anyway. It should display messages like: "your hardware is not supported" or something like that. Looks like we can see where in code happens error and we can try to handle it better. Or detect such officially unsupported hardware.

Optimus technology is spreading. It allows you to save a lot of notebook battery time. I think that most of notebooks will use this technology soon and it's important to not crash for such users.