{ "id": "125300", "key": "TIMOB-16296", "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": null, "resolutiondate": null, "created": "2014-01-23T17:40:49.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "parity", "supportTeam" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:54.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h6.Use case\r\nNeed Bing maps to display in an app and had it doing so in Android OS 4.3 on most Android devices. However, it doesn't seem to work anymore on Android OS 4.4 KitKat. Attached stripped down version works on iPhone and on 4.3, however not on 4.4 and few Android versions like 4.0.x. \r\n\r\nh6.Steps to reproduce\r\n1) Get and run sample attached\r\n2) Watch monitor console\r\n\r\nh6.Test results\r\niOS 7.0 - Maps fully loaded and event logged.\r\n{quote}\r\nJan 22 13:00:16 lAlO BingMapsKitKat[284] : [WARN] In Maps WebView\r\nJan 22 13:00:16 lAlO BingMapsKitKat[284] : [DEBUG] Firing app event: app:updateWebView\r\nJan 22 13:00:16 lAlO BingMapsKitKat[284] : [WARN] [\r\n\t latitude = \"76.2361273\";\r\n\t longitude = \"36.8527915\";\r\n\t}\r\n{quote}\r\n\r\nAndroid 4.0.4 (Xperia) & 4.4 (nexus 7) SDK 3.2.0.GA & 3.3.0.v20140121162449 does not render Map and eventually throw \"Uncaught ReferenceErrors\":\r\n{quote}\r\n01-22 14:59:31.826: W/TiAPI(18562): In Maps WebView\r\n01-22 14:59:32.256: I/ActivityManager(224): Process com.android.defcontainer (pid 18452) has died.\r\n01-22 14:59:32.276: I/ActivityManager(224): Process com.android.keychain (pid 18526) has died.\r\n01-22 14:59:32.366: W/TiAPI(18562): undefined\r\n01-22 14:59:32.426: I/ActivityManager(224): Process com.google.android.partnersetup (pid 18587) has died.\r\n01-22 14:59:32.456: I/TiWebChromeClient.console(18562): (main) [6082,6082] Uncaught TypeError: Cannot call method 'appendChild' of null (1:http://ecn.dev.virtualearth.net/mapcontrol/v7.0/7.0.20131202145924.46/js/en-us/veapicore.js)\r\n01-22 14:59:32.476: I/ActivityManager(224): Process com.android.voicedialer (pid 18473) has died.\r\n01-22 14:59:32.566: I/ActivityManager(224): Process com.noshufou.android.su (pid 18507) has died.\r\n01-22 14:59:32.676: W/V8Object(18695): Runtime disposed, cannot set property 'userAgent'\r\n{quote}\r\n\r\n{quote}\r\n01-22 14:43:44.196: W/TiAPI(12171): In Maps WebView\r\n01-22 14:43:45.286: I/TiWebChromeClient.console(12171): (main) [41984,82089] Uncaught ReferenceError: Microsoft is not defined (63:file:///android_asset/Resources/web/index.html)\r\n{quote}", "attachment": [ { "id": "51811", "filename": "BingMapsKitKat_Corrected.zip", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-10-06T18:54:54.000+0000", "size": 6758548, "mimeType": "application/zip" }, { "id": "45323", "filename": "BingMapsKitKat.zip", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-01-23T17:40:49.000+0000", "size": 6656762, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: Uncaught errors on TiWebChromeClient", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Android OS 4.4\r\nTiSDK 3.2.0.GA & 3.3.0.v20140121162449", "comment": { "comments": [ { "id": "289726", "author": { "name": "michael@webitstudios.com", "key": "michael@webitstudios.com", "displayName": "Michael DeGiovanni", "active": true, "timeZone": "Europe/Berlin" }, "body": "Probably related: \r\nI am running the Disqus comments in a webview. Short pages which do not require scrolling don't have this problem, but if it is a page full of comments as soon as I start scrolling the app crashes.\r\n\r\nUrl is :\r\nhttp://webitstudios.com/staging/tom/comments.html?shortname=timesofmalta&title=MEP%20Joseph%20Cuschieri%20calls%20for%20removal%20of%20vehicle%20registration%20tax&url=http%3A%2F%2Fwww.timesofmalta.com%2Farticles%2Fview%2F20140125%2Flocal%2Fmep-joseph-cuschieri-calls-for-removal-of-vehicle-registration-tax.504037&identifier=article_504037\r\n\r\nThe error given is :\r\n01-25 17:43:50.019: D/OpenGLRenderer(2501): GL error from OpenGLRenderer: 0x502\r\n\r\n\r\nlog shows as follows: \r\n01-25 17:43:50.429: I/DEBUG(1238): signal 7 (SIGBUS), code 1 (BUS_ADRALN), fault addr 00000005\r\n01-25 17:43:51.079: I/DEBUG(1238): r0 00000005 r1 62b216a0 r2 ffffffff r3 00000005\r\n01-25 17:43:51.089: I/DEBUG(1238): r4 62b216e8 r5 660fcb98 r6 660fcb50 r7 62b216a0\r\n01-25 17:43:51.089: I/DEBUG(1238): r8 403c9fb1 r9 660fcdd0 sl be802ecc fp 00000000\r\n01-25 17:43:51.099: I/DEBUG(1238): ip 407c1bec sp 660fcb30 lr 406bdd65 pc 40396614 cpsr 00020010\r\n01-25 17:43:51.099: I/DEBUG(1238): d0 40077a080b000501 d1 0000000500000000\r\n01-25 17:43:51.099: I/DEBUG(1238): d2 00000019ffffffff d3 64bfdcb8403681c0\r\n01-25 17:43:51.109: I/DEBUG(1238): d4 0000000200000000 d5 4000000000000000\r\n01-25 17:43:51.109: I/DEBUG(1238): d6 4000000040000000 d7 00000000448c4000\r\n01-25 17:43:51.109: I/DEBUG(1238): d8 0000000040000000 d9 4024000000000000\r\n01-25 17:43:51.109: I/DEBUG(1238): d10 4014000000000000 d11 4024000000000000\r\n01-25 17:43:51.109: I/DEBUG(1238): d12 0000000000000000 d13 0000000000000000\r\n01-25 17:43:51.119: I/DEBUG(1238): d14 0000000000000000 d15 0000000000000000\r\n01-25 17:43:51.119: I/DEBUG(1238): d16 3ff0000000000000 d17 0000000000000000\r\n01-25 17:43:51.119: I/DEBUG(1238): d18 0000000000000000 d19 4086800000000000\r\n01-25 17:43:51.119: I/DEBUG(1238): d20 4000000000000000 d21 4010000000000000\r\n01-25 17:43:51.119: I/DEBUG(1238): d22 4086a00000000000 d23 4091880000000000\r\n01-25 17:43:51.129: I/DEBUG(1238): d24 4000000000000000 d25 4010000000000000\r\n01-25 17:43:51.129: I/DEBUG(1238): d26 3ff0000000000000 d27 0000000000000000\r\n01-25 17:43:51.129: I/DEBUG(1238): d28 3ff0000000000000 d29 0000000000000000\r\n01-25 17:43:51.129: I/DEBUG(1238): d30 0000000000000000 d31 0000000000000000\r\n01-25 17:43:51.129: I/DEBUG(1238): scr 88000017\r\n01-25 17:43:51.139: I/DEBUG(1238): backtrace:\r\n01-25 17:43:51.149: I/DEBUG(1238): #00 pc 00003614 /system/lib/libcutils.so (android_atomic_inc+8)\r\n01-25 17:43:51.149: I/DEBUG(1238): #01 pc 000b2d61 /system/lib/libskia.so (SkPaint::SkPaint(SkPaint const&)+46)\r\n01-25 17:43:51.149: I/DEBUG(1238): #02 pc 000257eb /system/lib/libhwui.so\r\n01-25 17:43:51.149: I/DEBUG(1238): #03 pc 00025fe9 /system/lib/libhwui.so\r\n01-25 17:43:51.159: I/DEBUG(1238): #04 pc 00025da7 /system/lib/libhwui.so\r\n01-25 17:43:51.159: I/DEBUG(1238): #05 pc 0000ed73 /system/lib/libhwui.so\r\n01-25 17:43:51.159: I/DEBUG(1238): #06 pc 0000f445 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+104)\r\n01-25 17:43:51.159: I/DEBUG(1238): #07 pc 000525a9 /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+68)\r\n01-25 17:43:51.159: I/DEBUG(1238): #08 pc 0000efe7 /system/lib/libutils.so\r\n01-25 17:43:51.169: I/DEBUG(1238): #09 pc 0000d228 /system/lib/libc.so (__thread_entry+72)\r\n01-25 17:43:51.169: I/DEBUG(1238): #10 pc 0000d3c0 /system/lib/libc.so (pthread_create+240)\r\n01-25 17:43:51.169: W/NFC-LLC(878): LLC length mis-match\r\n01-25 17:43:51.169: I/DEBUG(1238): stack:\r\n01-25 17:43:51.169: I/DEBUG(1238): 660fcaf0 00000001 \r\n01-25 17:43:51.179: I/DEBUG(1238): 660fcaf4 652fe0f0 \r\n01-25 17:43:51.179: I/DEBUG(1238): 660fcaf8 00000000 \r\n01-25 17:43:51.179: I/DEBUG(1238): 660fcafc 00000000 \r\n01-25 17:43:51.189: I/DEBUG(1238): 660fcb00 00000000 \r\n01-25 17:43:51.189: I/DEBUG(1238): 660fcb04 403c9fb1 /system/lib/libutils.so\r\n01-25 17:43:51.189: I/DEBUG(1238): 660fcb08 660fcdd0 [stack:3220]\r\n01-25 17:43:51.189: I/DEBUG(1238): 660fcb0c be802ecc [stack]\r\n01-25 17:43:51.189: I/DEBUG(1238): 660fcb10 00000000 \r\n01-25 17:43:51.189: I/DEBUG(1238): 660fcb14 4069bfe1 /system/lib/libskia.so (SkBitmap::eraseARGB(unsigned int, unsigned int, unsigned int, unsigned int) const+56)\r\n01-25 17:43:51.189: I/DEBUG(1238): 660fcb18 00000000 \r\n01-25 17:43:51.199: I/DEBUG(1238): 660fcb1c 00000000 \r\n01-25 17:43:51.199: I/DEBUG(1238): 660fcb20 00000000 \r\n01-25 17:43:51.199: I/DEBUG(1238): 660fcb24 00000000 \r\n01-25 17:43:51.199: I/DEBUG(1238): 660fcb28 000002d4 \r\n01-25 17:43:51.199: I/DEBUG(1238): 660fcb2c 00000466 \r\n01-25 17:43:51.199: I/DEBUG(1238): #00 660fcb30 652fe0fc \r\n01-25 17:43:51.209: I/DEBUG(1238): ........ ........\r\n01-25 17:43:51.209: I/DEBUG(1238): #01 660fcb30 652fe0fc \r\n01-25 17:43:51.209: I/DEBUG(1238): 660fcb34 00000000 \r\n01-25 17:43:51.209: I/DEBUG(1238): 660fcb38 652fe0f0 \r\n01-25 17:43:51.209: I/DEBUG(1238): 660fcb3c 62b21270 \r\n01-25 17:43:51.209: I/DEBUG(1238): 660fcb40 62b216a0 \r\n01-25 17:43:51.219: I/DEBUG(1238): 660fcb44 40cd87ef /system/lib/libhwui.so\r\n01-25 17:43:51.219: I/DEBUG(1238): #02 660fcb48 00000000 \r\n01-25 17:43:51.219: I/DEBUG(1238): 660fcb4c 00000000 \r\n01-25 17:43:51.219: I/DEBUG(1238): 660fcb50 00000001 \r\n01-25 17:43:51.219: I/DEBUG(1238): 660fcb54 00000020 \r\n01-25 17:43:51.229: I/DEBUG(1238): 660fcb58 00000000 \r\n01-25 17:43:51.229: I/DEBUG(1238): 660fcb5c 00000000 \r\n01-25 17:43:51.229: I/DEBUG(1238): 660fcb60 652fd014 \r\n01-25 17:43:51.229: I/DEBUG(1238): 660fcb64 655d41ec \r\n01-25 17:43:51.229: I/DEBUG(1238): 660fcb68 00000000 \r\n01-25 17:43:51.229: I/DEBUG(1238): 660fcb6c 431e0000 /dev/ashmem/dalvik-heap (deleted)\r\n01-25 17:43:51.239: I/DEBUG(1238): 660fcb70 44340000 /dev/ashmem/dalvik-heap (deleted)\r\n01-25 17:43:51.239: I/DEBUG(1238): 660fcb74 44a00000 /dev/ashmem/dalvik-heap (deleted)\r\n01-25 17:43:51.239: I/DEBUG(1238): 660fcb78 00000000 \r\n01-25 17:43:51.239: I/DEBUG(1238): 660fcb7c 00000005 \r\n01-25 17:43:51.239: I/DEBUG(1238): 660fcb80 ffffffff \r\n01-25 17:43:51.249: I/DEBUG(1238): 660fcb84 00000019 \r\n01-25 17:43:51.249: I/DEBUG(1238): ........ ........\r\n\r\n\r\nIf it is nor related, let me know so I'll create a separate issue\r\n", "updateAuthor": { "name": "michael@webitstudios.com", "key": "michael@webitstudios.com", "displayName": "Michael DeGiovanni", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-01-25T16:47:45.000+0000", "updated": "2014-01-25T16:47:45.000+0000" }, { "id": "290880", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "After some more research and testing uncaught errors came out from that 3rd party library and prevents Bing Maps to work (modifications below address the issue).\r\n\r\nh6.Stack trace\r\n{code}\r\n01-28 11:45:41.443: W/TiAPI(6484): #### [Location 76.2361273,36.8527915]\r\n01-28 11:45:41.443: W/TiAPI(6484): $$$$ birdseye 76.2361273 36.8527915\r\n01-28 11:45:41.493: I/TiWebChromeClient.console(6484): (main) [2121,2121] Uncaught TypeError: Cannot call method 'appendChild' of null (1:http://ecn.dev.virtualearth.net/mapcontrol/v7.0/7.0.20140121124250.64/js/en-us/veapicore.js)\r\n{code}\r\n\r\nMicrosoft docs suggest adding script type and charset:\r\n- http://msdn.microsoft.com/en-us/library/gg427624.aspx \r\n \r\nTo Prevent appendChild error: \r\n- http://stackoverflow.com/questions/14946428/how-to-fix-uncaught-typeerror-cannot-call-method-appendchild-of-null\r\n\r\n**On Xperia 4.0 maps were black. We got no errors or warnings in the monitor though.\r\n\r\nMichael DeGiovanni, your logs seems to evidence a different issue. Please raise a Jira ticket and include a [test case|http://docs.appcelerator.com/titanium/latest/#!/guide/JIRA_Ticket_Template] to investigate more. ", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-02-03T16:25:57.000+0000", "updated": "2014-02-03T16:41:06.000+0000" }, { "id": "325809", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces\r\n\r\nTitanium SDK version 3.4.0 master, 3.2.0.GA\r\nTitanium Studio, build: 3.3.0.201407100905\r\nTitanium Command-Line Interface\r\nCLI version 3.3.0, \r\nAndroid device : Motorola Moto G, Android version : 4.4.4\r\niOS simulator : iPhone Retina (3.5-inch), iOS 7.0.3\r\n\r\niOS shows latitude and longitude in console, but Android shows undefined.", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-26T06:47:55.000+0000", "updated": "2014-09-26T06:47:55.000+0000" }, { "id": "327048", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Issue is Not our Bug. Attaching working code (correction made to assets/web/index.html).\r\n\r\nTested 3.4.0.GA / 3.4.0 CLI. Device Android Xperia OS: 4.0.4.\r\n\r\nThanks for the guidance, [~ingo]", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-10-06T18:54:54.000+0000", "updated": "2014-10-06T18:54:54.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }