Starting resource shuts down server: Assertion failed

GTA V version?
1.0.1290.1
Up to date?
Yes
Legit or Pirate copy?
Legit
Steam/CD/Social Club?
Social Club
Windows version?
Windows 10 Pro
Did you try to delete caches.xml and try again?
(server side)
Error screenshot (if any)
1 up: log of exception
https://hastebin.com/urositunuz.go
System specifications
server:
i7-4770 (i think)
GTX 750 Ti
16 GB of ram
What did you do to get this issue?
It seems to happen randomly when starting certain C# resources. It happens on multiple different C# resources.
What server did you get this issue on?
My development server (it’s basically a blank slate of resources)

I have just made sure that I had the updated version of the server. Haven’t really done anything else.

Not sure if this still applies, but recent server versions were causing issues. If recent builds have this issue, try version 507 to see if it works fine there. Let us know how that goes.

1 Like

build 507 doesn’t seem to fix the problem :frowning:

Are the resources built using the correct framework version? And is there possibly any specific native/code in the resources that crash?

I’m building all my files in framework v4.7.1. There are no resources loading server side so IDK. I’m using a client side C# script with Newtonsoft.JSON.dll along with System.Numerics as client. The client side script is so simple, so here it is:

using System.Threading.Tasks;
using CitizenFX.Core;
using Newtonsoft.Json;

namespace Script.FX.Client
{
    public class MyScript : BaseScript
    {
        private string lastJson;

        public ZCadClient()
        {
            Tick += OnTick;
            
            
            lastJson = JsonConvert.SerializeObject(new {x = "hi", y = "hello"});
            Debug.WriteLine(lastJson);
        }

        private async Task OnTick()
        {
            await Delay(1000);

        }
    }
}

Afaik you need to build FiveM resources in 4.5.2 for it to work correctly, not sure if this has anything to do with the crashing though.

Edit: Does this crash happen on both windows and linux server versions? + moved to Bug reports so the issue can be tracked.

I’ve just tested on linux. Don’t actually have a windows distro setup at the moment.

Have you tried building using framework 4.5.2 and see if that solved it?

4.5.2 didn’t seem to fix it…
weird thing is that it randomly started working (without touching the C# part).
I think it had something to do with me editing the __resource.lua??
IDK at this point. it’s fixed enough.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.