{ "id": "169776", "key": "TIMOB-25284", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "19542", "description": "", "name": "Release 6.2.2", "archived": false, "released": true, "releaseDate": "2017-09-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-09-21T21:09:41.000+0000", "created": "2017-09-14T10:20:32.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "6.2.0", "android", "density-specific", "regression" ], "versions": [], "issuelinks": [ { "id": "56758", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "170135", "key": "TIMOB-25445", "fields": { "summary": "Error loading images from res-ldpi, res-hdpi, ect. folders on Android 7.1.1", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-08-30T02:22:24.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "density-specific resourced in 6.2.0 are not working - images in for example res-hdpi are not picked up. Images in the android/images folder work fine but in for example android/images/res-hdpi they are not picked up and I receive this error. When I build the same exact files in 6.1.2 it works fine\r\n\r\nExample of file structure: app/assets/android/images/res-hdpi/menu_home.png\r\n\r\n\r\n{code:java}\r\nERROR] : TiDrawableReference: (pool-10-thread-1) [948,948] Problem opening stream with url /images/menu_home.png: Resources/images/menu_home.png\r\n[ERROR] : TiDrawableReference: java.io.FileNotFoundException: Resources/images/menu_home.png\r\n[ERROR] : TiDrawableReference: \tat android.content.res.AssetManager.openAsset(Native Method)\r\n[ERROR] : TiDrawableReference: \tat android.content.res.AssetManager.open(AssetManager.java:313)\r\n[ERROR] : TiDrawableReference: \tat android.content.res.AssetManager.open(AssetManager.java:287)\r\n[ERROR] : TiDrawableReference: \tat org.appcelerator.titanium.util.TiFileHelper.openInputStream(TiFileHelper.java:222)\r\n[ERROR] : TiDrawableReference: \tat org.appcelerator.titanium.view.TiDrawableReference.getInputStream(TiDrawableReference.java:863)\r\n[ERROR] : TiDrawableReference: \tat org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:319)\r\n[ERROR] : TiDrawableReference: \tat org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:303)\r\n[ERROR] : TiDrawableReference: \tat org.appcelerator.titanium.util.TiLoadImageManager$LoadImageJob.run(TiLoadImageManager.java:128)\r\n[ERROR] : TiDrawableReference: \tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)\r\n[ERROR] : TiDrawableReference: \tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)\r\n[ERROR] : TiDrawableReference: \tat java.lang.Thread.run(Thread.java:818)\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android Images in density-specific resource folders are not picked ", "creator": { "name": "dieskim", "key": "dieskim", "displayName": "David van de Meer", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dieskim", "key": "dieskim", "displayName": "David van de Meer", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OS X\r\nNode.js Version = 6.10.3\r\nnpm Version = 3.10.10\r\nTitanium CLI\r\nCLI Version = 5.0.14\r\nTitanium SDK\r\nSDK Version = 6.2.0.GA\r\nTarget Platform = android emulator", "closedSprints": [ { "id": 948, "state": "closed", "name": "2017 Sprint 19 SDK", "startDate": "2017-09-10T21:24:51.562Z", "endDate": "2017-09-24T21:24:00.000Z", "completeDate": "2017-09-25T17:49:27.460Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "427904", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the issue is reproducible with images in density specific folders.\r\n\r\n{code}\r\n[ERROR] : [Pixel] TiDrawableReference: (pool-3-thread-1) [104,610] Problem opening stream with url mario.png: Resources/mario.png\r\n[ERROR] : [Pixel] TiDrawableReference: java.io.FileNotFoundException: Resources/mario.png\r\n[ERROR] : [Pixel] TiDrawableReference: \tat android.content.res.AssetManager.openAsset(Native Method)\r\n[ERROR] : [Pixel] TiDrawableReference: \tat android.content.res.AssetManager.open(AssetManager.java:347)\r\n[ERROR] : [Pixel] TiDrawableReference: \tat android.content.res.AssetManager.open(AssetManager.java:321)\r\n[ERROR] : [Pixel] TiDrawableReference: \tat org.appcelerator.titanium.util.TiFileHelper.openInputStream(TiFileHelper.java:222)\r\n[ERROR] : [Pixel] TiDrawableReference: \tat org.appcelerator.titanium.view.TiDrawableReference.getInputStream(TiDrawableReference.java:863)\r\n[ERROR] : [Pixel] TiDrawableReference: \tat org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:346)\r\n[ERROR] : [Pixel] TiDrawableReference: \tat org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:303)\r\n[ERROR] : [Pixel] TiDrawableReference: \tat org.appcelerator.titanium.util.TiLoadImageManager$LoadImageJob.run(TiLoadImageManager.java:128)\r\n[ERROR] : [Pixel] TiDrawableReference: \tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)\r\n[ERROR] : [Pixel] TiDrawableReference: \tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)\r\n[ERROR] : [Pixel] TiDrawableReference: \tat java.lang.Thread.run(Thread.java:761)\r\n[WARN] : [Pixel] TiDrawableReference: (pool-3-thread-1) [3,613] Could not open stream to get bitmap\r\n{code}\r\n\r\n{code}\r\n[ERROR] : [Pixel] TiDrawableReference: (pool-3-thread-1) [103,601] Problem opening stream with url /images/mario.png: Resources/images/mario.png\r\n[ERROR] : [Pixel] TiDrawableReference: java.io.FileNotFoundException: Resources/images/mario.png\r\n[ERROR] : [Pixel] TiDrawableReference: \tat android.content.res.AssetManager.openAsset(Native Method)\r\n[ERROR] : [Pixel] TiDrawableReference: \tat android.content.res.AssetManager.open(AssetManager.java:347)\r\n[ERROR] : [Pixel] TiDrawableReference: \tat android.content.res.AssetManager.open(AssetManager.java:321)\r\n[ERROR] : [Pixel] TiDrawableReference: \tat org.appcelerator.titanium.util.TiFileHelper.openInputStream(TiFileHelper.java:222)\r\n[ERROR] : [Pixel] TiDrawableReference: \tat org.appcelerator.titanium.view.TiDrawableReference.getInputStream(TiDrawableReference.java:863)\r\n[ERROR] : [Pixel] TiDrawableReference: \tat org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:346)\r\n[ERROR] : [Pixel] TiDrawableReference: \tat org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:303)\r\n[ERROR] : [Pixel] TiDrawableReference: \tat org.appcelerator.titanium.util.TiLoadImageManager$LoadImageJob.run(TiLoadImageManager.java:128)\r\n[ERROR] : [Pixel] TiDrawableReference: \tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)\r\n[ERROR] : [Pixel] TiDrawableReference: \tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)\r\n[ERROR] : [Pixel] TiDrawableReference: \tat java.lang.Thread.run(Thread.java:761)\r\n[WARN] : [Pixel] TiDrawableReference: (pool-3-thread-1) [2,603] Could not open stream to get bitmap\r\n{code}\r\n\r\nStudio Ver: 4.9.1.201707200100\r\nSDK Ver: 6.2.0.GA\r\nOS Ver: 10.12.3\r\nXcode Ver: Xcode 8.3.3\r\nAppc NPM: 4.2.9\r\nAppc CLI: 6.2.4\r\nTi CLI Ver: 5.0.14\r\nAlloy Ver: 1.9.14\r\nNode Ver: 6.11.2\r\nJava Ver: 1.8.0_101\r\nDevices: ⇨ google Nexus 5 --- Android 6.0.1\r\n ⇨ google Pixel --- Android 7.1.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-14T18:51:27.000+0000", "updated": "2017-09-14T20:56:41.000+0000" }, { "id": "427916", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/9434\r\nPR (6.3.x): https://github.com/appcelerator/titanium_mobile/pull/9436\r\nPR (6.2.x): https://github.com/appcelerator/titanium_mobile/pull/9435", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-15T03:09:49.000+0000", "updated": "2017-09-15T03:09:49.000+0000" }, { "id": "427956", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR passed for all PR's.\r\nPR's merged.\r\n\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-15T20:41:33.000+0000", "updated": "2017-09-18T18:11:52.000+0000" }, { "id": "428032", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix in SDK 6.2.1.v20170915135328.\r\n\r\nFor steps please refer PR.\r\n\r\nStudio Ver: 4.9.1.201707200100\r\nSDK Ver: 6.2.1.v20170915135328\r\nOS Ver: 10.12.3\r\nXcode Ver: Xcode 8.3.3\r\nAppc NPM: 4.2.9\r\nAppc CLI: 6.2.4\r\nTi CLI Ver: 5.0.14\r\nAlloy Ver: 1.9.14\r\nNode Ver: 7.10.1\r\nJava Ver: 1.8.0_101\r\nDevices: ⇨ google Pixel --- Android 7.1.1\r\n ⇨ google Nexus 5 --- Android 6.0.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-18T18:13:24.000+0000", "updated": "2017-09-18T18:13:24.000+0000" }, { "id": "428120", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to change versions", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-09-19T21:55:35.000+0000", "updated": "2017-09-19T21:55:35.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }