Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation-Fault on latest release using fetch(...) or importing axios #327

Open
1 task done
SeaLife opened this issue Oct 1, 2024 · 1 comment
Open
1 task done

Comments

@SeaLife
Copy link

SeaLife commented Oct 1, 2024

Description of the problem

Hey,

i've recently started programming with the Alt:V SDK in Javascript. I developed everything so far on my local windows computer which works just fine. I tried to run my code today on a linux server (a docker container to be exact) and the server would crash all the time when importing axios or calling fetch(...).

I've created a repository containing a README.md with all the information and the repository contains a reproduction code for the crash.

https://github.com/SeaLife/altv-crash-axios/tree/master

I also tried building a custom image or running the altv-server bare-metal but none of those attempts worked. I also tried the recently pushed RC/DEV version with the newer dotnet and nodejs/v8 version without luck.

I think im just doing something wrong but so far no one could help me solve the issue, so i guess it could be a bug.

Regards
SeaLife

Reproduction steps

  • Create a Docker Compose file
  • Mount a custom server.toml file and the resource directory
  • Upload my resource which uses axios
  • If needed, run yarn install to fetch the dependencies
  • Add the resource to the server.toml
  • Startup the server, it should crash with Error Code 139 (segmentation fault)

Expected behaviour

I expect the server to boot up, let me join and get HTTP responses for my requests.
(in my case, im doing Discord authentication stuff, which - again - works fine locally on windows)

Additional context

No response

Operating system

Ubuntu 24.04.1 LTS

Version

16.2.13 and 16.2.14-rc

Crashdump ID

No response

Confirmation of issue's presence

  • By submitting this ticket, I affirm that I have verified the presence of this issue on the latest RC (Release Candidate) version available at the time of writing this ticket.
@SeaLife
Copy link
Author

SeaLife commented Oct 2, 2024

I just added privileged: true to the docker-compose.yml which caused the container to boot up with my code loaded and allowed me to join. As all SYS_CAP* are added on privileged=true, may this error occure due to a specific capability to be missing?

@deluvas1911 deluvas1911 transferred this issue from altmp/altv-issues Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant