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

Please look at it for me, I tried to build a basic framework using deepkit and bun, but there was an Internal assertion failure at run time #14035

Open
hx00678 opened this issue Sep 19, 2024 · 2 comments
Labels
crash An issue that could cause a crash runtime windows An issue that is known to occur on Windows

Comments

@hx00678
Copy link

hx00678 commented Sep 19, 2024

How can we reproduce the crash?

This is the package.json configuration file for my project

{
  "name": "deepkit-app",
  "version": "0.0.1",
  "description": "My new application",
  "private": true,
  "type": "commonjs",
  "main": "./dist/app.js",
  "workspaces": ["modules/**", "api-server/"],
  "scripts": {
    "build": "bun run build.ts",
    "app": "bun run app.ts server:start",
    "app:watch": "bun run --hot app.ts server:start",
    "postinstall": "deepkit-type-install",
    "makeMod": "ts-node ./scripts/createModule.ts"
  },
  "dependencies": {
    "@deepkit/api-console-gui": "^1.0.1-alpha.108",
    "@deepkit/app": "^1.0.1-alpha.108",
    "@deepkit/broker": "^1.0.1-alpha.108",
    "@deepkit/bson": "^1.0.1-alpha.108",
    "@deepkit/bun": "^1.0.1-alpha.154",
    "@deepkit/core": "^1.0.1-alpha.154",
    "@deepkit/core-rxjs": "^1.0.1-alpha.108",
    "@deepkit/event": "^1.0.1-alpha.108",
    "@deepkit/filesystem": "^1.0.1-alpha.108",
    "@deepkit/framework": "^1.0.1-alpha.108",
    "@deepkit/http": "^1.0.1-alpha.108",
    "@deepkit/injector": "^1.0.1-alpha.108",
    "@deepkit/logger": "^1.0.1-alpha.108",
    "@deepkit/orm": "^1.0.1-alpha.108",
    "@deepkit/rpc": "^1.0.1-alpha.108",
    "@deepkit/rpc-tcp": "^1.0.1-alpha.108",
    "@deepkit/sql": "^1.0.1-alpha.108",
    "@deepkit/sqlite": "^1.0.1-alpha.108",
    "@deepkit/stopwatch": "^1.0.1-alpha.108",
    "@deepkit/template": "^1.0.1-alpha.108",
    "@deepkit/type": "^1.0.1-alpha.154",
    "@deepkit/workflow": "^1.0.1-alpha.108",
    "@deepkit/mysql": "^1.0.1-alpha.98",
    "lodash": "^4.17.21",
    "@h4ad/serverless-adapter": "^3.1.0",
    "@live/common": "workspace:^1.0.0",
    "cors": "^2.8.5",
    "nanoid": "^4.0.2",
    "firebase-admin": "^11.10.1",
    "ioredis": "^5.3.2",
    "jsonwebtoken": "^9.0.0",
    "mariadb": "^3.2.0",
    "mathjs": "^11.10.0",
    "moment": "^2.29.4",
    "rxjs": "~7.8.1",
    "superagent": "^8.1.2",
    "ua-parser-js": "^1.0.37"
  },
  "devDependencies": {
    "@deepkit/type-compiler": "^1.0.1-alpha.154",
    "@eslint/js": "^9.10.0",
    "@types/bun": "latest",
    "@types/jest": "^29.5.11",
    "@types/lodash": "^4.14.191",
    "create-ts-index": "^1.14.0",
    "cross-env": "^7.0.3",
    "eslint": "^9.10.0",
    "faker": "^5.5.3",
    "globals": "^15.9.0",
    "jest": "^29.5.0",
    "ts-jest": "^29.1.1",
    "ts-node": "^10.9.2",
    "typescript": "^5.6.2",
    "typescript-eslint": "^8.6.0"
  },
  "jest": {
    "transform": {
      "^.+\\.(ts|tsx)$": "ts-jest"
    },
    "testEnvironment": "node",
    "testMatch": [
      "**/*.spec.ts"
    ]
  }
}

Relevant log output

PS E:\yunku\Node\deepkit-app> cross-env NODE_ENV=localhost bun --watch run -r tsconfig-paths/register api-server/src/localServer.ts server:start
============================================================
Bun v1.1.27 (267afa29) Windows x64
Windows v.win10_fe
CPU: sse42 avx avx2
Args: "E:\Program Files\nodejs\\node_modules\bun\bin\bun.exe" "--watch" "run" "-r" "tsconfig-paths/register" "api-server/src/localServer.ts" "server:start"
Features: jsc Bun.stdin(2) bunfig dotenv transpiler_cache(43) tsconfig_paths(2) tsconfig(92) virtual_modules(65) 
Builtins: "abort-controller" "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:constants" "node:crypto" "node:dns" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:net" "node:os" "node:path" "node:perf_hooks" "node:process" "node:querystring" "node:stream" "node:string_decoder" "node:timers" "node:tls" "node:tty" "node:url" "node:util" "node:util/types" "node:zlib" "ws" "isomorphic-fetch" "node-fetch" "node:http2" "node:cluster"    
Elapsed: 7768ms | User: 1609ms | Sys: 2078ms
RSS: 0.67GB | Peak: 0.67GB | Commit: 0.82GB | Faults: 168851

panic(main thread): Internal assertion failure
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

To send a redacted crash report to Bun's team,
please file a GitHub issue using the link below:

 https://bun.report/1.1.27/wr1267afa2AqqggwH+yqrG+qvBs8wgHuomrKokkkWwg4yN6k2gVos4oLq7i9Gy6vxRA0eNrzzCtJLcpLzFFILC5OLSrJzM9TSEvMzCktSgUAiSkKPg

--- Bun is auto-restarting due to crash [time: 1726738456047] ---

Stack Trace (bun.report)

Bun v1.1.27 (267afa2) on windows x86_64 [RunCommand]

panic: Internal assertion failure

@hx00678 hx00678 added the crash An issue that could cause a crash label Sep 19, 2024
@github-actions github-actions bot added runtime windows An issue that is known to occur on Windows labels Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash An issue that could cause a crash runtime windows An issue that is known to occur on Windows
Projects
None yet
Development

No branches or pull requests

3 participants
@hx00678 and others