You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've encountered an issue with the omp-capi library that causes the server to crash when certain functions are used. After debugging, I identified that the root of the problem is the COPY_STRING_TO_CAPI_STRING_VIEW function. Any function that relies on COPY_STRING_TO_CAPI_STRING_VIEW also causes the server to crash.
Steps to Reproduce
Manually compile the omp-capi library in the x64 architecture and include it in your project.
Use the COPY_STRING_TO_CAPI_STRING_VIEW function directly or indirectly.
For example:
// Example 1: Calling a function that depends on COPY_STRING_TO_CAPI_STRING_VIEW
omp.on("playerConnect", (player) => {
const version = player.getVersion().version; // Causes the server to crash.
console.log(`Player version: ${version}`);
})
Observe that the server crashes consistently whenever the function is invoked.
The text was updated successfully, but these errors were encountered:
I've encountered an issue with the
omp-capi
library that causes the server to crash when certain functions are used. After debugging, I identified that the root of the problem is theCOPY_STRING_TO_CAPI_STRING_VIEW
function. Any function that relies onCOPY_STRING_TO_CAPI_STRING_VIEW
also causes the server to crash.Steps to Reproduce
Manually compile the omp-capi library in the x64 architecture and include it in your project.
Use the COPY_STRING_TO_CAPI_STRING_VIEW function directly or indirectly.
For example:
The text was updated successfully, but these errors were encountered: