[TIMOB-24954] Android 7: ImageView with an array of images does not work using ti SDK 6.1.1.GA
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2019-11-18T18:27:30.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Jebun Naher |
Assignee | Unknown |
Created | 2017-07-13T05:36:44.000+0000 |
Updated | 2019-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
File | Date | Size |
---|---|---|
animation.zip | 2017-07-13T05:34:53.000+0000 | 424488 |
This error occurs not only with image array. Any images in app cause this error on Android 7