Page MenuHomeFeedback Tracker

RestCallback no longer supports Template-based child classes
Assigned, UrgentPublic

Description

As of 1.12, defining a template class that extends RestCallback leads to heap corruption during game startup (compilation).

This can be demonstrated by adding the following code to a mod:

class ExampleCrash<Class T> extends RestCallback { }

In the previous version, 1.11, this worked perfectly fine.

Details

Severity
Crash
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Operating System Version
10.0.19042
Category
General
Steps To Reproduce
  1. Create a mod
  2. in 3_Game, 4_World, or 5_Mission, add the following code snippet:
class ExampleCrash<Class T> extends RestCallback { }
  1. Launch DayZ with this mod
    • game should crash shortly after the loading screen appears, before all modules have been compiled --

Event Timeline

Kegan created this task.Apr 24 2021, 7:21 PM
Kegan changed Severity from None to Crash.
Geez changed the task status from New to Assigned.Apr 26 2021, 10:55 AM
Geez added a subscriber: Geez.Apr 26 2021, 12:38 PM

Hello Kegan.
Were you doing something differently in 1.11? As there were no changes to this and it looks like this was not working even in 1.11.
Regards,
Geez

Kegan added a comment.May 11 2021, 5:29 PM

No, nothing different. I created an entire REST improvement mod built around these template classes on rest callbacks in 1.11 (or maybe 1.10?). Anyway after a bit of time away from modding, I came back after the 1.12 patch and this was crashing the game at compile, something I never experienced before in modding.