Images Not Always Displaying When App is Downloaded from iTunes

You must Login before you can answer or comment on any questions.

A Titanium Mobile app which I wrote for a client was recently approved by Apple and is now available in the iTunes store (you can download it here). Some users who have downloaded it have encountered some strange behavior and I'd appreciate your ideas on what the cause may be because I'm stumped.

The app features a Ken Burns style slideshow on the front page. The images are bundled within the app package. Some users are reporting that when they install the app, they just see a black panel instead of the slideshow. However, there are two very unusual features about this which are making it very difficult to debug:

  • Users have reported that uninstalling and then reinstalling the app fixes the problem. Sometimes it takes 2 or 3 reinstalls, but the problem does get fixed. But why would the app behave differently on subsequent installs?
  • There's some code withi the app which means the slideshow is implemented differently on iOS 5 (where it is composed of Ti.UI.ImageView objects and transforms) and earlier versions (where it's a webview with an HTML 5 / Javascript animation). However, users on both iOS 5 and 4 have reported the problem. Why would two completely different pieces of code exhibit the same problem?

It's also worth noting that this problem was not observed during testing when the app was distributed to testers as an ipa file via TestFlight. My first thought was that it could be a problem with the bundled package which is being distributed through iTunes, but that wouldn't explain why reinstalls fix the problem.

Does anyone have any ideas?

— asked 9 months ago by Paul Brierley
3 Comments
  • Missing from your question are a number of important pieces of information. I suggest you take a look at the Using Questions and Answers article, specifically the Q&A Question Checklist. The missing information is critical to reproducing problems in a test environment and often indicates other factors that cause the undesirable outcome you are experiencing.

    — commented 9 months ago by Stephen Feather

  • besides the base elements missing from your question, could you describe the sizes, quantity of your images, the file/directory structure you used.

    — commented 9 months ago by Stephen Feather

  • In answer to those items:

    • Application Type: Mobile
    • Titanium SDK: 2.0.2.GA
    • iOS version: Problem has been observed on 4.3, 5.1 and 5.1.1 but has also been observed on all those versions without problems too.
    • Device: No problems reported on iPhone 4S. No problems reported on iPhone or iPad simulator. No problems reported on iPad 2. Problem observed on some iPhone 4 and iPod Touch 4th Generation, but some such devices have also exhibited no problems.
    • Host operating system: OS X 10.7.4
    • Titanium Studio: 2.1.1.201207271312
    • Test Case: Download app from iTunes store and install on device. In some cases, a black pane appears instead of the slideshow. Uninstall, reinstall and problem will be gone (may require multiple uninstall and reinstalls... sometimes resolves after 1, one user has reported reinstalling 3 times before it fixed).
    • Logs: None to share, since problem has only been seen on production downloads from iTunes and not on any test devices.

    Images are 640x480 PNG files. Stored in Resources\images along with other image files used elsewhere in the app. Filenames are slideshow1.png, slideshow2.png etc - 4 images in total.

    — commented 9 months ago by Paul Brierley

1 Answer

My gut says you're running into a memory issue of some sort... most likely you're not releasing objects when you're closing a window.

— answered 9 months ago by Shannon Hicks
answer permalink
1 Comment
  • Memory is my suspicion too because the problem hasn't been reported on iPhone 4S. However, it is the launch screen where the problem is (i.e. not much has happened or been loaded yet!). Also, killing off all apps on the device and then relaunching doesn't fix the problem, but a reinstall will.

    — commented 9 months ago by Paul Brierley

Your Answer

Think you can help? Login to answer this question!