Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8267] Android: App crashes when reusing a WebView instance on an Activity window

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-04-04T12:42:10.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sRelease 2.0.0, Sprint 2012-06
ComponentsAndroid
Labelsqe-and031912, qe-testadded, regression
ReporterNeha Chhabra
AssigneeMarshall Culpepper
Created2012-03-24T02:41:20.000+0000
Updated2012-04-04T12:42:10.000+0000

Description

Application crashes on reopening a web view button (Titanium.UI.WebView Acceptance TIMOB-4357) Steps To Reproduce: 1. Launch app on Android device or emulator 2. Navigate to acceptance tab and run timob_4357 3. Press the open WebView button 4. Press the back hardware button 5. Press the open WebView button again. Expected Result: After Step 5: App should not crash Actual Result: After Step 5, the app crashes. app.js

var win = Ti.UI.createWindow({
	backgroundColor : 'black'
});
		
		var button = Ti.UI.createButton({
			title : 'Open WebView'
		});
		
		var browser = Ti.UI.createWebView();
		var html = '<html><body><select><option value="Feedback">Feedback</option><option value="Bug">Bug</option></select></body></html>';
		button.addEventListener('click', function() {
			var w = Ti.UI.createWindow({
				fullscreen : true
			});
			
			w.add(browser);
			w.open();
			browser.html = html;
		});
	
	
	win.add(button);
win.open();

Attachments

FileDateSize
Crash_log.txt2012-03-24T02:41:20.000+00005480
error.png2012-03-24T02:41:20.000+000016584
motorola.png2012-03-24T02:41:20.000+000036708

Comments

  1. Marshall Culpepper 2012-03-24

    What version of the Android emulator does this occur on?
  2. Neha Chhabra 2012-03-24

    Google API's Android 2.2
  3. Neeraj Gupta 2012-03-25

    PR #1833 available for review.
  4. Satyam Sekhri 2012-03-26

    Closing the bug. Verified the bug and no crash happens on reloading a webview instance and it opens correctly. Verified on: Titanium SDK: 2.0.0.v20120325213306 Titanium Studio: 2.0.0.201203262445 Device: Nexus One (V2.2.2)
  5. Dustin Hyde 2012-04-04

    Opening to edit labels.

JSON Source