Closed Bug 1114881 Opened 11 years ago Closed 10 years ago

Can't load Candy Crush Soda game because Shumway does not support LZMA SWF compression

Categories

(Firefox Graveyard :: Shumway, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: cpeterson, Unassigned)

References

()

Details

https://apps.facebook.com/candycrushsoda/?type=partner&st1=kinghubs&st2=candycrush&st3=topbanner JavaScript error: resource://shumway/shumway.player.js, line 132: Error: Unsupported compression format: LZMA JavaScript error: resource://shumway/shumway.player.js, line 132: Error: assertion failed JavaScript error: resource://shumway/shumway.player.js, line 132: Error: assertion failed JavaScript error: resource://shumway/shumway.player.js, line 132: Error: assertion failed JavaScript error: resource://shumway/shumway.player.js, line 25319: TypeError: this._file is null
Right, LZMA support is going to be a requirement soon-ish. Alon, does your lzma.js support streaming decoding? As in, we pass in an incomplete chunk of the file, the decoder parses until data is exhausted, stores state and resumes as soon as new data becomes available? If so, I think it'd be our best bet.
Flags: needinfo?(azakai)
OS: Mac OS X → All
Hardware: x86 → All
I'm afraid you probably don't want lzma.js because it's a port of lzip, which is GPL licensed. But also, it is a commandline tool, so I'm not sure it supports streaming, although the headers do have some methods to process chunks (not sure if that's what you need or not). I ported lzip because it's the smallest standalone LZMA implementation I could find. But performance turned out to be not very good, due to heavy use of 64-bit ints. Not sure if other implementations have the same issue or not. Better options might include http://nmrugg.github.io/LZMA-JS/ https://code.google.com/p/js-lzma/
Flags: needinfo?(azakai)
Blocks: shumway-m4
Depends on: 1063376
The game still doesn't work, but this particular issue is fixed.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.