spring crashes during loading on my working laptop (singlepl

spring crashes during loading on my working laptop (singlepl

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

User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

spring crashes during loading on my working laptop (singlepl

Post by jamerlan »

Last edited by jamerlan on 12 Jun 2012, 18:10, edited 1 time in total.
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

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

Post by jamerlan »

It was generated automatically via fedora linux.
Are such stacktraces useful?
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

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

Post 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.
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

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

Post 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
Attachments
infolog.txt
(4.71 KiB) Downloaded 108 times
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

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

Post 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.
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

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

Post by jamerlan »

I made another attempt
http://pastebin.com/uzSCNZ2j

looks like there are several crash places during starting singleplayer game
Attachments
infolog.txt
(4.75 KiB) Downloaded 106 times
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

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

Post 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.
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

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

Post 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
Attachments
infolog.txt
(4.75 KiB) Downloaded 85 times
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

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

Post 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)
Attachments
infolog.txt
(4.41 KiB) Downloaded 107 times
Last edited by jamerlan on 15 Jun 2012, 13:56, edited 1 time in total.
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

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

Post 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.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

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

Post by abma »

can you try --safemode please?

imo you've problems because of bad gfx-drivers / incompatible settings of spring.
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

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

Post 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
Attachments
all_info.zip
(36.9 KiB) Downloaded 13 times
infolog.txt
(5 KiB) Downloaded 110 times
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

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

Post 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.
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

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

Post 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---
Attachments
infolog.txt
(4.2 KiB) Downloaded 103 times
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

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

Post by jamerlan »

I guess this means that problem is not in ai ;-)
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

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

Post 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.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

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

Post 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?
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

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

Post 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.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

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

Post 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. :/
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

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

Post 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.
Post Reply

Return to “Help & Bugs”