Skip to content

Command Line Tool crashes in  #9

@psineur

Description

@psineur

Original message by Davewise from cocos2d-iphone.org forum:

I think something is going on with the latest version of tileCutter and png files. I grabbed the latest cocos2d-iphone-extensions 0.2 and opened up the cocos2d-extensions-ios.xcodeproj. I looked in the CCBigImageTest folder and noticed that the png files pointed to in the xcodeproj are replaced with jpg files. So I saved them as png files and changed prepareTiles.sh so that it would point to the png files. tileCutter will crash if you do this. Note that it didn't crash in the past when I tried this. You can try this yourself to see the results. Here is the output from my terminal:

./prepareTiles.sh
Preparing SD TilestileCutter(12199,0x100681000) malloc: *** error for object 0x102106be8: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
./prepareTiles.sh: line 33: 12199 Abort trap: 6 ./tileCutter --rigidTilesSize --tileWidth 256 --tileHeight 256 --inputFile bigImage.png --outputFile tiles/bigImage
Preparing HD Tiles
tileCutter(12202,0x100681000) malloc: *** error for object 0x101012208: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
./prepareTiles.sh: line 37: 12202 Abort trap: 6 ./tileCutter --rigidTilesSize --tileWidth 512 --tileHeight 512 --inputFile bigImage-hd.png --outputFile tiles/bigImage --outputSuffix -hd
rm: tiles/bigImage-hd.plist: No such file or directory
Converting Tiles to pvr.ccz
Writing sprite sheet to bigImage_0_0.pvr.ccz
Writing data for cocos2d to out.plist
Resulting sprite sheet is 260x260.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions