Android graphics problem (build 2011.703)

I just tried to get my android device to experience the same issue as you. I tried loading and displaying an enormous background image. What’s really weird is the image just displayed as white image on my Windows simulator but everything including all other images appeared fine on my android device. I really can’t believe Corona was able to display all the images on my device and the only issue I found was a little drop in fps.

Sorry I tried. I know I’ve experienced the same exact issue as you but I can’t seem to get it to happen again. [import]uid: 38820 topic_id: 19801 reply_id: 77846[/import]

Thanks for trying. It’s really weird. Everything works fine on the sim. It works fine for iOS builds. It works fine for .591 build. It’s only using about 12MB of texture memory. I’ll keep poking around to see if I can pin-point it… [import]uid: 76436 topic_id: 19801 reply_id: 77854[/import]

MaCai,
Try running “adb logcat” while your Android device is connected to your computer via USB. This will allow you to view a real-time log of what is happening on your Android device. Check to see if any warnings come up such as Corona failing to load an image and memory warnings.

glennbjr,
I suspect that the large image fails to load on the Windows simulator because it exceeds OpenGL’s max texture size. It’s typically at least 2048 pixels (wide or high), but it can vary depending on the video hardware and OpenGL driver. On Mac, iOS, and Android we guard against this by automatically downscaling the image to fit within OpenGL’s max texture size constraint. It sounds like we’re not doing the same on Windows and it needs to be fixed. [import]uid: 32256 topic_id: 19801 reply_id: 78000[/import]

Hi Joshua,

Thanks for the advice… stupid newbie question: how do I get adb to connect to my device? I plugged it in and turned on USB debugging, and ran ADB, but it can’t find the device. What else do I have to do?

Thanks,

Alan [import]uid: 76436 topic_id: 19801 reply_id: 78049[/import]

Hi again Joshua,

Ignore my last post: I solved my ADB thing. And thanks for the advice very helpful.

Unfortunately, the log is not showing any errors or warning of any kind. The app is just simply munging a bunch of corona-generated text with no warnings. And the memory profile is very small (about 11.7MB of texture mem), so that’s not it either.

I’m at my wit’s end - and it was actually a pretty short trip :slight_smile:

Thanks again. [import]uid: 76436 topic_id: 19801 reply_id: 78056[/import]

MaCai,

Doss this black rectangle issue happen randomly or does it only happen with certain images?
Would you mind sending us a small zipped up project that reproduces this issue please? You can do so by clicking the “Report a Bug” link at the top of this web page. [import]uid: 32256 topic_id: 19801 reply_id: 78148[/import]

Hi Joshua,

I just submitted a bug report (11391 - which refers to my previous bug report 11260). I included some sample code which demonstrates the problem on my test devices. I’m sorry it’s a bit of a mess, I had to hack it up a bit to get it into a (reasonably) manageable size. Let me know if I can help…

To answer you question: it is deterministic, but does not follow a pattern. That is: it happens the same way and affects the same resources every time I run an app. But if I change the app parameters or make changes to the app code (add/remove widgets, move widgets, etc), it affects different resources (in a repeatable way). Does this make sense?

Sometimes it affects images, and other times it affects corona generated text, and sometimes both.

Either there is something wrong with the way I’m implementing the Corona SDK (which is highly possible) or there’s an issue somewhere.

Thanks again,

Alan [import]uid: 76436 topic_id: 19801 reply_id: 78177[/import]

Thank you for the bug submission. I’ll take a look at this by the middle of next week. [import]uid: 32256 topic_id: 19801 reply_id: 78368[/import]

Thanks Joshua,

At least, hopefully, you’ll be able to let me know if there’s a problem with Corona, or I’m just messing up my programming paradigm.

Let me know how I can help [import]uid: 76436 topic_id: 19801 reply_id: 79243[/import]

MaCai,

We verified that the issue happens on an HTC device. It doesn’t occur on our other Android devices, which is strange indeed. We haven’t taken the time to isolate the issue yet, but that’ll be the next step. [import]uid: 32256 topic_id: 19801 reply_id: 79251[/import]

Joshua,

That’s great(ish) news. At least I’m not going loopy.

And that is consistent with my experience too. I don’t see the problem on Kindle, just on my two HTC devices.

Thanks… and keep me posted. [import]uid: 76436 topic_id: 19801 reply_id: 79252[/import]

Hi Joshua,

I seems to have the same issue with android devices, the images are not rendered and are replaced with blank white rectangles and this happens randomly some times the images are shown correctly and just when we switch the scene/menu screens the images are lost.

The same thing is happening with font also with both custom and native system fonts.

I am getting this issue for Samsung Galaxy S2 and HTC incredible.

And I am using 2011.704 SDK version.

can you please look in to the issue and let us know if theres a solution for this.

Thanks,
-Vaibhav [import]uid: 84082 topic_id: 19801 reply_id: 91275[/import]

I’m definitely not seeing this issue on a Samsung Galaxy S2. I use that device every day for testing. I was seeing this issue on 2 different HTC devices… with the strange part being is that our code indicated that everything was loaded and displayed okay, making us think that we’re running into an OpenGL driver bug on HTC devices that we have to somehow work-around. Meaning that this may be the manufacturer’s bug.

We’ll be looking into Android specific rendering issues this week. Starting with the famous alpha-blending issues on Kindle Fire and Nook Tablet. [import]uid: 32256 topic_id: 19801 reply_id: 91360[/import]

Hi,
Our build is already on android market.but having the problem on some of the android devices.
we are using samsung galaxy II with model no GT-19001 O.S. 2.3.1,resolution 480x800.but still having the same issue. We need to solve this issue as early as possible because out build is already on android market.
I am using the graphics size according to dynamic image resolution .I tried letterbox,zoomeven and zoomstrech also with 1.5x of graphics. I tried the same build with HTC amaze and its working properly .I think it might be issue for 480x800 resolutions devices.on other devices its working well
here is the no of devices that i had used for testing

HTC EVO-480x800 - : graphics ISSUE
HTC Amaze-540x960 - :working well
samsung galaxy TAB-1024x600:working well
HTC thunderbird-480x800 : :graphics issue
samsung galaxy s-480x800 : :working well
samsung galaxy II:480x800: :graphics issue
Acer tablet-1280x800 :working well
i am adding two sets of images for the mobile phones of 1x=320x480 and 1.5x=720x480
and tried for zoomeven,zoomstrech and letterbox but still having the problem and build size if 30MB.and using the corona SDK version 704.I am also tried by upgrading the new version 760

Please help me as early as possible my game is already on android market.I need to add updated version.

Thanks and regards

Nilesh Gawade [import]uid: 95072 topic_id: 19801 reply_id: 91454[/import]

Hi All corona developers
Please send me solution as early as possible i am eagerly waiting for your reply.I am aslo tried on sony xperia and still find the same issue
thanks and regards
Nilesh Gawade
[import]uid: 95072 topic_id: 19801 reply_id: 91665[/import]

Hi All corona developers
Please send me solution as early as possible i am eagerly waiting for your reply.I am aslo tried on sony xperia and still find the same issue
thanks and regards
Nilesh Gawade
[import]uid: 95072 topic_id: 19801 reply_id: 91666[/import]

Hi,
I have tried the same code for 2011.591 for graphics issue its working well. but there are some other issues in it like timer.pause is not there.so i am not able to make the build using the using 2011.591 .I have to build it using 2011.704 only.so please send me the updated SDK with the solved graphics issue as early as possible

thanks and regards
Nilesh Gawade

[import]uid: 84082 topic_id: 19801 reply_id: 91687[/import]

Hello guys,
I have just tested the build for 2011.762 the build works fine for the samsung galaxy s, but the problem for samsung galaxy s+, In galaxy s+ the same proble with blank white rectangle appears on text and images randomly. It is not fix position but on random places and randome images.and the HTC device thunderbird problem is still there.but it works on HTC amaze
thanks and regards
Nilesh Gawade [import]uid: 95072 topic_id: 19801 reply_id: 92111[/import]

Hi,

I noticed one thing while running the builds on different devices

SAMSUNG galaxy S-19000M(480x800) -OS version 2.2-working well
SAMSUNG galaxy S±19001(480x800) -OS version 2.3.1-having graphics issue
SAMSUNG galaxy S-19003(480x800) -OS version 2.2-working well
SAMSUNG galaxy TAB(1024x600) -OS version 2.2-working well
HTC AMAZE(540x960) -OS, v2.3.4 (Gingerbread)-working well
sony xperia(480x854) -OS version 2.3.1-having graphics issue
Acer tab-1280x800 -OS version 3-working well
HTC thunderbolt(480x800) -OS version 2.2 having graphics issues
HTC evo(480x800) -Android™ 2.3 (Gingerbread) having graphics issues

I found that graphics get replaced with blank rectangles is not a device specific issue like HTC
it comes on samsung and sony devices also.It also not resolution specific issue like for 480x800 devices because the build works on samsung galaxy s versions.I noticed that it might android OS version issue.please find the solution as early as possible and give me the resolution date because its too urgent.
thanks and regards
Nilesh Gawade [import]uid: 84082 topic_id: 19801 reply_id: 92947[/import]

I should point out to everyone that all devices that everyone reports as having this issue have Snapdragon GPUs. [import]uid: 130081 topic_id: 19801 reply_id: 93009[/import]