Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7507] Android: ImageView is broken when compiling project in Windows with FastDev

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-02-14T23:29:05.000+0000
Affected Version/sRelease 1.8.1
Fix Version/sSprint 2012-03, Release 2.0.0, Release 1.8.2
ComponentsAndroid
Labelsqe-testadded, regression
ReporterMauro Parra-Miranda
AssigneeBill Dawson
Created2012-02-01T14:37:08.000+0000
Updated2012-02-14T23:29:05.000+0000

Description

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

Comments

  1. Mauro Parra-Miranda 2012-02-01

    Tested this on mac, can't reproduce there.
  2. Neeraj Gupta 2012-02-04

    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.
  3. Nikolai Derzhak 2012-02-06

    This issue latest notification was not sent due to JIRA mail setting. Fixed now. Please check the issue for latests changes.
  4. Bill Dawson 2012-02-06

    Pull request ready https://github.com/appcelerator/titanium_mobile/pull/1364
  5. Natalie Huynh 2012-02-09

    Tested on win 7 with rhino/v8 with fastdev running with 1.9.0.v20120209094635

JSON Source