How I can I see the causes of why the game crashes?

Asked by german on 2010-11-07

sometimes, the game crashes and i don't know why. so i'd like to know the why, I mean something like a record. any answer is appreciated :)

Question information

English Edit question
Wargus Edit question
No assignee Edit question
Last query:
Last reply:
Joris Dauphin (joris-dauphin) said : #1

stdout.txt and stderr.txt should help.
There is also the log of the last game (.stratagus-2.2/wc2/logs/log_of_stratagus_0.log) (you can replay it).

And in debug mode, you can attach a debbuger.

german (pepeelgranjero) said : #2

where are those files?, i mean "stdout.txt" and "stderr.txt". I thought they were removed

Pali (pali) said : #3

Yes, these files was removed. Instead output to files, Stratagus write stdout/stderr output to windows cmd console (like on unix). You need run stratagus from cmd.exe to see output.

Travis (dinky-dye-aussie) said : #4

I was playing through the game today and it crashed. then I ran it from cmd.exe in debug mode and when it crashed again, it said the following

Assertion failed at src/action/action_resource.cpp 452: next == source

That's it. it also mentioned above this that the ai just stands around confused when the resource is no longer available...any ideas? should the == be changed to a single = sign?

Joris Dauphin (joris-dauphin) said : #5

Assertion explain that we expected variable next == source (equality)
single = is for affectation, So the bug is not in Assert.
It seems to happen when resource (mine) become empty and is destroyed.
I will try to reproduce it this week-end.

Can you help with this problem?

Provide an answer of your own, or ask german for more information if necessary.

To post a message you must log in.