Better logs (especially for crash purpose) ?

Better logs (especially for crash purpose) ?

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

vampi3
Posts: 35
Joined: 25 Mar 2009, 18:53

Better logs (especially for crash purpose) ?

Post by vampi3 »

Hi,

There is so many reasons Spring can crash i start to call it like that, "Crash".

Between Spring itselfs, the AI, the maps, a problem in a 3D0 file, etc., it's really hard sometimes to understand why the game crash.

Actually, i'm even in a position i can't understand why the game crash on my mod.

i wanted to know if it's possible to have a better log where we have the reason why my mod crash. And the worst thing is it don't always crash. Just really often.

I know unitsync.log & infolog.txt
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Better logs (especially for crash purpose) ?

Post by aegis »

the stacktrace can tell you exactly what it was doing when it crashed
vampi3
Posts: 35
Joined: 25 Mar 2009, 18:53

Re: Better logs (especially for crash purpose) ?

Post by vampi3 »

Thank for you fast answer, but what is stacktrace ?
User avatar
kburts
Posts: 134
Joined: 22 Mar 2009, 00:36

Re: Better logs (especially for crash purpose) ?

Post by kburts »

check your infolog.txt
vampi3
Posts: 35
Joined: 25 Mar 2009, 18:53

Re: Better logs (especially for crash purpose) ?

Post by vampi3 »

Infolog.txt don't give the crash reason.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Better logs (especially for crash purpose) ?

Post by Beherith »

Go to lobby
/j #buildserv
post whole infolog to pastebin.ca
!translate file=http://pastebin.ca/1398154 in #buildserv
Enjoy.
vampi3
Posts: 35
Joined: 25 Mar 2009, 18:53

Re: Better logs (especially for crash purpose) ?

Post by vampi3 »

Tried :
[15:18:24] * BuildServ * Downloading stacktrace...
[15:18:27] * BuildServ * [OK] Downloaded at 96.2 KB/s
[15:18:27] * BuildServ * Detecting build parameters...
[15:18:27] * BuildServ * [WARNING] Unable to find detailed version in infolog, autodetection disabled
[15:18:27] * BuildServ * Checking debug data availability...
[15:18:27] * BuildServ * [OK]
[15:18:27] * BuildServ * Parsing stacktrace...
[15:18:27] * BuildServ * [ERROR] Unable to find translatable stacktrace in file
:cry:

Tried in text mode, in raw. Tried in copy and in download file.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Better logs (especially for crash purpose) ?

Post by lurker »

If there is a stacktrace it goes at the end of the infolog; that's why kburts said to look there. http://pastebin.ca/1398243 doesn't have one, so please describe the crash in detail. Was there an error box? Did spring hang? etc.
vampi3
Posts: 35
Joined: 25 Mar 2009, 18:53

Re: Better logs (especially for crash purpose) ?

Post by vampi3 »

In fact, the game simply close. As if "killed" by the system.
No message, no error box, nothing.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Better logs (especially for crash purpose) ?

Post by Auswaschbar »

Do you want to continue discussing, or just post the infolog somewhere :roll:
vampi3
Posts: 35
Joined: 25 Mar 2009, 18:53

Re: Better logs (especially for crash purpose) ?

Post by vampi3 »

sorry ?
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Better logs (especially for crash purpose) ?

Post by Auswaschbar »

Your infolog.txt, post it somewhere (pastebin .e.g) and give link.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Better logs (especially for crash purpose) ?

Post by Auswaschbar »

:oops:
vampi3
Posts: 35
Joined: 25 Mar 2009, 18:53

Re: Better logs (especially for crash purpose) ?

Post by vampi3 »

I found something by chance : When a unit (The "Hyene") is hit, after a few hits the game crashe.
The unit is far to be destroyed, don't answer (it's non-armed), and the COB file don't have line for "hit", "wounded" and so on... :?
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: Better logs (especially for crash purpose) ?

Post by BrainDamage »

in linux, spring crashing doesn't print the stacktrace even if debug symbols are builtin, maybe fixing that won't be too hard considering there are quite few stacktrace dump lib/code snippets available around
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Better logs (especially for crash purpose) ?

Post by imbaczek »

patches welcome, useful stuff is IMVU's CallStack e.g.
vampi3
Posts: 35
Joined: 25 Mar 2009, 18:53

Re: Better logs (especially for crash purpose) ?

Post by vampi3 »

useful stuff is IMVU's CallStack e.g.
... is what ?
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Better logs (especially for crash purpose) ?

Post by lurker »

Brain Damage wrote:spring crashing doesn't print the stacktrace
That's okay, but it doens't print anything when it catches an error? That's a rather important bit of info, that there was an error, and that it was caught.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: Better logs (especially for crash purpose) ?

Post by Tobi »

I don't think it catches errors at all on Linux.

(At least the errors we're talking about here; ie. segfaults)
Post Reply

Return to “Game Development”