{ "id": "133984", "key": "ALOY-1103", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "15909", "description": "Alloy 1.5.0", "name": "Alloy 1.5.0", "archived": false, "released": true, "releaseDate": "2014-09-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-08-08T07:27:28.000+0000", "created": "2014-07-31T17:49:15.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-manualtest" ], "versions": [ { "id": "15758", "description": "Alloy 1.4.0", "name": "Alloy 1.4.0", "archived": false, "released": true, "releaseDate": "2014-07-17" }, { "id": "15759", "description": "Alloy 1.3.1", "name": "Alloy 1.3.1", "archived": false, "released": true, "releaseDate": "2014-02-10" } ], "issuelinks": [], "assignee": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "updated": "2014-08-22T23:05:21.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": "12326", "name": "XML", "description": "View XML and parsing" } ], "description": "h5. Problem description\r\n\r\nformFactor='handheld' is not correctly applied if applied to object.\r\nDepending on the target, could either be not visible or crashing the app.\r\n\r\n\r\nh5. Steps to reproduce\r\n\r\nUse the following sample code:\r\n\r\nh6. index.xml \r\n{code}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \t\r\n \r\n \r\n\r\n{code} \r\n\r\nh6. index.tss\r\n{code}\r\n\"Window\":{\r\n\tbackgroundColor:'white',\r\n\tlayout:'vertical'\r\n}\r\n\r\n\"Label\":{\r\n\tfont:{\r\n\t\tfontSize:'20dp',\r\n\t\tcolor:'black'\r\n\t}\r\n}\r\n{code}\r\n\r\n1. Build and run on Android Tablet (tested with Google Nexus 7 4.3)\r\n\r\nExpected result:\r\nApp runs. Both Headerview and View are not visible.\r\n\r\nResult: \r\nApp crashes with the following error log:\r\n\r\n{code}\r\nE/AndroidRuntime( 3251): FATAL EXCEPTION: main\r\n\t\tE/AndroidRuntime( 3251): Process: com.appcelerator.AlloyHarness, PID: 3251\r\n\t\tE/AndroidRuntime( 3251): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appcelerator.AlloyHarness/org.appcelerator.titanium.TiActivity}: java.lang.NullPointerException\r\n\t\tE/AndroidRuntime( 3251): \tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)\r\n\t\tE/AndroidRuntime( 3251): \tat android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)\r\n\t\tE/AndroidRuntime( 3251): \tat android.app.ActivityThread.access$800(ActivityThread.java:135)\r\n\t\tE/AndroidRuntime( 3251): \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)\r\n\t\tE/AndroidRuntime( 3251): \tat android.os.Handler.dispatchMessage(Handler.java:102)\r\n\t\tE/AndroidRuntime( 3251): \tat android.os.Looper.loop(Looper.java:136)\r\n\t\tE/AndroidRuntime( 3251): \tat android.app.ActivityThread.main(ActivityThread.java:5017)\r\n\t\tE/AndroidRuntime( 3251): \tat java.lang.reflect.Method.invokeNative(Native Method)\r\n\t\tE/AndroidRuntime( 3251): \tat java.lang.reflect.Method.invoke(Method.java:515)\r\n\t\tE/AndroidRuntime( 3251): \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)\r\n\t\tE/AndroidRuntime( 3251): \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)\r\n\t\tE/AndroidRuntime( 3251): \tat dalvik.system.NativeStart.main(Native Method)\r\n\t\tE/AndroidRuntime( 3251): Caused by: java.lang.NullPointerException\r\n\t\tE/AndroidRuntime( 3251): \tat ti.modules.titanium.ui.widget.tableview.TiTableView.layoutHeaderOrFooter(TiTableView.java:505)\r\n\t\tE/AndroidRuntime( 3251): \tat ti.modules.titanium.ui.widget.tableview.TiTableView.(TiTableView.java:347)\r\n\t\tE/AndroidRuntime( 3251): \tat ti.modules.titanium.ui.widget.TiUITableView.processProperties(TiUITableView.java:106)\r\n\t\tE/AndroidRuntime( 3251): \tat org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:1185)\r\n\t\tE/AndroidRuntime( 3251): \tat org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:500)\r\n\t\tE/AndroidRuntime( 3251): \tat org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:491)\r\n\t\tE/AndroidRuntime( 3251): \tat org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:469)\r\n\t\tE/AndroidRuntime( 3251): \tat org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:507)\r\n\t\tE/AndroidRuntime( 3251): \tat org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:491)\r\n\t\tE/AndroidRuntime( 3251): \tat org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:469)\r\n\t\tE/AndroidRuntime( 3251): \tat org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:670)\r\n\t\tE/AndroidRuntime( 3251): \tat org.appcelerator.titanium.proxy.TiViewProxy.add(TiViewProxy.java:564)\r\n\t\tE/AndroidRuntime( 3251): \tat ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:233)\r\n\t\tE/AndroidRuntime( 3251): \tat org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:32)\r\n\t\tE/AndroidRuntime( 3251): \tat org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:442)\r\n\t\tE/AndroidRuntime( 3251): \tat org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:524)\r\n\t\tE/AndroidRuntime( 3251): \tat org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:18)\r\n\t\tE/AndroidRuntime( 3251): \tat android.app.Activity.performCreate(Activity.java:5231)\r\n\t\tE/AndroidRuntime( 3251): \tat android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)\r\n\t\tE/AndroidRuntime( 3251): \tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)\r\n\t\tE/AndroidRuntime( 3251): \t... 11 more\r\n\t\tW/ActivityManager( 550): Force finishing activity com.appcelerator.AlloyHarness/org.appcelerator.titanium.TiActivity\r\n\t\tW/ActivityManager( 550): Force finishing activity com.appcelerator.AlloyHarness/.HarnessActivity\r\n\t\tW/ActivityManager( 550): Activity pause timeout for ActivityRecord{528b362c u0 com.appcelerator.AlloyHarness/org.appcelerator.titanium.TiActivity t16 f}\r\n\t\tW/EGL_genymotion( 1017): eglSurfaceAttrib not implemented\r\n\t\tI/Process ( 3251): Sending signal. PID: 3251 SIG: 9\r\n\t\tW/InputDispatcher( 550): channel '528c7ea0 com.appcelerator.AlloyHarness/com.appcelerator.AlloyHarness.HarnessActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9\r\n\t\tE/InputDispatcher( 550): channel '528c7ea0 com.appcelerator.AlloyHarness/com.appcelerator.AlloyHarness.HarnessActivity (server)' ~ Channel is unrecoverably broken and will be disposed!\r\n\t\tW/audio_hw_primary( 114): out_write() limiting sleep time 69659 to 23219\r\n\t\tI/ActivityManager( 550): Process com.appcelerator.AlloyHarness (pid 3251) has died.\r\n\t\tW/InputDispatcher( 550): Attempted to unregister already unregistered input channel '528c7ea0 com.appcelerator.AlloyHarness/com.appcelerator.AlloyHarness.HarnessActivity (server)'\r\n\t\tW/InputMethodManagerService( 550): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@52bd1b38 attribute=null, token = android.os.BinderProxy@52bca104\r\n\t\tI/WindowState( 550): WIN DEATH: Window{528c7ea0 u0 com.appcelerator.AlloyHarness/com.appcelerator.AlloyHarness.HarnessActivity}\r\n\t\tW/audio_hw_primary( 114): out_write() limiting sleep time 46439 to 23219\r\n\t\tW/audio_hw_primary( 114): out_write() limiting sleep time 34828 to 23219\r\n{code}\r\n\r\n2. Build run on iOS tablet\r\nResult: app runs. and are not visible as expected\r\n\r\n3. Build run on Android and iOS handheld\r\nResult: app runs. however is not displayed, while is correctly displayed as expected. \r\nExpected result: should be displayed.", "attachment": [ { "id": "50292", "filename": "galaxy_note10.png", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2014-08-07T08:14:14.000+0000", "size": 51496, "mimeType": "image/png" }, { "id": "50289", "filename": "galaxy_s3.png", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2014-08-07T08:14:14.000+0000", "size": 55911, "mimeType": "image/png" }, { "id": "50291", "filename": "ipad.png", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2014-08-07T08:14:14.000+0000", "size": 36336, "mimeType": "image/png" }, { "id": "50290", "filename": "iphone.png", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2014-08-07T08:14:14.000+0000", "size": 41241, "mimeType": "image/png" } ], "flagged": false, "summary": " not working and throwing an error", "creator": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK 3.2.3 & 3.3.0\r\nAlloy 1.3.1 & 1.4.0\r\nAppcelerator Studio 3.3.1.201407221414\r\n\r\nGoogle Nexus 4.3 \r\niPhone 5 iOS 7.1.2", "closedSprints": [ { "id": 169, "state": "closed", "name": "2014 Sprint 16 Alloy", "startDate": "2014-08-04T14:48:59.768Z", "endDate": "2014-08-16T00:00:00.000Z", "completeDate": "2014-08-18T15:31:13.725Z", "originBoardId": 124 } ], "comment": { "comments": [ { "id": "317469", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "PR: https://github.com/appcelerator/alloy/pull/502\r\nTest app: https://github.com/feons/alloy/tree/ALOY-1103/test/apps/testing/ALOY-1103\r\n\r\nFunctional Test:\r\n\r\n 1. Run the test app, the app shouldn't crash\r\n 2. The UI should look like the attached screenshots for each platform.\r\n\r\n", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2014-08-07T08:14:14.000+0000", "updated": "2014-08-07T08:14:14.000+0000" }, { "id": "317662", "author": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Merged PR to Alloy#master (1.5.0)", "updateAuthor": { "name": "pinnamuri", "key": "pinnamuri", "displayName": "Praveen Innamuri", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-08-08T07:27:28.000+0000", "updated": "2014-08-08T07:27:28.000+0000" }, { "id": "320020", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified fix on: \r\n\r\nMac OSX 10.9.4\r\nAppcelerator Studio, build: 3.4.0.201408210941\r\nTitanium SDK build: 3.4.0.v20140821144114\r\nTitanium CLI, build: 3.4.0-dev\r\nAlloy: 1.5.0-dev\r\nAndroid Device Galaxy Tab 3 (4.2.2)\r\nAndroid Device S3 (4.0.4)\r\niPad Simulator 7.1\r\niPhone Simulator 7.1\r\n\r\nThe UI on the devices matches the attached screenshots.\r\n\r\nClosing ticket.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2014-08-22T22:57:39.000+0000", "updated": "2014-08-22T22:57:39.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }