{ "id": "170396", "key": "TIMOB-25540", "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": "20060", "description": "", "name": "Release 7.0.2", "archived": false, "released": true, "releaseDate": "2018-02-09" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-01-04T02:12:59.000+0000", "created": "2017-11-20T17:55:56.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "17609", "description": "", "name": "Release 7.0.0", "archived": false, "released": true, "releaseDate": "2017-12-07" }, { "id": "19906", "description": "", "name": "Release 6.3.0", "archived": false, "released": true, "releaseDate": "2017-11-01" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-01-25T19:51:52.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": "- {{onTrimMemory}} can cause an exception when attempting to release memory:\r\n{code}\r\nFATAL EXCEPTION: main\r\nProcess: com.titanium.test, PID: 7535\r\njava.lang.IllegalStateException: org.appcelerator.titanium.util.TiBlobLruCache.sizeOf() is reporting inconsistent results!\r\n at android.support.v4.util.LruCache.trimToSize(LruCache.java:168)\r\n at android.support.v4.util.LruCache.evictAll(LruCache.java:272)\r\n at org.appcelerator.titanium.TiApplication.onTrimMemory(TiApplication.java:417)\r\n at android.app.ActivityThread.handleTrimMemory(ActivityThread.java:5369)\r\n at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1800)\r\n at android.os.Handler.dispatchMessage(Handler.java:105)\r\n at android.os.Looper.loop(Looper.java:164)\r\n at android.app.ActivityThread.main(ActivityThread.java:6541)\r\n at java.lang.reflect.Method.invoke(Native Method)\r\n at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)\r\n at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)\r\n{code}\r\n\r\n*TEST CASE*\r\n- Download an image first\r\n- Run app and select image from Downloads folder\r\n- Press back to exit app\r\n{code:js}\r\nTi.Media.openPhotoGallery({\r\n success:function(event) {\r\n var image = event.media.imageAsResized(300, 300);\r\n console.log('resized image');\r\n }\r\n});\r\n{code}\r\n\r\nNOTE: this is happening on Android 8.0", "attachment": [], "flagged": false, "summary": "Android: onTrimMemory can cause crash", "creator": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 978, "state": "closed", "name": "2017 Sprint 25 SDK", "startDate": "2017-12-03T23:22:15.144Z", "endDate": "2017-12-17T23:22:00.000Z", "completeDate": "2017-12-18T22:32:02.770Z", "originBoardId": 114 }, { "id": 968, "state": "closed", "name": "2017 Sprint 23 SDK", "startDate": "2017-11-05T16:37:25.071Z", "endDate": "2017-11-19T16:37:00.000Z", "completeDate": "2017-11-20T18:57:56.565Z", "originBoardId": 114 }, { "id": 984, "state": "closed", "name": "2017 Sprint 26 SDK", "startDate": "2017-12-17T22:34:59.726Z", "endDate": "2017-12-31T22:34:00.000Z", "completeDate": "2018-01-02T16:57:05.655Z", "originBoardId": 114 }, { "id": 985, "state": "closed", "name": "2018 Sprint 01 SDK", "startDate": "2017-12-31T16:58:54.631Z", "endDate": "2018-01-14T16:58:00.000Z", "completeDate": "2018-01-17T22:44:27.028Z", "originBoardId": 114 }, { "id": 975, "state": "closed", "name": "2017 Sprint 24 SDK", "startDate": "2017-11-19T18:59:24.352Z", "endDate": "2017-12-03T18:59:00.000Z", "completeDate": "2017-12-04T23:20:14.151Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "431044", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/9620", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-20T18:02:39.000+0000", "updated": "2017-11-20T18:02:39.000+0000" }, { "id": "433529", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "7_0_X: https://github.com/appcelerator/titanium_mobile/pull/9764", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-01-23T17:23:27.000+0000", "updated": "2018-01-23T17:23:27.000+0000" }, { "id": "433544", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested 7.0.2 backport version, and FR passed.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-01-23T19:14:59.000+0000", "updated": "2018-01-23T19:14:59.000+0000" }, { "id": "433688", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Fix verified in 7.0.2 RC version and master.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-01-25T19:51:52.000+0000", "updated": "2018-01-25T19:51:52.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }