{ "id": "139630", "key": "AC-1124", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2015-07-21T21:14:17.000+0000", "created": "2014-11-12T19:28:18.000+0000", "labels": [ "Label", "Samsung", "TCSupportTriage", "android", "longpress" ], "versions": [], "issuelinks": [], "assignee": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "updated": "2016-03-08T07:37:29.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Long pressing on any label will cause app to crash on a Samsung Galaxy S4 Mini. I have included sample code that reproduces the issue as well as the console errors when it occurs below.\r\n\r\n{code:title=CrashS4Mini|borderStyle=solid}\r\nvar win = Titanium.UI.createWindow({ \r\n title:'Window',\r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar label = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'Long Press to Crash Me',\r\n\tfont:{fontSize:25,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n\twidth:'auto'\r\n});\r\n\r\nwin.add(label);\r\nwin.open();\r\n{code}\r\n\r\n\r\n\r\n{quote}\r\n[ERROR] : TiApplication: (main) [10813,10813] Sending event: exception on thread: main msg:java.lang.StringIndexOutOfBoundsException: length=22; regionStart=-1; regionLength=0; Titanium 3.4.1,2014/10/28 14:57,5172fc7\r\n[ERROR] : TiApplication: java.lang.StringIndexOutOfBoundsException: length=22; regionStart=-1; regionLength=0\r\n[ERROR] : TiApplication: \tat java.lang.String.startEndAndLength(String.java:588)\r\n[ERROR] : TiApplication: \tat java.lang.String.substring(String.java:1475)\r\n[ERROR] : TiApplication: \tat java.lang.String.subSequence(String.java:1862)\r\n[ERROR] : TiApplication: \tat android.widget.TextView.getTransformedText(TextView.java:10141)\r\n[ERROR] : TiApplication: \tat android.widget.Editor.performLongClick(Editor.java:1042)\r\n[ERROR] : TiApplication: \tat android.widget.TextView.performLongClick(TextView.java:10153)\r\n[ERROR] : TiApplication: \tat android.view.View$CheckForLongPress.run(View.java:19433)\r\n[ERROR] : TiApplication: \tat android.os.Handler.handleCallback(Handler.java:733)\r\n[ERROR] : TiApplication: \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\n[ERROR] : TiApplication: \tat android.os.Looper.loop(Looper.java:146)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.main(ActivityThread.java:5653)\r\n[ERROR] : TiApplication: \tat java.lang.reflect.Method.invokeNative(Native Method)\r\n[ERROR] : TiApplication: \tat java.lang.reflect.Method.invoke(Method.java:515)\r\n[ERROR] : TiApplication: \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)\r\n[ERROR] : TiApplication: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)\r\n[ERROR] : TiApplication: \tat dalvik.system.NativeStart.main(Native Method)\r\n{quote}", "attachment": [], "flagged": false, "summary": "Samsung Galaxy S4 Mini Crash when long pressing any label", "creator": { "name": "cliff_stander", "key": "cliff_stander", "displayName": "Mike Stancliffe", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "cliff_stander", "key": "cliff_stander", "displayName": "Mike Stancliffe", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Samsung Galaxy S4 Mini\r\nSamsung-SGH-I257\r\nAndroid 4.4.2\r\nMobile SDK 3.3.0GA, 3.4.0GA, 3.4.1RC", "comment": { "comments": [ { "id": "331855", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello [~cliff_stander]: \r\n\r\nPlease provide the Mobile SDK version. \r\n\r\nBest Regards", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-11-12T19:46:18.000+0000", "updated": "2014-11-12T19:46:18.000+0000" }, { "id": "331856", "author": { "name": "cliff_stander", "key": "cliff_stander", "displayName": "Mike Stancliffe", "active": true, "timeZone": "America/Los_Angeles" }, "body": "For sure it is present in 3.3.0, 3.4.0, 3.4.1RC\r\n\r\nI did not go back any further than that.", "updateAuthor": { "name": "cliff_stander", "key": "cliff_stander", "displayName": "Mike Stancliffe", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-11-12T19:51:08.000+0000", "updated": "2014-11-12T19:52:39.000+0000" }, { "id": "332006", "author": { "name": "cliff_stander", "key": "cliff_stander", "displayName": "Mike Stancliffe", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'll also add, that we have had no problems like this on at least a dozen other android devices, including other Samsung models with TouchWiz.", "updateAuthor": { "name": "cliff_stander", "key": "cliff_stander", "displayName": "Mike Stancliffe", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-11-13T14:11:12.000+0000", "updated": "2014-11-13T14:11:12.000+0000" }, { "id": "358157", "author": { "name": "cliff_stander", "key": "cliff_stander", "displayName": "Mike Stancliffe", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Did you use an S4 Mini, I have tested this on multipule S4 minis and it is 100% reproduable.", "updateAuthor": { "name": "cliff_stander", "key": "cliff_stander", "displayName": "Mike Stancliffe", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-22T14:50:24.000+0000", "updated": "2015-07-22T14:50:24.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }