{ "id": "159967", "key": "AC-3587", "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": "2016-05-11T18:07:09.000+0000", "created": "2016-05-03T08:07:54.000+0000", "labels": [ "android", "html", "label" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-05-16T07:45:20.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": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "On Android, if I use the html property in a Label, when I do scroll this error appear:\r\n\r\n{code:java}\r\n[ERROR] : InputEventReceiver: Exception dispatching input event.\r\n[ERROR] : E/MessageQueue-JNI: Exception in MessageQueue callback: handleReceiveCallback\r\n[ERROR] : E/MessageQueue-JNI: java.lang.NullPointerException\r\n[ERROR] : E/MessageQueue-JNI: \tat ti.modules.titanium.ui.widget.TiUILabel$1.onTouchEvent(TiUILabel.java:105)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.View.dispatchTouchEvent(View.java:8132)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2431)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2121)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2431)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2121)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2431)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2121)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2431)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2121)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2431)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2121)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2431)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2121)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2431)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2121)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2431)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2121)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2431)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2121)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2431)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2121)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2431)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2121)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2431)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2121)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2431)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2121)\r\n[ERROR] : E/MessageQueue-JNI: \tat com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2292)\r\n[ERROR] : E/MessageQueue-JNI: \tat com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1622)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.app.Activity.dispatchTouchEvent(Activity.java:2543)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.support.v7.internal.view.WindowCallbackWrapper.dispatchTouchEvent(WindowCallbackWrapper.java:60)\r\n[ERROR] : E/MessageQueue-JNI: \tat com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2240)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.View.dispatchPointerEvent(View.java:8340)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4612)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4478)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4036)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4090)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewRootImpl$InputStage.forward(ViewR\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4170)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4067)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4227)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4036)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4090)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4059)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4067)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4036)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6328)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6277)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6248)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6213)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6408)\r\n[ERROR] : E/MessageQueue-JNI: \tat android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:185\r\n{code}\r\n\r\nThis is the line that causes the crash: \r\n\r\n{code:java}\r\ntextoLbl.html = args.destacados;\r\n{code}\r\n \r\nif I put this all works ok (but the html tags aren't parsed)\r\n\r\n{code:java}\r\ntextoLbl.text = args.destacados;\r\n{code}\r\n\r\nThis only happens when I do scroll.\r\n\r\n*TEST CASE:*\r\n\r\nindex.xml\r\n\r\n\r\n{code:java}\r\n\r\n{code}\r\n\r\n\r\nindex.js\r\n\r\n\r\n{code:java}\r\ntextoLbl.html = \"

El presente curso reúne tanto aspecto de gestión
del desempeño del trabajo como aspectos de gestión

\";\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android - Ti.UI.Label crash with html property", "creator": { "name": "amurcia", "key": "amurcia", "displayName": "Anna", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "amurcia", "key": "amurcia", "displayName": "Anna", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.11.4\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 4294967296\r\nNode.js\r\n Node.js Version = 0.12.7\r\n npm Version = 2.11.3\r\nTitanium CLI\r\n CLI Version = 5.0.6\r\nTitanium SDK\r\n SDK Version = 5.1.2.GA\r\n SDK Path = /Users/amurcia/Library/Application Support/Titanium/mobilesdk/osx/5.1.2.GA\r\n Target Platform = android", "comment": { "comments": [ { "id": "384550", "author": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\nThanks for reporting. Please share with us simple test code that reproduces this issue. When we are able to reproduce this issue we will be able to identify that if it is valid bug or not. \r\nThanks in advance\r\n", "updateAuthor": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2016-05-03T08:23:11.000+0000", "updated": "2016-05-03T08:23:11.000+0000" }, { "id": "384551", "author": { "name": "amurcia", "key": "amurcia", "displayName": "Anna", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The test code is above, I've already updated the description. ", "updateAuthor": { "name": "amurcia", "key": "amurcia", "displayName": "Anna", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-05-03T08:28:00.000+0000", "updated": "2016-05-03T08:36:57.000+0000" }, { "id": "384615", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, \r\n\r\nThe issue is with your code. You are setting html property to \"textoLbl\" but your label id you defined as \"tituloLbl\". I tested the issue in my environment. There was no error using html property to label \r\n\r\nRegards,\r\nSharif.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-05-03T17:01:55.000+0000", "updated": "2016-05-03T17:01:55.000+0000" }, { "id": "384663", "author": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n \r\nI am also able to run the app with given code without any error when I fix the label id. [Screenshot|https://i.imgsafe.org/89ac696.png]\r\n\r\n*index.xml:*\r\n{code}\r\n\r\n\t\r\n\t\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n*index.js:*\r\n{code}\r\nfunction doClick(e) {\r\n alert($.label.text);\r\n}\r\n\r\n$.textoLbl.html = \"

El presente curso reúne tanto aspecto de gestión
del desempeño del trabajo como aspectos de gestión

\";\r\n\r\n$.index.open();\r\n{code}\r\n\r\nThanks\r\n*Environment*:\r\n\r\n*Device info:* HTC One (Android 4.4.3)\r\n*Node.js Version:* 0.12.7\r\n*npm Version:* 2.11.3\r\n*Titanium SDKs:* 5.2.2.GA and 5.2.1.GA\r\n*Java Development Kit Version:* 1.8.0_73\r\n*Titanium CLI Version:* 5.0.5\r\n*Appcelerator CLI Version:* 5.2.2\r\n*Appcelerator Studio:* 4.5.0\r\n", "updateAuthor": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2016-05-04T05:03:58.000+0000", "updated": "2016-05-04T05:03:58.000+0000" }, { "id": "384666", "author": { "name": "amurcia", "key": "amurcia", "displayName": "Anna", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Sorry but it was an error copying here the code. I have a textoLbl and a tituloLbl and I copy here the wrong line. Sorry, I still having the problem....", "updateAuthor": { "name": "amurcia", "key": "amurcia", "displayName": "Anna", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-05-04T06:26:49.000+0000", "updated": "2016-05-04T06:26:49.000+0000" }, { "id": "385241", "author": { "name": "nsalahin", "key": "nsalahin", "displayName": "Nazmus Salahin", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello [~amurcia],\r\n\r\nAs we are not able to reproduce this issue with our test code please provide your full test code and steps to reproduce. We will recognize this as bug when we are 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-05-10T05:40:38.000+0000", "updated": "2016-05-10T05:42:27.000+0000" }, { "id": "385765", "author": { "name": "amurcia", "key": "amurcia", "displayName": "Anna", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It's easy to reproduce, put a Label with a html property and click in the label. It crashes always, if you put touchEnabled=false too.", "updateAuthor": { "name": "amurcia", "key": "amurcia", "displayName": "Anna", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-05-16T07:45:20.000+0000", "updated": "2016-05-16T07:45:20.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }