Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Exception when webm image has wrong extension. #160

Open
acpmasquerade opened this issue Jul 25, 2016 · 0 comments
Open

Uncaught Exception when webm image has wrong extension. #160

acpmasquerade opened this issue Jul 25, 2016 · 0 comments

Comments

@acpmasquerade
Copy link

acpmasquerade commented Jul 25, 2016

Lately, I encountered a particular situation where moxie/src/javascript/runtime/html5/image/ImageInfo.js:45 throws a ImageError.WRONG_FORMAT exception which isn't caught by the caller.

Call stack.
(anonymous function) (moxie.js?v=2.1.9:8525)
(anonymous function) (moxie.js?v=2.1.9:8526)
Env.HTML5Image.Basic.extend.getInfo (moxie.js?v=2.1.9:8831)
EventTarget.Runtime._shim.exec (moxie.js?v=2.1.9:2244)
EventTarget.Runtime.Basic.extend.shimExec (moxie.js?v=2.1.9:2414)
EventTarget.Runtime.Basic.extend.exec (moxie.js?v=2.1.9:2432)
Basic.extend.exec (moxie.js?v=2.1.9:2872)
_updateInfo (moxie.js?v=2.1.9:6032)
(anonymous function) (moxie.js?v=2.1.9:6025)
(anonymous function) (moxie.js?v=2.1.9:2017)
callNext (moxie.js?v=2.1.9:242)
inSeries (moxie.js?v=2.1.9:248)
Basic.EventTarget.Basic.extend.dispatchEvent (moxie.js?v=2.1.9:2022)
Basic.EventTarget.Basic.extend.trigger (moxie.js?v=2.1.9:2067)
Env.HTML5Image._img.onload (moxie.js?v=2.1.9:8991)

I even tried adding some try..catch expressions. However, it rather seems to be an asynchronous call.

    this.bind('Load Resize', function() {
        _updateInfo.call(this);
    }, 999);

Solution as per the recommended conventions on moxie is requested.

I would suggest the exception to be propagated so that if used by plUploader, it could be handled by the Uploader.Error handler.

new plupload.Uploader({
        init : {
            Error: function(){
                ... 

To Reproduce:
Specify resize option to the plUploader config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant