Failed to open DevTools in the browser
- Dominant language
- Dart
- Stars
- 1.7k
- Forks
- 404
- Avg merge
- 6d 17h
- Merged PRs (30d)
- 18
Description
```
main.dart.mjs:999 Uncaught (in promise) LinkError: WebAssembly.instantiate(): Import #770 "skwasm" "paint_setDither": function import requires a callable
at CompiledApp.instantiate (main.dart.mjs:999:38)
at v._loadWasmEntrypoint (flutter_bootstrap.js:1:2886)
```
This was when clicking Open DevTools in the browser from Android Studio. The wasm setting for DevTools was already enabled before trying to open DevTools in the browser. The DevTools URL looked like:
http://127.0.0.1:9102/home?ide=Android-Studio&ideFeature=runConsole&uri=http://127.0.0.1:55705/LjlaMLGWxb4=&wasm=true
Upon refreshing the page, everything loaded fine.
CC @mdebbar
Contributor guide
Research direction
Reproduce opening DevTools in the browser from Android Studio with the wasm setting enabled, using the URL details and startup error in the report. Start by examining the WebAssembly loading path shown in main.dart.mjs and flutter_bootstrap.js; done means DevTools loads successfully on the first attempt without requiring a refresh.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, wasm
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100