Scrollview image corrupted on device

Hi,

I was adding scrollview to my app, and the images added to scrollview became ‘corrupted’ on the device, but was showing fine on the simulator. I tried PNG and JPG format, both were displayed corrupted on device.

The images display fine on device if I’m not adding them scrollview.

Here is the simple code that I used for testing:

local widget = require(“widget”)

local scrollView = widget.newScrollView({
    top = 110,
    left = 10,
    width = 1000,
    height = 200,
 })
 
local image1 = display.newImageRect( “images/pg1bg.jpg”, 300, 255 )
image1.x = 300; image1.y = 200

local image2= display.newImageRect( “images/pg2bg.jpg”, 300, 255 )
image2.x = 500; image2.y = 200

local image3= display.newImageRect( “images/pg3bg.jpg”, 300, 255 )
image3.x = 700; image3.y = 200

scrollView:insert (image1)
scrollView:insert (image2)
scrollView:insert (image3)

Any idea what is wrong with it? It only happens on latest graphics2 build 2100.

Thank you.

Hi @jvmaster77,

To clarify, which of the following are true?

  1. The images are fine if they are NOT added to the scrollView, pre #2100, on device.

  2. The images are fine if they are NOT added to the scrollIVew, #2100, on device.

  3. The images are fine if they are added to the scrollView, pre #2100, on device.

  4. The images are NOT fine if they are added to the scrollView, #2100, on device.

It seems like #1-3 are correct, but can you please clarify before I speak to the engineers?

By the way, what device are you testing on? And what specific Corona build (pre #2100) are things working fine?

Brent

Hi Brent,

  1. Yes. The images are fine for #2076 on device if not added to scrollview.
  2. Yes. The images are fine for #2100 on device if not added to scrollview.
  3. Yes. After I added the images to the scrollview, the images are fine for #2076 on device.
  4. Yes, After I added the images to the scrollview, the images are NOT fine for #2100 on device (the exact same code),

In summary:
For #2076 or earlier (#1202), it works fine on device after images are added to scrollview.
For #2100, the images are NOT fine on device when the images are added to the scrollview

My device is: Ainol Novo 7 Venus tablet, android 4.1.1

Thanks.
Justin

I like the image loading speed improvement in the #2076/#2100 build as it iis very obvious for my app. However, I just tested building the app with #2076 so I can have the scrollview image display properly, but I noticed that #2076 has one critical issue for my app that’s when an object inside a scrollview was clicked, it will cause the transition to stop (Casenum #28240, which was fixed on #2088 and public release #2100)…

Hi @jvmaster77,

To clarify, which of the following are true?

  1. The images are fine if they are NOT added to the scrollView, pre #2100, on device.

  2. The images are fine if they are NOT added to the scrollIVew, #2100, on device.

  3. The images are fine if they are added to the scrollView, pre #2100, on device.

  4. The images are NOT fine if they are added to the scrollView, #2100, on device.

It seems like #1-3 are correct, but can you please clarify before I speak to the engineers?

By the way, what device are you testing on? And what specific Corona build (pre #2100) are things working fine?

Brent

Hi Brent,

  1. Yes. The images are fine for #2076 on device if not added to scrollview.
  2. Yes. The images are fine for #2100 on device if not added to scrollview.
  3. Yes. After I added the images to the scrollview, the images are fine for #2076 on device.
  4. Yes, After I added the images to the scrollview, the images are NOT fine for #2100 on device (the exact same code),

In summary:
For #2076 or earlier (#1202), it works fine on device after images are added to scrollview.
For #2100, the images are NOT fine on device when the images are added to the scrollview

My device is: Ainol Novo 7 Venus tablet, android 4.1.1

Thanks.
Justin

I like the image loading speed improvement in the #2076/#2100 build as it iis very obvious for my app. However, I just tested building the app with #2076 so I can have the scrollview image display properly, but I noticed that #2076 has one critical issue for my app that’s when an object inside a scrollview was clicked, it will cause the transition to stop (Casenum #28240, which was fixed on #2088 and public release #2100)…