Closed
Bug 803217
Opened 13 years ago
Closed 13 years ago
Simple SDK add-on failing validation with a server error
Categories
(addons.mozilla.org Graveyard :: Add-on Validation, defect)
addons.mozilla.org Graveyard
Add-on Validation
Tracking
(Not tracked)
RESOLVED
FIXED
2012-10-25
People
(Reporter: jorgev, Assigned: basta)
Details
Attachments
(1 file)
334.85 KB,
application/x-xpinstall
|
Details |
The attached add-on is a fairly small SDK add-on and it doesn't have anything suspicious upon a shallow inspection.
However, when I upload it for validation, it takes a long time to validate, and it finally returns this error:
Your add-on failed validation with 1 error.
Unexpected server error while validating.
Comment 1•13 years ago
|
||
It dies with a memory error. I suppose that's what comes of having an insanely complicated 11K line JS file...
Assignee | ||
Comment 2•13 years ago
|
||
Yeah, I just figured out what's causing this.
The SHA1 math can't be done statically without type data, so it just ends up doing string concats, which end up looking like:
[object Object][object Object][object Object][object Object][object Object][object Object][object Object][object Object][object Object][object Object][object Object][object Object][object Object][object Object][object Object][object Object][object Object][object Object][object Object][object Object][object Object][object Object][object Object][object Object][object Object][object Object][object Object][object Object][object Object][object Object][object Object][object Object][object Object][object Object][object Object][object Object][object Object][object Object][object Object][object Object]
...snip about 1.2GB of terminal output...
[object Object][object Object][object Object][object Object][object Object][object Object]
I'm working on a fix now that does better exclusion of dirty objects from binary operations and augmented assignments.
Assignee | ||
Comment 3•13 years ago
|
||
Here's the fix (in two parts), pending review:
https://github.com/mattbasta/amo-validator/compare/loadfix
Assignee | ||
Comment 4•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•