zdbsp hangs on multisided polyobj

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
Hirogen2
Posts: 2033
Joined: Sat Jul 19, 2003 6:15 am
Operating System Version (Optional): Tumbleweed x64
Graphics Processor: Intel with Vulkan/Metal Support
Location: Central Germany
Contact:

zdbsp hangs on multisided polyobj

Post by Hirogen2 »

According to gdb, this is the endless loop:

Code: Select all

413                     do
(gdb) 
415                             AddSegToBBox (bbox, &Segs[i]);
(gdb) 
416                             vert = Segs[i].v2;
(gdb) 
417                             i = Vertices[vert].segs;
The zdbsp internal to zdoom is also affected.
Last edited by Hirogen2 on Sun Nov 09, 2008 6:26 am, edited 2 times in total.
User avatar
Enjay
 
 
Posts: 26938
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: zdbsp hangs on specific wad

Post by Enjay »

The polyobject uses 2 sided lines. Deleting side2 allows the nodes to build. Not sure how that fits into the grand scheme of things or what you had planned, but there you are.
User avatar
Hirogen2
Posts: 2033
Joined: Sat Jul 19, 2003 6:15 am
Operating System Version (Optional): Tumbleweed x64
Graphics Processor: Intel with Vulkan/Metal Support
Location: Central Germany
Contact:

Re: zdbsp hangs on multisided polyobj

Post by Hirogen2 »

Yes, I forgot to clear the polyobj so that it is single-sided, but I think zdbsp should handle this more gracefully than going into an endless loop in case it does happen.
User avatar
Enjay
 
 
Posts: 26938
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: zdbsp hangs on multisided polyobj

Post by Enjay »

Yes, it probably should. Also, I've noticed another problem. You don't have a poly anchor, just start spots. for info, when I load a semi fixed file in GZdoom, it causes a crash on exit

http://forum.drdteam.org/viewtopic.php?p=32959

Also, having set up the poly so that it will actually appear and move (not in the file I uploaded to DRD) I suspect is isn't doing what you want. It only crushes the barrels if they get caught between the poly and the wall in a certain way. At other times, the barrels just block the movement of the poly.
User avatar
Hirogen2
Posts: 2033
Joined: Sat Jul 19, 2003 6:15 am
Operating System Version (Optional): Tumbleweed x64
Graphics Processor: Intel with Vulkan/Metal Support
Location: Central Germany
Contact:

Re: zdbsp hangs on multisided polyobj

Post by Hirogen2 »

User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49223
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: zdbsp hangs on multisided polyobj

Post by Graf Zahl »

Fixed the hang in both ZDBSP and ZDoom.

The crash when loading this level is a general problem with ZDoom's level loading code. It can't recover from I_Error the way it is written right now. This will need some more work.
Post Reply

Return to “Closed Bugs [GZDoom]”