{ "id": "126602", "key": "TIMOB-16479", "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": "15931", "description": "2014 Sprint 05", "name": "2014 Sprint 05", "archived": true, "released": true, "releaseDate": "2014-03-14" }, { "id": "15932", "description": "2014 Sprint 05 API", "name": "2014 Sprint 05 API", "archived": true, "released": true, "releaseDate": "2014-03-14" } ], "resolution": { "id": "6", "description": "", "name": "Hold" }, "resolutiondate": "2014-03-12T20:09:27.000+0000", "created": "2014-02-19T20:15:56.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "supportTeam" ], "versions": [ { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" } ], "issuelinks": [ { "id": "36027", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "125711", "key": "TIMOB-16362", "fields": { "summary": "Android: Sencha Touch apps don't work in web view in Android 4.4.2", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "35806", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "125738", "key": "TIMOB-16358", "fields": { "summary": "Android: Webview flickers when scrolling for the first time", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "36717", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "125299", "key": "TIDOC-1548", "fields": { "summary": "Android 4.4 Titanium WebView fails to render html. W/AwContents(20287): nativeOnDraw failed; clearing to background color.", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-07-26T03:24:23.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": "h4. Problem Description\r\nWhen you open a local html file in a webview, it fails (in Android 4.4, using Mobile SDK 3.2.1). \r\n\r\nh4. Test Case\r\nApp.js:\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nvar webview = Ti.UI.createWebView({\r\n\turl:'index.html',\r\n});\r\nwin.add(webview);\r\nwin.open();\r\n{code}\r\n\r\nindex.html:\r\n{code}\r\n\r\n\r\n \r\n Simple Map\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n\r\n{code}\r\n\r\nh4. Steps to reproduce\r\n1. Create new mobile project (titanium classic) using Mobile SDK 3.2.1\r\n2. Paste the code sample to app.js\r\n3. Paste the index.html contents into a new file index.html in Resources directory\r\n4. Run the app into Nexus 4 or any device with KITKAT\r\n5. See the error messages attached to this bug\r\n\r\nh4. Error messages\r\n{code}\r\n[INFO] : TiApplication: (main) [139,532] Titanium Javascript runtime: v8\r\n[INFO] : TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null\r\n[INFO] : TiAnalyticsDb: (main) [34,34] Upgrading Database from 1 to 4\r\n[WARN] : V8Object: Runtime disposed, cannot set property 'userAgent'\r\n[INFO] : I/dalvikvm-heap: Grow heap (frag case) to 11.794MB for 2731536-byte allocation\r\n[INFO] : TiRootActivity: (main) [0,0] checkpoint, on root activity resume. activity = com.negoapps.mapv3.Mapv3Activity@423e1c88\r\n[INFO] : chromium: [INFO:library_loader_hooks.cc(112)] Chromium logging enabled: level = 0, default verbosity = 0\r\n[INFO] : BrowserProcessMain: Initializing chromium process, renderers=0\r\n[WARN] : chromium: [WARNING:proxy_service.cc(888)] PAC support disabled because there is no system implementation\r\n[INFO] : I/Adreno-EGL: : EGL 1.4 QUALCOMM Build: I0404c4692afb8623f95c43aeb6d5e13ed4b30ddbDate: 11/06/13\r\n[INFO] : Choreographer: Skipped 221 frames! The application may be doing too much work on its main thread.\r\n[WARN] : AwContents: nativeOnDraw failed; clearing to background color.\r\n[INFO] : chromium: [INFO:async_pixel_transfer_manager_android.cc(56)] Async pixel transfers not supported\r\n[INFO] : chromium: [INFO:async_pixel_transfer_manager_android.cc(56)] Async pixel transfers not supported\r\n[ERROR] : qdutils: FBIOGET_FSCREENINFO failed\r\n[INFO] : chromium: [INFO:simple_index_file.cc(397)] Simple Cache Index is being restored from disk.\r\n[INFO] : TiAnalyticsSvc: (Thread-1940) [36578,36578] Analytics Service Started\r\n[INFO] : TiAnalyticsSvc: (Thread-1940) [1604,38182] Stopping Analytics Service\r\n\r\n{code}\r\n\r\nh4. Extra info \r\n- If you run the webview with google.com it will work just fine, it's not a general issue.\r\n- If you want the original html file, you can locate it here: https://developers.google.com/maps/documentation/javascript/examples/map-simple\r\n\r\nh4. Q&A Question\r\nhttp://developer.appcelerator.com/question/162782/google-maps-v3-on-android-44--just-blank\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: local HTML-based Google Maps in webview fails to open", "creator": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "subtasks": [], "reporter": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "environment": "Device: Google Nexus 4\r\nOS: KITKAT\r\nMobile SDK Version: 3.2.1.GA", "comment": { "comments": [ { "id": "296867", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "In API 4.4 Android introduced a new version webview based on Chromium. \r\nhttp://developer.android.com/guide/webapps/migrating.html\r\n\r\nThere are some assumptions made on the EGL context in Chromium\r\nhttps://chromium.googlesource.com/chromium/src/gpu/+/cd1cd1e0196f74b9bec50d1a65615db207a8e40d/command_buffer/service/async_pixel_transfer_manager_android.cc\r\n\r\nWe actually turned off hardware acceleration on WebView as part of TIMOB-16358 but that does not seem to be working.\r\n\r\nThe only reliable workaround I have found in Titanium is to set a borderRadius > 0 which adds a borderView with layer type software and turn off hardware acceleration on the WebView.\r\n\r\n\r\nGoing to mark this as hold. The workaround is shown below and work on 3.2.1.GA, 3.2.2.GA and the current master branch\r\n\r\n{code}\r\nvar webview = Ti.UI.createWebView({\r\n url:'index.html',\r\n borderRadius:1\r\n});\r\n{code}\r\n ", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-03-12T20:08:55.000+0000", "updated": "2014-03-12T20:10:01.000+0000" }, { "id": "296891", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This works for me with Nexus 4 (4.4) running on 3.2.1.GA and current master. I did notice an odd error though, the map didn't show when I enable Soasta (com.soasta.touchtest). I get the following error: \n[ERROR] : dalvikvm: Could not find class 'com.google.android.maps.MapView', referenced from method com.soasta.android.touchtest.recording.TTRecorder.recordSetMapRegion\n\n", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-12T21:22:14.000+0000", "updated": "2014-03-12T21:22:14.000+0000" }, { "id": "297144", "author": { "name": "roel", "key": "roel", "displayName": "roel", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Workaround works (tested on Nexus 4.4 / 3.2.1GA). Thank you.", "updateAuthor": { "name": "roel", "key": "roel", "displayName": "roel", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-13T22:46:15.000+0000", "updated": "2014-03-13T22:46:15.000+0000" }, { "id": "313023", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~vduggal] Better workaround: https://github.com/mpociot/TiWebviewFragment", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-09T16:58:48.000+0000", "updated": "2014-07-09T16:58:48.000+0000" }, { "id": "327119", "author": { "name": "mfarouk", "key": "mfarouk", "displayName": "Farouk Mokrani", "active": true, "timeZone": "Africa/Lagos" }, "body": "Workaround not worked for me i have AwContents: nativeOnDraw failed; clearing to background color. :(", "updateAuthor": { "name": "mfarouk", "key": "mfarouk", "displayName": "Farouk Mokrani", "active": true, "timeZone": "Africa/Lagos" }, "created": "2014-10-07T09:39:25.000+0000", "updated": "2014-10-07T09:39:25.000+0000" }, { "id": "332669", "author": { "name": "bearus", "key": "bearus", "displayName": "Be Rushton", "active": true, "timeZone": "Australia/Brisbane" }, "body": "Spent a day trying to debug this issue, before finally finding this workaround. This needs to be fixed ASAP or at least adding the workaround to the docs while it is on hold.", "updateAuthor": { "name": "bearus", "key": "bearus", "displayName": "Be Rushton", "active": true, "timeZone": "Australia/Brisbane" }, "created": "2014-11-18T07:29:15.000+0000", "updated": "2014-11-18T07:29:15.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }