{ "id": "159821", "key": "AC-3548", "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": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2016-05-03T19:11:25.000+0000", "created": "2016-04-26T06:27:13.000+0000", "labels": [ "Label", "android" ], "versions": [ { "id": "17038", "name": "Appcelerator Studio 4.5.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-03-19T20:06:38.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": "14552", "name": "Appcelerator CLI", "description": "Please enter tickets related to Tooling and the CLI here" }, { "id": "14545", "name": "Documentation" }, { "id": "14551", "name": "Studio", "description": "Please enter tickets related to Titanium Studio here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Hi, I'm getting crashes because of ti.modules.titanium.ui.widget.TiUILabel$1\r\njava.lang.ClassCastException Reason: ti.modules.titanium.ui.widget.TiUILabel$1 cannot be cast to android.view.ViewGroup\r\nNamejava.lang.ClassCastException\r\nReason\r\nti.modules.titanium.ui.widget.TiUILabel$1 cannot be cast to android.view.ViewGroup\r\nCrashed Thread\r\n{code}\r\n0\tjava.lang.ClassCastException: ti.modules.titanium.ui.widget.TiUILabel$1 cannot be cast to android.view.ViewGroup\r\n!\t1\tat android.support.v4.app.BackStackRecord.configureTransitions(BackStackRecord.java:1132)\r\n2\tat android.support.v4.app.BackStackRecord.beginTransition(BackStackRecord.java:1039)\r\n3\tat android.support.v4.app.BackStackRecord.run(BackStackRecord.java:658)\r\n4\tat android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1572)\r\n5\tat android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:493)\r\n6\tat android.os.Handler.handleCallback(Handler.java:739)\r\n7\tat android.os.Handler.dispatchMessage(Handler.java:95)\r\n8\tat android.os.Looper.loop(Looper.java:145)\r\n9\tat android.app.ActivityThread.main(ActivityThread.java:5938)\r\n10\tat java.lang.reflect.Method.invoke(Native Method)\r\n11\tat java.lang.reflect.Method.invoke(Method.java:372)\r\n12\tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1389)\r\n13\tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1184)\r\n{code}\r\n\r\nTEST Code \r\n\r\n\r\nXML \r\n{code}\r\n\r\n\r\n\r\n\t\r\n\t\t\r\n\t\r\n\r\n\r\n\r\n{code}\r\n\r\nTSS\r\n\r\n{code}\r\n\".labelOuterContainer\":{\r\n height: Ti.UI.SIZE,\r\n width: Ti.UI.SIZE,\r\n layout: \"horizontal\",\r\n top: 10\r\n}\r\n\r\n\".labelInnerContainer\":{\r\n height: Ti.UI.SIZE,\r\n width: Ti.UI.SIZE,\r\n layout: \"vertical\"\r\n}\r\n\r\n\".headerLabel\":{\r\n color: Alloy.Globals.Colors.WHITE,\r\n left: 0,\r\n font:{\r\n fontSize: 10\r\n },\r\n wordWrap: false,\r\n ellipsize: true,\r\n width:Ti.UI.SIZE\r\n}\r\n\r\n\".headerLabel[formFactor=tablet]\":{\r\n font:{\r\n fontSize: 16\r\n }\r\n}\r\n\r\n\".contentLabel\":{\r\n color: Alloy.Globals.Colors.WHITE,\r\n top: 3,\r\n left: 0,\r\n font:{\r\n fontSize: 14\r\n },\r\n ellipsize: true,\r\n width:Ti.UI.SIZE\r\n}\r\n\r\n\".contentLabel[formFactor=tablet]\":{\r\n font:{\r\n fontSize: 20\r\n }\r\n}\r\n\r\n\".headerLabel[platform=ios formFactor=handheld]\":{\r\n minimumFontSize: 10,\r\n height: 14,\r\n ellipsize: false\r\n}\r\n\r\n\".headerLabel[platform=ios formFactor=tablet]\":{\r\n minimumFontSize: 16,\r\n height: 20,\r\n ellipsize: false\r\n}\r\n\r\n\r\n\".contentLabel[platform=ios formFactor=handheld]\":{\r\n minimumFontSize: 14,\r\n height: 18,\r\n ellipsize: false\r\n}\r\n\r\n\".contentLabel[platform=ios formFactor=tablet]\":{\r\n minimumFontSize: 20,\r\n height: 24,\r\n ellipsize: false\r\n}\r\n\r\n\".innerView\":{\r\n width: 20,\r\n height: Ti.UI.SIZE\r\n}\r\n\r\n{code}", "attachment": [ { "id": "59074", "filename": "Screen Shot 2016-04-26 at 11.53.32 AM.png", "author": { "name": "imbudhiraja", "key": "imbudhiraja", "displayName": "Manish Budhiraja", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2016-04-26T06:24:15.000+0000", "size": 305622, "mimeType": "image/png" } ], "flagged": false, "summary": "ti.modules.titanium.ui.widget.TiUILabel$1 cannot be cast to android.view.ViewGroup", "creator": { "name": "imbudhiraja", "key": "imbudhiraja", "displayName": "Manish Budhiraja", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "imbudhiraja", "key": "imbudhiraja", "displayName": "Manish Budhiraja", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Titanium SDK 5.2.2\r\nAndroid API Level : 4.0 & Above \r\n", "comment": { "comments": [ { "id": "383897", "author": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\nThanks for reporting. Please provide us test code that we can use to reproduce the reported issue. In this case please give us JS file code. If anything else is needed to reproduce the issue please mention that also. We will be able to identify the problem when we will be able to reproduce the issue.\r\n\r\nThanks in advance ", "updateAuthor": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2016-04-26T08:30:56.000+0000", "updated": "2016-04-26T08:30:56.000+0000" }, { "id": "383900", "author": { "name": "imbudhiraja", "key": "imbudhiraja", "displayName": "Manish Budhiraja", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Here Find the Js File Code \r\n\r\n$.bedrooms.text = Alloy.Globals.I18n.t(\"singular_detail_pages.commons.bedroom\");\r\n$.bedroomsCount.text = \"3\";\r\n\r\nIt happens sometimes. Nothing else is required to reproduce the issue", "updateAuthor": { "name": "imbudhiraja", "key": "imbudhiraja", "displayName": "Manish Budhiraja", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2016-04-26T08:39:22.000+0000", "updated": "2016-04-26T08:39:22.000+0000" }, { "id": "384036", "author": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello [~imbudhiraja],\r\n\r\nI am unable to reproduce the issue. I replaced Alloy.Globals.While with while but after running the app I get the following error which is obvious. I think the global definitions that you used is needed. \r\n\r\n*Error Log:*\r\n{code}\r\n[ERROR] : TiExceptionHandler: (main) [416,416] ----- Titanium Javascript Runtime Error -----\r\n[ERROR] : TiExceptionHandler: (main) [1,417] - In alloy/controllers/index.js:100,42\r\n[ERROR] : TiExceptionHandler: (main) [0,417] - Message: Uncaught TypeError: Cannot call method 't' of undefined\r\n[ERROR] : TiExceptionHandler: (main) [0,417] - Source: $.bedrooms.text = Alloy.Globals.I18n.t(\"singular_detail_pages.commons.bedr\r\n[ERROR] : V8Exception: Exception occurred at alloy/controllers/index.js:100: Uncaught TypeError: Cannot call method 't' of undefined\r\n{code}\r\n\r\nThanks in advance", "updateAuthor": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2016-04-27T06:25:30.000+0000", "updated": "2016-04-27T06:25:30.000+0000" }, { "id": "435729", "author": { "name": "jonesdhtx", "key": "jonesdhtx", "displayName": "David Jones", "active": true, "timeZone": "America/Chicago" }, "body": "We do not have simple code that reproduces the issue, but we do have a stack trace and breadcrumbs that may help.\r\n\r\nThis happens for about 2% of our daily active users\r\n\r\n{noformat}\r\nCrashed Thread:\r\n0 java.lang.ClassCastException: ti.modules.titanium.ui.widget.TiUILabel$1 cannot be cast to android.view.ViewGroup\r\n! 1 at android.support.v4.app.FragmentTransition.configureTransitionsOrdered(FragmentTransition.java:293)\r\n2 at android.support.v4.app.FragmentTransition.startTransitions(FragmentTransition.java:118)\r\n3 at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2364)\r\n4 at android.support.v4.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2322)\r\n5 at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2229)\r\n6 at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:700)\r\n7 at android.os.Handler.handleCallback(Handler.java:751)\r\n8 at android.os.Handler.dispatchMessage(Handler.java:95)\r\n9 at android.os.Looper.loop(Looper.java:154)\r\n10 at android.app.ActivityThread.main(ActivityThread.java:6823)\r\n11 at java.lang.reflect.Method.invoke(Native Method)\r\n12 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1563)\r\n13 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1451)\r\n\r\nBreadCrumbs:\r\n1 session_start Mar 17, 2018 04:21:35 am UTC\r\n2 session_start Mar 18, 2018 08:10:15 pm UTC\r\n3 foregrounded Mar 18, 2018 08:10:18 pm UTC\r\n4 Connection Up Mar 18, 2018 08:10:18 pm UTC\r\n5 org.appcelerator.titanium.TiActivity : Loaded Mar 18, 2018 08:10:18 pm UTC\r\n6 com.example.app.ExampleAppActivity : Unloaded Mar 18, 2018 08:10:19 pm UTC\r\n7 CRASH java.lang.ClassCastException: ti.modules.titanium.ui.widget.TiUILabel$1 cannot be cast to android.view.ViewGroup Mar 18, 2018 08:12:58 pm UTC\r\n{noformat}", "updateAuthor": { "name": "jonesdhtx", "key": "jonesdhtx", "displayName": "David Jones", "active": true, "timeZone": "America/Chicago" }, "created": "2018-03-19T20:06:38.000+0000", "updated": "2018-03-19T20:06:38.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }