Closed Bug 1375164 Opened 7 years ago Closed 7 years ago

[wasm] Debugger fails on large wasm binary files

Categories

(DevTools :: Debugger, defect)

53 Branch
defect
Not set
normal

Tracking

(firefox56 fixed)

RESOLVED FIXED
Firefox 56
Tracking Status
firefox56 --- fixed

People

(Reporter: yury, Assigned: yury)

References

Details

Attachments

(1 file)

After bug 1364535, (old) debugger cannot display large wasm sources. Source text panel displays "Loading..." and the following error can be found in the console:

"onPacket threw an exception: Error: Server did not specify an actor, dropping packet: {"error":"unknownError","message":"error occurred while processing 'slice: RangeError: too many arguments provided for a function call\nStack: onSlice@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/actors/object.js:2186:21\nonPacket@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/server/main.js:1799:15\nreceiveMessage@resource://gre/modules/commonjs/toolkit/loader.js -> resource://devtools/shared/transport/transport.js:761:7\nLine: 2186, column: 21"}
The slice call of the ArrayBufferActor always was returning entire buffer (for our purpose). There is a code to protect String.fromCharCodea.apply from providing insane amount of arguments, see https://dxr.mozilla.org/mozilla-central/source/devtools/server/actors/object.js#2186. However it was not used since we forgot to pass the start and count arguments to the slice method.
Comment on attachment 8880061 [details]
Bug 1375164 - Add arguments to the ArrayBufferClient.slice method.

https://reviewboard.mozilla.org/r/151396/#review156864
Attachment #8880061 - Flags: review?(jlaster) → review+
Pushed by ydelendik@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bb709c071712
Add arguments to the ArrayBufferClient.slice method. r=jlast
https://hg.mozilla.org/mozilla-central/rev/bb709c071712
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 56
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: