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)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2012-10-25

People

(Reporter: jorgev, Assigned: basta)

Details

Attachments

(1 file)

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.
It dies with a memory error. I suppose that's what comes of having an insanely complicated 11K line JS file...
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.
Here's the fix (in two parts), pending review: https://github.com/mattbasta/amo-validator/compare/loadfix
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: