Short black screen after Default.png

Hey, Renato, thank you for reminding us about using “Hello World” to reproduce this issue.  

And Ingemar, thank you for testing this so thoroughly.  That’s super helpful.

With mine, the black screen show up not as a flash abut a solid black long enough to make me wonder – and I’ve seen this on all of my iDevices, including iPad 3rd gen and iPod Touch 5th gen.  I haven’t looked into this with Android devices.

It sounds like if the code is simple enough, it may not manifest itself on faster devices – but I’d say any real app with anything substantial to handle would show it, which means all apps that are intended to be generally released from any app stores would likely to manifest this issue.

Naomi

I’m seeing this on several Android devices as well. Has anyone filed a bug report on this yet?

I just submitted a bug report with the HelloWorld – perhaps not the very best test sample project, but I figure it’s better than not submitting it at all.  I also included a link to this thread along with the copy of Ingemar’s test result posted above.

It’s Case 30332.

Naomi

After an exchange with Brent, I may have a clue as to why I didn’t see the problem but Hello World does.  I didn’t load an image.  I just created a rectangle, which is very fast.  Loading an image takes time, in particular on Android (for the first run) where we have to unpack all of the resources from the .apk file so that they can be accessed. 

I’m going to try and verify this.

Rob

@Naomi, I modified the Hello World sample and added a white Default.png image (adding “Default” text). I tried this on a number of iOS devices running iOS 5, 6 and 7 and I don’t see the black screen issue after the Default screen loads. I ran this using build 2172. I saw your bug case and you didn’t provide a sample project but I don’t think my test is any different then yours. I did add the code to suppress the status bar and make the background white.

@Tom and @Rob, thank you for looking into this.  I did not test HelloWorld app myself, but based on what the others on this thread noted, I went ahead and submitted the bug with the HelloWorld sample code.

Now, I went ahead and created two versions of super duper simple app – v1 with storyboard and widget-v1 to be built with daily build 1257 and v2 with composer and widget (latest version) to be built with daily build 2171.  They both behave exactly the same and they load exactly the same Default.png, scene background and a button and sound files.   I wish I can say that that v1 does not show the black screen while v2 does.  Unfortunately, this isn’t the case with the test apps I put together  Both versions show a flicker of black screen but nothing like the solid black I’m seeing with my latest project.  

A flicker of black screen does not bother me, and it isn’t a real problem for me.

Naomi

AND BIG NEWS…  it distraught me, and I wondered if the latest daily build 2171 actually did fix the problem – so, immediately after I posted my test result, I generated a device build of my latest project with daily build 2171 – and the problem is GONE.  No solid black screen at all.

Just to make sure the whole thing wasn’t a figment of my imagination, I built my latest project with daily build 2153, and sure enough, the solid black stares right back at me at launch.

So, I must conclude that the changes that took place between 2153 and 2171 have fixed the issue.  (Tom, I’m sorry I submitted the bug report stating that this problem exists with daily build 2171 – but in my haste, I did not generate my app with 2171 to confirm this.  I apologize.)

Naomi

Just updated to daily build 2171 and I am still seeing a huge black screen.

I recorded my game opening and you can see it for yourself:  http://youtu.be/-9gFmWb6zIc

The black screen is so long that even the camera that was recording it lost focus.

The game was running on a iPhone 4S iOS 6.1.3.

The first two lines of my main.lua are:

display.setStatusBar(display.HiddenStatusBar) display.setDefault( "background", 250/255,223/255,161/255 )

I wonder if the problem is now triggered by the use of the camera.  Renato, can you put together a simple project that reproduces what you are seeing and submit it as bug?  I think Corona would need it to sort this out.

As I mentioned, using daily build 2171, I cannot reproduce the problem with my latest project or with stripped down test projects I created.

Naomi

My game does not use camera

We believe you about the black screen, but we can’t reproduce it with Hello World or other simple apps.  Funny thing is while testing this on my own apps, several of them showed the black screen several didn’t.  Unfortunatly  I don’t know  what builds I used (and some are G1 builds too). 

What would be really helpful is to post your config.lua, build.settings and main.lua so we can try and determine a pattern of what’s causing it.

Rob

I submitted a bug report of my own regarding this issue with my own findings.

Case 30361.

My project is as basic as it gets, and there’s a short black flash on slower devices. iPod Touch 3G is the one that always shows the black flash.

Please note: This only occurs with Graphics 2.0 builds though. If I compile with the latest G1 build (1251) the black flash is gone.

I’ve attached my sample project here for anybody interested:

Ingemar, I tried your blackflash on my iPad3, and I don’t see a flash of any kind (as expected.)  However, with my test project I mentioned earlier, on the same iPad3, I see a black flash between Default.png and menu screen.  Default.png image and the background image are different images, and they both cover the whole screen.

Please note, my test project shows black flash whether it is built with daily build 2153 or 2171.  However, my latest app when built with 2153 shows solid black screen that last a couple of seconds (not a fraction of a second.)  When built with 2171, though, it shows just a black flash (like the test project) – so to me, there are huge difference between 2153 and 2171.

I don’t understand why Renato’s project still shows solid black with 2171 while mine doesn’t.  

And based on how my test project and my real project behave, I don’t think I can supply a project that would clearly demonstrate how bad this solid black is to Corona (short of sending my current project, which I do not wish to do.)

I wonder what might be the difference between my project and Renato’s…

Meanwhile, just in case it’s helpful, I’ll send Tom my test project that shows a black flash on iPad3.

Naomi

@Ingemar and @Naomi,

Thank you both for sending in complete project files. It very hard to verify bugs without knowing the code that is being used and the exact steps to reproduce the problem. Just sending in a main.lua file or describing what your code is doing is generally not enough to reproduce the issue.

It has been mentioned that the black screen occurs with the HelloWorld sample. I’ve run it on a number of devices and don’t see the problem. I received Ingemar’s project files and noticed that the FPS is set to 60 in config.lua – our HelloWorld app defaults to 30 FPS. I haven’t tried this on my range of devices but this could be the key different that we need to reproduce the problem.

I’ll let you know what I find.

Thanks,

Tom

I don’t why but the Hello World is not showing the bug anymore (although I have a former hello world build on my iPhone that shows the bug).

I ran some tests here and I think that the black screen may be related to the amount of processing that the app does in the beginning.

On my game, i have a main.lua that calls a storyboard scene that pre-loads two scenes and then it goes to a 3rd scene. I noticed that if I don’t pre-load these 2 scenes, the black screen duration reduces a lot, although it still appears.

I was able to reproduce the Black Screen issue. I think the reason I didn’t see it before is because I was using the latest build (2171) on some pretty recent iOS devices and looking for a black screen that was there for a few seconds. After running some tests on build 2153 with an old iPad1, I see the issue.

I went back and found that the issue was introduced in build 2119 and was fixed in 2155. So builds before 2119 and after 2154 work. For the builds in between, the amount of time the black screen is displayed depends on what is going on in the main.lua file. If the contents loaded in main.lua is small, the time is short. If there is a lot of content and on a slower device, the black screen will be there longer.

On all Graphics 2.0 builds, there is a “short” black screen issue, that is caused by how screen rendering is handle (it’s not there in Graphics 1.0). The amount of time for the “black flash” seems to be dependent on the speed of the device. Faster devices don’t show the issue and it’s visible on older devices (iPhone4 and iPad1).

So with the current daily build, there MAY be a sort black screen between the splash screen and displaying the app. This only happens when the app first loads and it may not be noticeable on the marjory of iOS devices. This delay has been around since Graphics 2.0 was introduced. This issue does not affect Android devices.

Thanks,

Tom

Can we please get a status on this?  I am running 2189 and I am still getting a 1-2 second black screen before my app starts up.  I have two different apps suffering this same issue.

thanks,

Arthur

What OS and device are you testing on?

Rob

Hi Rob,

I am building on a Mac mini and loading down to an Ipad 3 running ios 7.1 (11D167).

I’m using the latest available public build to basic users.

I also noticed it is definitely a video thing not a program isn’t running thing since the audio kicked off in the background during the blank screen.

Regards,

Arthur

Rob,

I’ve also noticed it displays a green underscore in the upper right hand corner too.

Arthur