Wintermute Engine Forum
Wintermute Engine => Technical forum => Topic started by: Amo on September 06, 2006, 04:53:50 PM
-
Sorry for the stupid subject, but I do not know how to write it short.
Following problem. With double click you have an immediate scene change. When clicking very fast 3 times doesn't change anything, the normal scene change like with an double click and nothing more. Now the problem:
In one specific scene causes this behaviour a crash. WME log says nothing, the post mortem log the following:
-----------------------------------------------------------------
---------- WME 1.6.001 crash report: 06-09-2006, 17:47 ----------
-----------------------------------------------------------------
wme.exe caused a EXCEPTION_ACCESS_VIOLATION in module wme.exe at 001B:00493677
EAX=00000000 EBX=41C0B63C ECX=00CA4CD0 EDX=00000010 ESI=00CC8008
EDI=00CC8148 EBP=00000001 ESP=0012F8B4 EIP=00493677 FLG=00010246
CS=001B DS=0023 SS=0023 ES=0023 FS=003B GS=0000
Stack trace:
001B:00493677 (0x00000000 0x00000000 0x00000000 0x00000000) wme.exe
Thanks for upcoming help
Amo
-
It seems to crash somewhere in the pathfinding phase. So it crashes when you triple-click?
I wasn't able to replicate the issue. Could you post your on "LeftClick" and on "LeftDoubleClick" handlers?
I assume you're using 3D pathfinding in the scene..? (the "Use 2D elements for pathfinding" checkbox is not checked).
-
Yes we are using the 3d pathfinding. I wrote unclear. It is not really a double click, it is more clicking twice, sounds stupid, I know. Double click is reserved for later, so there is nothing attached yet.
The code for the left click is the following:
on"LeftClick"
{
actor.GoTo(90,420);
actor.TurnTo(0);
Game.ChangeScene("path...");
}
-
Um, there must be some other factor involved then, this is pretty standard code, I guess.
Does it crash always or randomly? Does it crash while the character is walking, turning, or when the scene is changing?
-
It is crashing when the scene is changing, the screen is changing to black and than it is crashing.
-
So can you explain exactly what happens?
1) The actor is standing somewhere.
2) You click the exit twice.
3) The actor walks to the exit, turns.
4) The scene fades and the game crashes?
-
Near miss ;D
1) The actor is standing somewhere.
2) You click the exit twice.
3) The actor walks to the exit, turns.
4) The scene fades and everything is right
1) The actor is standing somewhere.
2) You click the exit three times
3) The actor walks to the exit, turns.
4) The scene fades and WME crashes
-
Hm, nope, can't seem to replicate it no matter what I try. And I don't see anything wrong with the code either. There must be something specific about your setup what I'm missing...
-
It is high time that we create a demo version for you.
::)
-
Well, it's certainly about 1000000 times faster to track down a bug if you can actually replicate it :)
-
we've had a similar problem (using 3D pathfinding as well): our exit zones had callback functions for left click and left double-click (double click was used to exit the scene immediately and on single-click the actor would walk to the exit then leave the scene). when "triple-clicking" the game would sometimes crash.
it looks like the actor's Goto function was called when the scene and pathfinding information was already unloaded.
i worked around this crash by setting the game to non-interactive first thing in the callback functions for left double-click:
Game.Interactive = false
(of course i had to set it back to interactive in each scene's main script.)
hope this helps
olivier
-
Hi Olivier,
our problem seems to be the same. Interesting is, that we "solved" it at the same way like you. OK, we are not really lucky with this, but we are on it. I guess mnemonic can help us, when we find the time to make a demo for him.