IE: CoreControls: Uint8Array: "Typed array constructor argument is invalid"

607 views
Skip to first unread message

Chris Hine

unread,
Feb 5, 2015, 3:23:13 PM2/5/15
to pdfnet-w...@googlegroups.com
Hi Again,

I'm seeing an error originating from withing CoreControls.js when attempting to load a .xod (from Azure blob storage and using xhook to supply access params.) Specifically on the (minified) line 355: var e=new a.Uint8Array(k) where k is "P". This prevents the document from loading.

I note that "foo = new Uint8Array("P")" does produce the error in the IE console but not in Chrome. Strange part is that the .xod loads successfully in Firefox and Chrome yet "foo = new Uint8Array("P")" does yield the error in the FF console whereas is does not in Chrome.

In case it's useful, despite the minification, here's the call stack:

a.ro [Line: 355, Col: 75], CoreControls.js
da.onreadystatechange [Line: 363, Col: 444], CoreControls.js
emitter[FIRE] [Line: 150, Col: 7], eval code (172)
emitReadyState [Line: 341, Col: 7], eval code (172)
process [Line: 367, Col: 9], eval code (172)
setReadyState [Line: 379, Col: 5], eval code (172)
done [Line: 480, Col: 11], eval code (172)
Anonymous function [Line: 680, Col: 7], eval code (172)
emitter[FIRE] [Line: 155, Col: 7], eval code (172)
Anonymous function [Line: 869, Col: 5], eval code (172)
emit [Line: 1, Col: 1], xdomain.js
sock.emit [Line: 1, Col: 1], xdomain.js
xhr.onreadystatechange [Line: 1, Col: 1], xdomain.js
emitter[FIRE] [Line: 1, Col: 1], xdomain.js
emitReadyState [Line: 1, Col: 1], xdomain.js
process [Line: 1, Col: 1], xdomain.js
setReadyState [Line: 1, Col: 1], xdomain.js
xhr.onreadystatechange [Line: 1, Col: 1], xdomain.js
send [Line: 1, Col: 1], xdomain.js
process [Line: 1, Col: 1], xdomain.js
facade.send [Line: 1, Col: 1], xdomain.js
Anonymous function [Line: 1, Col: 1], xdomain.js
fire [Line: 1, Col: 1], xdomain.js
emitter[FIRE] [Line: 1, Col: 1], xdomain.js
Anonymous function [Line: 1, Col: 1], xdomain.js
emit [Line: 899, Col: 5], eval code (172)
Anonymous function [Line: 912, Col: 7], eval code (172)
fire [Line: 169, Col: 9], eval code (172)
emitter[FIRE] [Line: 155, Col: 7], eval code (172)
Anonymous function [Line: 869, Col: 5], eval code (172)
Anonymous function [Line: 1, Col: 1], xdomain.js
createSocket [Line: 1, Col: 1], xdomain.js
Anonymous function [Line: 1, Col: 1], xdomain.js
Anonymous function [Line: 918, Col: 7], eval code (172)
Anonymous function [Line: 927, Col: 9], eval code (172)
Anonymous function [Line: 927, Col: 9], eval code (172)
createSocket [Line: 931, Col: 3], eval code (172)
connect [Line: 938, Col: 3], eval code (172)
Anonymous function [Line: 678, Col: 5], eval code (172)
process [Line: 497, Col: 9], eval code (172)
done [Line: 483, Col: 9], eval code (172)
process [Line: 495, Col: 9], eval code (172)
facade.send [Line: 502, Col: 5], eval code (172)
b.prototype.start [Line: 364, Col: 23], CoreControls.js
h.prototype.gl [Line: 366, Col: 190], CoreControls.js
zh [Line: 386, Col: 192], CoreControls.js
emitReadyState [Line: 343, Col: 9], eval code (172)
process [Line: 367, Col: 9], eval code (172)
setReadyState [Line: 379, Col: 5], eval code (172)
xhr.onreadystatechange [Line: 395, Col: 5], eval code (172)

Thanks,
Chris

Matt Parizeau

unread,
Feb 6, 2015, 1:04:40 PM2/6/15
to pdfnet-w...@googlegroups.com
Hi Chris,

If you load the same XOD file from a local server (not using xdomain.js) are you able to load it?

Matt Parizeau
Software Developer
PDFTron Systems Inc.

Chris Hine

unread,
Feb 9, 2015, 3:24:34 PM2/9/15
to pdfnet-w...@googlegroups.com
Hi Matt,

Yes, I can load the same XOD from a local server (both with and without xdomian being specified to the webviewer) using IE. IE 11.0.9600.17498, in case it's relevant.

Thanks,
Chris

Chris Hine

unread,
Feb 25, 2015, 2:47:37 PM2/25/15
to pdfnet-w...@googlegroups.com
Anybody home?

Chris

Matt Parizeau

unread,
Feb 25, 2015, 7:13:01 PM2/25/15
to pdfnet-w...@googlegroups.com
Hi Chris,

I just got back from vacation and it looks like this one slipped through the cracks while I was away. Sorry about that!

So it seems like this only occurs in IE and when the document is on Azure blob storage?

Is it possible that you could supply a publicly accessible link for me to try out a test page to be able to debug the issue more easily? If you don't want to post it here you can email it to mpar...@pdftron.com.

Matt Parizeau
Software Developer
PDFTron Systems Inc.
Reply all
Reply to author
Forward
0 new messages