Page 1 of 1

[ZScript] GC crash

PostPosted: Mon May 15, 2017 2:59 pm
by RaveYard
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:

Re: [ZScript] GC crash

PostPosted: Fri May 19, 2017 5:08 am
by Graf Zahl
There's a code generation issue with the included struct which breaks the array access in Chunk.Init.

Re: [ZScript] GC crash

PostPosted: Mon May 22, 2017 8:29 am
by RaveYard
Any progress on this?

Another issue like this popped up in my mod and it's now completely unplayable... :|

Re: [ZScript] GC crash

PostPosted: Sat Sep 02, 2017 4:36 am
by Graf Zahl
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.