[r1448+]ActionFunc Unhandled Exception

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
Major Cooke
Developer
Developer
Posts: 240
Joined: Wed Mar 04, 2009 19:25

[r1448+]ActionFunc Unhandled Exception

Post by Major Cooke »

Okay... I've been having quite a few troubles trying to pin down this annoying bug but I finally got it. I think specifically this bug came into play when introducing the random state tic variation support.

In R1444, I don't get this type of problem: It works just fine without a hitch.

But when trying 1448+, I'm getting this spontaneous crash in Happy Time Circus II from an unknown reason each time I start to move into the first progression house (third house on the left with a porch, shoot the Pennywise doll on the left hand side upon entering, then head towards the back right corner where a hidden backroom is), I get a crash anywhere from looking towards the corridor to entering it.

It points to an unhandled exception in Info.h towards SetState, and points specifically right:

Code: Select all

	inline bool CallAction(AActor *self, AActor *stateowner, StateCallData *statecall = NULL)
	{
		if (ActionFunc != NULL)
		{
			ActionFunc(self, stateowner, this, ParameterIndex-1, statecall); //<-------------HERE
			return true;
		}
The callstack:

Code: Select all

 	dddddddd()	
>	gzdoomd.exe!FState::CallAction(AActor * self=0x2384ed18, AActor * stateowner=0x2384ed18, StateCallData * statecall=0x00000000)  Line 133 + 0x22 bytes	C++
 	gzdoomd.exe!AActor::SetState(FState * newstate=0x04d782a0, bool nofunction=false)  Line 481 + 0x1a bytes	C++
 	gzdoomd.exe!AActor::Tick()  Line 3524 + 0x19 bytes	C++
 	gzdoomd.exe!DThinker::TickThinkers(FThinkerList * list=0x00db7028, FThinkerList * dest=0x00000000)  Line 467	C++
 	gzdoomd.exe!DThinker::RunThinkers()  Line 419 + 0x12 bytes	C++
 	gzdoomd.exe!P_Ticker()  Line 131	C++
 	gzdoomd.exe!G_Ticker()  Line 1161	C++
 	gzdoomd.exe!TryRunTics()  Line 1838	C++
 	gzdoomd.exe!D_DoomLoop()  Line 1032	C++
 	gzdoomd.exe!D_DoomMain()  Line 2423 + 0x5 bytes	C++
 	gzdoomd.exe!DoMain(HINSTANCE__ * hInstance=0x00400000)  Line 1001	C++
 	gzdoomd.exe!WinMain(HINSTANCE__ * hInstance=0x00400000, HINSTANCE__ * nothing=0x00000000, char * cmdline=0x002a4b9b, int nCmdShow=1)  Line 1291 + 0x9 bytes	C++
 	gzdoomd.exe!__tmainCRTStartup()  Line 263 + 0x2c bytes	C
 	gzdoomd.exe!WinMainCRTStartup()  Line 182	C
User avatar
Gez
Developer
Developer
Posts: 1399
Joined: Mon Oct 22, 2007 16:47

Re: [r1448+]ActionFunc Unhandled Exception

Post by Gez »

ZDoom?
Major Cooke
Developer
Developer
Posts: 240
Joined: Wed Mar 04, 2009 19:25

Re: [r1448+]ActionFunc Unhandled Exception

Post by Major Cooke »

Yes, actually it is. Right then, posting this up there...
Locked

Return to “Closed Bugs”