THIS IS THE OUTCOME OF A SERIES OF TEST..
this is going to be a long post but please bare with me.
i went and changed the size of the spritesheets to 1024x1024, and i still got a crash.
here is the crash log
2011-09-16 09:02:32.034 remake test[21193:307] cocos2d: cocos2d v1.0.0-beta
2011-09-16 09:02:32.040 remake test[21193:307] cocos2d: Using Director Type:CCDirectorDisplayLink
2011-09-16 09:02:32.282 remake test[21193:307] cocos2d: OS version: 4.1 (0x04010000)
2011-09-16 09:02:32.288 remake test[21193:307] cocos2d: GL_VENDOR: Imagination Technologies
2011-09-16 09:02:32.297 remake test[21193:307] cocos2d: GL_RENDERER: PowerVR SGX 535
2011-09-16 09:02:32.303 remake test[21193:307] cocos2d: GL_VERSION: OpenGL ES-CM 1.1 IMGSGX535-48.14.1
2011-09-16 09:02:32.323 remake test[21193:307] cocos2d: GL_MAX_TEXTURE_SIZE: 2048
2011-09-16 09:02:32.332 remake test[21193:307] cocos2d: GL_MAX_MODELVIEW_STACK_DEPTH: 16
2011-09-16 09:02:32.340 remake test[21193:307] cocos2d: GL_MAX_SAMPLES: 4
2011-09-16 09:02:32.345 remake test[21193:307] cocos2d: GL supports PVRTC: YES
2011-09-16 09:02:32.352 remake test[21193:307] cocos2d: GL supports BGRA8888 textures: YES
2011-09-16 09:02:32.357 remake test[21193:307] cocos2d: GL supports NPOT textures: YES
2011-09-16 09:02:32.368 remake test[21193:307] cocos2d: GL supports discard_framebuffer: YES
2011-09-16 09:02:32.376 remake test[21193:307] cocos2d: compiled with NPOT support: NO
2011-09-16 09:02:32.382 remake test[21193:307] cocos2d: compiled with VBO support in TextureAtlas : YES
2011-09-16 09:02:32.386 remake test[21193:307] cocos2d: compiled with Affine Matrix transformation in CCNode : YES
2011-09-16 09:02:32.393 remake test[21193:307] cocos2d: compiled with Profiling Support: NO
2011-09-16 09:02:32.622 remake test[21193:307] cocos2d: surface size: 960x640
2011-09-16 09:02:32.844 remake test[21193:307] cocos2d: Filename(FGround-hd.png) contains -hd suffix. Removing it. See cocos2d issue #1040
2011-09-16 09:02:33.144 remake test[21193:307] cocos2d: CCFileUtils: Warning HD file not found: ninjaFrames1-hd.plist
2011-09-16 09:02:33.163 remake test[21193:307] cocos2d: CCSpriteFrameCache: Trying to use file 'ninjaFrames1.png' as texture
2011-09-16 09:02:33.176 remake test[21193:307] cocos2d: CCFileUtils: Warning HD file not found: ninjaFrames1-hd.png
2011-09-16 09:02:33.790 remake test[21193:307] cocos2d: CCFileUtils: Warning HD file not found: NinjaFrames1-hd.png
2011-09-16 09:02:33.794 remake test[21193:307] cocos2d: CCTexture2D. Can't create Texture. UIImage is nil
2011-09-16 09:02:33.798 remake test[21193:307] cocos2d: Couldn't add image:NinjaFrames1.png in CCTextureCache
2011-09-16 09:02:33.811 remake test[21193:307] cocos2d: CCFileUtils: Warning HD file not found: ninjaFrames2-hd.plist
2011-09-16 09:02:33.829 remake test[21193:307] cocos2d: CCSpriteFrameCache: Trying to use file 'ninjaFrames2.png' as texture
2011-09-16 09:02:33.841 remake test[21193:307] cocos2d: CCFileUtils: Warning HD file not found: ninjaFrames2-hd.png
2011-09-16 09:02:34.427 remake test[21193:307] cocos2d: CCFileUtils: Warning HD file not found: ninjaFrames3-hd.plist
2011-09-16 09:02:34.442 remake test[21193:307] cocos2d: CCSpriteFrameCache: Trying to use file 'ninjaFrames3.png' as texture
2011-09-16 09:02:34.456 remake test[21193:307] cocos2d: CCFileUtils: Warning HD file not found: ninjaFrames3-hd.png
2011-09-16 09:02:35.087 remake test[21193:307] cocos2d: CCFileUtils: Warning HD file not found: ninjaFrames4-hd.plist
2011-09-16 09:02:35.111 remake test[21193:307] cocos2d: CCSpriteFrameCache: Trying to use file 'ninjaFrames4.png' as texture
2011-09-16 09:02:35.121 remake test[21193:307] cocos2d: CCFileUtils: Warning HD file not found: ninjaFrames4-hd.png
2011-09-16 09:02:35.654 remake test[21193:307] cocos2d: CCFileUtils: Warning HD file not found: ninjaFrames5-hd.plist
2011-09-16 09:02:35.667 remake test[21193:307] cocos2d: CCSpriteFrameCache: Trying to use file 'ninjaFrames5.png' as texture
2011-09-16 09:02:35.673 remake test[21193:307] cocos2d: CCFileUtils: Warning HD file not found: ninjaFrames5-hd.png
2011-09-16 09:02:36.196 remake test[21193:307] cocos2d: CCFileUtils: Warning HD file not found: ninjaFrames6-hd.plist
2011-09-16 09:02:36.213 remake test[21193:307] cocos2d: CCSpriteFrameCache: Trying to use file 'ninjaFrames6.png' as texture
2011-09-16 09:02:36.221 remake test[21193:307] cocos2d: CCFileUtils: Warning HD file not found: ninjaFrames6-hd.png
(gdb)
i think i know what is causing the crash,
i have a background layer that uses texture transform to make the background look as if it were scrolling.
i have 3 textures using the texture transform.
i removed two of the textures and i replaced one of the textures with a random SMALLER image, i ran it and it did NOT crash.
the original texture using the texture transform are 512x480, that size applies to all three original textures.
if i remove two and use only one (original texture) using texture transform it crashes,
if i remove the texture Transform but add the textures as a child it does NOT crash.
this is how i apply Texture Transform to my texture
ttexture_ = [CCSprite spriteWithFile:@"FGround-hd.png"];
ttexture_1 = [[CCTransformTexture alloc] initWithSprite:ttexture_];
ttexture_.anchorPoint =ccp(0,0);
ttexture_1.position = ccp( 0,0);
ttexture_1.textureTransform->position =ccp(1.0f,0);
[self addChild: ttexture_1 ];
CCFiniteTimeAction *action_1 = [CCRepeat actionWithAction:[CCTextureMoveBy actionWithDuration:2.0f position:ccp(1,0)] times:1];
CCAction *action_2 = [CCTextureMoveTo actionWithDuration:0.f position:CGPointZero];
CCAction* action = [CCRepeatForever actionWithAction:[CCSequence actions:action_1,action_2,nil]];
action.tag = kTextureAction;
[ttexture_1 runAction:action];
now this is what has my mind boggling,
if i leave the texture's using texture transform alone and instead remove the Batchnode with my characters animation sprites, i get NO crash. But i also get no animations.
if i replace the batchnode to one using only 5 frames it still crashes..
what I'm guessing is that the device's ram is being overloaded and causing the crash.
So to make it short, using Texture Transform and using my batchnode at the same time causes a crash,
If i am correct how would i get my game to work with a scrolling background,Character,Enemy Characters, power Up, etc. all on the screen at once?
i know it is possible as i have seen it in other games?