{ "id": "169684", "key": "TIMOB-25219", "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": "20115", "name": "Release 7.3.0", "archived": false, "released": true, "releaseDate": "2018-08-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-05-19T16:13:05.000+0000", "created": "2017-09-01T13:54:05.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "updated": "2018-07-04T19:43:15.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": "When referencing a file that does not exist (let's say in a Ti.UI.ImageView), we should only log one error message to say it does not exist - which we do, but we also log like 30 lines exception-logs and two additional warnings that do not help the developer in any case and only spams the console. To clean this little but annoying issue, we could just adjust the log by leaving out the 3rd parameter that uses the exception-log. \r\n\r\nExample of a log:\r\n{code}\r\n[ERROR] TiDrawableReference: (main) [100,100] Problem opening stream with url logo.png: Resources/logo.png\r\n[ERROR] TiDrawableReference: java.io.FileNotFoundException: Resources/logo.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:347)\r\n[ERROR] TiDrawableReference: \tat android.content.res.AssetManager.open(AssetManager.java:321)\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:860)\r\n[ERROR] TiDrawableReference: \tat org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:316)\r\n[ERROR] TiDrawableReference: \tat org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:300)\r\n[ERROR] TiDrawableReference: \tat org.appcelerator.titanium.view.TiDrawableReference.getBitmap(TiDrawableReference.java:284)\r\n[ERROR] TiDrawableReference: \tat org.appcelerator.titanium.view.TiDrawableReference.getDrawable(TiDrawableReference.java:497)\r\n[ERROR] TiDrawableReference: \tat ti.modules.titanium.ui.widget.TiToolbar.handleSetLogo(TiToolbar.java:238)\r\n[ERROR] TiDrawableReference: \tat ti.modules.titanium.ui.widget.TiToolbar.setLogo(TiToolbar.java:227)\r\n[ERROR] TiDrawableReference: \tat ti.modules.titanium.ui.widget.TiToolbar.propertyChanged(TiToolbar.java:559)\r\n[ERROR] TiDrawableReference: \tat org.appcelerator.kroll.KrollProxy.firePropertyChanged(KrollProxy.java:928)\r\n[ERROR] TiDrawableReference: \tat org.appcelerator.kroll.KrollProxy.onPropertyChanged(KrollProxy.java:1016)\r\n[ERROR] TiDrawableReference: \tat org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method)\r\n[ERROR] TiDrawableReference: \tat org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:62)\r\n[ERROR] TiDrawableReference: \tat org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:921)\r\n[ERROR] TiDrawableReference: \tat org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1144)\r\n[ERROR] TiDrawableReference: \tat org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:363)\r\n[ERROR] TiDrawableReference: \tat org.appcelerator.titanium.proxy.TiWindowProxy.handleMessage(TiWindowProxy.java:116)\r\n[ERROR] TiDrawableReference: \tat ti.modules.titanium.ui.WindowProxy.handleMessage(WindowProxy.java:452)\r\n[ERROR] TiDrawableReference: \tat android.os.Handler.dispatchMessage(Handler.java:98)\r\n[ERROR] TiDrawableReference: \tat android.os.Looper.loop(Looper.java:154)\r\n[ERROR] TiDrawableReference: \tat android.app.ActivityThread.main(ActivityThread.java:6119)\r\n[ERROR] TiDrawableReference: \tat java.lang.reflect.Method.invoke(Native Method)\r\n[ERROR] TiDrawableReference: \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)\r\n[ERROR] TiDrawableReference: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)\r\n[WARN] TiDrawableReference: (main) [0,100] Could not open stream to get bitmap\r\n[WARN] TiDrawableReference: (main) [0,100] Could not open stream to get bitmap\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: FileNotFoundExceptions should not be inside the Titanium log", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 1028, "state": "closed", "name": "2018 Sprint 09 SDK", "startDate": "2018-04-22T22:53:08.928Z", "endDate": "2018-05-06T22:53:00.000Z", "completeDate": "2018-05-07T00:02:15.883Z", "originBoardId": 114 }, { "id": 1018, "state": "closed", "name": "2018 Sprint 07 SDK", "startDate": "2018-03-25T21:59:36.637Z", "endDate": "2018-04-08T21:59:00.000Z", "completeDate": "2018-04-08T17:55:14.467Z", "originBoardId": 114 }, { "id": 1034, "state": "closed", "name": "2018 Sprint 10 SDK", "startDate": "2018-05-07T00:03:21.636Z", "endDate": "2018-05-21T00:03:00.000Z", "completeDate": "2018-05-20T20:54:58.928Z", "originBoardId": 114 }, { "id": 1021, "state": "closed", "name": "2018 Sprint 08 SDK", "startDate": "2018-04-08T17:57:36.122Z", "endDate": "2018-04-22T17:57:00.000Z", "completeDate": "2018-04-22T22:51:19.120Z", "originBoardId": 114 }, { "id": 1008, "state": "closed", "name": "2018 Sprint 06 SDK", "startDate": "2018-03-11T22:18:04.396Z", "endDate": "2018-03-25T22:18:00.000Z", "completeDate": "2018-03-25T21:52:36.683Z", "originBoardId": 216 } ], "comment": { "comments": [ { "id": "427526", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/9391", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2017-09-01T18:28:58.000+0000", "updated": "2017-09-01T18:28:58.000+0000" }, { "id": "434850", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~cwilliams], Can you please provide a backport.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-02-23T22:52:12.000+0000", "updated": "2018-02-23T22:52:12.000+0000" }, { "id": "437744", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nWaiting for merger to be enabled.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-05-17T20:26:57.000+0000", "updated": "2018-05-17T20:26:57.000+0000" }, { "id": "439009", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket.* Verified fix in SDK version {{7.3.0.v20180628132121}}\r\n\r\nTest and other information can be found at: https://github.com/appcelerator/titanium_mobile/pull/9391", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-07-04T19:43:06.000+0000", "updated": "2018-07-04T19:43:06.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }