Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24954] Android 7: ImageView with an array of images does not work using ti SDK 6.1.1.GA

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2019-11-18T18:27:30.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterJebun Naher
AssigneeUnknown
Created2017-07-13T05:36:44.000+0000
Updated2019-11-18T18:27:31.000+0000

Description

*Issue description*: When I try to load an array of images in imageView, the following error displayed in the console:
[ERROR] :  E/HW-JPEG-DEC: [HME_JPEG_DEC_Delete](3321): HME_JPEG_DEC_Delete: decoder_ctx=null
[ERROR] :  E/HW-JPEG-DEC: [HME_JPEG_DEC_Delete](3321): HME_JPEG_DEC_Delete: decoder_ctx=null
[ERROR] :  E/HW-JPEG-DEC: [HME_JPEG_DEC_Delete](3321): HME_JPEG_DEC_Delete: decoder_ctx=null
Though the images are successfully displayed on device but on the console I get the error. I've tested using set of different images like .jpg and .png but the error occurs every time. It happens both in alloy and classic. *Test case:* Sample code for Alloy: *index.js*
var imageView;
var images = [];
for (var i = 0; i<30; i++){
images.push('/images/anim/'+i+".jpg");
}
$.win.addEventListener('open', Load_Anim);
$.win.open();
function Load_Anim(){
imageView = Titanium.UI.createImageView({
images: images,
duration: 50,
repeatCount: 0,
width: Ti.UI.SIZE,
height: Ti.UI.SIZE,
});
$.win.add(imageView);
imageView.start();
}
*index.xml*
<Alloy>
    <Window backgroundColor="blue" id="win">
       
    </Window>
</Alloy>
Sample code for classic: *Classic code:*
var win = Ti.UI.createWindow({

backgroundColor : "white"

});

var imageView;

var images = [];

for (var i = 0; i < 30; i++) {

images.push('/images/' + i + ".png");

}

win.addEventListener('open', Load_Anim);

function Load_Anim() {

imageView = Titanium.UI.createImageView({

images : images,

duration : 50,

repeatCount : 0,

width : Ti.UI.SIZE,

height : Ti.UI.SIZE,

});

win.add(imageView);

imageView.start();

}
win.open();
*Images*: images are attached as zipped file. *Test Steps*: 1. Create a new project using the test code. 2. Place the images in the /images/anim/ folder. 3. Build on android 7 device. *Actual*: Error showed in the console. *Expected*: No error should be shown in the console.

Attachments

FileDateSize
animation.zip2017-07-13T05:34:53.000+0000424488

Comments

  1. mrsarrius@gmail.com 2017-07-17

    This error occurs not only with image array. Any images in app cause this error on Android 7

JSON Source