Page MenuHomeFeedback Tracker

[SERVER CRASH] Access violation. Illegal read by 0x7ff61be54d32 at 0x178
Reviewed, NormalPublic

Description

Both of my servers crashed couple hours after 1.22 update.
Attaching all needed logs.
Thank you for your time!

2 server

Details

Severity
Crash
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General

Event Timeline

gamerz971 added a subscriber: gamerz971.EditedWed, Jun 4, 1:28 AM

Same error, higher pop server.

0x7ff6cb224d32 at 0x178

Geez changed the task status from New to Reviewed.Wed, Jun 4, 3:54 PM
Geez added a subscriber: Geez.

Hello.
This seems to be related to car cutting tree script that has been described bellow:

Hello, in the experimental version of the game (1.28), one of the vehicle-based tree-cutting scripts has started causing server crashes. It works fine in version 1.27.

override void OnContact( string zoneName, vector localPos, IEntity other, Contact data )
{

if ( EngineIsOn() && (data.Impulse > 2000 || GetSpeedometer() > 10))
 {
    Object tree = Object.Cast( other );
        if (tree.IsTree())
        {
            if ( tree.IsCuttable() /* || tree.IsBush() */ )
            {
                Class treeType = NULL;
                if ( tree.IsInherited(TreeHard) )
                {
                    treeType = TreeHard.Cast( tree );
                }
                else if ( tree.IsInherited(TreeSoft) )
                {
                    treeType = TreeSoft.Cast( tree );
                }
                if ( treeType )
                {
                    tree.DecreaseHealth("", "", 100, true);
                    tree.OnTreeCutDown( this ); //RPC Send
                    dBodyDestroy(tree);
                }
                data.Impulse = data.Impulse * 0.01;
            }
        }
}
super.OnContact(zoneName, localPos, other, data);

}

If I remove these lines: tree.DecreaseHealth("", "", 100, true); and dBodyDestroy(tree);, the script works, but the tree does not fall, as expected.
Regards,

This is not a vanilla behaviour but we are looking into it.
Geez

Hello.
This seems to be related to car cutting tree script that has been described bellow:

Hello, in the experimental version of the game (1.28), one of the vehicle-based tree-cutting scripts has started causing server crashes. It works fine in version 1.27.

override void OnContact( string zoneName, vector localPos, IEntity other, Contact data )
{

if ( EngineIsOn() && (data.Impulse > 2000 || GetSpeedometer() > 10))
 {
    Object tree = Object.Cast( other );
        if (tree.IsTree())
        {
            if ( tree.IsCuttable() /* || tree.IsBush() */ )
            {
                Class treeType = NULL;
                if ( tree.IsInherited(TreeHard) )
                {
                    treeType = TreeHard.Cast( tree );
                }
                else if ( tree.IsInherited(TreeSoft) )
                {
                    treeType = TreeSoft.Cast( tree );
                }
                if ( treeType )
                {
                    tree.DecreaseHealth("", "", 100, true);
                    tree.OnTreeCutDown( this ); //RPC Send
                    dBodyDestroy(tree);
                }
                data.Impulse = data.Impulse * 0.01;
            }
        }
}
super.OnContact(zoneName, localPos, other, data);

}

If I remove these lines: tree.DecreaseHealth("", "", 100, true); and dBodyDestroy(tree);, the script works, but the tree does not fall, as expected.
Regards,

This is not a vanilla behaviour but we are looking into it.
Geez

I don't believe I have any mods running this version of the script.