Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Missing, Incorrect ImageView/Backgrounds during program execution
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Graeme  
View profile  
 More options Oct 3 2012, 5:11 am
From: Graeme <gwoodho...@gmail.com>
Date: Wed, 3 Oct 2012 02:11:05 -0700 (PDT)
Local: Wed, Oct 3 2012 5:11 am
Subject: Missing, Incorrect ImageView/Backgrounds during program execution

Hello,

I was hoping someone here might have an idea what causes this sort of
behaviour:

Throughout my application, in seemingly random places and in random
conditions I'm observing this strange UI issue. Images are on occasion
being loaded black (with the correct bounds) or with the incorrect image
source. This effects ImageViews and has effected android:background tags
with references to colour resources.

My application relies on 6 library projects, it runs Native Code via a
Service and Activities in the App use GlSurfaceViews (although, not all
Activities which display the problem contain OpenGL components). The
problem could I suppose be from any of these places or a combination of
them through using large amounts of memory.

You can see this behaviour in the following screen shots:

This is actually a 6 or so pixel wide column separator image which has been
incorrectly drawn into my ImageView (the ImageView seems to have correctly
sized itself).

http://i.stack.imgur.com/fzfm9.png

When going out of the Application and then back in again (repeatedly) it
instead appeared (and remained) like so:

http://i.stack.imgur.com/ILEWB.png

After a Force Clear and a Clear App Data it returned to the correct format:

http://i.stack.imgur.com/q4Xa4.png

As you can also see the Magnifying Glass image next to it is displaying
fine in each of these. The problems with these missing/incorrect images and
backgrounds seems to happen randomly, throughout the application and have
yet been unable to find a way of reproducing it. The layouts for these
images are nothing special, I'm not doing anything funny during the
rendering lifecycle (i'm not overriding onDraw or onMeasure or the like).
The source of these images aren't being set dynamically but via the XML
tag. As you can see from the above example, it's not a build issue as it
occurs between app lifecycles not between installs.

It seems to me to be some sort of error with the reference table, could it
perhaps have been nudged by my native code? Or is it an effect of me in
some stages of the application using too much memory?

I've got this question up on StackOverflow here:
http://stackoverflow.com/questions/12562896/black-incorrect-blurred-o... where
you can see the layout files and another example of this happening.

Anyone seen this behaviour before?

Graeme


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »