question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Svelte Extension crashing on startup of VSCode (insiders / macOS 11.2 / M1)

See original GitHub issue

Describe the bug Upon starting vscode the error 'The svelte server crashed 5 times in the last 3 minutes…" Stack trace at bottom.

To Reproduce Steps to reproduce the behavior:

Unknown I only have one system to try it on, but version numbers: Svelte for VS Code 104.2.1 Visual Studio Code - Insiders: Version: 1.53.0-insider

Expected behavior Extension to start without erroring

Screenshots If applicable, add screenshots to help explain your problem.

System (please complete the following information):

  • OS: MacOS 11.2
  • IDE: Visual Studio Code - Insiders: Version: 1.53.0-insider
  • Plugin/Package: Svelte for VS Code 104.2.1

Additional context Add any other context about the problem here.


Initialize language server at  file:///Users/neiled/dev/sapper-1
Trying to load config for /Users/neiled/dev/sapper-1/src/components/Nav.svelte
No svelte.config.js found. Using https://github.com/sveltejs/svelte-preprocess as fallback
Using svelte-preprocess v4.6.3 from /Users/neiled/dev/sapper-1/node_modules/svelte-preprocess
Initialize new ts service at  /Users/neiled/dev/sapper-1/tsconfig.json
SnapshotManager File Statistics:
Project files: 9
Svelte files: 0
From node_modules: 2
Total: 9


#
# Fatal error in , line 0
# ignored
#
#
#
#FailureMessage Object: 0x16d481b38
 1: 0x1052dc8f8 node::MultiIsolatePlatform::CancelPendingDelayedTasks(v8::Isolate*) [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 2: 0x10765a174 v8::internal::compiler::ZoneStats::GetCurrentAllocatedBytes() const [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 3: 0x1062810fc v8::internal::wasm::NativeModule::NativeModule(v8::internal::wasm::WasmEngine*, v8::internal::wasm::WasmFeatures const&, v8::internal::VirtualMemory, std::__1::shared_ptr<v8::internal::wasm::WasmModule const>, std::__1::shared_ptr<v8::internal::Counters>, std::__1::shared_ptr<v8::internal::wasm::NativeModule>*) [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 4: 0x103744368 v8::internal::wasm::NativeModule::AddCodeSpace(v8::base::AddressRegion, v8::internal::wasm::WasmCodeAllocator::OptionalLock const&) [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 5: 0x1062823f0 v8::internal::wasm::NativeModule::FreeCode(v8::internal::Vector<v8::internal::wasm::WasmCode* const>) [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 6: 0x10628fc0c v8::internal::wasm::WasmEngine::FreeDeadCodeLocked(std::__1::unordered_map<v8::internal::wasm::NativeModule*, std::__1::vector<v8::internal::wasm::WasmCode*, std::__1::allocator<v8::internal::wasm::WasmCode*> >, std::__1::hash<v8::internal::wasm::NativeModule*>, std::__1::equal_to<v8::internal::wasm::NativeModule*>, std::__1::allocator<std::__1::pair<v8::internal::wasm::NativeModule* const, std::__1::vector<v8::internal::wasm::WasmCode*, std::__1::allocator<v8::internal::wasm::WasmCode*> > > > > const&) [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 7: 0x10628e524 v8::internal::wasm::WasmEngine::PotentiallyFinishCurrentGC() [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 8: 0x10628f38c v8::internal::wasm::WasmEngine::ReportLiveCodeForGC(v8::internal::Isolate*, v8::internal::Vector<v8::internal::wasm::WasmCode*>) [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 9: 0x10628f458 v8::internal::wasm::WasmEngine::ReportLiveCodeFromStackForGC(v8::internal::Isolate*) [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
10: 0x1052db3ac node::Buffer::New(v8::Isolate*, char*, unsigned long, void (*)(char*, void*), void*) [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
11: 0x1052da340 node::Buffer::New(v8::Isolate*, char*, unsigned long, void (*)(char*, void*), void*) [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
12: 0x102b6a32c uv_async_send [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
13: 0x102b7a6c8 uv_free_interface_addresses [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
14: 0x102b6a768 uv_run [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
15: 0x102cedea0 ElectronInitializeICUandStartNode [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
16: 0x102b7ad4c ElectronInitializeICUandStartNode [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
17: 0x1029769f8  [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Renderer).app/Contents/MacOS/Code - Insiders Helper (Renderer)]
18: 0x197c09f34 start [/usr/lib/system/libdyld.dylib]
[Error - 8:11:17 PM] Connection to server got closed. Server will not be restarted.
[Error - 8:11:17 PM] Request textDocument/semanticTokens/range failed.
Error: Connection got disposed.
	at Object.dispose (/Users/neiled/.vscode-insiders/extensions/svelte.svelte-vscode-104.2.1/node_modules/vscode-jsonrpc/lib/common/connection.js:1044:27)
	at Object.dispose (/Users/neiled/.vscode-insiders/extensions/svelte.svelte-vscode-104.2.1/node_modules/vscode-languageclient/lib/common/client.js:73:35)
	at LanguageClient.handleConnectionClosed (/Users/neiled/.vscode-insiders/extensions/svelte.svelte-vscode-104.2.1/node_modules/vscode-languageclient/lib/common/client.js:2424:42)
	at LanguageClient.handleConnectionClosed (/Users/neiled/.vscode-insiders/extensions/svelte.svelte-vscode-104.2.1/node_modules/vscode-languageclient/lib/node/main.js:155:15)
	at closeHandler (/Users/neiled/.vscode-insiders/extensions/svelte.svelte-vscode-104.2.1/node_modules/vscode-languageclient/lib/common/client.js:2411:18)
	at CallbackList.invoke (/Users/neiled/.vscode-insiders/extensions/svelte.svelte-vscode-104.2.1/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
	at Emitter.fire (/Users/neiled/.vscode-insiders/extensions/svelte.svelte-vscode-104.2.1/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
	at closeHandler (/Users/neiled/.vscode-insiders/extensions/svelte.svelte-vscode-104.2.1/node_modules/vscode-jsonrpc/lib/common/connection.js:256:26)
	at CallbackList.invoke (/Users/neiled/.vscode-insiders/extensions/svelte.svelte-vscode-104.2.1/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
	at Emitter.fire (/Users/neiled/.vscode-insiders/extensions/svelte.svelte-vscode-104.2.1/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
	at IPCMessageReader.fireClose (/Users/neiled/.vscode-insiders/extensions/svelte.svelte-vscode-104.2.1/node_modules/vscode-jsonrpc/lib/common/messageReader.js:40:27)
	at ChildProcess.<anonymous> (/Users/neiled/.vscode-insiders/extensions/svelte.svelte-vscode-104.2.1/node_modules/vscode-jsonrpc/lib/node/main.js:33:45)
	at ChildProcess.emit (events.js:327:22)
	at maybeClose (internal/child_process.js:1021:16)
	at Socket.<anonymous> (internal/child_process.js:443:11)
	at Socket.emit (events.js:315:20)
	at Pipe.<anonymous> (net.js:674:12

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
jasonlyu123commented, Feb 2, 2021

Can you try setting the svelte.language-server.runtime? This would use your own version of node instead of the bundled version of vscode. If that doesn’t work maybe you can try to install the latest version of the node. I suspect it’s sourcemap or some other native library not compatible with the combination of node and macOS.

1reaction
callahadcommented, Feb 4, 2021

Wading through the issues above: This seems to be an upstream bug with V8 on ARM under macOS.

Rosetta2 is a viable workaround, either by running an Intel build of VSCode and using its built-in runtime, or using an ARM version of VSCode and pointing svelte.language-server.runtime at an Intel version of the Node executable.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rebuild Podcast Republic
ウェブ開発、プログラミング、モバイル、ガジェットなどにフォーカスしたテクノロジー系ポッドキャストです。 #rebuildfm. Episode, Date. 349: Craig Is Here (hak).
Read more >
vs code prettier shortcut Code Example - Code Grepper
Shift+Option+F / Shift+Alt+F.
Read more >
Security Bulletin 14 Apr 2021
CVE Number Base Score Reference CVE‑2021‑1451 9.8 https://nvd.nist.gov/vuln/detail/CVE‑2021‑1451 CVE‑2018‑17916 9.8 https://nvd.nist.gov/vuln/detail/CVE‑2018‑17916 CVE‑2021‑21413 9.6 https://nvd.nist.gov/vuln/detail/CVE‑2021‑21413
Read more >
More Than Just Code podcast - iOS and Swift development ...
M1 -Based Macs Have New Startup Modes. Mark gives us his M1Mini first impressions. Apple increases the DTK credit. MagSafe for iPhone is...
Read more >
More Than Just Code podcast - iOS and ... - TopPodcast.com
MTJC podcast is a show about mobile development. Each week Jaime Lopez, Mark Rubin (sometimes Greg Heo and Tammy Coron) and myself, Tim...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found