qiqian / webp

Automatically exported from code.google.com/p/webp
0 stars 0 forks source link

Crash in Decoding Webp when using threads #213

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Using dwebp crashes app on ios not 100% .

What is the expected output? What do you see instead?
It shouldn't crash. use_threads is set to true while decoding the webp on a 
seperate thread

What version of the product are you using? On what operating system?
iOS 7 devices

Please provide any additional information below.

Below is the stack trace
VP8LoadNewBytes + 124
1   
 VP8BitUpdate + 25
2   
 VP8GetBit + 41
3   
 GetCoeffs + 81
4   
 ParseResiduals + 851
5   
 VP8DecodeMB + 229

Original issue reported on code.google.com by dhaval99...@gmail.com on 25 Jun 2014 at 3:10

GoogleCodeExporter commented 8 years ago
Try setting use_threads = 0 to see if the problem persists. It'd be good to 
narrow our focus to internal vs. external thread issues.

Original comment by jz...@google.com on 26 Jun 2014 at 3:13

GoogleCodeExporter commented 8 years ago
Is the source being used the latest from git, e.g., v0.4.0-309-gdb8b8b5 or the 
v0.4.0 release from code.google.com/p/webp?

Original comment by jz...@google.com on 26 Jun 2014 at 3:14

GoogleCodeExporter commented 8 years ago
Hi, 
So we figured out the problem it was on our end as the data length passed to 
the Webpdecode was wrong and it was causing crash for some sizes because of 
alignment. We are using 0.4.0 rc as framework on iOS. Thanks for the response 
and helping out

Original comment by dhaval99...@gmail.com on 27 Jun 2014 at 10:35

GoogleCodeExporter commented 8 years ago
thanks for letting us know.

Original comment by pascal.m...@gmail.com on 28 Jun 2014 at 6:49