Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Adobe AIR Development

Reply
Contributor
johnhattan
Posts: 17
Registered: ‎12-15-2010
Accepted Solution

Blank white screen on approved Flash/AIR app

Okay, so I got Dice-A-Rama Deluxe (a game) working fine in the simulator. Uploaded it to the store. App is approved. And the first thing I get are two zero-star reviews from people saying that the game crashes on load. Just bought and tested it on the hardware (2.0 beta), and sure enough, I get a blank white screen and the theme music, but no game.

 

So I pulled it back down immediately.

 

Two questions:

 

1. Anyone know why this would be happening in a Flash/AIR app? I have a dozen games up on Playbook and this is the first I've seen of it.

2. Anyone know why RIM would approve the game if it didn't work?

Please use plain text.
Trusted Contributor
Zymatic
Posts: 110
Registered: ‎12-18-2010
My Carrier: Rogers Wireless

Re: Blank white screen on approved Flash/AIR app

I don't know if this is the cause for you but I experienced a similar issue with my app. The cause of the white screen for me was a permissions issue. If the user chose not to allow the permissions my app was asking for, the white screen would appear when my app tried to do something that needed the permissions.  In my case it was the access_shared permission I believe that was causing the problem.  I just added a check to see if I could access the shared folder and if it couldn't I was able to handle it accordingly by displaying a message to the user and continuing the app.

 

Hope that helps.

 

Zymatic

Please use plain text.
Contributor
johnhattan
Posts: 17
Registered: ‎12-15-2010

Re: Blank white screen on approved Flash/AIR app

Nope, that's not the problem. Only permission I use is internet, and I don't use that at the beginning. Is the white screen a crash? Far as I know, the app is running, as the background music is playing.

Please use plain text.
Developer
JohnPinkerton
Posts: 350
Registered: ‎01-21-2011
My Carrier: Regional

Re: Blank white screen on approved Flash/AIR app

The code you have, have you ran it on the hardware in debug mode? Sounds like something is failing to load and hanging the app.
Please use plain text.
Contributor
johnhattan
Posts: 17
Registered: ‎12-15-2010

Re: Blank white screen on approved Flash/AIR app

Yeah, I'm gonna have to finally cable the thing up. First time I've had a problem that manifests in hardware but not on the emulator.

 

And I'm still very surprised that they approved it.

Please use plain text.
Contributor
johnhattan
Posts: 17
Registered: ‎12-15-2010

Re: Blank white screen on approved Flash/AIR app

Okay, I'm now debugging on the device and I'm no closer. I'm seeing the following (OS 2.0 beta):

 

1. blank white screen for 10-20 seconds, and then app closes

2. blank white screen for 10-20 seconds, and then main menu comes up and game behaves normally

 

Still no idea why it's doing this. I've noticed a new "white screen" delay starting up apps on Playbook, but nothing this long. Anyone else seeing anything like this?

 

 

Please use plain text.
BlackBerry Development Advisor
elena_laskavaia
Posts: 410
Registered: ‎10-27-2010

Re: Blank white screen on approved Flash/AIR app

How many files in the bar file?

Please use plain text.
Contributor
johnhattan
Posts: 17
Registered: ‎12-15-2010

Re: Blank white screen on approved Flash/AIR app

Five on the command line

 

descriptor_playbook.xml -- AIR descriptor

blackberry-tablet.xml -- BB descriptor

dicearamadeluxe.swf -- the game, about 492k

icon_086x086.png -- icon

Default.png -- splash screen (which isn't showing, but I haven't gotten that far yet)

 

Here's the command line.

 

"C:\Program Files (x86)\Research In Motion\blackberry-tablet-sdk-1.1.0\bin"\blackberry-airpackager -devMode -package dicearamadeluxe.bar descriptor_playbook.xml dicearamadeluxe.swf icon_086x086.png Default.png blackberry-tablet.xml -password XXXXXXX -flexsdk "C:\Program Files (x86)\Adobe\AirSDK" 

 

Please use plain text.
Contributor
johnhattan
Posts: 17
Registered: ‎12-15-2010

Re: Blank white screen on approved Flash/AIR app

Okay, looks like I found it. Took a whole day of commenting out code, as it wouldn't manifest anywhere but on a hardware playbook.

 

Problem was in my high score object, which stores small bits of data in Flash SharedObjects (which, in AIR, map to whatever local non-shared storage the device cas). Dice-A-Rama Deluxe has 20 scoring categories, with up to 99 sores in each category. I hadn't been seeing any trouble on other platforms, but it looks like looking for that many SharedObjects on Playbook was slowing up the works enough that Playbook was assuming the app was crashed and was killing it.

 

I rewrote the high score object to grab scores as-needed rather than all at once, and that seems to have fixed the delay.

Please use plain text.
Developer
Lampei
Posts: 65
Registered: ‎11-15-2010
My Carrier: T-Mobile

Re: Blank white screen on approved Flash/AIR app

Glad you figured it out.  Why did you choose to use the shared object rather than the SQLite dB?  Just wondering...

Please use plain text.