Better error handling?

A place to post suggestions for new features, new bugs, and comments about the existing code.
Post Reply
FreeBeer
Posts: 10902
Joined: Tue Dec 27, 2005 8:00 am
Location: New Brunswick, Canada

Post by FreeBeer »

As many folks know, when Alleg barfs on a file (usually a graphics file) it crashes with an ACCESS_EXCEPTION_VIOLATION. Would it be possible to capture the name of that file and log it before the client dies? This would help enormously in diagnosing some folks' problem with installing the game.
[img]http://www.freeallegiance.org/forums/st ... erator.gif" alt="IPB Image">

chown -R us base
fuzzylunkin1

Post by fuzzylunkin1 »

I believe the built in debugging support will help a lot with this (new to R6). Dump files will be created and someone can look at them if they have the proper symbol file from the exact same build as the client that crashed, meaning they will be able to see the very lines of code that caused the crash.
FreeBeer
Posts: 10902
Joined: Tue Dec 27, 2005 8:00 am
Location: New Brunswick, Canada

Post by FreeBeer »

:cool: That would be a good start, at least. Knowing the line of code would help us positively identify that that it was a problem opening a file (for instance), but it would be really helpful if we could know what that file name is. As you probably know, a single corrupt file can bring down the client and if we could identify the offending file, we'd know which one needs to be replaced.
[img]http://www.freeallegiance.org/forums/st ... erator.gif" alt="IPB Image">

chown -R us base
fuzzylunkin1

Post by fuzzylunkin1 »

Well it includes a call stack, which I believe contains that information. Perhaps I'm wrong, though. I forget stuff :P .
Last edited by fuzzylunkin1 on Mon Jan 31, 2011 1:57 am, edited 1 time in total.
pkk
Posts: 5419
Joined: Tue Jul 01, 2003 7:00 am
Location: Germany, Munich

Post by pkk »

fuzzylunkin1 wrote:QUOTE (fuzzylunkin1 @ Jan 31 2011, 12:42 AM) I believe the built in debugging support will help a lot with this (new to R6). Dump files will be created and someone can look at them if they have the proper symbol file from the exact same build as the client that crashed, meaning they will be able to see the very lines of code that caused the crash.
As long it breaks compatibility with ASGS, it's no feature of R6.
The Escapist (Justin Emerson) @ Dec 21 2010, 02:33 PM:
The history of open-source Allegiance is paved with the bodies of dead code branches, forum flame wars, and personal vendettas. But a community remains because people still love the game.
Cable
Posts: 602
Joined: Sun Jul 20, 2003 7:00 am
Location: Atlanta, GA

Post by Cable »

We really need better error handling in the Allegsrv code.

It would be very helpfull to kknow why the damn service is barfing and choking.
Image "If I could remove all the people from the earth I think are stupid... would I be the only one left ? "Sunt superis sua iura -ovid
Post Reply