Stack Dump ?

carnsrb

Member
How do you figure out what's causing a stack dump and where do you look to fix it? I've seen content creators discuss making sure you have all your dependencies etc. if you getting one and I've done that but still get one in two different sessions. The sessions continue to run OK as near as I can tell but I'd like a method to tracking down the root cause.

Bob
 
Hi
one possible cause of crashes/errors in sessions is missing products.

unfortunately it's not the easiest one to fix. there is no easy way to find out all the products the session creator has used, it comes down to detective work figuring out what's missing.

what sessions are you having trouble with?

cheers
Roy
 
The Jetlog file might provide a clue. It's cleared down and restarted from nothing every time Trainz restarts so you may need to run the thing that fails again. In TRS2004 and TRS2006 it's C:\Program Files\Auran\TRS2004\JetLog.txt (or TRS2006) and can be opened with Notepad, dunno about later versions of Trainz. You might need to do quite a bit of digging in there to find anything and it doesn't always have the answer but it's worth a go.

HTH, John
 
When you next get a stack dump message flash up on your screen, take a screenprint of it, and then you can read it after coming out of your Driver/Surveyor session and can see exactly what it says. They generally give a small clue as to what it is that's causing it, and it's somewhere to start looking.

Cheerz. ex-railwayman.
 
First thanks for the responses. To respond to the questions and suggestions I've done the following.

1) The session in question is West Local 2 which is part of the Midwest Central System. It happens in Surveyor as well as Driver by the way. It also happens in West Local 1 which makes me wonder if the problem is in the map.

2) I've looked at JetLog (thanks BTW) but I can't correlate the messages there to the one on the screen although I do find stack dump messages.

3) I thought of the screen shot as well primarily so I could have something to look at while trying to figure this out. The message is:
" Asset.FindKUID> unable to find ‘textures’ in kuid-table
Available kuids are: :imgrem” “imga” “imgb” “imgadd” “imgxxx”

Stack dump:

function $Asset@Asset::FindAsset(string), line -1
function $void@StationLib::Init(Asset), line 102"


The message hasn't helped me so far figure out what's wrong. I don't really understand the first part or where to look. When I look at the configuration file and try to figure out what Line 102 means, I can't find anything that appears to be wrong.

Any additional thoughts are appreciated.

Bob
 
Bob,

That looks as if one particular asset has a missing entry called "textures" in its kuid-table. The kuid-table is its list of dependencies.

To discover which asset it is, with TRS2004 you could use the standard Microsoft search facility to search the text within the files in the kuid folder tree for one of those other words such as imgadd. There may be numerous hits and probably only one will be offending. Sorry, I don't know if CMP in TRS2006 and later has a similar search facility. With TRS2004, the Trainz Objectz program might pick up the problem for you. Again I don't know whether TRS2006 onwards has any similar facility.

The other way to isolate it is to take a copy of the layout and start chopping things out until the problem goes away.

HTH, John
 
John,

I'm traveling this week so I won't have time to dig into this until the weekend but thanks very much for the reply. I hadn't thought about using a search to try to find the problem so your suggestion is timely and appreciated. Thanks again,

Non
 
Back
Top