[AC-5191] Problem opening stream with url /images/ic_more_horiz_white
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2017-09-14T20:57:44.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Andreas Pingas |
Assignee | Shak Hossain |
Created | 2017-09-14T09:57:49.000+0000 |
Updated | 2017-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!
We are looking at this.
Verified the issue is reproducible with images in density specific folders.