altmp / altv-issues

Issues and roadmap for alt:V project
93 stars 16 forks source link

--justpack crashes with segfault when resources require dependencies #496

Closed SerethiX closed 3 years ago

SerethiX commented 4 years ago

We have this resource.cfg for our main entry point and want to split stuff into different resources and required them as dependencies in the main resource.

Everything works fine in DEV 1088, Release 1071/1098 when running the server normally.

As soon as we try to pack the resources for external hosting using ./altv-server --host ${SERVER_HOST} --port ${SERVER_PORT} --justpack the server fails to do so with a segmentation fault.

resource.cfg:

type: csharp,

main: Gamemode.dll,
client-main: client/client.js,
client-files: [
    client/*
]
deps: [
    child-dependency
]

Expected behavior Being able to pack resources as if we do with the normal server not running in cdn mode.

Current behavior Server crashes when using the --justpack option.

Possible solution

Steps to reproduce Require a dependency in any resource and try to use --justpack

Context (environment) Running in Docker Image: mcr.microsoft.com/dotnet/core/runtime:3.1 Host: Debian 9/10

SerethiX commented 4 years ago

Update: With the latest version it simply skips building the dependency but does not crash anymore

C0kkie commented 3 years ago

That should be fixed since a long time