Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2653] Android: Complex/autogenerated remote image URLs fail, whereas simple URLs succeed

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2012-04-23T17:26:13.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0, Release 1.6.0 M09, Release 2.1.0, Sprint 2012-08
ComponentsAndroid
Labelsapi, module_imageview, qe-testadded, regression
ReporterPaul Dowsett
AssigneeVishal Duggal
Created2011-04-15T03:25:57.000+0000
Updated2016-01-06T00:24:48.000+0000

Description

Problem

A complex url to an image, used in an imageView do not render. The issues is not present in 1.4.3 (21Nov).

Test case

The following code will cause an exception:
var window = Titanium.UI.createWindow({  
    backgroundColor:'red'
});

var graph = Titanium.UI.createImageView({
    top: 20,
    image: 'http://chart.apis.google.com/chart?chco=666666,555555,444444,333333,222222&cht=p&chd=t:36,15,12,10,26&chdl=xyz|abc|def|ghi|jkl&chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150'
//    image: 'http://developer.appcelerator.com/assets/img/sprites.png'
});
window.add(graph);
window.open();
When the commented/uncommented image lines are toggled, the app works without a problem.

Logs

  449          AndroidRuntime  D  >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
  449          AndroidRuntime  D  CheckJNI is ON
  449          AndroidRuntime  D  --- registering native functions ---
   60         ActivityManager  I  Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.appcelerator.testing10/.Testing10Activity }
   60         ActivityManager  I  Start proc com.appcelerator.testing10 for activity com.appcelerator.testing10/.Testing10Activity: pid=455 uid=10041 gids={1015, 3003}
  449          AndroidRuntime  D  Shutting down VM
  455           TiApplication  I  (main) [0,0] checkpoint, app created.
  455           TiApplication  I  (main) [402,402] Titanium 1.8.1 (2012/01/27 17:31 a24502a)
  455               TiFastDev  D  (main) [110,512] Enabling Fastdev on port 51023
  455               TiFastDev  D  (main) [8,520] sent tokens successfully
  455               TiFastDev  D  (main) [1,521] Fastdev session handshake succesful.
  455           TiApplication  I  (main) [4,525] Titanium Javascript runtime: v8
  455           TiApplication  W  (main) [47,572] activity stack is emtpy, unable to get current activity
  455          TiRootActivity  I  (main) [0,0] checkpoint, on root activity create, savedInstanceState: null
  455           TiApplication  W  (main) [116,116] activity stack is emtpy, unable to get current activity
  455           TiApplication  W  (main) [1,117] activity stack is emtpy, unable to get current activity
  455           TiApplication  W  (main) [0,117] activity stack is emtpy, unable to get current activity
   60     NotificationService  W  Object died trying to hide notification android.app.ITransientNotification$Stub$Proxy@4500b128 in package com.appcelerator.testing10
   60         ActivityManager  W  setProcessForeground called on unknown pid: 427
  455           TiApplication  E  (KrollRuntimeThread) [1083,1200] APP PROXY: ti.modules.titanium.app.AppModule@44fccf38
  455           TiAssetHelper  D  Fetching "app.js" with Fastdev...
  455           TiUIImageView  E  (main) [524,1724] URISyntaxException for url http://chart.apis.google.com/chart?chco=666666,555555,444444,333333,222222&cht=p&chd=t:36,15,12,10,26&chdl=xyz|abc
                                  |def|ghi|jkl&chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150
  455           TiUIImageView  E  java.net.URISyntaxException: Illegal character in query at index 122: http://chart.apis.google.com/chart?chco=666666,555555,444444,333333,222222&cht=p&chd=t:36,15,
                                  12,10,26&chdl=xyz|abc|def|ghi|jkl&chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150
  455           TiUIImageView  E  	at java.net.URI$Helper.validateQuery(URI.java:458)
  455           TiUIImageView  E  	at java.net.URI$Helper.parseURI(URI.java:360)
  455           TiUIImageView  E  	at java.net.URI$Helper.access$100(URI.java:302)
  455           TiUIImageView  E  	at java.net.URI.<init>(URI.java:87)
  455           TiUIImageView  E  	at ti.modules.titanium.ui.widget.TiUIImageView.setImage(TiUIImageView.java:715)
  455           TiUIImageView  E  	at ti.modules.titanium.ui.widget.TiUIImageView.processProperties(TiUIImageView.java:849)
  455           TiUIImageView  E  	at org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:641)
  455           TiUIImageView  E  	at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:464)
  455           TiUIImageView  E  	at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:456)
  455           TiUIImageView  E  	at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:434)
  455           TiUIImageView  E  	at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:538)
  455           TiUIImageView  E  	at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:271)
  455           TiUIImageView  E  	at android.os.Handler.dispatchMessage(Handler.java:95)
  455           TiUIImageView  E  	at org.appcelerator.kroll.common.TiMessenger.dispatchMessage(TiMessenger.java:318)
  455           TiUIImageView  E  	at org.appcelerator.kroll.common.TiMessenger.dispatchPendingMessages(TiMessenger.java:303)
  455           TiUIImageView  E  	at org.appcelerator.kroll.common.TiMessenger$2.getResult(TiMessenger.java:188)
  455           TiUIImageView  E  	at org.appcelerator.kroll.common.TiMessenger.sendBlockingMessage(TiMessenger.java:215)
  455           TiUIImageView  E  	at org.appcelerator.kroll.common.TiMessenger.sendBlockingRuntimeMessage(TiMessenger.java:143)
  455           TiUIImageView  E  	at org.appcelerator.kroll.KrollProxy.fireSyncEvent(KrollProxy.java:417)
  455           TiUIImageView  E  	at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:344)
  455           TiUIImageView  E  	at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:117)
  455           TiUIImageView  E  	at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:46)
  455           TiUIImageView  E  	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
  455           TiUIImageView  E  	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
  455           TiUIImageView  E  	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
  455           TiUIImageView  E  	at android.app.ActivityThread.access$2300(ActivityThread.java:125)
  455           TiUIImageView  E  	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
  455           TiUIImageView  E  	at android.os.Handler.dispatchMessage(Handler.java:99)
  455           TiUIImageView  E  	at android.os.Looper.loop(Looper.java:123)
  455           TiUIImageView  E  	at android.app.ActivityThread.main(ActivityThread.java:4627)
  455           TiUIImageView  E  	at java.lang.reflect.Method.invokeNative(Native Method)
  455           TiUIImageView  E  	at java.lang.reflect.Method.invoke(Method.java:521)
  455           TiUIImageView  E  	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
  455           TiUIImageView  E  	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
  455           TiUIImageView  E  	at dalvik.system.NativeStart.main(Native Method)
  455     TiDrawableReference  E  (main) [123,1847] Problem opening stream with url http://chart.apis.google.com/chart?chco=666666,555555,444444,333333,222222&cht=p&chd=t:36,15,12,10,26&chdl=xy
                                  z|abc|def|ghi|jkl&chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150: http://chart.apis.google.com/chart?chco=666666,555555,444444,3333
                                  33,222222&cht=p&chd=t:36,15,12,10,26&chdl=xyz|abc|def|ghi|jkl&chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150
  455     TiDrawableReference  E  java.io.FileNotFoundException: http://chart.apis.google.com/chart?chco=666666,555555,444444,333333,222222&cht=p&chd=t:36,15,12,10,26&chdl=xyz|abc|def|ghi|jkl&a
                                  mp;chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150
  455     TiDrawableReference  E  	at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:1162)
  455     TiDrawableReference  E  	at java.net.URL.openStream(URL.java:653)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.util.TiFileHelper.openInputStream(TiFileHelper.java:172)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.view.TiDrawableReference.getInputStream(TiDrawableReference.java:671)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.view.TiDrawableReference.peekBounds(TiDrawableReference.java:628)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:461)
  455     TiDrawableReference  E  	at ti.modules.titanium.ui.widget.TiUIImageView.setImage(TiUIImageView.java:724)
  455     TiDrawableReference  E  	at ti.modules.titanium.ui.widget.TiUIImageView.processProperties(TiUIImageView.java:849)
  455     TiDrawableReference  E  	at org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:641)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:464)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:456)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:434)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:538)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:271)
  455     TiDrawableReference  E  	at android.os.Handler.dispatchMessage(Handler.java:95)
  455     TiDrawableReference  E  	at org.appcelerator.kroll.common.TiMessenger.dispatchMessage(TiMessenger.java:318)
  455     TiDrawableReference  E  	at org.appcelerator.kroll.common.TiMessenger.dispatchPendingMessages(TiMessenger.java:303)
  455     TiDrawableReference  E  	at org.appcelerator.kroll.common.TiMessenger$2.getResult(TiMessenger.java:188)
  455     TiDrawableReference  E  	at org.appcelerator.kroll.common.TiMessenger.sendBlockingMessage(TiMessenger.java:215)
  455     TiDrawableReference  E  	at org.appcelerator.kroll.common.TiMessenger.sendBlockingRuntimeMessage(TiMessenger.java:143)
  455     TiDrawableReference  E  	at org.appcelerator.kroll.KrollProxy.fireSyncEvent(KrollProxy.java:417)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:344)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:117)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:46)
  455     TiDrawableReference  E  	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
  455     TiDrawableReference  E  	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
  455     TiDrawableReference  E  	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
  455     TiDrawableReference  E  	at android.app.ActivityThread.access$2300(ActivityThread.java:125)
  455     TiDrawableReference  E  	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
  455     TiDrawableReference  E  	at android.os.Handler.dispatchMessage(Handler.java:99)
  455     TiDrawableReference  E  	at android.os.Looper.loop(Looper.java:123)
  455     TiDrawableReference  E  	at android.app.ActivityThread.main(ActivityThread.java:4627)
  455     TiDrawableReference  E  	at java.lang.reflect.Method.invokeNative(Native Method)
  455     TiDrawableReference  E  	at java.lang.reflect.Method.invoke(Method.java:521)
  455     TiDrawableReference  E  	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
  455     TiDrawableReference  E  	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
  455     TiDrawableReference  E  	at dalvik.system.NativeStart.main(Native Method)
  455     TiDrawableReference  W  (main) [54,1901] Could not open stream for drawable, therefore bounds checking could not be completed
  455     TiDrawableReference  W  (main) [5,1906] Bitmap bounds could not be determined. If bitmap is loaded, it won't be scaled.
  455     TiDrawableReference  E  (main) [95,2001] Problem opening stream with url http://chart.apis.google.com/chart?chco=666666,555555,444444,333333,222222&cht=p&chd=t:36,15,12,10,26&chdl=xyz
                                  |abc|def|ghi|jkl&chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150: http://chart.apis.google.com/chart?chco=666666,555555,444444,33333
                                  3,222222&cht=p&chd=t:36,15,12,10,26&chdl=xyz|abc|def|ghi|jkl&chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150
  455     TiDrawableReference  E  java.io.FileNotFoundException: http://chart.apis.google.com/chart?chco=666666,555555,444444,333333,222222&cht=p&chd=t:36,15,12,10,26&chdl=xyz|abc|def|ghi|jkl&a
                                  mp;chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150
  455     TiDrawableReference  E  	at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:1162)
  455     TiDrawableReference  E  	at java.net.URL.openStream(URL.java:653)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.util.TiFileHelper.openInputStream(TiFileHelper.java:172)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.view.TiDrawableReference.getInputStream(TiDrawableReference.java:671)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:238)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:467)
  455     TiDrawableReference  E  	at ti.modules.titanium.ui.widget.TiUIImageView.setImage(TiUIImageView.java:724)
  455     TiDrawableReference  E  	at ti.modules.titanium.ui.widget.TiUIImageView.processProperties(TiUIImageView.java:849)
  455     TiDrawableReference  E  	at org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:641)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:464)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:456)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:434)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:538)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:271)
  455     TiDrawableReference  E  	at android.os.Handler.dispatchMessage(Handler.java:95)
  455     TiDrawableReference  E  	at org.appcelerator.kroll.common.TiMessenger.dispatchMessage(TiMessenger.java:318)
  455     TiDrawableReference  E  	at org.appcelerator.kroll.common.TiMessenger.dispatchPendingMessages(TiMessenger.java:303)
  455     TiDrawableReference  E  	at org.appcelerator.kroll.common.TiMessenger$2.getResult(TiMessenger.java:188)
  455     TiDrawableReference  E  	at org.appcelerator.kroll.common.TiMessenger.sendBlockingMessage(TiMessenger.java:215)
  455     TiDrawableReference  E  	at org.appcelerator.kroll.common.TiMessenger.sendBlockingRuntimeMessage(TiMessenger.java:143)
  455     TiDrawableReference  E  	at org.appcelerator.kroll.KrollProxy.fireSyncEvent(KrollProxy.java:417)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:344)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:117)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:46)
  455     TiDrawableReference  E  	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
  455     TiDrawableReference  E  	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
  455     TiDrawableReference  E  	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
  455     TiDrawableReference  E  	at android.app.ActivityThread.access$2300(ActivityThread.java:125)
  455     TiDrawableReference  E  	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
  455     TiDrawableReference  E  	at android.os.Handler.dispatchMessage(Handler.java:99)
  455     TiDrawableReference  E  	at android.os.Looper.loop(Looper.java:123)
  455     TiDrawableReference  E  	at android.app.ActivityThread.main(ActivityThread.java:4627)
  455     TiDrawableReference  E  	at java.lang.reflect.Method.invokeNative(Native Method)
  455     TiDrawableReference  E  	at java.lang.reflect.Method.invoke(Method.java:521)
  455     TiDrawableReference  E  	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
  455     TiDrawableReference  E  	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
  455     TiDrawableReference  E  	at dalvik.system.NativeStart.main(Native Method)
  455     TiDrawableReference  W  (main) [12,2013] Could not open stream to get bitmap
  455          TiRootActivity  I  (main) [0,0] checkpoint, on root activity resume. activity = com.appcelerator.testing10.Testing10Activity@44f7a570
   60         ActivityManager  I  Displayed activity com.appcelerator.testing10/.Testing10Activity: 3686 ms (total 3686 ms)
  455           TiUIImageView  D  (main) [398,398] Retrying bitmap decode: 1/5
  455           TiUIImageView  E  (main) [1,399] URISyntaxException for url http://chart.apis.google.com/chart?chco=666666,555555,444444,333333,222222&cht=p&chd=t:36,15,12,10,26&chdl=xyz|abc|de
                                  f|ghi|jkl&chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150
  455           TiUIImageView  E  java.net.URISyntaxException: Illegal character in query at index 122: http://chart.apis.google.com/chart?chco=666666,555555,444444,333333,222222&cht=p&chd=t:36,15,
                                  12,10,26&chdl=xyz|abc|def|ghi|jkl&chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150
  455           TiUIImageView  E  	at java.net.URI$Helper.validateQuery(URI.java:458)
  455           TiUIImageView  E  	at java.net.URI$Helper.parseURI(URI.java:360)
  455           TiUIImageView  E  	at java.net.URI$Helper.access$100(URI.java:302)
  455           TiUIImageView  E  	at java.net.URI.<init>(URI.java:87)
  455           TiUIImageView  E  	at ti.modules.titanium.ui.widget.TiUIImageView.setImage(TiUIImageView.java:715)
  455           TiUIImageView  E  	at ti.modules.titanium.ui.widget.TiUIImageView.access$500(TiUIImageView.java:53)
  455           TiUIImageView  E  	at ti.modules.titanium.ui.widget.TiUIImageView$3.run(TiUIImageView.java:771)
  455           TiUIImageView  E  	at android.os.Handler.handleCallback(Handler.java:587)
  455           TiUIImageView  E  	at android.os.Handler.dispatchMessage(Handler.java:92)
  455           TiUIImageView  E  	at android.os.Looper.loop(Looper.java:123)
  455           TiUIImageView  E  	at android.app.ActivityThread.main(ActivityThread.java:4627)
  455           TiUIImageView  E  	at java.lang.reflect.Method.invokeNative(Native Method)
  455           TiUIImageView  E  	at java.lang.reflect.Method.invoke(Method.java:521)
  455           TiUIImageView  E  	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
  455           TiUIImageView  E  	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
  455           TiUIImageView  E  	at dalvik.system.NativeStart.main(Native Method)
  455     TiDrawableReference  W  (main) [34,433] Bitmap bounds could not be determined. If bitmap is loaded, it won't be scaled.
  455     TiDrawableReference  E  (main) [210,643] Problem opening stream with url http://chart.apis.google.com/chart?chco=666666,555555,444444,333333,222222&cht=p&chd=t:36,15,12,10,26&chdl=xyz
                                  |abc|def|ghi|jkl&chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150: http://chart.apis.google.com/chart?chco=666666,555555,444444,33333
                                  3,222222&cht=p&chd=t:36,15,12,10,26&chdl=xyz|abc|def|ghi|jkl&chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150
  455     TiDrawableReference  E  java.io.FileNotFoundException: http://chart.apis.google.com/chart?chco=666666,555555,444444,333333,222222&cht=p&chd=t:36,15,12,10,26&chdl=xyz|abc|def|ghi|jkl&a
                                  mp;chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150
  455     TiDrawableReference  E  	at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:1162)
  455     TiDrawableReference  E  	at java.net.URL.openStream(URL.java:653)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.util.TiFileHelper.openInputStream(TiFileHelper.java:172)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.view.TiDrawableReference.getInputStream(TiDrawableReference.java:671)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:238)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:467)
  455     TiDrawableReference  E  	at ti.modules.titanium.ui.widget.TiUIImageView.setImage(TiUIImageView.java:724)
  455     TiDrawableReference  E  	at ti.modules.titanium.ui.widget.TiUIImageView.access$500(TiUIImageView.java:53)
  455     TiDrawableReference  E  	at ti.modules.titanium.ui.widget.TiUIImageView$3.run(TiUIImageView.java:771)
  455     TiDrawableReference  E  	at android.os.Handler.handleCallback(Handler.java:587)
  455     TiDrawableReference  E  	at android.os.Handler.dispatchMessage(Handler.java:92)
  455     TiDrawableReference  E  	at android.os.Looper.loop(Looper.java:123)
  455     TiDrawableReference  E  	at android.app.ActivityThread.main(ActivityThread.java:4627)
  455     TiDrawableReference  E  	at java.lang.reflect.Method.invokeNative(Native Method)
  455     TiDrawableReference  E  	at java.lang.reflect.Method.invoke(Method.java:521)
  455     TiDrawableReference  E  	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
  455     TiDrawableReference  E  	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
  455     TiDrawableReference  E  	at dalvik.system.NativeStart.main(Native Method)
  455     TiDrawableReference  W  (main) [7,650] Could not open stream to get bitmap
  455           TiUIImageView  D  (main) [282,932] Retrying bitmap decode: 2/5
  455           TiUIImageView  E  (main) [1,933] URISyntaxException for url http://chart.apis.google.com/chart?chco=666666,555555,444444,333333,222222&cht=p&chd=t:36,15,12,10,26&chdl=xyz|abc|de
                                  f|ghi|jkl&chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150
  455           TiUIImageView  E  java.net.URISyntaxException: Illegal character in query at index 122: http://chart.apis.google.com/chart?chco=666666,555555,444444,333333,222222&cht=p&chd=t:36,15,
                                  12,10,26&chdl=xyz|abc|def|ghi|jkl&chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150
  455           TiUIImageView  E  	at java.net.URI$Helper.validateQuery(URI.java:458)
  455           TiUIImageView  E  	at java.net.URI$Helper.parseURI(URI.java:360)
  455           TiUIImageView  E  	at java.net.URI$Helper.access$100(URI.java:302)
  455           TiUIImageView  E  	at java.net.URI.<init>(URI.java:87)
  455           TiUIImageView  E  	at ti.modules.titanium.ui.widget.TiUIImageView.setImage(TiUIImageView.java:715)
  455           TiUIImageView  E  	at ti.modules.titanium.ui.widget.TiUIImageView.access$500(TiUIImageView.java:53)
  455           TiUIImageView  E  	at ti.modules.titanium.ui.widget.TiUIImageView$3.run(TiUIImageView.java:771)
  455           TiUIImageView  E  	at android.os.Handler.handleCallback(Handler.java:587)
  455           TiUIImageView  E  	at android.os.Handler.dispatchMessage(Handler.java:92)
  455           TiUIImageView  E  	at android.os.Looper.loop(Looper.java:123)
  455           TiUIImageView  E  	at android.app.ActivityThread.main(ActivityThread.java:4627)
  455           TiUIImageView  E  	at java.lang.reflect.Method.invokeNative(Native Method)
  455           TiUIImageView  E  	at java.lang.reflect.Method.invoke(Method.java:521)
  455           TiUIImageView  E  	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
  455           TiUIImageView  E  	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
  455           TiUIImageView  E  	at dalvik.system.NativeStart.main(Native Method)
  455     TiDrawableReference  W  (main) [39,972] Bitmap bounds could not be determined. If bitmap is loaded, it won't be scaled.
  455     TiDrawableReference  E  (main) [93,1065] Problem opening stream with url http://chart.apis.google.com/chart?chco=666666,555555,444444,333333,222222&cht=p&chd=t:36,15,12,10,26&chdl=xyz
                                  |abc|def|ghi|jkl&chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150: http://chart.apis.google.com/chart?chco=666666,555555,444444,33333
                                  3,222222&cht=p&chd=t:36,15,12,10,26&chdl=xyz|abc|def|ghi|jkl&chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150
  455     TiDrawableReference  E  java.io.FileNotFoundException: http://chart.apis.google.com/chart?chco=666666,555555,444444,333333,222222&cht=p&chd=t:36,15,12,10,26&chdl=xyz|abc|def|ghi|jkl&a
                                  mp;chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150
  455     TiDrawableReference  E  	at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:1162)
  455     TiDrawableReference  E  	at java.net.URL.openStream(URL.java:653)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.util.TiFileHelper.openInputStream(TiFileHelper.java:172)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.view.TiDrawableReference.getInputStream(TiDrawableReference.java:671)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:238)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:467)
  455     TiDrawableReference  E  	at ti.modules.titanium.ui.widget.TiUIImageView.setImage(TiUIImageView.java:724)
  455     TiDrawableReference  E  	at ti.modules.titanium.ui.widget.TiUIImageView.access$500(TiUIImageView.java:53)
  455     TiDrawableReference  E  	at ti.modules.titanium.ui.widget.TiUIImageView$3.run(TiUIImageView.java:771)
  455     TiDrawableReference  E  	at android.os.Handler.handleCallback(Handler.java:587)
  455     TiDrawableReference  E  	at android.os.Handler.dispatchMessage(Handler.java:92)
  455     TiDrawableReference  E  	at android.os.Looper.loop(Looper.java:123)
  455     TiDrawableReference  E  	at android.app.ActivityThread.main(ActivityThread.java:4627)
  455     TiDrawableReference  E  	at java.lang.reflect.Method.invokeNative(Native Method)
  455     TiDrawableReference  E  	at java.lang.reflect.Method.invoke(Method.java:521)
  455     TiDrawableReference  E  	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
  455     TiDrawableReference  E  	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
  455     TiDrawableReference  E  	at dalvik.system.NativeStart.main(Native Method)
  455     TiDrawableReference  W  (main) [5,1070] Could not open stream to get bitmap
  455           TiUIImageView  D  (main) [254,1324] Retrying bitmap decode: 3/5
  455           TiUIImageView  E  (main) [1,1325] URISyntaxException for url http://chart.apis.google.com/chart?chco=666666,555555,444444,333333,222222&cht=p&chd=t:36,15,12,10,26&chdl=xyz|abc|d
                                  ef|ghi|jkl&chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150
  455           TiUIImageView  E  java.net.URISyntaxException: Illegal character in query at index 122: http://chart.apis.google.com/chart?chco=666666,555555,444444,333333,222222&cht=p&chd=t:36,15,
                                  12,10,26&chdl=xyz|abc|def|ghi|jkl&chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150
  455           TiUIImageView  E  	at java.net.URI$Helper.validateQuery(URI.java:458)
  455           TiUIImageView  E  	at java.net.URI$Helper.parseURI(URI.java:360)
  455           TiUIImageView  E  	at java.net.URI$Helper.access$100(URI.java:302)
  455           TiUIImageView  E  	at java.net.URI.<init>(URI.java:87)
  455           TiUIImageView  E  	at ti.modules.titanium.ui.widget.TiUIImageView.setImage(TiUIImageView.java:715)
  455           TiUIImageView  E  	at ti.modules.titanium.ui.widget.TiUIImageView.access$500(TiUIImageView.java:53)
  455           TiUIImageView  E  	at ti.modules.titanium.ui.widget.TiUIImageView$3.run(TiUIImageView.java:771)
  455           TiUIImageView  E  	at android.os.Handler.handleCallback(Handler.java:587)
  455           TiUIImageView  E  	at android.os.Handler.dispatchMessage(Handler.java:92)
  455           TiUIImageView  E  	at android.os.Looper.loop(Looper.java:123)
  455           TiUIImageView  E  	at android.app.ActivityThread.main(ActivityThread.java:4627)
  455           TiUIImageView  E  	at java.lang.reflect.Method.invokeNative(Native Method)
  455           TiUIImageView  E  	at java.lang.reflect.Method.invoke(Method.java:521)
  455           TiUIImageView  E  	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
  455           TiUIImageView  E  	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
  455           TiUIImageView  E  	at dalvik.system.NativeStart.main(Native Method)
  455     TiDrawableReference  W  (main) [4,1329] Bitmap bounds could not be determined. If bitmap is loaded, it won't be scaled.
  455     TiDrawableReference  E  (main) [154,1483] Problem opening stream with url http://chart.apis.google.com/chart?chco=666666,555555,444444,333333,222222&cht=p&chd=t:36,15,12,10,26&chdl=xy
                                  z|abc|def|ghi|jkl&chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150: http://chart.apis.google.com/chart?chco=666666,555555,444444,3333
                                  33,222222&cht=p&chd=t:36,15,12,10,26&chdl=xyz|abc|def|ghi|jkl&chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150
  455     TiDrawableReference  E  java.io.FileNotFoundException: http://chart.apis.google.com/chart?chco=666666,555555,444444,333333,222222&cht=p&chd=t:36,15,12,10,26&chdl=xyz|abc|def|ghi|jkl&a
                                  mp;chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150
  455     TiDrawableReference  E  	at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:1162)
  455     TiDrawableReference  E  	at java.net.URL.openStream(URL.java:653)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.util.TiFileHelper.openInputStream(TiFileHelper.java:172)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.view.TiDrawableReference.getInputStream(TiDrawableReference.java:671)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:238)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:467)
  455     TiDrawableReference  E  	at ti.modules.titanium.ui.widget.TiUIImageView.setImage(TiUIImageView.java:724)
  455     TiDrawableReference  E  	at ti.modules.titanium.ui.widget.TiUIImageView.access$500(TiUIImageView.java:53)
  455     TiDrawableReference  E  	at ti.modules.titanium.ui.widget.TiUIImageView$3.run(TiUIImageView.java:771)
  455     TiDrawableReference  E  	at android.os.Handler.handleCallback(Handler.java:587)
  455     TiDrawableReference  E  	at android.os.Handler.dispatchMessage(Handler.java:92)
  455     TiDrawableReference  E  	at android.os.Looper.loop(Looper.java:123)
  455     TiDrawableReference  E  	at android.app.ActivityThread.main(ActivityThread.java:4627)
  455     TiDrawableReference  E  	at java.lang.reflect.Method.invokeNative(Native Method)
  455     TiDrawableReference  E  	at java.lang.reflect.Method.invoke(Method.java:521)
  455     TiDrawableReference  E  	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
  455     TiDrawableReference  E  	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
  455     TiDrawableReference  E  	at dalvik.system.NativeStart.main(Native Method)
  455     TiDrawableReference  W  (main) [5,1488] Could not open stream to get bitmap
  455           TiUIImageView  D  (main) [254,1742] Retrying bitmap decode: 4/5
  455           TiUIImageView  E  (main) [1,1743] URISyntaxException for url http://chart.apis.google.com/chart?chco=666666,555555,444444,333333,222222&cht=p&chd=t:36,15,12,10,26&chdl=xyz|abc|d
                                  ef|ghi|jkl&chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150
  455           TiUIImageView  E  java.net.URISyntaxException: Illegal character in query at index 122: http://chart.apis.google.com/chart?chco=666666,555555,444444,333333,222222&cht=p&chd=t:36,15,
                                  12,10,26&chdl=xyz|abc|def|ghi|jkl&chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150
  455           TiUIImageView  E  	at java.net.URI$Helper.validateQuery(URI.java:458)
  455           TiUIImageView  E  	at java.net.URI$Helper.parseURI(URI.java:360)
  455           TiUIImageView  E  	at java.net.URI$Helper.access$100(URI.java:302)
  455           TiUIImageView  E  	at java.net.URI.<init>(URI.java:87)
  455           TiUIImageView  E  	at ti.modules.titanium.ui.widget.TiUIImageView.setImage(TiUIImageView.java:715)
  455           TiUIImageView  E  	at ti.modules.titanium.ui.widget.TiUIImageView.access$500(TiUIImageView.java:53)
  455           TiUIImageView  E  	at ti.modules.titanium.ui.widget.TiUIImageView$3.run(TiUIImageView.java:771)
  455           TiUIImageView  E  	at android.os.Handler.handleCallback(Handler.java:587)
  455           TiUIImageView  E  	at android.os.Handler.dispatchMessage(Handler.java:92)
  455           TiUIImageView  E  	at android.os.Looper.loop(Looper.java:123)
  455           TiUIImageView  E  	at android.app.ActivityThread.main(ActivityThread.java:4627)
  455           TiUIImageView  E  	at java.lang.reflect.Method.invokeNative(Native Method)
  455           TiUIImageView  E  	at java.lang.reflect.Method.invoke(Method.java:521)
  455           TiUIImageView  E  	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
  455           TiUIImageView  E  	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
  455           TiUIImageView  E  	at dalvik.system.NativeStart.main(Native Method)
  455     TiDrawableReference  W  (main) [3,1746] Bitmap bounds could not be determined. If bitmap is loaded, it won't be scaled.
  455     TiDrawableReference  E  (main) [114,1860] Problem opening stream with url http://chart.apis.google.com/chart?chco=666666,555555,444444,333333,222222&cht=p&chd=t:36,15,12,10,26&chdl=xy
                                  z|abc|def|ghi|jkl&chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150: http://chart.apis.google.com/chart?chco=666666,555555,444444,3333
                                  33,222222&cht=p&chd=t:36,15,12,10,26&chdl=xyz|abc|def|ghi|jkl&chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150
  455     TiDrawableReference  E  java.io.FileNotFoundException: http://chart.apis.google.com/chart?chco=666666,555555,444444,333333,222222&cht=p&chd=t:36,15,12,10,26&chdl=xyz|abc|def|ghi|jkl&a
                                  mp;chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150
  455     TiDrawableReference  E  	at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:1162)
  455     TiDrawableReference  E  	at java.net.URL.openStream(URL.java:653)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.util.TiFileHelper.openInputStream(TiFileHelper.java:172)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.view.TiDrawableReference.getInputStream(TiDrawableReference.java:671)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:238)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:467)
  455     TiDrawableReference  E  	at ti.modules.titanium.ui.widget.TiUIImageView.setImage(TiUIImageView.java:724)
  455     TiDrawableReference  E  	at ti.modules.titanium.ui.widget.TiUIImageView.access$500(TiUIImageView.java:53)
  455     TiDrawableReference  E  	at ti.modules.titanium.ui.widget.TiUIImageView$3.run(TiUIImageView.java:771)
  455     TiDrawableReference  E  	at android.os.Handler.handleCallback(Handler.java:587)
  455     TiDrawableReference  E  	at android.os.Handler.dispatchMessage(Handler.java:92)
  455     TiDrawableReference  E  	at android.os.Looper.loop(Looper.java:123)
  455     TiDrawableReference  E  	at android.app.ActivityThread.main(ActivityThread.java:4627)
  455     TiDrawableReference  E  	at java.lang.reflect.Method.invokeNative(Native Method)
  455     TiDrawableReference  E  	at java.lang.reflect.Method.invoke(Method.java:521)
  455     TiDrawableReference  E  	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
  455     TiDrawableReference  E  	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
  455     TiDrawableReference  E  	at dalvik.system.NativeStart.main(Native Method)
  455     TiDrawableReference  W  (main) [5,1865] Could not open stream to get bitmap
  455           TiUIImageView  D  (main) [255,2120] Retrying bitmap decode: 5/5
  455           TiUIImageView  E  (main) [0,2120] URISyntaxException for url http://chart.apis.google.com/chart?chco=666666,555555,444444,333333,222222&cht=p&chd=t:36,15,12,10,26&chdl=xyz|abc|d
                                  ef|ghi|jkl&chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150
  455           TiUIImageView  E  java.net.URISyntaxException: Illegal character in query at index 122: http://chart.apis.google.com/chart?chco=666666,555555,444444,333333,222222&cht=p&chd=t:36,15,
                                  12,10,26&chdl=xyz|abc|def|ghi|jkl&chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150
  455           TiUIImageView  E  	at java.net.URI$Helper.validateQuery(URI.java:458)
  455           TiUIImageView  E  	at java.net.URI$Helper.parseURI(URI.java:360)
  455           TiUIImageView  E  	at java.net.URI$Helper.access$100(URI.java:302)
  455           TiUIImageView  E  	at java.net.URI.<init>(URI.java:87)
  455           TiUIImageView  E  	at ti.modules.titanium.ui.widget.TiUIImageView.setImage(TiUIImageView.java:715)
  455           TiUIImageView  E  	at ti.modules.titanium.ui.widget.TiUIImageView.access$500(TiUIImageView.java:53)
  455           TiUIImageView  E  	at ti.modules.titanium.ui.widget.TiUIImageView$3.run(TiUIImageView.java:771)
  455           TiUIImageView  E  	at android.os.Handler.handleCallback(Handler.java:587)
  455           TiUIImageView  E  	at android.os.Handler.dispatchMessage(Handler.java:92)
  455           TiUIImageView  E  	at android.os.Looper.loop(Looper.java:123)
  455           TiUIImageView  E  	at android.app.ActivityThread.main(ActivityThread.java:4627)
  455           TiUIImageView  E  	at java.lang.reflect.Method.invokeNative(Native Method)
  455           TiUIImageView  E  	at java.lang.reflect.Method.invoke(Method.java:521)
  455           TiUIImageView  E  	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
  455           TiUIImageView  E  	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
  455           TiUIImageView  E  	at dalvik.system.NativeStart.main(Native Method)
  455     TiDrawableReference  W  (main) [5,2125] Bitmap bounds could not be determined. If bitmap is loaded, it won't be scaled.
  455     TiDrawableReference  E  (main) [102,2227] Problem opening stream with url http://chart.apis.google.com/chart?chco=666666,555555,444444,333333,222222&cht=p&chd=t:36,15,12,10,26&chdl=xy
                                  z|abc|def|ghi|jkl&chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150: http://chart.apis.google.com/chart?chco=666666,555555,444444,3333
                                  33,222222&cht=p&chd=t:36,15,12,10,26&chdl=xyz|abc|def|ghi|jkl&chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150
  455     TiDrawableReference  E  java.io.FileNotFoundException: http://chart.apis.google.com/chart?chco=666666,555555,444444,333333,222222&cht=p&chd=t:36,15,12,10,26&chdl=xyz|abc|def|ghi|jkl&a
                                  mp;chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150
  455     TiDrawableReference  E  	at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:1162)
  455     TiDrawableReference  E  	at java.net.URL.openStream(URL.java:653)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.util.TiFileHelper.openInputStream(TiFileHelper.java:172)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.view.TiDrawableReference.getInputStream(TiDrawableReference.java:671)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:238)
  455     TiDrawableReference  E  	at org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:467)
  455     TiDrawableReference  E  	at ti.modules.titanium.ui.widget.TiUIImageView.setImage(TiUIImageView.java:724)
  455     TiDrawableReference  E  	at ti.modules.titanium.ui.widget.TiUIImageView.access$500(TiUIImageView.java:53)
  455     TiDrawableReference  E  	at ti.modules.titanium.ui.widget.TiUIImageView$3.run(TiUIImageView.java:771)
  455     TiDrawableReference  E  	at android.os.Handler.handleCallback(Handler.java:587)
  455     TiDrawableReference  E  	at android.os.Handler.dispatchMessage(Handler.java:92)
  455     TiDrawableReference  E  	at android.os.Looper.loop(Looper.java:123)
  455     TiDrawableReference  E  	at android.app.ActivityThread.main(ActivityThread.java:4627)
  455     TiDrawableReference  E  	at java.lang.reflect.Method.invokeNative(Native Method)
  455     TiDrawableReference  E  	at java.lang.reflect.Method.invoke(Method.java:521)
  455     TiDrawableReference  E  	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
  455     TiDrawableReference  E  	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
  455     TiDrawableReference  E  	at dalvik.system.NativeStart.main(Native Method)
  455     TiDrawableReference  W  (main) [4,2231] Could not open stream to get bitmap
  455           TiUIImageView  E  (main) [15,2246] Max retries reached, giving up decoding image source: http://chart.apis.google.com/chart?chco=666666,555555,444444,333333,222222&cht=p&chd=t:36,15
                                  ,12,10,26&chdl=xyz|abc|def|ghi|jkl&chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150

Comments

  1. hal 2011-04-15

    I almost forgot to post the https://gist.github.com/751511">exception :)

  2. Don Thorp 2011-04-15

    This was fixed with the fix for #2667

  3. Abraham 2011-04-15

    How is this fixed? I cannot load a remote image with Android.

  4. Don Thorp 2011-04-15

    Abraham, please use Q&A for issues. I'm assuming that you're using the latest 1.6 release off of CI builds on the master branch? If you are and having a problem, create a Q&A ticket with an example of what's not working and reference this ticket. It's also best to include the build information of what you downloaded from the CI server.

  5. Thomas Huelbert 2011-04-15

    Titanium SDK version: 1.6.0 (01/04/11 08:01 e49700d) confirmed on a g1 (1.6) droid 1 (2.2.1) and the emulator running 2.1. moved test to QATests app.

  6. Thomas Huelbert 2011-04-15

    forgot to add 1.5.2 build checked - same devices - Titanium SDK version: 1.5.2 (01/05/11 08:30 981dff2)

  7. hal 2011-04-15

    Android 2.2, Ti SDK 1.6.0 (2nd Feb 2011), TiDev 1.2.2, Ubuntu

    As discussed with Don,

    donthorp: "android resources have an integer id. Since it's dying in TiReferenceDrawable, it's possible that a code path is wrong. This was added in 1.5. I think your code shows the real error. Not the NPE you were showing earlier."

       Ti.UI.setBackgroundColor('#ffffff');
        
       var win  = Ti.UI.createWindow();
       win.open();
       win.show();
       
       var thisURL = "module=MultiSites&action=getEvolutionGraph&period=day&date=2011-01-04,2011-02-02&evolutionBy=visits&columns=nb_visits&idSite=7&idsite=7&viewDataTable=sparkline";
       
       var paramArray = thisURL.split("&");
       for(var i=0,ilen=paramArray.length;i<ilen;i++){
           var thisKeyValue = paramArray[i].split("=");
           thisKeyValue[1] = Ti.Network.encodeURIComponent(thisKeyValue[1]);
           paramArray[i] = thisKeyValue.join("=");
       }
       var encodedURI = paramArray.join("&");
       var encodedURL = "http://demo.piwik.org/index.php?" + encodedURI;
       Ti.API.info(encodedURL);
       
       var imageView = Ti.UI.createImageView({
           width: 100,
           height: 25,
           image: encodedURL
       });
        
       win.add(imageView);
       

    http://pastebin.com/HvW2YVqq">Trace output

  8. hal 2011-04-15

    To be clear, the above code demonstrates a bug

  9. Jick Steen 2011-04-15

    Is it possible to reopen this Ticket? I'm a bit afraid it'll be forgotten.

  10. Bill Dawson 2011-04-15

    The second set of code is indeed a failcase. Re-opening.

  11. Bill Dawson 2011-04-15

    Re-closing. The failures here (in the second use case above) are not related to the URI. They are a combination of two other problems: #3093 and #3094

  12. Francisco Antonio Duran Ramirez 2011-08-08

    Associated HD ticket

    There is an ENT customer relying on this, http://appc.me/c/APP-938876

    Problem

    Remote images in android are not been loading in imageview, setting image property

    Target environment

    {noformat} Product: Mobile Titanium SDK: Mobile 1.7.2 Platform OS: Android Platform OS Version: 2.2.3 {noformat}

    Tested on

    device HTC Dream and Emulator HVGA

    Repro Sequence

        Titanium.UI.setBackgroundColor('#000');
        
        var win = Titanium.UI.createWindow({
            title : 'Tab 1',
            backgroundColor : '#fff'
        });
        
        if(Ti.Platform.name == 'iPhone OS') {
            var send1 = Titanium.UI.createButton({
                backgroundImage : 'KS_nav_ui.png',
                backgroundSelectedImage : 'KS_nav_views.png',
                width : 64, //widthRatioChat,
                height : 31, // heightRatioChat,
                right : 5, // widthRatioChat,
                bottom : 150
            });
            win.add(send1);
        
        } else {
        
            //var image_file =Ti.Filesystem.getFile(Titanium.Filesystem.resourcesDirectory,'KS_nav_ui.png');
                //var image_file ='http://profile.ak.fbcdn.net/hprofile-ak-snc4/273498_100001935964499_4315275_q.jpg';
        //Ti.Filesystem.getFile(Titanium.Filesystem.resourcesDirectory,'KS_nav_ui.png');
            //Ti.API.info('>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> '+image_file);
        
            var send = Titanium.UI.createImageView({
                image :'http://profile.ak.fbcdn.net/hprofile-ak-snc4/273498_100001935964499_4315275_q.jpg',
                width : 64, //widthRatioChat,
                height : 31, //heightRatioChat,
                right : 5, //widthRatioChat,
                bottom : 50
            });
            win.add(send);
        }
        
        win.open();
        
  13. Natalie Huynh 2011-08-25

    Fails on Motorola Xoom 3.2 I/ActivityManager( 142): Starting: Intent { cmp=com.appcelerator.qts/org.appcelerator.titanium.TiActivity (has extras) } from pid 30368 D/KrollContext(30368): (kroll$12: app://tests/xplat/2653.js) [4292,235984] Running evaluated script: app://tests/xplat/2653.js E/TiUIImageView(30368): (main) [53,236037] URISyntaxException for url http://chart.apis.google.com/chart?chco=666666,555555,444444,333333,222222&cht=p&chd=t:36,15,12,10,26&chdl=xyz|abc|def|ghi|jkl&chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150 E/TiUIImageView(30368): java.net.URISyntaxException: Illegal character in query at index 110: http://chart.apis.google.com/chart?chco=666666,555555,444444,333333,222222&cht=p&chd=t:36,15,12,10,26&chdl=xyz|abc|def|ghi|jkl&chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150 E/TiUIImageView(30368): at java.net.URI.validateQuery(URI.java:432) E/TiUIImageView(30368): at java.net.URI.parseURI(URI.java:338) E/TiUIImageView(30368): at java.net.URI.(URI.java:70) E/TiUIImageView(30368): at ti.modules.titanium.ui.widget.TiUIImageView.setImage(TiUIImageView.java:582) E/TiUIImageView(30368): at ti.modules.titanium.ui.widget.TiUIImageView.processProperties(TiUIImageView.java:692) E/TiUIImageView(30368): at org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:526) E/TiUIImageView(30368): at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:425) E/TiUIImageView(30368): at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:417) E/TiUIImageView(30368): at org.appcelerator.titanium.proxy.TiViewProxy.getView(TiViewProxy.java:403) E/TiUIImageView(30368): at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:481) E/TiUIImageView(30368): at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:243) E/TiUIImageView(30368): at org.appcelerator.titanium.proxy.TiWindowProxy.handleMessage(TiWindowProxy.java:100) E/TiUIImageView(30368): at ti.modules.titanium.ui.WindowProxy.handleMessage(WindowProxy.java:96) E/TiUIImageView(30368): at android.os.Handler.dispatchMessage(Handler.java:95) E/TiUIImageView(30368): at org.appcelerator.titanium.TiMessageQueue.dispatchMessage(TiMessageQueue.java:320) E/TiUIImageView(30368): at org.appcelerator.titanium.TiMessageQueue.dispatchPendingMessages(TiMessageQueue.java:304) E/TiUIImageView(30368): at org.appcelerator.titanium.TiMessageQueue$2.getResult(TiMessageQueue.java:172) E/TiUIImageView(30368): at org.appcelerator.titanium.TiMessageQueue.sendBlockingMessage(TiMessageQueue.java:196) E/TiUIImageView(30368): at org.appcelerator.titanium.kroll.KrollContext.evalFile(KrollContext.java:277) E/TiUIImageView(30368): at org.appcelerator.titanium.kroll.KrollBridge.evalFile(KrollBridge.java:149) E/TiUIImageView(30368): at org.appcelerator.titanium.TiContext.evalFile(TiContext.java:190) E/TiUIImageView(30368): at org.appcelerator.titanium.TiContext.evalFile(TiContext.java:210) E/TiUIImageView(30368): at ti.modules.titanium.ui.TiUIWindow.handleWindowCreated(TiUIWindow.java:230) E/TiUIImageView(30368): at ti.modules.titanium.ui.TiUIWindow.windowCreated(TiUIWindow.java:222) E/TiUIImageView(30368): at org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:31) E/TiUIImageView(30368): at org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:271) E/TiUIImageView(30368): at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:300) E/TiUIImageView(30368): at android.app.Activity.performCreate(Activity.java:4397) E/TiUIImageView(30368): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1048) E/TiUIImageView(30368): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1779) E/TiUIImageView(30368): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1831) E/TiUIImageView(30368): at android.app.ActivityThread.access$500(ActivityThread.java:122) E/TiUIImageView(30368): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1024) E/TiUIImageView(30368): at android.os.Handler.dispatchMessage(Handler.java:99) E/TiUIImageView(30368): at android.os.Looper.loop(Looper.java:132) E/TiUIImageView(30368): at android.app.ActivityThread.main(ActivityThread.java:4123) E/TiUIImageView(30368): at java.lang.reflect.Method.invokeNative(Native Method) E/TiUIImageView(30368): at java.lang.reflect.Method.invoke(Method.java:491) E/TiUIImageView(30368): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841) E/TiUIImageView(30368): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599) E/TiUIImageView(30368): at dalvik.system.NativeStart.main(Native Method) W/TiDrawableReference(30368): (main) [4,236041] Bitmap bounds could not be determined. If bitmap is loaded, it won't be scaled. E/TiDrawableReference(30368): (main) [2,236043] Problem opening stream with url http://chart.apis.google.com/chart?chco=666666,555555,444444,333333,222222&cht=p&chd=t:36,15,12,10,26&chdl=xyz|abc|def|ghi|jkl&chdlp=b&chf=c,s,ffffff|bg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150: java.net.URISyntaxException: Invalid % sequence: %|1 in query at index 178: http://chart.apis.google.com/chart?chco=666666,555555,444444,333333,222222&cht=p&chd=t:36,15,12,10,26&chdl=xyz%7Cabc%7Cdef%7Cghi%7Cjkl&chdlp=b&chf=c,s,ffffff%7Cbg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150 E/TiDrawableReference(30368): java.io.IOException: java.net.URISyntaxException: Invalid % sequence: %|1 in query at index 178: http://chart.apis.google.com/chart?chco=666666,555555,444444,333333,222222&cht=p&chd=t:36,15,12,10,26&chdl=xyz%7Cabc%7Cdef%7Cghi%7Cjkl&chdlp=b&chf=c,s,ffffff%7Cbg,s,ffffff&chl=36%|15%|12%|10%|26%&chs=288x150
  14. Alan Vaghti 2011-08-26

    Also failed on a Samsung Galaxy 10.1 running 3.1 with SDK 1.8.0.v20110819142548.
  15. Wilson Luu 2011-12-16

    Bug persists on: SDK build: 1.8.0.1.v20111216124633 Device: LG Slate (3.1) Runtime: V8 However, using 1.8.0.1.v20111216124633, I was able to see the pie chart on Droid 1 (2.2.2)
  16. Paul Dowsett 2012-02-18

    Tested with 1.8.1 + Android 2.2, and still fails. Have updated the environment field to reflect this.
  17. Allen Yeung 2012-04-23

    Resolved by https://github.com/appcelerator/titanium_mobile/pull/2047 Test case should now say "File not found" instead of a URI exception.
  18. Eric Merriman 2012-06-19

    Getting the following: D/dalvikvm( 8231): Trying to load lib /data/data/com.appcelerator.timob2653/lib/libtiverify.so 0x41319150 D/dalvikvm( 8231): Added shared lib /data/data/com.appcelerator.timob2653/lib/libtiverify.so 0x41319150 I/TiRootActivity( 8231): (main) [0,0] checkpoint, on root activity resume. activity = com.appcelerator.timob2653.Timob2653Activity@4134c130 V/PhoneStatusBar( 203): setLightsOn(true) W/InputManagerService( 136): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@4172aa18 (uid=10031 pid=364) E/TiDownloadManager( 8231): (pool-3-thread-1) [76,76] Exception downloading http://chart.apis.google.com/chart?chco=666666%2C555555%2C444444%2C333333%2C222222&%3Bcht=p&%3Bchd=t%3A36%2C15%2C12%2C10%2C26&%3Bchdl=xyz%7Cabc%7Cdef%7Cghi%7Cjkl&%3Bchdlp=b&%3Bchf=c%2Cs%2Cffffff%7Cbg%2Cs%2Cffffff&%3Bchl=36%EF%BF%BD%EF%BF%BD5%EF%BF%BD%EF%BF%BD2%EF%BF%BD%EF%BF%BD0%EF%BF%BD%EF%BF%BD6%EF%BF%BD%EF%BF%BDmp%3Bchs=288x150 E/TiDownloadManager( 8231): java.io.FileNotFoundException: http://chart.apis.google.com/chart?chco=666666%2C555555%2C444444%2C333333%2C222222&%3Bcht=p&%3Bchd=t%3A36%2C15%2C12%2C10%2C26&%3Bchdl=xyz%7Cabc%7Cdef%7Cghi%7Cjkl&%3Bchdlp=b&%3Bchf=c%2Cs%2Cffffff%7Cbg%2Cs%2Cffffff&%3Bchl=36%EF%BF%BD%EF%BF%BD5%EF%BF%BD%EF%BF%BD2%EF%BF%BD%EF%BF%BD0%EF%BF%BD%EF%BF%BD6%EF%BF%BD%EF%BF%BDmp%3Bchs=288x150 E/TiDownloadManager( 8231): at libcore.net.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:177) E/TiDownloadManager( 8231): at java.net.URL.openStream(URL.java:462) E/TiDownloadManager( 8231): at org.appcelerator.titanium.util.TiDownloadManager$DownloadJob.run(TiDownloadManager.java:157) E/TiDownloadManager( 8231): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) E/TiDownloadManager( 8231): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) E/TiDownloadManager( 8231): at java.lang.Thread.run(Thread.java:856) I/ActivityManager( 136): Displayed com.appcelerator.timob2653/.Timob2653Activity: +2s796ms
  19. Eric Merriman 2012-06-19

    Verified fixed with SDK 2.1.0.v20120618154152 and using new URL: http://chart.apis.google.com/chart?cht=r&chs=200x200&chd=t:77,66,15,0,31,48,100,77%7C20,36,100,2,0,100&chco=FF0000,FF9900&chls=2.0,4.0,0.0%7C2.0,4.0,0.0&chxt=x&chxl=0:%7C0%7C45%7C90%7C135%7C180%7C225%7C270%7C315&chxr=0,0.0,360.0

JSON Source