Mysterious bloodtype-inheritance crash? [Latest SVN]

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
Xaser
 
 
Posts: 10774
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Mysterious bloodtype-inheritance crash? [Latest SVN]

Post by Xaser »

Okay, I've got a weird one.

I've attached a .zip containing a test wad + crash report. I have a custom bloodtype (HacxDigitWhite) that works just fine, but there's some kind of bizarre thing going on where the classes that inherit from it (HacxDigitGreen, etc.) will sometimes crash the game when used as blood types.

Included in the test wad are some "file" objects (HacxFileWhite, HacxFileGreen, etc.) that you can summon, push around, and shoot. The White one (base actor) works just fine, but if you try and summon and shoot HacxFileGreen (or any of the others), ZDoom will randomly crash when trying to spawn the digit actor.

I've narrowed down the error to the Digit actors, since swapping HacxFileWhite's blood type to HacxDigitGreen will cause the crash. It's likely something to do with the way inheritance is making the jump states work, but I really have no clue what and I'm pretty sure it shouldn't cause an access violation either way. :P
Attachments
filebork-CrashReport.zip
Open test wad, summon "HacxFileGreen", and shoot. It will crash randomly.
(19.74 KiB) Downloaded 20 times
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Re: Mysterious bloodtype-inheritance crash? [Latest SVN]

Post by randi »

Fixed in r3861.

PS. r3794 was not the "latest SVN" at the time you reported this.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Mysterious bloodtype-inheritance crash? [Latest SVN]

Post by Graf Zahl »

The whole thing still needs some actor side changes

The blood spawning code autoselects one of the first 3 states depending on the damage. So for the base class it may jump directly into one of the later states.
User avatar
Xaser
 
 
Posts: 10774
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Re: Mysterious bloodtype-inheritance crash? [Latest SVN]

Post by Xaser »

I must've forgotten to re-dump the crashlog after downloading the latest to see if the crash still occurred (it did).

Thanks for the fix, by the way.

[EDIT] Post-sniped. Never heard of this special behavior for blood spawning, though... I guess it's always been like this?

[DOUBLE-EDIT] Ah, that fixed it. Snuck a couple of extra frames and the crash has stopped. Weird that I've never noticed this about blood actors, though.

I'm guessing what was happening is that the shorter new Spawn state caused it to either randomly jump ahead to undefined data or go to the Spray state, which seemed to be borky according to the fix in the changelog.
Last edited by Xaser on Sat Sep 01, 2012 4:49 pm, edited 1 time in total.
User avatar
Kate
... in rememberance ...
Posts: 2975
Joined: Tue Jul 15, 2003 8:06 pm

Re: Mysterious bloodtype-inheritance crash? [Latest SVN]

Post by Kate »

Yes, it has always been like this. I know because I've run into a problem with this before - if the actor replacing blood has less than 3 states, the game will crash.
User avatar
Xaser
 
 
Posts: 10774
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Re: Mysterious bloodtype-inheritance crash? [Latest SVN]

Post by Xaser »

Welp! I seem to be having a chronological posting crisis here. :P

Thanks and things, all.
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Re: Mysterious bloodtype-inheritance crash? [Latest SVN]

Post by randi »

Xaser wrote:or go to the Spray state, which seemed to be borky according to the fix in the changelog.
Spray is only used when you're playing Strife, and the only thing borky about it was that it wasn't actually used.
Post Reply

Return to “Closed Bugs [GZDoom]”