{ "id": "78751", "key": "TIMOB-4889", "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": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2013-03-06T21:25:32.000+0000", "created": "2011-08-04T09:48:56.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api" ], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" }, { "id": "13273", "description": "Release 2.0.2", "name": "Release 2.0.2", "archived": false, "released": true, "releaseDate": "2012-05-31" } ], "issuelinks": [ { "id": "26418", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "110636", "key": "TIMOB-12961", "fields": { "summary": "Android: TiNinePatchHelper crash after upgrading to 3.0.2", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T18:33:44.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": "h1. Problem\r\nUsing a 24-bit PNG as the backgroundImage of a view causes the app to crash on 1.7.2 on device.\r\n\r\nh2. Reproduction\r\n1. Download the following image to your resources directory: http://tothsolutions.com/logostrip.png (note: if you specify the remote image, the app will NOT crash. But if you save it locally and use that image, it will crash.)\r\n2. Drop the following in an app.js, and run it using 1.7.2. The app will crash.\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow();\r\nwin.add(Ti.UI.createView({\r\n top: 0, left: 0, right: 0, height: 33,\r\n backgroundImage: 'logostrip.png'\r\n}));\r\nwin.open();\r\n{code}\r\n\r\nh2. Error Log\r\n{code:title=Error Log}\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): (main) [218,608] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.navtrak.navtrakmobile/com.navtrak.navtrakmobile.NavtrakActivity}: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0; Titanium 1.7.2,2011/07/21 09:36,97c3689\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.navtrak.navtrakmobile/com.navtrak.navtrakmobile.NavtrakActivity}: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2757)\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2775)\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): at android.app.ActivityThread.access$2500(ActivityThread.java:130)\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2121)\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): at android.os.Handler.dispatchMessage(Handler.java:99)\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): at android.os.Looper.loop(Looper.java:143)\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): at android.app.ActivityThread.main(ActivityThread.java:4773)\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): at java.lang.reflect.Method.invokeNative(Native Method)\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): at java.lang.reflect.Method.invoke(Method.java:521)\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): at dalvik.system.NativeStart.main(Native Method)\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): Caused by: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:257)\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): at java.util.ArrayList.get(ArrayList.java:311)\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): at org.appcelerator.titanium.util.TiNinePatchHelper.createChunk(TiNinePatchHelper.java:187)\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): at org.appcelerator.titanium.util.TiNinePatchHelper.process(TiNinePatchHelper.java:50)\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): at org.appcelerator.titanium.util.TiFileHelper.loadDrawable(TiFileHelper.java:320)\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): at org.appcelerator.titanium.util.TiFileHelper.loadDrawable(TiFileHelper.java:260)\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): at org.appcelerator.titanium.util.TiUIHelper.buildBackgroundDrawable(TiUIHelper.java:447)\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): at org.appcelerator.titanium.view.TiUIView.handleBackgroundImage(TiUIView.java:655)\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): at org.appcelerator.titanium.view.TiUIView.processProperties(TiUIView.java:453)\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): at ti.modules.titanium.ui.widget.TiView.processProperties(TiView.java:38)\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): at org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:519)\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:378)\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:370)\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): at org.appcelerator.titanium.proxy.TiViewProxy.getView(TiViewProxy.java:356)\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:434)\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:196)\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): at org.appcelerator.titanium.proxy.TiWindowProxy.handleMessage(TiWindowProxy.java:100)\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): at ti.modules.titanium.ui.WindowProxy.handleMessage(WindowProxy.java:86)\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): at android.os.Handler.dispatchMessage(Handler.java:95)\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): at org.appcelerator.titanium.TiMessageQueue.dispatchMessage(TiMessageQueue.java:320)\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): at org.appcelerator.titanium.TiMessageQueue.dispatchPendingMessages(TiMessageQueue.java:304)\r\n08-04 11:33:29.649: ERROR/TiUncaughtHandler(11597): at org.appcelerator.titanium.TiMessageQueue$2.getResult(TiMessageQueue.java:172)\r\n{code}\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: View.backgroundImage With 24-bit PNG Crashes App with 1.7.2", "creator": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "environment": "Tested with the official 1.7.2 release\r\nWORKS in Android Emulator 2.2\r\nBROKEN on Android Device Epic 4G 2.2\r\nBROKEN on Android Device Fascinate 2.2\r\nBROKEN on Android Device Droid X 2.2", "comment": { "comments": [ { "id": "162030", "author": { "name": "jtoth", "key": "jtoth", "displayName": "Justin Toth", "active": true, "timeZone": "America/New_York" }, "body": "For most Android devices, changing the PNG-24 to PNG-32 or to JPG resolves the issue. However, one user with a Droid X running Android 2.3.3 still receives the error below even with the image converted to a JPG. So this seems to be a larger issue than just with PNG-24's.", "updateAuthor": { "name": "jtoth", "key": "jtoth", "displayName": "Justin Toth", "active": true, "timeZone": "America/New_York" }, "created": "2011-08-05T12:26:58.000+0000", "updated": "2011-08-05T12:26:58.000+0000" }, { "id": "197627", "author": { "name": "adreamer", "key": "adreamer", "displayName": "Sungil Kim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It seems like the picture with a black border is considered as 9-patch image...\r\nStill has this problem at 2.0.2GA.", "updateAuthor": { "name": "adreamer", "key": "adreamer", "displayName": "Sungil Kim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-07T01:15:51.000+0000", "updated": "2012-06-07T01:15:51.000+0000" }, { "id": "233665", "author": { "name": "trevize", "key": "trevize", "displayName": "Daniel Guy", "active": true, "timeZone": "America/New_York" }, "body": "This appears to still happen in 3.0. Any timing on a fix?", "updateAuthor": { "name": "trevize", "key": "trevize", "displayName": "Daniel Guy", "active": true, "timeZone": "America/New_York" }, "created": "2013-01-09T06:28:35.000+0000", "updated": "2013-01-09T06:28:35.000+0000" }, { "id": "241026", "author": { "name": "trevize", "key": "trevize", "displayName": "Daniel Guy", "active": true, "timeZone": "America/New_York" }, "body": "I see that this was closed as a duplicate issue. Can you point me to the issue that we should be tracking in its place?", "updateAuthor": { "name": "trevize", "key": "trevize", "displayName": "Daniel Guy", "active": true, "timeZone": "America/New_York" }, "created": "2013-03-06T21:38:59.000+0000", "updated": "2013-03-06T21:38:59.000+0000" }, { "id": "241029", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "[TIMOB-12961], which is a private ticket.", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2013-03-06T21:40:53.000+0000", "updated": "2013-03-06T21:42:00.000+0000" }, { "id": "241031", "author": { "name": "trevize", "key": "trevize", "displayName": "Daniel Guy", "active": true, "timeZone": "America/New_York" }, "body": "Is there any way that ticket can be made public, or at least any way we can be notified when this is scheduled to be fixed and when it actually is fixed?", "updateAuthor": { "name": "trevize", "key": "trevize", "displayName": "Daniel Guy", "active": true, "timeZone": "America/New_York" }, "created": "2013-03-06T21:44:03.000+0000", "updated": "2013-03-06T21:44:03.000+0000" }, { "id": "241033", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/3939", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-06T21:48:21.000+0000", "updated": "2013-03-06T21:48:21.000+0000" }, { "id": "241034", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "One of us will post here when that ticket is resolved. There's a PR open for it already. https://github.com/appcelerator/titanium_mobile/pull/3939", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2013-03-06T21:48:31.000+0000", "updated": "2013-03-06T21:48:31.000+0000" }, { "id": "242000", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "The ticket was resolved and verified.", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2013-03-13T17:17:15.000+0000", "updated": "2013-03-13T17:17:15.000+0000" }, { "id": "242020", "author": { "name": "trevize", "key": "trevize", "displayName": "Daniel Guy", "active": true, "timeZone": "America/New_York" }, "body": "Thanks Dawson. Will the fix be in 3.1 or a different sdk version?", "updateAuthor": { "name": "trevize", "key": "trevize", "displayName": "Daniel Guy", "active": true, "timeZone": "America/New_York" }, "created": "2013-03-13T17:38:15.000+0000", "updated": "2013-03-13T17:38:15.000+0000" }, { "id": "242025", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "3.1.0.", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2013-03-13T17:45:22.000+0000", "updated": "2013-03-13T17:45:22.000+0000" }, { "id": "414872", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T18:33:44.000+0000", "updated": "2017-03-22T18:33:44.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }