black screen on device

Hi, I saw some messages about black screen but I didn’t found a correct solution for the problem with the blackscreen after starting the app.  The app runs in simulator perfect and on the device I see the app is starting with the splash screen, I’m hearing the sound and I see in the console my debug text of touch event e.g but I only have a black screen. 

I test it on iphone 4s and on ipad2 but on both devices I have the same problem. both devices have ios7.1 installed. 

when I start the app in simulator, I see this message but the rest works perfect. I don’t found the reason for this message:

WARNING: graphics.newOutline( coarsenessInTexels, imageSheet, frameIndex ) given an invalid frameIndex (0). Defaulting to 1.

I build the app with the last publish build and also with the build v2014.2263 and it’s not my first app but it’s the first time I have use graphics 2.0!

build.setting:

settings = {

    

    orientation = {

        default = “landscapeRight”,

        supported = { “landscapeRight”, “landscapeRight”,}

    },

    

    iphone = {

        plist = {

            UIStatusBarHidden = true,

            UIPrerenderedIcon = true, – set to false for “shine” overlay

            --UIApplicationExitsOnSuspend = true, – uncomment to quit app on suspend

        }

    },

}

config.lua:

application = {

    content = {

        width = 480,

        height = 640, 

        scale = “letterBox”,

        fps = 30,

    },  

}

in the console I see the messages from the app and some other text about the app:

Apr 16 21:07:21  backboardd[29] <Error>: HID: The ‘Passive’ connection ‘LoopMan’ access to protected services is denied.

Apr 16 21:07:21  LoopMan[279] <Warning>: Platform: iPad / iPad2,1 / 7.1 / PowerVR SGX 543 / OpenGL ES 2.0 IMGSGX543-97.7

Apr 16 21:07:22  LoopMan[279] <Warning>: RunningMan hier bin ich…

Apr 16 21:07:27  LoopMan[279] <Warning>: SaltoMen: collision began with Hammer

Apr 16 21:07:27  LoopMan[279] <Warning>: SaltoMen: collision began with Coin

Apr 16 21:07:27  LoopMan[279] <Warning>: 5 Punkte Plus

Apr 16 21:07:33  LoopMan[279] <Warning>: RunningMan hier bin ich…

Apr 16 21:07:35  LoopMan[279] <Warning>: RunningMen: collision began with Hammer

I’m happy for any idea to solve this problem, thanks a lot

Michael

insert: 17-4-2014

I saw, that the graphics load as black boxes, see my answers and a short demo project below…

Please post the app code.

http://docs.coronalabs.com/guide/graphics/migration_g20.html

Error can be runtime, bad filename (is case sensitive) oraz images are off screen

OK I have done some tests and now I’m confused.

I have have attache a zip with a small sample file, on the simulator it looks ok (see picture simulator.png)

when I create the app and move it to the ipad it shows again black boxes instead of the graphics.

so I hope someone can explain where the error is.

Thanks a lot

Michael

Hi Renato, sample with the problem is posted, see below…

The problem is the line:

display.setDefault( "textureWrapX", "repeat" );

If you remove them, the problem disappears. But it also makes your flow not to work, but I am pretty sure that the way that you are creating the flow is not the correct one.

Look at the corona samples or at the forum on how to do it (I never did it, so I cannot help you with that).

Hi Renato

thanks a lot, you get 100 point. the problem was coming from this line. in the documentation I found the necessary input abut the graphics files, so after modify my pictures everything looks fine.

Thank your

Important

For texture wrapping, “clampToEdge” is the only valid mode for non-power-of-two textures. To use “repeat” or “mirroredRepeat”, make sure the dimensions of your textures are power of two, for example 16, 32, 64, 128, 256, etc.

Please post the app code.

http://docs.coronalabs.com/guide/graphics/migration_g20.html

Error can be runtime, bad filename (is case sensitive) oraz images are off screen

OK I have done some tests and now I’m confused.

I have have attache a zip with a small sample file, on the simulator it looks ok (see picture simulator.png)

when I create the app and move it to the ipad it shows again black boxes instead of the graphics.

so I hope someone can explain where the error is.

Thanks a lot

Michael

Hi Renato, sample with the problem is posted, see below…

The problem is the line:

display.setDefault( "textureWrapX", "repeat" );

If you remove them, the problem disappears. But it also makes your flow not to work, but I am pretty sure that the way that you are creating the flow is not the correct one.

Look at the corona samples or at the forum on how to do it (I never did it, so I cannot help you with that).

Hi Renato

thanks a lot, you get 100 point. the problem was coming from this line. in the documentation I found the necessary input abut the graphics files, so after modify my pictures everything looks fine.

Thank your

Important

For texture wrapping, “clampToEdge” is the only valid mode for non-power-of-two textures. To use “repeat” or “mirroredRepeat”, make sure the dimensions of your textures are power of two, for example 16, 32, 64, 128, 256, etc.