# App works in Corona simulator but goes to a black screen on device & simulator

**URL:** <https://forums.solar2d.com/t/app-works-in-corona-simulator-but-goes-to-a-black-screen-on-device-simulator/286538>\
**Category:** Newbie Questions\
**Created:** [January 29, 2011, 11:37am UTC](https://forums.solar2d.com/t/app-works-in-corona-simulator-but-goes-to-a-black-screen-on-device-simulator/286538 "2011-01-29T11:37:56Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![dwallin33](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/d/8e7dd6/32.png) [@dwallin33](https://forums.solar2d.com/u/dwallin33)\
**Post date:** [January 29, 2011, 11:37am UTC](https://forums.solar2d.com/t/app-works-in-corona-simulator-but-goes-to-a-black-screen-on-device-simulator/286538/1 "2011-01-29T11:37:56Z")

</div>

Hi, a game I’m working on is not working on the iPhone or in the iPhone simulator (but works without issues in the Corona Simulator). When I attempt to run it, all I get is a black screen (after the loading screen). Nothing happens, no crashes, just a black screen. The same thing happens in the simulator.

Any ideas? [import]uid: 4702 topic\_id: 5682 reply\_id: 305682[/import]

---

<div class="post-metadata">

**Author:** ![philow](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/p/8dc957/32.png) [@philow](https://forums.solar2d.com/u/philow)\
**Post date:** [February 2, 2011, 9:08am UTC](https://forums.solar2d.com/t/app-works-in-corona-simulator-but-goes-to-a-black-screen-on-device-simulator/286538/2 "2011-02-02T09:08:38Z")

</div>

I am having exactly this same issue. Anyone have any ideas? [import]uid: 25080 topic\_id: 5682 reply\_id: 20152[/import]

---

<div class="post-metadata">

**Author:** ![carlos\_m\_icaza](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/c/bc8723/32.png) [@carlos\_m\_icaza](https://forums.solar2d.com/u/carlos_m_icaza)\
**Post date:** [February 2, 2011, 11:43am UTC](https://forums.solar2d.com/t/app-works-in-corona-simulator-but-goes-to-a-black-screen-on-device-simulator/286538/3 "2011-02-02T11:43:52Z")

</div>

what image format are you using?

png -32 bit jpeg?

C. [import]uid: 24 topic\_id: 5682 reply\_id: 20180[/import]

---

<div class="post-metadata">

**Author:** ![philow](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/p/8dc957/32.png) [@philow](https://forums.solar2d.com/u/philow)\
**Post date:** [February 2, 2011, 12:14pm UTC](https://forums.solar2d.com/t/app-works-in-corona-simulator-but-goes-to-a-black-screen-on-device-simulator/286538/4 "2011-02-02T12:14:40Z")

</div>

All my graphic images are PNG.

BTW I can create an Android APK and install it on my Samsung Android device and it runs as expected as well.

I can also build a sample app (ButtonEvents) and it runs fine on the Xcode Simulator and my iPod. [import]uid: 25080 topic\_id: 5682 reply\_id: 20185[/import]

---

<div class="post-metadata">

**Author:** ![dwallin33](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/d/8e7dd6/32.png) [@dwallin33](https://forums.solar2d.com/u/dwallin33)\
**Post date:** [February 2, 2011, 12:16pm UTC](https://forums.solar2d.com/t/app-works-in-corona-simulator-but-goes-to-a-black-screen-on-device-simulator/286538/5 "2011-02-02T12:16:22Z")

</div>

All mine are 32 bit PNG’s as well. [import]uid: 4702 topic\_id: 5682 reply\_id: 20187[/import]

---

<div class="post-metadata">

**Author:** ![carlos\_m\_icaza](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/c/bc8723/32.png) [@carlos\_m\_icaza](https://forums.solar2d.com/u/carlos_m_icaza)\
**Post date:** [February 2, 2011, 12:37pm UTC](https://forums.solar2d.com/t/app-works-in-corona-simulator-but-goes-to-a-black-screen-on-device-simulator/286538/6 "2011-02-02T12:37:11Z")

</div>

can one of you send me the file and the psd if you have a psd?

c [import]uid: 24 topic\_id: 5682 reply\_id: 20195[/import]

---

<div class="post-metadata">

**Author:** ![philow](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/p/8dc957/32.png) [@philow](https://forums.solar2d.com/u/philow)\
**Post date:** [February 2, 2011, 12:47pm UTC](https://forums.solar2d.com/t/app-works-in-corona-simulator-but-goes-to-a-black-screen-on-device-simulator/286538/7 "2011-02-02T12:47:46Z")

</div>

I can send you my PNG but I just wanted to say that I converted the PNG to a JPG for the background image and I do not get a black screen anymore. I see the image. I am now troubleshooting why it has stretched out on me. My image is bigger then the screen. But I can now see items in my Xcode Simulator by changing the PNG (I think my was 8-bit) to a JPG. all my other PNG’s lay overtop of the JPG with out issue.

I do not have a PSD for the file. [import]uid: 25080 topic\_id: 5682 reply\_id: 20199[/import]

---

<div class="post-metadata">

**Author:** ![philow](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/p/8dc957/32.png) [@philow](https://forums.solar2d.com/u/philow)\
**Post date:** [February 3, 2011, 4:10am UTC](https://forums.solar2d.com/t/app-works-in-corona-simulator-but-goes-to-a-black-screen-on-device-simulator/286538/8 "2011-02-03T04:10:51Z")

</div>

Just an update my app and background was set for the retina display size of an iPod 4g and that is why the stretching/cropping occurred. I check the Xcode Simulator to an iPhone 4 and it displayed then I put it on the device and it worked as expected.

Thanks. [import]uid: 25080 topic\_id: 5682 reply\_id: 20347[/import]

---

<div class="post-metadata">

**Author:** ![mudstuffing](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/m/a87d85/32.png) [@mudstuffing](https://forums.solar2d.com/u/mudstuffing)\
**Post date:** [February 9, 2011, 2:16pm UTC](https://forums.solar2d.com/t/app-works-in-corona-simulator-but-goes-to-a-black-screen-on-device-simulator/286538/9 "2011-02-09T14:16:37Z")

</div>

I am having the same issue as well.

As far as I can tell, it’s happening when I try to load images. All mine are PNG-24. (exported from photoshop). [import]uid: 29520 topic\_id: 5682 reply\_id: 21824[/import]

---

<div class="post-metadata">

**Author:** ![carlos\_m\_icaza](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/c/bc8723/32.png) [@carlos\_m\_icaza](https://forums.solar2d.com/u/carlos_m_icaza)\
**Post date:** [February 9, 2011, 2:22pm UTC](https://forums.solar2d.com/t/app-works-in-corona-simulator-but-goes-to-a-black-screen-on-device-simulator/286538/10 "2011-02-09T14:22:46Z")

</div>

Android ? iOS? can you post png? psd?

was the image done on windows? or mac and loaded on windows?

there are color profiles that need to be removed and the gamma between the two os are different

c [import]uid: 24 topic\_id: 5682 reply\_id: 21825[/import]

---

<div class="post-metadata">

**Author:** ![mudstuffing](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/m/a87d85/32.png) [@mudstuffing](https://forums.solar2d.com/u/mudstuffing)\
**Post date:** [February 9, 2011, 2:38pm UTC](https://forums.solar2d.com/t/app-works-in-corona-simulator-but-goes-to-a-black-screen-on-device-simulator/286538/11 "2011-02-09T14:38:26Z")

</div>

Both iOS and Android… however I have been trying to debug the problem on Android at the moment, but got the blank screen when I built the app on a mac earlier for ios.

On the android… graphics built in Photoshop CS5 (64bit) on windows and building for android 2.2 on a windows machine. testing on a Samsung Galaxy Tab.

No errors in simulator.

I just did a quick test, simple file, using PNG and JPEG and neither will load. I load a circle and text and rectangle shape on the display group fine, but the minute I try to load a image… freeze.

[import]uid: 29520 topic\_id: 5682 reply\_id: 21828[/import]

---

<div class="post-metadata">

**Author:** ![carlos\_m\_icaza](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/c/bc8723/32.png) [@carlos\_m\_icaza](https://forums.solar2d.com/u/carlos_m_icaza)\
**Post date:** [February 9, 2011, 2:50pm UTC](https://forums.solar2d.com/t/app-works-in-corona-simulator-but-goes-to-a-black-screen-on-device-simulator/286538/12 "2011-02-09T14:50:40Z")

</div>

ok - can i get the images? or put them somewhere i can look? [import]uid: 24 topic\_id: 5682 reply\_id: 21831[/import]

---

<div class="post-metadata">

**Author:** ![mudstuffing](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/m/a87d85/32.png) [@mudstuffing](https://forums.solar2d.com/u/mudstuffing)\
**Post date:** [February 9, 2011, 2:54pm UTC](https://forums.solar2d.com/t/app-works-in-corona-simulator-but-goes-to-a-black-screen-on-device-simulator/286538/13 "2011-02-09T14:54:41Z")

</div>

Follow up… I opened those images (JPG and PNG) into Photoshop CS5 (NON 64bit version), resaved them and they loaded after the build.

Go figure… you think using the 64bit version of photoshop is the problem? I’m just resaving the file, not even changing the format or anything… [import]uid: 29520 topic\_id: 5682 reply\_id: 21832[/import]

---

<div class="post-metadata">

**Author:** ![mudstuffing](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/m/a87d85/32.png) [@mudstuffing](https://forums.solar2d.com/u/mudstuffing)\
**Post date:** [February 9, 2011, 2:55pm UTC](https://forums.solar2d.com/t/app-works-in-corona-simulator-but-goes-to-a-black-screen-on-device-simulator/286538/14 "2011-02-09T14:55:42Z")

</div>

do you still want the photoshop 64bit images mailed to you? [import]uid: 29520 topic\_id: 5682 reply\_id: 21835[/import]

---

<div class="post-metadata">

**Author:** ![carlos\_m\_icaza](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/c/bc8723/32.png) [@carlos\_m\_icaza](https://forums.solar2d.com/u/carlos_m_icaza)\
**Post date:** [February 9, 2011, 3:07pm UTC](https://forums.solar2d.com/t/app-works-in-corona-simulator-but-goes-to-a-black-screen-on-device-simulator/286538/15 "2011-02-09T15:07:47Z")

</div>

yes at least one to have it for testing purposes

thanks

c [import]uid: 24 topic\_id: 5682 reply\_id: 21838[/import]

---

<div class="post-metadata">

**Author:** ![Bandit07](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/b/50afbb/32.png) [@Bandit07](https://forums.solar2d.com/u/Bandit07)\
**Post date:** [February 13, 2011, 6:12am UTC](https://forums.solar2d.com/t/app-works-in-corona-simulator-but-goes-to-a-black-screen-on-device-simulator/286538/16 "2011-02-13T06:12:55Z")

</div>

Hi,  
i had the same issue.  
In my case, the solution was be care on case sensitive coding with function calls.  
The file which i want to call “myCalc.lua”.  
Simulator does accept: director:changeScene(“mycalc”,“flip”), but IOS Simulator does not.  
Klaus

Sorry for my bad english. [import]uid: 5456 topic\_id: 5682 reply\_id: 22569[/import]

---

<div class="post-metadata">

**Author:** ![jhocking](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/j/b487fb/32.png) [@jhocking](https://forums.solar2d.com/u/jhocking)\
**Post date:** [February 13, 2011, 6:36am UTC](https://forums.solar2d.com/t/app-works-in-corona-simulator-but-goes-to-a-black-screen-on-device-simulator/286538/17 "2011-02-13T06:36:53Z")

</div>

Incorrect capitalization in require() is the most common reason for this. The device is case-sensitive, the simulator is not. [import]uid: 12108 topic\_id: 5682 reply\_id: 22574[/import]

---

<div class="post-metadata">

**Author:** ![Hampis](https://forums.solar2d.com/user_avatar/forums.solar2d.com/hampis/32/3454_2.png) [@Hampis](https://forums.solar2d.com/u/Hampis)\
**Post date:** [February 21, 2011, 2:07am UTC](https://forums.solar2d.com/t/app-works-in-corona-simulator-but-goes-to-a-black-screen-on-device-simulator/286538/18 "2011-02-21T02:07:15Z")

</div>

If this is my problem to i don’t know yet because i had just got it and went in to the forums for help.

My app (for android) runs fine in the simulator but not on the phone. On the phone i just get a black screen and nothing happens.

I will check my requires now, but usually i copy past so should not be wrong. but ill check.

Can’t you make the simulator case sensitive to so if that’s the problem they never leave the simulators test bench?

Other reasons why i just get a black screen on my Android?  
(I have build apps before that worked) [import]uid: 28895 topic\_id: 5682 reply\_id: 24180[/import]

---

<div class="post-metadata">

**Author:** ![Hampis](https://forums.solar2d.com/user_avatar/forums.solar2d.com/hampis/32/3454_2.png) [@Hampis](https://forums.solar2d.com/u/Hampis)\
**Post date:** [February 21, 2011, 2:26am UTC](https://forums.solar2d.com/t/app-works-in-corona-simulator-but-goes-to-a-black-screen-on-device-simulator/286538/19 "2011-02-21T02:26:04Z")

</div>

(Could not edit my post, why? Should not the forum to post in be selected automatically?)

Anyhow, i did figure out what was wrong for me. I had put all my images in a folder called “images” and what happened was that the phone could not access them in this sub folder. But if i put them in the root it works fine.

Why is this? [import]uid: 28895 topic\_id: 5682 reply\_id: 24182[/import]

---

<div class="post-metadata">

**Author:** ![eugene.ryzhov](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/e/f08c70/32.png) [@eugene.ryzhov](https://forums.solar2d.com/u/eugene.ryzhov)\
**Post date:** [February 23, 2011, 3:22am UTC](https://forums.solar2d.com/t/app-works-in-corona-simulator-but-goes-to-a-black-screen-on-device-simulator/286538/20 "2011-02-23T03:22:12Z")

</div>

Hello  
Sometimes I also have this black screen - first I’ve solved this problem as was described above by moving images and other files to root folder. My question is: when i have file like mypick.PNG (extension in upper case) - is devices case senstitive for extensions as well? [import]uid: 40521 topic\_id: 5682 reply\_id: 24629[/import]

[Next page](https://forums.solar2d.com/t/app-works-in-corona-simulator-but-goes-to-a-black-screen-on-device-simulator/286538.md?page=2)
