Open LearnCocos2D opened 9 years ago
Note: This might be one of those rare situations where a certain combination of images triggers a publish crash that might also occur to some other users seemingly at random. So it's probably worth looking into even if it's just this project / this art pack.
This project here has a simple sprite sheet. It uses the Flappy Fly art pack so perhaps this can also be reproduced in an empty project containing this artwork in a sprite sheet folder
If you check the sprite sheet's "trim sprites" checkbox, the next publish crashes.
SB: develop from today. About box revision reads: 84e91bd92f
call stack:
It crashes on this line:
Looks like the resulting index 614,400 is out of bounds. According to w & h params (1280x1920) and considering UInt32 (4 bytes) the buffer must have 614,400 entries.
Full code for context, with x=320, y=1919, pixelsPerRow=320 at the time of crash: