{ "id": "86875", "key": "TIMOB-7788", "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": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" } ], "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": "2013-03-20T04:49:00.000+0000", "created": "2012-02-23T08:25:13.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "parity" ], "versions": [ { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "issuelinks": [], "assignee": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T21:27:09.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": "h2. Problem\r\n\r\nThe [Titanium.UI.Picker.add|http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.Picker.add-method.html] method causes an exception when used to add columns.\r\n\r\nNote: this works as expected on iOS. Also note that adding rows also needs to be tested.\r\n\r\nh2. Test case\r\n\r\n{code:lang=javascript|title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: 'white',\r\n exitOnClose: true,\r\n fullscreen: false,\r\n title: 'Use picker to make selection'\r\n});\r\n\r\nvar fruit = [ 'Bananas', 'Grapes', 'Blueberries', 'Strawberries' ];\r\nvar color = [ 'blue', 'red', 'yellow', 'white' ];\r\n\r\nvar column1 = Ti.UI.createPickerColumn();\r\n\r\nfor(var i=0, ilen=fruit.length; i>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<\r\n 390 AndroidRuntime D CheckJNI is ON\r\n 390 AndroidRuntime D --- registering native functions ---\r\n 60 ActivityManager I Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.appcelerator.testing10/.Testing10Activity }\r\n 60 ActivityManager I Start proc com.appcelerator.testing10 for activity com.appcelerator.testing10/.Testing10Activity: pid=396 uid=10036 gids={1015, 3003}\r\n 390 AndroidRuntime D Shutting down VM\r\n 390 AndroidRuntime I NOTE: attach of thread 'Binder Thread #3' failed\r\n 396 TiApplication I (main) [0,0] checkpoint, app created.\r\n 396 TiApplication I (main) [214,214] Titanium 1.8.1 (2012/01/27 17:31 a24502a)\r\n 396 TiFastDev D (main) [147,361] Enabling Fastdev on port 50442\r\n 396 TiFastDev D (main) [10,371] sent tokens successfully\r\n 396 TiFastDev D (main) [2,373] Fastdev session handshake succesful.\r\n 396 TiApplication I (main) [5,378] Titanium Javascript runtime: v8\r\n 396 TiApplication W (main) [42,420] activity stack is emtpy, unable to get current activity\r\n 396 TiRootActivity I (main) [0,0] checkpoint, on root activity create, savedInstanceState: null\r\n 396 TiApplication W (main) [91,91] activity stack is emtpy, unable to get current activity\r\n 396 TiApplication W (main) [1,92] activity stack is emtpy, unable to get current activity\r\n 396 TiApplication W (main) [1,93] activity stack is emtpy, unable to get current activity\r\n 396 TiApplication E (KrollRuntimeThread) [971,1064] APP PROXY: ti.modules.titanium.app.AppModule@44f5c9e8\r\n 396 TiAssetHelper D Fetching \"app.js\" with Fastdev...\r\n 60 NotificationService W Object died trying to hide notification android.app.ITransientNotification$Stub$Proxy@44f810a8 in package com.appcelerator.testing10\r\n 60 ActivityManager W setProcessForeground called on unknown pid: 368\r\n 396 PickerColumnProxy W Unexpected type not added to picker column: ti.modules.titanium.ui.PickerColumnProxy\r\n 396 PickerColumnProxy W Unexpected type not added to picker column: ti.modules.titanium.ui.PickerColumnProxy\r\n 60 ActivityManager I Starting activity: Intent { cmp=com.appcelerator.testing10/org.appcelerator.titanium.TiActivity (has extras) }\r\n 396 TiRootActivity I (main) [0,0] checkpoint, on root activity resume. activity = com.appcelerator.testing10.Testing10Activity@44f01ce8\r\n 60 ActivityManager I Displayed activity com.appcelerator.testing10/org.appcelerator.titanium.TiActivity: 241 ms (total 3383 ms)\r\n 396 AndroidRuntime D Shutting down VM\r\n 396 TiApplication E (main) [363,363] Sending event: exception on thread: main msg:java.lang.NullPointerException; Titanium 1.8.1,2012/01/27 17:31,a24502a\r\n 396 TiApplication E java.lang.NullPointerException\r\n 396 TiApplication E \tat java.util.Arrays$ArrayList.(Arrays.java:49)\r\n 396 TiApplication E \tat java.util.Arrays.asList(Arrays.java:171)\r\n 396 TiApplication E \tat ti.modules.titanium.ui.widget.picker.TextWheelAdapter.(TextWheelAdapter.java:28)\r\n 396 TiApplication E \tat ti.modules.titanium.ui.widget.picker.TiUISpinnerColumn.refreshNativeView(TiUISpinnerColumn.java:180)\r\n 396 TiApplication E \tat ti.modules.titanium.ui.widget.picker.TiUISpinnerColumn.(TiUISpinnerColumn.java:38)\r\n 396 TiApplication E \tat ti.modules.titanium.ui.PickerColumnProxy.createView(PickerColumnProxy.java:219)\r\n 396 TiApplication E \tat org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:448)\r\n 396 TiApplication E \tat org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:434)\r\n 396 TiApplication E \tat org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:471)\r\n 396 TiApplication E \tat org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:456)\r\n 396 TiApplication E \tat org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:434)\r\n 396 TiApplication E \tat org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:471)\r\n 396 TiApplication E \tat ti.modules.titanium.ui.ActivityWindowProxy.handleMessage(ActivityWindowProxy.java:81)\r\n 396 TiApplication E \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\n 396 TiApplication E \tat android.os.Looper.loop(Looper.java:123)\r\n 396 TiApplication E \tat android.app.ActivityThread.main(ActivityThread.java:4627)\r\n 396 TiApplication E \tat java.lang.reflect.Method.invokeNative(Native Method)\r\n 396 TiApplication E \tat java.lang.reflect.Method.invoke(Method.java:521)\r\n 396 TiApplication E \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)\r\n 396 TiApplication E \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)\r\n 396 TiApplication E \tat dalvik.system.NativeStart.main(Native Method)\r\n 396 AndroidRuntime E FATAL EXCEPTION: main\r\n 396 AndroidRuntime E java.lang.NullPointerException\r\n 396 AndroidRuntime E \tat java.util.Arrays$ArrayList.(Arrays.java:49)\r\n 396 AndroidRuntime E \tat java.util.Arrays.asList(Arrays.java:171)\r\n 396 AndroidRuntime E \tat ti.modules.titanium.ui.widget.picker.TextWheelAdapter.(TextWheelAdapter.java:28)\r\n 396 AndroidRuntime E \tat ti.modules.titanium.ui.widget.picker.TiUISpinnerColumn.refreshNativeView(TiUISpinnerColumn.java:180)\r\n 396 AndroidRuntime E \tat ti.modules.titanium.ui.widget.picker.TiUISpinnerColumn.(TiUISpinnerColumn.java:38)\r\n 396 AndroidRuntime E \tat ti.modules.titanium.ui.PickerColumnProxy.createView(PickerColumnProxy.java:219)\r\n 396 AndroidRuntime E \tat org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:448)\r\n 396 AndroidRuntime E \tat org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:434)\r\n 396 AndroidRuntime E \tat org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:471)\r\n 396 AndroidRuntime E \tat org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:456)\r\n 396 AndroidRuntime E \tat org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:434)\r\n 396 AndroidRuntime E \tat org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:471)\r\n 396 AndroidRuntime E \tat ti.modules.titanium.ui.ActivityWindowProxy.handleMessage(ActivityWindowProxy.java:81)\r\n 396 AndroidRuntime E \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\n 396 AndroidRuntime E \tat android.os.Looper.loop(Looper.java:123)\r\n 396 AndroidRuntime E \tat android.app.ActivityThread.main(ActivityThread.java:4627)\r\n 396 AndroidRuntime E \tat java.lang.reflect.Method.invokeNative(Native Method)\r\n 396 AndroidRuntime E \tat java.lang.reflect.Method.invoke(Method.java:521)\r\n 396 AndroidRuntime E \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)\r\n 396 AndroidRuntime E \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)\r\n 396 AndroidRuntime E \tat dalvik.system.NativeStart.main(Native Method)\r\n 60 ActivityManager W Force finishing activity com.appcelerator.testing10/org.appcelerator.titanium.TiActivity\r\n 60 ActivityManager W Force finishing activity com.appcelerator.testing10/.Testing10Activity\r\n 60 ActivityManager W Activity pause timeout for HistoryRecord{45050908 com.appcelerator.testing10/org.appcelerator.titanium.TiActivity}\r\n 60 ActivityManager W Activity destroy timeout for HistoryRecord{4500a9c8 com.appcelerator.testing10/.Testing10Activity}\r\n 60 ActivityManager W Activity destroy timeout for HistoryRecord{45050908 com.appcelerator.testing10/org.appcelerator.titanium.TiActivity}\r\n 396 Process I Sending signal. PID: 396 SIG: 9\r\n 60 WindowManager I WIN DEATH: Window{450c5888 com.appcelerator.testing10/com.appcelerator.testing10.Testing10Activity paused=true}\r\n 60 WindowManager I WIN DEATH: Window{450f4d00 com.appcelerator.testing10/org.appcelerator.titanium.TiActivity paused=false}\r\n 60 ActivityManager I Process com.appcelerator.testing10 (pid 396) has died.\r\n{code}\r\n\r\nh2. Workaround\r\n\r\nUse the columns property instead", "attachment": [], "flagged": false, "summary": "Android: UI.Picker - add method used to add columns causes exception", "creator": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "environment": "* Titanium Mobile 1.8.1\r\n* Android 2.2\r\n* v8\r\n* Ubuntu", "comment": { "comments": [ { "id": "243115", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue does not reproduces \r\n\r\nTested with\r\n\r\nTitanium Studio, build: 3.0.1.201212181159\r\nTitanium SDK version: 3.1.0 (03/11/13 15:43 0c88429)\r\nTitanium SDK version: 3.0.2 (02/07/13 16:46 a4def81)\r\nDevice: Samsung galaxy s duos Android version: 4.0.4\r\n\r\njithinpv", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-20T04:49:00.000+0000", "updated": "2013-03-20T04:49:00.000+0000" }, { "id": "414444", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T21:27:09.000+0000", "updated": "2017-03-21T21:27:09.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }