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

Error when start project in linux #10859

Open
maulanadiooo opened this issue May 6, 2024 · 2 comments
Open

Error when start project in linux #10859

maulanadiooo opened this issue May 6, 2024 · 2 comments
Labels
bug Something isn't working crash An issue that could cause a crash needs repro Needs an example to reproduce

Comments

@maulanadiooo
Copy link

How can we reproduce the crash?

No response

JavaScript/TypeScript code that reproduces the crash?

No response

Relevant log output

No response

Stack Trace (bun.report)

Bun v1.1.7 (b0b7db5) on linux x86_64_baseline [AutoCommand]

Segmentation fault at address 0x00000118

  • ld-temp.o:0: std::optional<WTF::Vector<unsigned char, 2048ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> > WTF::URLParser::domainToASCII<char16_t>

Features: jsc, tsconfig

@maulanadiooo maulanadiooo added bug Something isn't working crash An issue that could cause a crash labels May 6, 2024
@Electroid
Copy link
Contributor

Are you able to share the package.json and snippet of code you used?

@Electroid Electroid added the needs repro Needs an example to reproduce label May 6, 2024
@maulanadiooo
Copy link
Author

maulanadiooo commented May 7, 2024

Are you able to share the package.json and snippet of code you used?

{ "name": "be_activation", "version": "1.0.50", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "dev:old": "bun run --watch src/index.ts", "dev": "bun run src/spawn.ts", "start": "bun run src/spawn_prod.ts", "start:prod": "bun run src/spawn_prod_docker.ts", "start:dev": "bun build src/index.ts --target=bun --outfile=index.js && bun run index.js", "upload": "bun run prodPm2.ts" }, "dependencies": { "@elysiajs/cors": "^1.0.2", "@elysiajs/cron": "^1.0.3", "@elysiajs/jwt": "^1.0.2", "@elysiajs/server-timing": "^1.0.2", "@elysiajs/static": "^1.0.3", "@elysiajs/stream": "^1.0.2", "@elysiajs/swagger": "^1.0.5", "@googleapis/androidpublisher": "^13.0.0", "@prisma/client": "^5.10.2", "async-mutex": "^0.5.0", "chalk": "^5.3.0", "crypto-js": "^4.2.0", "elysia": "latest", "elysia-rate-limit": "^4.0.0", "fcm-node": "^1.6.1", "firebase": "^10.11.1", "firebase-admin": "^12.0.0", "google-oauth-jwt": "^0.2.0", "google-play-billing-validator": "^2.1.3", "mqtt": "^5.5.0", "node-telegram-bot-api": "^0.65.1", "nodemailer": "^6.9.12", "prisma": "^5.10.2", "qrcode": "^1.5.3", "redis": "^4.6.13", "uuid": "^9.0.1" }, "devDependencies": { "adm-zip": "^0.5.12", "@elysiajs/eden": "^1.0.11", "@types/adm-zip": "^0.5.5", "@types/crypto-js": "^4.2.2", "@types/node-telegram-bot-api": "^0.64.6", "@types/nodemailer": "^6.4.14", "@types/qrcode": "^1.5.5", "@types/ssh2": "^1.15.0", "@types/uuid": "^9.0.8", "bun-types": "latest", "ssh2": "^1.15.0" }, "module": "src/index.js" }

im run this start:prod that running this script on spawn_prod_docker.ts

const prodMqttDocker = "bun src/Helper/mqtt.ts";
Bun.spawn(prodMqttDocker.split(" "), {
env: {...process.env}
})

const runProdDocker = "bun run src/index.ts";
Bun.spawnSync(runProdDocker.split(" "), {
stdio: ["inherit", "inherit", "inherit"],
env: {...process.env}
})

note: im using elysia.js as backend server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working crash An issue that could cause a crash needs repro Needs an example to reproduce
Projects
None yet
Development

No branches or pull requests

2 participants