Problem Description
When you create a simple program using a imageview in Ti Studio in Windows, it won't show the image in the android emulator.
Expected behavior
The program should show the image in the image view.
Actual behavior
The program fails to show the image, complaining with:
I/AndroidRuntime( 372): NOTE: attach of thread 'Binder Thread #3' failed
E/TiApplication( 373): (KrollRuntimeThread) [1885,2742] APP PROXY: ti.modules.titanium.app.AppModule@43e52740
D/TiAssetHelper( 373): Fetching "app.js" with Fastdev...
W/TypeConverter( 373): jsValueToJavaObject returning null
D/skia ( 373): --- SkImageDecoder::Factory returned null
W/TiDrawableReference( 373): (main) [641,3383] Bitmap bounds could not be determined. If bitmap is loaded, it won't be scaled.
D/skia ( 373): --- SkImageDecoder::Factory returned null
I/TiRootActivity( 373): (main) [0,0] checkpoint, on root activity resume. activity = com.negoapps.test2.Test2Activity@43e6a030
W/TiDrawableReference( 373): (main) [89,89] Bitmap bounds could not be determined. If bitmap is loaded, it won't be scaled.
D/skia ( 373): --- SkImageDecoder::Factory returned null
TestCase
var win = Ti.UI.createWindow();
var logo = Titanium.UI.createImageView({
image: 'logo.png',
top: 0
});
win.add(logo);
win.open();
Community Discussion
http://developer.appcelerator.com/question/131493/problem-with-imageview
Log
I/AndroidRuntime( 372): NOTE: attach of thread 'Binder Thread #3' failed
E/TiApplication( 373): (KrollRuntimeThread) [1885,2742] APP PROXY: ti.modules.titanium.app.AppModule@43e52740
D/TiAssetHelper( 373): Fetching "app.js" with Fastdev...
W/TypeConverter( 373): jsValueToJavaObject returning null
D/skia ( 373): --- SkImageDecoder::Factory returned null
W/TiDrawableReference( 373): (main) [641,3383] Bitmap bounds could not be determined. If bitmap is loaded, it won't be scaled.
D/skia ( 373): --- SkImageDecoder::Factory returned null
I/TiRootActivity( 373): (main) [0,0] checkpoint, on root activity resume. activity = com.negoapps.test2.Test2Activity@43e6a030
W/TiDrawableReference( 373): (main) [89,89] Bitmap bounds could not be determined. If bitmap is loaded, it won't be scaled.
D/skia ( 373): --- SkImageDecoder::Factory returned null
Tested this on mac, can't reproduce there.
It occurs on Windows and it is limited to Android emulators with fastdev enabled. There are two known issues: TIMOB-6773 and TIMOB-6714 that relate to images with fastdev.
This issue latest notification was not sent due to JIRA mail setting. Fixed now. Please check the issue for latests changes.
Pull request ready https://github.com/appcelerator/titanium_mobile/pull/1364
Tested on win 7 with rhino/v8 with fastdev running with 1.9.0.v20120209094635