Page MenuHomeFeedback Tracker

Modding MissionServer results in a server crash on shutdown
Reviewed, UrgentPublic

Description

When modding MissionServer the server will crash on shutdown with an access violation error. It does not matter what the modded class contains, its mere presence results in the server crashing.

=======================================================
-------------------------------------------------------
Time:  9:30:06
Exception code: C0000005 ACCESS_VIOLATION at FE4CD6C3
Version 1.12.153895
Fault address:  FE4CD6C3 00:FE4CD6C3 Unknown module
file:     dayzOffline
world:    chernarusplus
Prev. code bytes: 48 8B CB EB 03 49 8B 0E 48 85 C9 74 0D 48 8B 01
Fault code bytes: FF 50 20 48 8B 35 63 0F A9 00 48 8B CF E8 5B FD
=======================================================
note: Minidump has been generated into the file F:\SteamLibrary\steamapps\common\DayZServer\profiles\DayZServer_x64_2021-05-08_09-29-38_2021-05-08_09-30-06.mdmp

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10
Category
General
Steps To Reproduce

Create mod which only accesses 5_Mission and add

modded class MissionServer {};

Event Timeline

One of the memory dumps created.

tjensen added a subscriber: tjensen.May 8 2021, 6:22 PM
This comment was removed by Geez.
This comment was removed by Geez.
Geez added a subscriber: Geez.May 12 2021, 10:12 AM
Geez changed the task status from New to Reviewed.May 12 2021, 10:32 AM

Hello philippjoos.
It is unnecessary to store the return 'RestAPI' of "CreateRestAPI()" in a 'ref' in script, as this memory is already managed in C++ and will be freed when the program terminates (or when calling "DestroyRestAPI()").

Regards,
Geez