Unable to use a recent version of prisma

I talked about this in the discord server but technetium said that it would be better to post on the forums so hope you can help with that.

  1. FXServer version 5049
  2. What you expected to happen : Prisma to load correctly
  3. What actually happens : FXServer crashes after starting the resource
  4. Category of bug (eg. client, server, weapons, peds, native) : server
  5. Reproducible steps, preferably with example script(s)
    prisma-repro.zip (90.8 MB)

Crash dump (if you need the full crash dump let me know) :
7c5a6bd9-fb98-4855-9530-3d02847d8d39.dmp (1.8 MB)

However I noticed that using an old version of prisma (2.23.0) works fine, so perhaps something interferes with FXServer on newer versions ?

Not a bug.

Crash seems to stem from node_modules/.prisma/client/query_engine-windows.dll.node not being rebuilt for the current environment and instead expecting nodejs.org binaries unconditionally, and not hooking into usual node-gyp/electron-rebuild (nor would it ever, as it’s some Rust nonsense using ‘napi-rs’).

I suspect this ‘old version’ didn’t include a native module being used, or if it did, it was optional, not inherently broken, or an out-of-process executable.


Some checking of their repository indeed shows that newer versions changed (only the default?) to run the Rust components as a binary Node module instead of an out-of-process .exe. The build process for their in-process Node module also seems to somehow reimplement all of node-gyp etc. so it is non-trivial to do what we do for normal C++ .node plugins as evidently Rust folks love to reinvent wheels.

2 Likes