Closed wmelton closed 4 months ago
Thanks for reporting this, is it possible to share some reproducable package.json and/or code?
I am running into the same error, but not sure if it has the same cause.
I played around with it a bit and could reproduce it in a small project quite consistently. here is the github repo with the crash in the readme I explain the steps needed to get it to crash
sry for this being a GitHub repo I wasn't able to get bun into Stackblitz...
hope this helps and big thanks for all the work!
@Electroid is there a flag I can pass to get more verbose output in the case of this error?
Package.json:
{
"devDependencies": {
"@antfu/eslint-config": "^2.9.0",
"@nuxt/devtools": "^1.1.3",
"@nuxtjs/fontawesome": "^1.1.2",
"@tailwindcss/forms": "^0.5.7",
"@types/cookie-parser": "^1.4.7",
"@types/cors": "^2.8.17",
"@types/echarts": "^4.9.22",
"@types/express": "^4.17.21",
"@types/google.maps": "^3.55.5",
"@types/lodash.debounce": "^4.0.9",
"@types/quill": "^2.0.14",
"@vue/eslint-config-prettier": "^9.0.0",
"@vue/eslint-config-typescript": "^13.0.0",
"autoprefixer": "^10.4.19",
"bumpp": "^9.4.0",
"conventional-changelog-cli": "^4.1.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-sort-exports": "^0.9.1",
"eslint-plugin-tailwindcss": "^3.15.1",
"eslint-plugin-vue": "^9.23.0",
"nuxt": "^3.11.1",
"postcss": "^8.4.38",
"prettier": "^3.2.5",
"prettier-plugin-organize-imports": "^3.2.4",
"prettier-plugin-tailwindcss": "^0.5.12",
"sass": "^1.72.0",
"tailwindcss": "^3.4.1",
"vue": "^3.4.21",
"vue-router": "^4.3.0"
},
"dependencies": {
"@awesome.me/kit-7469f6a082": "^1.0.10",
"@aws-sdk/client-s3": "^3.540.0",
"@datadog/browser-rum": "^5.12.0",
"@fawmi/vue-google-maps": "^0.9.79",
"@fortawesome/fontawesome-svg-core": "^6.5.1",
"@fortawesome/free-regular-svg-icons": "^6.5.1",
"@fortawesome/free-solid-svg-icons": "^6.5.1",
"@fortawesome/pro-duotone-svg-icons": "^6.5.1",
"@fortawesome/pro-light-svg-icons": "^6.5.1",
"@fortawesome/pro-regular-svg-icons": "^6.5.1",
"@fortawesome/pro-solid-svg-icons": "^6.5.1",
"@fortawesome/pro-thin-svg-icons": "^6.5.1",
"@fortawesome/vue-fontawesome": "^3.0.6",
"@googlemaps/js-api-loader": "^1.16.6",
"@googlemaps/markerclusterer": "^2.5.3",
"@headlessui/vue": "^1.7.19",
"@heroicons/vue": "^2.1.2",
"@pinia-plugin-persistedstate/nuxt": "^1.2.0",
"@pinia/nuxt": "^0.5.1",
"@shopify/shopify-api": "^9.5.1",
"@types/googlemaps": "^3.43.3",
"@vueup/vue-quill": "^1.2.0",
"@vueuse/core": "^10.9.0",
"axios": "^1.6.8",
"body-parser": "^1.20.2",
"broadcast-channel": "^7.0.0",
"bun": "^1.0.35",
"cookie-parser": "^1.4.6",
"cookie-universal-nuxt": "^2.2.2",
"cors": "^2.8.5",
"date-fns": "^3.6.0",
"dd-trace": "^5.8.0",
"echarts": "^5.5.0",
"express": "^4.19.1",
"floating-vue": "^5.2.2",
"libphonenumber-js": "^1.10.58",
"lodash.debounce": "^4.0.8",
"mysql2": "^3.9.2",
"nanoid": "^5.0.6",
"pinia": "^2.1.7",
"pinia-plugin-persistedstate": "^3.2.1",
"vue-datepicker-next": "^1.0.3",
"vue-echarts": "^6.6.9",
"winston": "^3.12.0",
"xlsx": "^0.18.5"
},
}
stack trace with a debug build
ASSERTION FAILED: decontaminate()
/Users/runner/work/WebKit/WebKit/Source/JavaScriptCore/runtime/StructureID.h(131) : Structure *JSC::StructureID::decode() const
1 0x105060780 WTFCrash
2 0x104850df0 WTFCrashWithInfo(int, char const*, char const*, int)
3 0x106044d40 JSC::slowValidateCell(JSC::JSCell*)
4 0x1047a07e8 void JSC::validateCell<JSC::JSCell*>(JSC::JSCell*)
5 0x10486e8fc JSC::WriteBarrierBase<JSC::JSGlobalObject, WTF::RawPtrTraits<JSC::JSGlobalObject>>::get() const
6 0x104781c5c JSC::Structure::globalObject() const
7 0x104a1a708 JSC::JSObject::globalObject() const
8 0x104981e80 Bun::NapiExternal::~NapiExternal()
9 0x104981ee8 Bun::NapiExternal::~NapiExternal()
10 0x104981f10 Bun::NapiExternal::destroy(JSC::JSCell*)
11 0x105bde85c JSC::PreciseAllocation::lastChanceToFinalize()
12 0x105bd34d0 JSC::MarkedSpace::lastChanceToFinalize()
13 0x105b7203c JSC::Heap::lastChanceToFinalize()
14 0x106305834 JSC::VM::~VM()
15 0x1060f17dc WTF::ThreadSafeRefCounted<JSC::VM, (WTF::DestructionThread)0>::deref() const
16 0x104bebd98 WebWorker__dispatchExit
17 0x103e92d28 src.bun.js.web_worker.WebWorker.exitAndDeinit
18 0x10426d90c src.bun.js.web_worker.WebWorker.spin
19 0x1040be114 src.bun.js.javascript.OpaqueWrap__anon_319338__struct_342049.callback
20 0x10494bf1c JSC__VM__holdAPILock
21 0x1021d1eec src.bun.js.bindings.bindings.VM.holdAPILock
22 0x103af4098 src.bun.js.web_worker.WebWorker.start
23 0x103735bf8 src.bun.js.web_worker.WebWorker.startWithErrorHandling
24 0x103212f64 Thread.callFn__anon_202263
25 0x102d2b978 Thread.PosixThreadImpl.spawn__anon_155146.Instance.entryFn
26 0x1935aef94 _pthread_start
27 0x1935a9d34 thread_start
error: script "dev" was terminated by signal SIGSEGV (Address boundary error)
fish: Job 1, 'bun-debug --bun dev' terminated by signal SIGSEGV (Address boundary error)
Ah so it’s Worker termination
What version of Bun is running?
latest
What platform is your computer?
macOS
What steps can reproduce the bug?
Running a nuxt application and I will randomly get this console output:
Is there a better way to debug what's happening?
What is the expected behavior?
Nuxt to not randomly crash
What do you see instead?
No response
Additional information
No response