strange output in Corona Terminal

This is thrown...

1
2
3
4
5
Jan 21 16:30:22 Erics-Mac-mini.local Corona Simulator[1711] <Error>: CGImageCreate: invalid image size: 0 x 0.
Jan 21 16:30:22 Erics-Mac-mini.local Corona Simulator[1711] <Error>: CGContextDrawImage: invalid context 0x0
Jan 21 16:30:22 Erics-Mac-mini.local Corona Simulator[1711] <Error>: CGBitmapContextCreateImage: invalid context 0x0
ImageIO: <ERROR>  CGImageDestinationAddImage image parameter is nil
ImageIO: <ERROR>  CGImageDestinationFinalize image destination does not have enough images

This is the first time I've ever seen the error. Can you narrow the error producing conditions? What build is this? Have you tried other builds?

Are you using storyboard?

I had a similar problem because I was not on Lion yet. I am on 10.6.8. Possibly try this - start the debugger and see if you get these error message prior to anything else.

robmiracle, I am using Storyboard. I have had a REALLY hard time figuring out how to clear out spriteLoq files and layouts after inserting them into the Corona supported storyboard.

The only solution I have been able to come up with to get rid of graphics/reload graphics is the nuclear one. Leaving the scene and then destroying it up entering a new one and then trying to return to the scene fresh.

I don't know squat about spriteloq, but in storyboard, you have to insert a minimum of one display object into the display group called "group" during the create event or you get that error.

you know what, you are right. I don't stick any display objects in there I don't think. I think I just stick groups of display objects and that is what was causing it to crash. I stick that background.jpg in there like you advise and it works.

Strange.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
function scene:createScene( event )
        local group = self.view
        
        --      CREATE display objects and add them to 'group' here.
        --      Example use-case: Restore 'group' from previously saved state.
 
        local background = display.newImageRect( "background.jpg", display.contentWidth, display.contentHeight )
        group:insert( background )  --<--- this makes storyboard functions work like purge and destr
 
 
        -- the ones below do not.
 
        local sf = require('loq_sprite').newFactory( 'sheet_items', currentMap.levelSheet, 'sheet_npc')
        group.gfx = require('layout_game').createLayout(sf)
 
        local ui_sf = require('loq_sprite').newFactory( 'sheet_gameUI', 'sheet_fps' )
        group.ui = require('layout_ui_disect').createLayout(ui_sf)
        
        group:insert(group.gfx.groups.TheGame)
        group:insert(group.ui.groups.TheUI)
 
        -----------------------------------------------------------------------------
end
views:2062 update:2012/2/10 9:26:24
corona forums © 2003-2011