{ "id": "80654", "key": "TIMOB-5381", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-11-03T10:49:31.000+0000", "created": "2011-09-27T08:18:02.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "bug", "crash", "event", "fire", "fireevent", "webview" ], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2012-03-04T21:03:18.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": "h3.Problem\r\nTi.App.fireEvent inside webview makes the app to crash. It works correctly with Android 2.2 and 2.1 but it does not work with Android 2.3.3\r\n\r\nh3.Reproducible Steps\r\n1. Execute the attached project\r\n2. Press \"Click to open new window\"\r\n\r\nh3.Crash Log\r\n{code}\r\nI/dalvikvm-heap( 607): Grow heap (frag case) to 6.942MB for 87396-byte allocation\r\nD/dalvikvm( 607): GC_FOR_MALLOC freed 0K, 45% free 3778K/6855K, external 906K/1038K, paused 45ms\r\nW/TiAnalyticsSvc( 607): (Thread-18) [2295,31218] Stopping Analytics Service\r\nW/dalvikvm( 607): JNI WARNING: jarray 0x40510840 points to non-array object (Ljava/lang/String;)\r\nI/dalvikvm( 607): \"WebViewCoreThread\" prio=5 tid=14 NATIVE\r\nI/dalvikvm( 607): | group=\"main\" sCount=0 dsCount=0 obj=0x405eed18 self=0x209f98\r\nI/dalvikvm( 607): | sysTid=621 nice=0 sched=0/0 cgrp=default handle=2172432\r\nI/dalvikvm( 607): | schedstat=( 265925031 660541055 62 )\r\nI/dalvikvm( 607): at android.webkit.WebViewCore.nativeTouchUp(Native Method)\r\nI/dalvikvm( 607): at android.webkit.WebViewCore.nativeTouchUp(Native Method)\r\nI/dalvikvm( 607): at android.webkit.WebViewCore.access$3300(WebViewCore.java:53)\r\nI/dalvikvm( 607): at android.webkit.WebViewCore$EventHub$1.handleMessage(WebViewCore.java:1158)\r\nI/dalvikvm( 607): at android.os.Handler.dispatchMessage(Handler.java:99)\r\nI/dalvikvm( 607): at android.os.Looper.loop(Looper.java:130)\r\nI/dalvikvm( 607): at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:629)\r\nI/dalvikvm( 607): at java.lang.Thread.run(Thread.java:1019)\r\nI/dalvikvm( 607): \r\nE/dalvikvm( 607): VM aborting\r\nI/DEBUG ( 31): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***\r\nI/DEBUG ( 31): Build fingerprint: 'generic/google_sdk/generic:2.3.4/GINGERBREAD/123630:eng/test-keys'\r\nI/DEBUG ( 31): pid: 607, tid: 621 >>> com.appcelerator.webview <<<\r\nI/DEBUG ( 31): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadd00d\r\nI/DEBUG ( 31): r0 fffffec4 r1 deadd00d r2 00000026 r3 00000000\r\nI/DEBUG ( 31): r4 800a45c0 r5 40510840 r6 80085acc r7 000e1e38\r\nI/DEBUG ( 31): r8 461a0b54 r9 46075e3c 10 46075e24 fp 437cd8ec\r\nI/DEBUG ( 31): ip 800a4720 sp 461a0348 lr afd19375 pc 80045a4a cpsr 20000030\r\nI/DEBUG ( 31): #00 pc 00045a4a /system/lib/libdvm.so\r\nI/DEBUG ( 31): #01 pc 00037748 /system/lib/libdvm.so\r\nI/DEBUG ( 31): #02 pc 00039a10 /system/lib/libdvm.so\r\nI/DEBUG ( 31): #03 pc 0003a4ec /system/lib/libdvm.so\r\nI/DEBUG ( 31): #04 pc 0029864e /system/lib/libwebcore.so\r\nI/DEBUG ( 31): #05 pc 00211d1c /system/lib/libwebcore.so\r\nI/DEBUG ( 31): #06 pc 001133be /system/lib/libwebcore.so\r\nI/DEBUG ( 31): #07 pc 002127e8 /system/lib/libwebcore.so\r\nI/DEBUG ( 31): #08 pc 002c6de6 /system/lib/libwebcore.so\r\nI/DEBUG ( 31): #09 pc 002ca13e /system/lib/libwebcore.so\r\nI/DEBUG ( 31): #10 pc 002d8028 /system/lib/libwebcore.so\r\nI/DEBUG ( 31): #11 pc 002cf760 /system/lib/libwebcore.so\r\nI/DEBUG ( 31): #12 pc 0020ca9c /system/lib/libwebcore.so\r\nI/DEBUG ( 31): #13 pc 001a0b16 /system/lib/libwebcore.so\r\nI/DEBUG ( 31): #14 pc 001a706c /system/lib/libwebcore.so\r\nI/DEBUG ( 31): #15 pc 001a4e4c /system/lib/libwebcore.so\r\nI/DEBUG ( 31): #16 pc 001a4f92 /system/lib/libwebcore.so\r\nI/DEBUG ( 31): #17 pc 001a821a /system/lib/libwebcore.so\r\nI/DEBUG ( 31): #18 pc 001a83ae /system/lib/libwebcore.so\r\nI/DEBUG ( 31): #19 pc 00064a98 /system/lib/libwebcore.so\r\nI/DEBUG ( 31): #20 pc 0006563e /system/lib/libwebcore.so\r\nI/DEBUG ( 31): #21 pc 00125692 /system/lib/libwebcore.so\r\nI/DEBUG ( 31): #22 pc 0012578a /system/lib/libwebcore.so\r\nI/DEBUG ( 31): #23 pc 001257b0 /system/lib/libwebcore.so\r\nI/DEBUG ( 31): #24 pc 00017d74 /system/lib/libdvm.so\r\nI/DEBUG ( 31): \r\nI/DEBUG ( 31): code around pc:\r\nI/DEBUG ( 31): 80045a28 447a4479 ed0cf7d1 20004c09 ee34f7d1 \r\nI/DEBUG ( 31): 80045a38 447c4808 6bdb5823 d0002b00 49064798 \r\nI/DEBUG ( 31): 80045a48 700a2226 eea0f7d1 000436b7 00045275 \r\nI/DEBUG ( 31): 80045a58 0005eb82 fffffec4 deadd00d b510b40e \r\nI/DEBUG ( 31): 80045a68 4c0a4b09 447bb083 aa05591b 6b5bca02 \r\nI/DEBUG ( 31): \r\nI/DEBUG ( 31): code around lr:\r\nI/DEBUG ( 31): afd19354 b0834a0d 589c447b 26009001 686768a5 \r\nI/DEBUG ( 31): afd19364 220ce008 2b005eab 1c28d003 47889901 \r\nI/DEBUG ( 31): afd19374 35544306 d5f43f01 2c006824 b003d1ee \r\nI/DEBUG ( 31): afd19384 bdf01c30 000281a8 ffffff88 1c0fb5f0 \r\nI/DEBUG ( 31): afd19394 43551c3d a904b087 1c16ac01 604d9004 \r\nI/DEBUG ( 31): \r\nI/DEBUG ( 31): stack:\r\nI/DEBUG ( 31): 461a0308 00000015 \r\nI/DEBUG ( 31): 461a030c afd18407 /system/lib/libc.so\r\nI/DEBUG ( 31): 461a0310 afd4270c /system/lib/libc.so\r\nI/DEBUG ( 31): 461a0314 afd426b8 /system/lib/libc.so\r\nI/DEBUG ( 31): 461a0318 00000000 \r\nI/DEBUG ( 31): 461a031c afd19375 /system/lib/libc.so\r\nI/DEBUG ( 31): 461a0320 00209f98 [heap]\r\nI/DEBUG ( 31): 461a0324 afd183d9 /system/lib/libc.so\r\nI/DEBUG ( 31): 461a0328 000e1e38 [heap]\r\nI/DEBUG ( 31): 461a032c 0005eb82 [heap]\r\nI/DEBUG ( 31): 461a0330 40510840 /dev/ashmem/dalvik-heap (deleted)\r\nI/DEBUG ( 31): 461a0334 80085acc /system/lib/libdvm.so\r\nI/DEBUG ( 31): 461a0338 000e1e38 [heap]\r\nI/DEBUG ( 31): 461a033c afd18437 /system/lib/libc.so\r\nI/DEBUG ( 31): 461a0340 df002777 \r\nI/DEBUG ( 31): 461a0344 e3a070ad \r\nI/DEBUG ( 31): #00 461a0348 00000001 \r\nI/DEBUG ( 31): 461a034c 8003774d /system/lib/libdvm.so\r\nI/DEBUG ( 31): #01 461a0350 00000001 \r\nI/DEBUG ( 31): 461a0354 80039a15 /system/lib/libdvm.so\r\nD/Zygote ( 33): Process 607 terminated by signal (11)\r\nI/ActivityManager( 62): Process com.appcelerator.webview (pid 607) has died.\r\n{code}\r\n\r\nh3.Sample Code\r\nApp.js file\r\n{code}\r\nTitanium.UI.setBackgroundColor('#000');\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff'\r\n});\r\nvar label1 = Ti.UI.createWebView({\r\n\turl: 'index.html',\r\n\twidth: 200,\r\n\theight: 200\r\n});\r\n\r\nwin1.add(label1);\r\nTi.App.addEventListener('open_browser', function(e){\r\n alert(e.url);\r\n});\r\nwin1.open();\r\n\r\n{code}\r\n\r\nindex.html file\r\n\r\n{code}\r\n\r\n\r\n\r\n\r\n\r\nClick to open new window\r\n\r\n\r\n{code}\r\n\r\nh3.Associated HelpDesk Ticket\r\nhttp://appc.me/a/APP-475444", "attachment": [ { "id": "23070", "filename": "webview.zip", "author": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-27T08:18:02.000+0000", "size": 2320696, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: webView Ti.App.fireEvent() crash App in Android 2.3.3", "creator": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kpomaski", "key": "kpomaski", "displayName": "Karol Pomaski", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Simulator, Android 2.3.3\r\nMobile SDK: 1.7.2 and 1.8.0.v20110921124951", "comment": { "comments": [ { "id": "175734", "author": { "name": "anhpt2882", "key": "anhpt2882", "displayName": "Pham Tuan Anh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi team,\r\n\r\nI tested on version 1.7.5 and still meet this issue.\r\nThis issue was solved on SDK version 1.8.0, right?\r\n\r\nThanks & Best regards,\r\nTuan Anh", "updateAuthor": { "name": "anhpt2882", "key": "anhpt2882", "displayName": "Pham Tuan Anh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-11T23:58:57.000+0000", "updated": "2011-12-11T23:58:57.000+0000" }, { "id": "184988", "author": { "name": "kevinmack", "key": "kevinmack", "displayName": "Kevin Mack", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I am also having this same issue, I have this bug outlined in QA here: http://developer.appcelerator.com/question/133174/html-page-webview-event-to-use-native-iosandroid-functionality-like-a-camera#comment-117034", "updateAuthor": { "name": "kevinmack", "key": "kevinmack", "displayName": "Kevin Mack", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-04T21:03:17.000+0000", "updated": "2012-03-04T21:03:17.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }