{ "id": "62531", "key": "TIMOB-1899", "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": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "11246", "name": "Sprint 2011-11", "archived": true, "released": true, "releaseDate": "2011-03-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-18T23:11:10.000+0000", "created": "2011-04-15T03:05:00.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "border", "defect", "klist", "release-1.7.0", "reported-1.5.0", "rplist" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-18T23:11:10.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": "{html}

The following use case produces an error. Commenting\nborderRadius:5 of createWindow prevents the error, but obviously\nthe aesthetically this may not be desirable.

\n

var winView1 = Ti.UI.createWindow({

\n
\n    backgroundColor:'#b1b1bd',\n    borderRadius:5,\n    url:\"view1.js\",\n    modal: true,\n//  modal:false,\n    title: \"View1\",\n    width: 280,\n    height: 300\n});\nwinView1.open();\n
\n
\n

view1.js

\n
\nvar win = Ti.UI.currentWindow;\nvar viewView1 = Ti.UI.createView({\n    backgroundColor: '#ffb1bd',\n    borderRadius:10,\n    top:10,\n    width:280,\n    height:280\n});\nwin.add(viewView1);\n
{html}", "attachment": [], "flagged": false, "summary": "borderRadius causes exception when modal:true is used", "creator": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "environment": null, "comment": { "comments": [ { "id": "126929", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

@hal please provide the stacktrace of the error with the report.\nthx.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:05:01.000+0000", "updated": "2011-04-15T03:05:01.000+0000" }, { "id": "126930", "author": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Please excuse the oversight, Don. Here's the stacktrace:

\n
\n

1948 TiActivity W (main) [4130,9784] Notifying TiUIWindow,\nactivity is created 1948 KrollContext D (kroll$3) [71,9855] eval\nfile: app://test.js 60 ActivityManager I Starting activity: Intent\n{\ncmp=com.appcelerator.persistence/org.appcelerator.titanium.TiModalActivity\n(has extras) } 1948 PhoneWindow D couldn't save which view has\nfocus because the focused view\ncom.android.internal.policy.impl.PhoneWindow$DecorView@44fc3418 has\nno id. 1948 TiActivity W (main) [208,10063] Notifying TiUIWindow,\nactivity is created 1948 AndroidRuntime D Shutting down VM 1948\ndalvikvm W threadid=1: thread exiting with uncaught exception\n(group=0x4001d800) 1948 TiUncaughtHandler E (main) [38,10101]\nSending event: exception on thread: main\nmsg:java.lang.NullPointerException 1948 TiUncaughtHandler E\njava.lang.NullPointerException 1948 TiUncaughtHandler E at\norg.appcelerator.titanium.view.TiUIView.initializeBorder(TiUIView.java:566)\n1948 TiUncaughtHandler E at\norg.appcelerator.titanium.view.TiUIView.processProperties(TiUIView.java:396)\n1948 TiUncaughtHandler E at\nti.modules.titanium.ui.TiUIWindow.processProperties(TiUIWindow.java:490)\n1948 TiUncaughtHandler E at\norg.appcelerator.titanium.TiProxy.setModelListener(TiProxy.java:109)\n1948 TiUncaughtHandler E at\nti.modules.titanium.ui.TiUIWindow.handleMessage(TiUIWindow.java:388)\n1948 TiUncaughtHandler E at\nandroid.os.Handler.dispatchMessage(Handler.java:95) 1948\nTiUncaughtHandler E at android.os.Looper.loop(Looper.java:123) 1948\nTiUncaughtHandler E at\nandroid.app.ActivityThread.main(ActivityThread.java:4627) 1948\nTiUncaughtHandler E at java.lang.reflect.Method.invokeNative(Native\nMethod) 1948 TiUncaughtHandler E at\njava.lang.reflect.Method.invoke(Method.java:521) 1948\nTiUncaughtHandler E at\ncom.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)\n1948 TiUncaughtHandler E at\ncom.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 1948\nTiUncaughtHandler E at dalvik.system.NativeStart.main(Native\nMethod) 1948 TiApplication D (main) [156,10257] Analytics Event:\ntype=ti.crash 1948 TiApplication D event=ti.crash 1948\nTiApplication D timestamp=2010-09-24T02:37:29.111+0000 1948\nTiApplication D mid=9774d56d682e549c 1948 TiApplication D\nsid=a4057cd3-deb0-406e-bef0-b4e9e03e0c6d 1948 TiApplication D\naguid=ef78a2da-817a-47ba-8b32-3a21a3745224 1948 TiApplication D\nisJSON=true 1948 TiApplication D\npayload={\"value\":thread_namemain\\nthread_id1\\nerror_msgjava.lang.NullPointerException\\n<<<<<<<<<<<<<<<\nSTACK TRACE\n>>>>>>>>>>>>>>>\\norg.appcelerator.titanium.view.T

\n
\n                              iUIView.initializeBorder(TiUIView.java:566)\\norg.appcelerator.titanium.view.TiUIView.processProperties(TiUIView.java:396)\\nti.modules.titanium.ui.TiUIWindow.processProperties(TiUIWindow.java:490)\\norg.appcelerator.titanium.TiProxy.setModelListener(TiProxy.java:109)\\nti.modules.titanium.ui.TiUIWindow.handleMessage(TiUIWindow.java:3\n                              88)\\nandroid.os.Handler.dispatchMessage(Handler.java:95)\\nandroid.os.Looper.loop(Looper.java:123)\\nandroid.app.ActivityThread.main(ActivityThread.java:4627)\\njava.lan\n                              g.reflect.Method.invokeNative(Native Method)\\njava.lang.reflect.Method.invoke(Method.java:521)\\ncom.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.\n                              java:868)\\ncom.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)\\ndalvik.system.NativeStart.main(Native Method)\\n}\n
\n

1948 AndroidRuntime E FATAL EXCEPTION: main 1948 AndroidRuntime\nE java.lang.NullPointerException 1948 AndroidRuntime E at\norg.appcelerator.titanium.view.TiUIView.initializeBorder(TiUIView.java:566)\n1948 AndroidRuntime E at\norg.appcelerator.titanium.view.TiUIView.processProperties(TiUIView.java:396)\n1948 AndroidRuntime E at\nti.modules.titanium.ui.TiUIWindow.processProperties(TiUIWindow.java:490)\n1948 AndroidRuntime E at\norg.appcelerator.titanium.TiProxy.setModelListener(TiProxy.java:109)\n1948 AndroidRuntime E at\nti.modules.titanium.ui.TiUIWindow.handleMessage(TiUIWindow.java:388)\n1948 AndroidRuntime E at\nandroid.os.Handler.dispatchMessage(Handler.java:95) 1948\nAndroidRuntime E at android.os.Looper.loop(Looper.java:123) 1948\nAndroidRuntime E at\nandroid.app.ActivityThread.main(ActivityThread.java:4627) 1948\nAndroidRuntime E at java.lang.reflect.Method.invokeNative(Native\nMethod) 1948 AndroidRuntime E at\njava.lang.reflect.Method.invoke(Method.java:521) 1948\nAndroidRuntime E at\ncom.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)\n1948 AndroidRuntime E at\ncom.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 1948\nAndroidRuntime E at dalvik.system.NativeStart.main(Native Method)\n60 ActivityManager W Force finishing activity\ncom.appcelerator.persistence/org.appcelerator.titanium.TiModalActivity\n60 ActivityManager W Force finishing activity\ncom.appcelerator.persistence/ti.modules.titanium.ui.TiTabActivity\n60 ActivityManager W Activity pause timeout for\nHistoryRecord{451543d8\ncom.appcelerator.persistence/org.appcelerator.titanium.TiModalActivity}\n60 ActivityManager W Launch timeout has expired, giving up wake\nlock! 60 ActivityManager W Activity idle timeout for\nHistoryRecord{451543d8\ncom.appcelerator.persistence/org.appcelerator.titanium.TiModalActivity}\n60 ActivityManager W Activity idle timeout for\nHistoryRecord{45082d98\ncom.appcelerator.persistence/.PersistenceActivity}

\n
{html}", "updateAuthor": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:05:01.000+0000", "updated": "2011-04-15T03:05:01.000+0000" }, { "id": "126931", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Associated Helpdesk Ticket ##

\n

http://developer.appcelerator.com/helpdesk/view/73631

{html}", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:05:02.000+0000", "updated": "2011-04-15T03:05:02.000+0000" }, { "id": "126932", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "{html}

(from [48d07e194f46b3a0495d73624bac4e7d3b79706a])\n[#1899 state:fixed-in-qa] ignored border\nproperties when set on heavy weight windows

\n

ignore border properties on heavy weight windows as border\nproperties are not meant to be used with them and the behavior is\nincorrect. got approval from Don Thorp before taking this\napproach.
\n\nhttps://github.com/appcelerator/titanium_mobile/commit/48d07e194f46...

{html}", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-04-15T03:05:03.000+0000", "updated": "2011-04-15T03:05:03.000+0000" }, { "id": "126933", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "{html}

Fix can be verified with test attached when ticket was created.\nUltimately, there should be no border effects on the main modal\nwindow while the new view should have the border properties in\nplace.

{html}", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-04-15T03:05:03.000+0000", "updated": "2011-04-15T03:05:03.000+0000" }, { "id": "126934", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

Making sure opie gets credit!

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:05:03.000+0000", "updated": "2011-04-15T03:05:03.000+0000" }, { "id": "126935", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Correcting title.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:05:04.000+0000", "updated": "2011-04-15T03:05:04.000+0000" }, { "id": "126936", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Tested with [INFO] Titanium SDK version: 1.7.0 (03/22/11\n09:36 42d2187) on
\nEmulator 2.1
\nNexus S 2.3.2

{html}", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:05:04.000+0000", "updated": "2011-04-15T03:05:04.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }