Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-18564

ImageView - Image Array; fails consistently on Android

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 4.1.0
    • Component/s: Android
    • Labels:
    • Environment:
      • OSX
      • Titanium Studio
      • All Ti SDKs from 3.3 - no tests prior
      • Multiple Android SDKs
      • GenyMotion and physical devices, each with multiple versions installed
    • Story Points:
      8
    • Sprint:
      2015 Sprint 05 SDK

      Description

      When setting the Images array property and allowing the ImageView to display for more than 4 minutes.

      • Changing the number of images within the array does not affect the failure
      • Changing the location of the source files does not affect the failure
      • Changing the duration does not affect the failure
      • Changing the size of the Image width and height does not affect the failure
      • Having one or more ImageViews each with the same or different numbers of array images does not affect the failure
      • Setting a repeatCount does not affect the failure (if the count exceeds the failure point)
      • Not having a repeatCount does not affect the failure
      • File format of Image does not affect the failure

      It appears to be related to a combination of iterations, duration and size - but each attempt to work out the issue results in failure in around 5 minutes or less.

      Error message

      OpenGLRenderer: Cannot generate texture from bitmap

      Simplified example code;

      View

      <ImageView
          id="img"
          backgroundColor="purple",
          duration="200",
          height="50",
          repeatCount="2000",
          width="50"
      />
      

      Controller

      $.img.setImages([
          "/images/red/red1.png",
          "/images/red/red2.png",
          "/images/red/red3.png",
          "/images/red/red4.png"
      ]);
      

      Simply leaving the animation to continue crashes the image, empties the ImageView to black and shows the error message above in the console each additional iteration.

        Attachments

          Activity

            People

            • Assignee:
              hpham Hieu Pham
              Reporter:
              core13 Malcolm Hollingsworth
              Reviewer:
              Pedro Enrique (Inactive)
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-19719
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code