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

Electron.js build phase bun error #18249

Open
HidayetCanOzcan opened this issue Mar 17, 2025 · 2 comments
Open

Electron.js build phase bun error #18249

HidayetCanOzcan opened this issue Mar 17, 2025 · 2 comments
Labels
crash An issue that could cause a crash macOS An issue that occurs on macOS runtime

Comments

@HidayetCanOzcan
Copy link

How can we reproduce the crash?

Create a electron-vite project and try to build

Relevant log output

✓ built in 3.95s
  • electron-builder  version=24.13.3 os=23.6.0
  • loaded configuration  file=/Users/hidayetcanozcan/Desktop/REPOS/pAIr-Desktop/electron-builder.yml
  • writing effective config  file=dist/builder-effective-config.yaml
============================================================
Bun v1.2.2 (c1708ea6) macOS Silicon
macOS v14.7.4
Args: "node" "/Users/hidayetcanozcan/Desktop/REPOS/pAIr-Desktop/node_modules/.bin/electron-builder" "--mac" "--config" "electron-builder.yml"
Features: Bun.stderr(2) Bun.stdout(2) dotenv jsc transpiler_cache(5) tsconfig(13) napi_module_register process_dlopen 
Builtins: "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:constants" "node:crypto" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:net" "node:os" "node:path" "node:perf_hooks" "node:process" "node:stream" "node:string_decoder" "node:tls" "node:tty" "node:url" "node:util" "node:util/types" "node:zlib" "node:worker_threads" 
Elapsed: 2101ms | User: 415ms | Sys: 65ms
RSS: 0.20GB | Peak: 0.20GB | Commit: 1.06GB | Faults: 88

panic(main thread): Segmentation fault at address 0x0
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.2.2/Mn1c1708eagD3v/7//B___m7zujBmn9s2Cujyr7B26rvjB___A2AA

/bin/bash: line 1: 57101 Trace/BPT trap: 5       electron-builder --mac --config electron-builder.yml
error: script "build:mac" exited with code 133

Stack Trace (bun.report)

Bun v1.2.2 (c1708ea) on macos aarch64 [RunAsNodeCommand]

Segmentation fault at address 0x00000000

  • 3 unknown/js code
  • Zig::NapiClass_ConstructorFunction
  • jsc_llint_0_doVMEntry__copyArgsDone_LowLevelInterpreter64_asm_178
  • JSC::Interpreter::executeConstruct
  • napi_new_instance

Features: tsconfig_paths, napi_module_register, process_dlopen, Bun.stderr, Bun.stdout, dotenv, jsc, transpiler_cache, tsconfig, tsconfig

Sentry Issue: BUN-AQF

@HidayetCanOzcan HidayetCanOzcan added the crash An issue that could cause a crash label Mar 17, 2025
@github-actions github-actions bot added macOS An issue that occurs on macOS runtime labels Mar 17, 2025
Copy link
Contributor

@HidayetCanOzcan, the latest version of Bun is v1.2.5, but this crash was reported on Bun v1.2.2.

Are you able to reproduce this crash on the latest version of Bun?

bun upgrade

@HidayetCanOzcan
Copy link
Author

After upgrade;

✓ built in 3.86s • electron-builder version=24.13.3 os=23.6.0 • loaded configuration file=/Users/hidayetcanozcan/Desktop/REPOS/pAIr-Desktop/electron-builder.yml • writing effective config file=dist/builder-effective-config.yaml ⨯ Unrecognized IANA charset name: 'macintosh' failedTask=build stackTrace=UnrecognizedEncodingError: Unrecognized IANA charset name: 'macintosh' at new UnrecognizedEncodingError (/Users/hidayetcanozcan/Desktop/REPOS/pAIr-Desktop/node_modules/iconv-corefoundation/lib/errors.js:37:8) at StringEncoding (native) at /Users/hidayetcanozcan/Desktop/REPOS/pAIr-Desktop/node_modules/dmg-license/lib/Language.js:59:72 at new <anonymous> (/Users/hidayetcanozcan/Desktop/REPOS/pAIr-Desktop/node_modules/dmg-license/lib/Language.js:62:27) at /Users/hidayetcanozcan/Desktop/REPOS/pAIr-Desktop/node_modules/dmg-license/lib/Language.js:53:22 at anonymous (native) at /Users/hidayetcanozcan/Desktop/REPOS/pAIr-Desktop/node_modules/dmg-license/lib/assembleLicenses.js:7:6 at anonymous (native) at /Users/hidayetcanozcan/Desktop/REPOS/pAIr-Desktop/node_modules/dmg-license/lib/index.js:4:6 at anonymous (native) at /Users/hidayetcanozcan/Desktop/REPOS/pAIr-Desktop/node_modules/dmg-builder/src/dmgLicense.ts:7:1 at anonymous (native) at /Users/hidayetcanozcan/Desktop/REPOS/pAIr-Desktop/node_modules/dmg-builder/src/dmg.ts:13:1 at anonymous (native) at /Users/hidayetcanozcan/Desktop/REPOS/pAIr-Desktop/node_modules/dmg-builder/src/dmgUtil.ts:6:1 at anonymous (native) at createTargets (/Users/hidayetcanozcan/Desktop/REPOS/pAIr-Desktop/node_modules/electron-builder/node_modules/app-builder-lib/src/macPackager.ts:86:17) at createTargets (/Users/hidayetcanozcan/Desktop/REPOS/pAIr-Desktop/node_modules/electron-builder/node_modules/app-builder-lib/src/targets/targetFactory.ts:63:11) at /Users/hidayetcanozcan/Desktop/REPOS/pAIr-Desktop/node_modules/electron-builder/node_modules/app-builder-lib/src/packager.ts:443:28 at processTicksAndRejections (native) error: script "build:mac" exited with code 1

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 macOS An issue that occurs on macOS runtime
Projects
None yet
Development

No branches or pull requests

1 participant