Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5191] Problem opening stream with url /images/ic_more_horiz_white

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2017-09-14T20:57:44.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterAndreas Pingas
AssigneeShak Hossain
Created2017-09-14T09:57:49.000+0000
Updated2017-09-14T21:00:56.000+0000

Description

Hello everyone, I get this bug: [ERROR] : TiDrawableReference: (pool-3-thread-2) [101,12409] Problem opening stream with url /images/ic_more_horiz_white_24dp.png: Resources/images/ic_more_horiz_white_24dp.png [ERROR] : TiDrawableReference: java.io.FileNotFoundException: Resources/images/ic_more_horiz_white_24dp.png [ERROR] : TiDrawableReference: at android.content.res.AssetManager.openAsset(Native Method) [ERROR] : TiDrawableReference: at android.content.res.AssetManager.open(AssetManager.java:318) [ERROR] : TiDrawableReference: at android.content.res.AssetManager.open(AssetManager.java:292) [ERROR] : TiDrawableReference: at org.appcelerator.titanium.util.TiFileHelper.openInputStream(TiFileHelper.java:222) [ERROR] : TiDrawableReference: at org.appcelerator.titanium.view.TiDrawableReference.getInputStream(TiDrawableReference.java:863) [ERROR] : TiDrawableReference: at org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:346) [ERROR] : TiDrawableReference: at org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:303) [ERROR] : TiDrawableReference: at org.appcelerator.titanium.util.TiLoadImageManager$LoadImageJob.run(TiLoadImageManager.java:128) [ERROR] : TiDrawableReference: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) [ERROR] : TiDrawableReference: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) [ERROR] : TiDrawableReference: at java.lang.Thread.run(Thread.java:818) This happens when you create an image view on android and you set the image it does not come up from /images/res-hdpi. However, if in /images/ it works properly. Do you have any solution to this issue? Thanks in advance. Have a great day!

Comments

  1. Eric Merriman 2017-09-14

    We are looking at this.
  2. Lokesh Choudhary 2017-09-14

    Verified the issue is reproducible with images in density specific folders.
       [ERROR] :  [Pixel] TiDrawableReference: (pool-3-thread-1) [104,610] Problem opening stream with url mario.png: Resources/mario.png
       [ERROR] :  [Pixel] TiDrawableReference: java.io.FileNotFoundException: Resources/mario.png
       [ERROR] :  [Pixel] TiDrawableReference: 	at android.content.res.AssetManager.openAsset(Native Method)
       [ERROR] :  [Pixel] TiDrawableReference: 	at android.content.res.AssetManager.open(AssetManager.java:347)
       [ERROR] :  [Pixel] TiDrawableReference: 	at android.content.res.AssetManager.open(AssetManager.java:321)
       [ERROR] :  [Pixel] TiDrawableReference: 	at org.appcelerator.titanium.util.TiFileHelper.openInputStream(TiFileHelper.java:222)
       [ERROR] :  [Pixel] TiDrawableReference: 	at org.appcelerator.titanium.view.TiDrawableReference.getInputStream(TiDrawableReference.java:863)
       [ERROR] :  [Pixel] TiDrawableReference: 	at org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:346)
       [ERROR] :  [Pixel] TiDrawableReference: 	at org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:303)
       [ERROR] :  [Pixel] TiDrawableReference: 	at org.appcelerator.titanium.util.TiLoadImageManager$LoadImageJob.run(TiLoadImageManager.java:128)
       [ERROR] :  [Pixel] TiDrawableReference: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
       [ERROR] :  [Pixel] TiDrawableReference: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
       [ERROR] :  [Pixel] TiDrawableReference: 	at java.lang.Thread.run(Thread.java:761)
       [WARN] :   [Pixel] TiDrawableReference: (pool-3-thread-1) [3,613] Could not open stream to get bitmap
       
  3. Lokesh Choudhary 2017-09-14

JSON Source