2024-04-20 05:06 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0004279Spring engineLinuxpublic2014-08-24 22:15
Reporterjamerlan 
Assigned Toabma 
PrioritynormalSeveritycrashReproducibilitysometimes
StatusresolvedResolutionfixed 
Product Version96.0 
Target VersionFixed in Version 
Summary0004279: crash after game end in~CVertexArray
Descriptioninfolog.txt (I compiled spring release so i have translated stack)

http://pastebin.com/yB580cZb
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
related to 0004282resolvedjK another endgame crash with bt full 
related to 0004281closedjK spring 96 is frozen on exit of the game 
+Relationships

-Notes

~0012722

cleanrock (reporter)

Last edited: 2014-01-19 06:39

View 2 revisions

Can you attach the demo or a gdb backtrace (bt full) ?

~0012723

jamerlan (reporter)

this is debug build so stack trace is translated. Or I am wrong?
Can't find demo file :(


[f=0079672] Error: Aborted (SIGABRT) in spring 96.0
[f=0079672] Error: Stacktrace for Spring 96.0:
[f=0079672] Error: <0> sigaction.c:?
[f=0079672] Error: <1> :?
[f=0079672] Error: <2> :?
[f=0079672] Error: <3> :?
[f=0079672] Error: <4> malloc.c:?
[f=0079672] Error: <5> malloc.c:?
[f=0079672] Error: <6> /usr/include/c++/4.8.2/bits/stl_iterator.h:748
[f=0079672] Error: <7> /home/revenant/projects/spring96/spring/rts/Game/UI/EndGameBox.h:55
[f=0079672] Error: <8> /usr/include/c++/4.8.2/bits/stl_vector.h:646
[f=0079672] Error: <9> /home/revenant/projects/spring96/spring/rts/System/float3.h:207
[f=0079672] Error: <10> /home/revenant/projects/spring96/spring/rts/System/Util.h:176
[f=0079672] Error: <11> /home/revenant/projects/spring96/spring/rts/Game/Game.cpp:523
[f=0079672] Error: <12> /usr/include/c++/4.8.2/bits/stl_map.h:484
[f=0079672] Error: <13> /usr/include/boost/smart_ptr/detail/shared_count.hpp:417
[f=0079672] Error: <14> /usr/include/c++/4.8.2/bits/basic_string.h:716
[f=0079672] Error: <15> crtstuff.c:?
[f=0079672] Error: <16> ??:?
[f=0079672] Error: <17> ??:114 (discriminator 1)
[f=0079672] Error: [ErrorMessageBox][1] msg="Spring has crashed:

~0012724

jamerlan (reporter)

when battle ended - lot's of people got crash. For example: kaon (BD) got crash too

~0012725

cleanrock (reporter)

infolog stacktrace do not make much sense, i think they are always pretty useless atm.
Since i see this in infolog
[f=0079672] [~CGame][8]
[f=0079672] Error: Aborted (SIGABRT) in spring 96.0
my conclusion is that crash happen on one of these 3 lines in ~CGame:
LOG("[%s][8]", __FUNCTION__);
SafeDelete(featureHandler); // depends on unitHandler (via ~CFeature)
SafeDelete(unitHandler); // depends on modelParser (via ~CUnit)
SafeDelete(projectileHandler);
LOG("[%s][9]", __FUNCTION__);

~0012726

silentwings (reporter)

Last edited: 2014-01-19 11:27

View 3 revisions

Does the demo crash when you watch it? If so please link to it (and I'll get a gdb trace from it).

~0012729

jamerlan (reporter)

silentwings looks like demo was not written

cleanrock maybe code review can help. I mean looks like bug is some where here:
[f=0079672] Error: <7> /home/revenant/projects/spring96/spring/rts/Game/UI/EndGameBox.h:55

~0012730

silentwings (reporter)

Did you check the replay site? replays.springrts.com

~0012732

jamerlan (reporter)

Last edited: 2014-01-19 12:47

View 2 revisions

>>Did you check the replay site? replays.springrts.com
I was spectator(I think, don't remember) and I have no idea how to find that battle

~0012733

cleanrock (reporter)

Last edited: 2014-01-19 12:48

View 2 revisions

jamerlan,
I looked at EndGameBox.h:55 first, i doubt problem is there, infolog stacktraces are crap.
We should try to get our hands on a replay that crashes the same way, ur infolog says this:
[f=0000000] recording demo: demos/20140119_012420_DeltaSiegeDry_96.sdf
Can you find that file on you computer ?

~0012734

jamerlan (reporter)

>Can you find that file on you computer ?
no it does not exists

~0012735

silentwings (reporter)

So look on replays.springrts.com for a replay matching that map/time/date/game/host?

~0012738

jamerlan (reporter)

about that:

>infolog stacktrace do not make much sense, i think they are always pretty >useless atm.
>Since i see this in infolog
>[f=0079672] [~CGame][8]
>[f=0079672] Error: Aborted (SIGABRT) in spring 96.0
>my conclusion is that crash happen on one of these 3 lines in ~CGame:
>LOG("[%s][8]", __FUNCTION__);
>SafeDelete(featureHandler); // depends on unitHandler (via ~CFeature)
>SafeDelete(unitHandler); // depends on modelParser (via ~CUnit)
>SafeDelete(projectileHandler);
>LOG("[%s][9]", __FUNCTION__);


cleanrock, in Game.cpp:523
I have this:
if (!gu->globalQuit) PostLoadRendering();

and in EndGameBox.h:55
I have: if (team >= 0 && static_cast<size_t>(team) >= values.size()) {

~0012739

cleanrock (reporter)

jamerlan,
Game.cpp:523 -> if (!gu->globalQuit) PostLoadRendering();
do not make sense at all.
Are you looking at 96.0 source ?
My Game.cpp:523 is end (end brace) in CGame dtor.
I dont trust infolog stacktraces a bit.
It would be very good if we could have proper stacktraces in infolog but i think its very difficult to achieve that.

~0012746

abma (administrator)

i wonder a bit about the signal,

why is it SIGABRT?

~0012747

cleanrock (reporter)

Last edited: 2014-01-20 20:19

View 2 revisions

Good point, assert prints dont end up in infolog right ? If they dont perhaps we can make them be printed there as well.
jamerlan says its a debug build, only asserts i see is within
CProjectile::Detach()
called from the SafeDelete(projectileHandler); in ~CGame

~0012749

abma (administrator)

the infolog.txt says its not a debug build, so asserts would be disabled...

~0013459

abma (administrator)

does this still happen with current development version / spring 97?

~0013472

jamerlan (reporter)

will try to reproduce with replay for spring 96. For me it crashes(freezes at the end actually) from time to time. And then I kill game with kill -9.

Looks like it only happens in massive and long multiplayer games. So I can't currently reproduce it in spring 97 (latest development)

I will try more at the weekends (takes lots of time)

~0013498

jamerlan (reporter)

Spring 96 freezed at the end of the game and I did "bt full" using gdb:
http://pastebin.com/rSzDvSYs

~0013499

cleanrock (reporter)

This non-critical bug is not of interest in 96.0 imo. Please check if the bug is in latest develop (97.0.1).

~0013500

jamerlan (reporter)

This bug is only reproducible if you are playing mass team game as a player (not a spec) in game end. I can't test it in spring 97 because no mass games

~0013553

abma (administrator)

sorry, i don't see how we could fix this bug, as its at the end + rarely it seems its not a very big problem.

98.0 will contain A LOT of changes, so lets see if it crashes then, too.

also atm i don't trust the linux crashhandler, the stacktraces are mostly broken :-|

~0013554

abma (administrator)

oops, didn't see your backtrace, sorry.

for me it looks like sth. is wrong in rts/Rendering/Env/Decals/GroundDecalHandler.cpp:124, it crashes because a scar is deleted twice.

~0013559

cleanrock (reporter)

Crash in ~CVertexArray so this may already be fixed by https://github.com/spring/spring/commit/708c3d6

~0013564

abma (administrator)

indeed, thanks!
+Notes

-Issue History
Date Modified Username Field Change
2014-01-18 23:14 jamerlan New Issue
2014-01-19 05:48 cleanrock Note Added: 0012722
2014-01-19 06:39 cleanrock Note Edited: 0012722 View Revisions
2014-01-19 10:07 jamerlan Note Added: 0012723
2014-01-19 10:08 jamerlan Note Added: 0012724
2014-01-19 11:02 cleanrock Note Added: 0012725
2014-01-19 11:26 silentwings Note Added: 0012726
2014-01-19 11:27 silentwings Note Edited: 0012726 View Revisions
2014-01-19 11:27 silentwings Note Edited: 0012726 View Revisions
2014-01-19 11:59 jamerlan Note Added: 0012729
2014-01-19 12:02 silentwings Note Added: 0012730
2014-01-19 12:47 jamerlan Note Added: 0012732
2014-01-19 12:47 cleanrock Note Added: 0012733
2014-01-19 12:47 jamerlan Note Edited: 0012732 View Revisions
2014-01-19 12:48 cleanrock Note Edited: 0012733 View Revisions
2014-01-19 12:50 jamerlan Note Added: 0012734
2014-01-19 12:53 silentwings Note Added: 0012735
2014-01-19 14:09 jamerlan Note Added: 0012738
2014-01-19 14:18 cleanrock Note Added: 0012739
2014-01-20 15:54 abma Relationship added related to 0004281
2014-01-20 15:54 abma Relationship added related to 0004282
2014-01-20 18:32 abma Note Added: 0012746
2014-01-20 20:17 cleanrock Note Added: 0012747
2014-01-20 20:19 cleanrock Note Edited: 0012747 View Revisions
2014-01-20 22:44 abma Note Added: 0012749
2014-01-21 12:42 abma Severity minor => crash
2014-08-01 16:50 abma Note Added: 0013459
2014-08-01 16:50 abma Status new => feedback
2014-08-05 19:32 jamerlan Note Added: 0013472
2014-08-05 19:32 jamerlan Status feedback => new
2014-08-09 21:23 jamerlan Note Added: 0013498
2014-08-09 22:19 cleanrock Note Added: 0013499
2014-08-09 22:23 cleanrock Status new => feedback
2014-08-09 22:28 jamerlan Note Added: 0013500
2014-08-09 22:28 jamerlan Status feedback => new
2014-08-22 21:57 abma Note Added: 0013553
2014-08-22 21:57 abma Status new => closed
2014-08-22 21:57 abma Assigned To => abma
2014-08-22 21:57 abma Resolution open => unable to reproduce
2014-08-22 22:18 abma Note Added: 0013554
2014-08-22 22:18 abma Assigned To abma =>
2014-08-22 22:18 abma Status closed => new
2014-08-24 09:20 cleanrock Note Added: 0013559
2014-08-24 22:14 abma Summary crash after game end => crash after game end in~CVertexArray
2014-08-24 22:15 abma Note Added: 0013564
2014-08-24 22:15 abma Resolution unable to reproduce => fixed
2014-08-24 22:15 abma Status new => resolved
2014-08-24 22:15 abma Assigned To => abma
+Issue History