[ZScript] GC crash

Is there something that doesn't work right in the latest GZDoom? Post about it here.

Moderator: GZDoom Developers

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!

[ZScript] GC crash

Postby RaveYard » Mon May 15, 2017 2:59 pm

Very specific ZScript code that causes crash upon garbage collection.

If struct ChunkSegmentRenderContext (located in "ZScript/DoomCraft/Core/Main.txt") is copy pasted into ZScript.txt, everything works fine.

http://www.mediafire.com/file/eqdbfs6d0 ... _Crash.pk3

Code: Select allExpand view
Code: C0000005 (Access Violation - tried to read address FFFFFFFFFFFFFFFF)


Bad luck... :cry:
RaveYard
 
Joined: 12 Apr 2013

Re: [ZScript] GC crash

Postby Graf Zahl » Fri May 19, 2017 5:08 am

There's a code generation issue with the included struct which breaks the array access in Chunk.Init.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: [ZScript] GC crash

Postby RaveYard » Mon May 22, 2017 8:29 am

Any progress on this?

Another issue like this popped up in my mod and it's now completely unplayable... :|
RaveYard
 
Joined: 12 Apr 2013

Re: [ZScript] GC crash

Postby Graf Zahl » Sat Sep 02, 2017 4:36 am

I just want to note that this is partially fixed, but the generated code still isn't 100% correct - so it looks like there's a second issue at play.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany


Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest