Corona Simulator & dashboard showing only a black screen

Not sure if this is the right forum, but here it goes. I installed CSDK today on a OSX 10.7.3 with XCode 4.3.3 installed and when I open the dashboard or any app in the simulator it just shows a black screen, the UI for the dashboard works (ie, you can click on the examples, new project, etc. buttons) but nothing is displayed

Any ideas on what could be causing this?

Thanks
[import]uid: 118486 topic_id: 27667 reply_id: 327667[/import]

I’ll ask around and see if any other members of the team have seen this. It would be helpful to know what build of Corona you installed and what kind of Mac you are using also. [import]uid: 52491 topic_id: 27667 reply_id: 112268[/import]

Hi, I tried it on builds 704a and 833 and same thing on both. [import]uid: 118486 topic_id: 27667 reply_id: 112324[/import]

Are you getting any messages in the terminal when the black screen is displayed?

What build of Corona are you seeing this on: Daily Builds or the release build (704a)?

What type of computer are you using?

Do you see the simulator skin or are you seeing a black image where the simulator skin would be?

We have seen problems like this when running on older Macs or running VMWare caused by older openGL hardware/software.

[import]uid: 7559 topic_id: 27667 reply_id: 112330[/import]

Hi Tom,

  • On the terminal window it shows the following:

[blockcode]
Runtime error
?:0: attempt to get length of upvalue ‘?’ (a nil value)
Stack trackback:
[C]: ?
?: in function <?:434>
?: in function ‘?’
?: in function ‘?’
?: in function <?:551>
[/blockcode]

  • I’m seeing this on the release (704a) and the daily (833)

  • I see the title bar and the whole window is just black.

  • I’m running it on a VMware, I figure this is the cause of the problem. It use to run ok on 10.6, but now that I created a 10.7 vm this happens.

Thanks for your help.

[import]uid: 118486 topic_id: 27667 reply_id: 112331[/import]

Okay, the message you are seeing is a runtime error and the reason the screen is black is because the program stopped executing. Have you tried running this with any of the Corona sample programs or is this with just your own code. The message is saying the problem is on line 434 in your code.

VMWare problems have caused black screens, which includes the Welcome screen. The fact that the Welcome screen is working and you are getting the Runtime error message, tells me it may be a problem in your code.

If you still get an error when running any of the Corona samples, then I would say it’s related to VMWare.
[import]uid: 7559 topic_id: 27667 reply_id: 112337[/import]

Hi Tom,

I’m not running any of my code, I’m only opening the Corona Simulator.app (via the corona terminal or debugger) and the first thing I see is the blank screen. Now if I click around the black screen it seems that I access the buttons (the new project, examples, etc. buttons) since I can open the New Project dialog, etc.

the full message I’m seeing in the terminal is (sorry for not including it before)

Jaimes-Mac:~ jaimedp$ /Applications/CoronaSDK704/Corona\ Terminal ; exit;
2012-06-19 11:25:06.392 Corona Simulator[247:2403] Error: Could not choose main OpenGL pixel format! Are you on a headless Mac? Please plug in a display if you are. Trying fallback, but Apple seems to have bugs with this.
2012-06-19 11:25:06.657 Corona Simulator[247:2403] Error: Could not choose main OpenGL pixel format! Are you on a headless Mac? Please plug in a display if you are. Trying fallback, but Apple seems to have bugs with this.
2012-06-19 11:25:06.710 Corona Simulator[247:2403] Error: Could not choose main OpenGL pixel format! Are you on a headless Mac? Please plug in a display if you are. Trying fallback, but Apple seems to have bugs with this.

Copyright © 2009-2011 A n s c a , I n c .
Version: 2.0.0
Build: 2011.704
Runtime error
?:0: attempt to get length of upvalue ‘?’ (a nil value)
stack traceback:
[C]: ?
?: in function <?:434>
?: in function ‘?’
?: in function ‘?’
?: in function <?:551>

[import]uid: 118486 topic_id: 27667 reply_id: 112343[/import]

You said your using this in vmware… So I presume your running on a windows machine?

If so what are your computer specs? Are you sharing your graphics card with the vm? [import]uid: 84637 topic_id: 27667 reply_id: 112351[/import]

The machine specs are:

Win 7 64 bit, 2.7Ghz i7 cuadCore, 8 Gb ram, the VM has 2 procs assigned and 4GB, I’m not sure if I’m “sharing” the graphics card with the VM, in the config for the VM is just autodetect (the same as I have with 10.6) [import]uid: 118486 topic_id: 27667 reply_id: 112362[/import]

Sounds like a capable machine, what graphics card is in it? nvidia/ati/intel? what mb? ddr?

Also to check you could go into the “About this mac” window inside your mac in the vm. If it shows no graphics card or something you know it is not being shared.

I would set it to manual and give it about half of the graphics card ram. [import]uid: 84637 topic_id: 27667 reply_id: 112365[/import]

The graphics card is an NVidia NVS 4200m with 1gb, now the mac is reporting this:

VMware SVGA II:

Chipset Model: VMware SVGA II
Type: GPU
Bus: PCI
VRAM (Total): 128 MB
Device ID: 0x0405
Revision ID: 0x0000
Displays:
Display:
Resolution: 1680 x 1050
Pixel Depth: 32-Bit Color (ARGB8888)
Main Display: Yes
Mirror: Off
Online: Yes
Vendor ID: 0x15ad

I’ll try to see if I can give it more memory for the VM, there’s no way through the vmware UI to do it [import]uid: 118486 topic_id: 27667 reply_id: 112372[/import]

The bottom line is Corona does not support VMWare or non-Mac machines running OSX. Typically the openGL drivers are not up to date in VMWare and it does not work correctly on OS 10.7. Sorry. [import]uid: 7559 topic_id: 27667 reply_id: 112384[/import]

That’s what I thought, I understand, so back to my old mac :slight_smile: [import]uid: 118486 topic_id: 27667 reply_id: 112535[/import]