Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7695] Android: WebView crashes on back button

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-04-20T14:41:44.000+0000
Affected Version/sRelease 1.8.2
Fix Version/sRelease 2.0.0, Release 2.1.0, Sprint 2012-06
ComponentsAndroid
Labelsqe-testadded
ReporterArthur Evans
AssigneeHieu Pham
Created2012-02-16T15:56:58.000+0000
Updated2012-06-18T17:19:06.000+0000

Description

When testing a simple web view sample, I clicked a link on the Appcelerator home page, followed by the back button. This produced the following crash:
E/TiBaseActivity( 4071): (main) [488,11203] Layout cleanup.
F/libc    ( 4071): Fatal signal 11 (SIGSEGV) at 0x0000000c (code=1)
I/DEBUG   ( 3041): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG   ( 3041): Build fingerprint: 'google/mysid/toro:4.0.2/ICL53F/235179:user/release-keys'
I/DEBUG   ( 3041): pid: 4071, tid: 4085  >>> com.appcelerator.eventtester <<<
I/DEBUG   ( 3041): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0000000c
I/DEBUG   ( 3041):  r0 00000000  r1 00000000  r2 00000010  r3 00000080
I/DEBUG   ( 3041):  r4 00000000  r5 00000000  r6 5b9c0674  r7 5b9bc160
I/DEBUG   ( 3041):  r8 00000001  r9 00148368  10 00000001  fp 00000d50
I/DEBUG   ( 3041):  ip 5b9bc238  sp 5b41bb90  lr 5b58b737  pc 5b58d0a0  cpsr 40000030
I/DEBUG   ( 3041):  d0  6944657669746173  d1  746e75722f6c6c70
I/DEBUG   ( 3041):  d2  562f38762f656d6f  d3  656d69746e755273
I/DEBUG   ( 3041):  d4  0a00000de3100001  d5  e34fcfc0e3a0c000
I/DEBUG   ( 3041):  d6  e3a0c000e003200c  d7  e152000ce345cbc0
I/DEBUG   ( 3041):  d8  0000000000000000  d9  0000000000000000
I/DEBUG   ( 3041):  d10 0000000000000000  d11 0000000000000000
I/DEBUG   ( 3041):  d12 0000000000000000  d13 0000000000000000
I/DEBUG   ( 3041):  d14 0000000000000000  d15 0000000000000000
I/DEBUG   ( 3041):  d16 000000004188bc20  d17 43e0000000000000
I/DEBUG   ( 3041):  d18 4028000000000000  d19 3ff0000000000000
I/DEBUG   ( 3041):  d20 4197d78400000000  d21 0100010001000100
I/DEBUG   ( 3041):  d22 0000000000000000  d23 0000000000000000
I/DEBUG   ( 3041):  d24 0000000000000000  d25 0000000000000000
I/DEBUG   ( 3041):  d26 0100010001000100  d27 0100010001000100
I/DEBUG   ( 3041):  d28 0100010001000100  d29 0100010001000100
I/DEBUG   ( 3041):  d30 0001000000010000  d31 0001000000010000
I/DEBUG   ( 3041):  scr 30000012
I/DEBUG   ( 3041): 
I/DEBUG   ( 3041):          #00  pc 000710a0  /data/data/com.appcelerator.eventtester/lib/libkroll-v8.so (_ZN8titanium12AssetsModule9readAssetERKN2v89ArgumentsE)
I/DEBUG   ( 3041):          #01  lr 5b58b737  /data/data/com.appcelerator.eventtester/lib/libkroll-v8.so
I/DEBUG   ( 3041): 
I/DEBUG   ( 3041): code around pc:
I/DEBUG   ( 3041): 5b58d080 46c0e7e4 00430452 004309c8 0042f6b4 
I/DEBUG   ( 3041): 5b58d090 003902b6 003902c8 003902d6 003902da 
I/DEBUG   ( 3041): 5b58d0a0 477068c0 47706900 47706101 22004b04 
I/DEBUG   ( 3041): 5b58d0b0 681b447b 4b03601a 681b447b 4770601a 
I/DEBUG   ( 3041): 5b58d0c0 0042fab4 004302f4 4b08b510 681b447b 
I/DEBUG   ( 3041): 
I/DEBUG   ( 3041): code around lr:
I/DEBUG   ( 3041): 5b58b714 330be01b 4652681b 42131c1d 1e5ad006 
I/DEBUG   ( 3041): 5b58b724 25006812 2a8579d2 e073d100 f0011c28 
I/DEBUG   ( 3041): 5b58b734 f0a4fcb5 1c28ed8a fcb0f001 d0012800 
I/DEBUG   ( 3041): 5b58b744 e98ef0a3 45443401 1c21d010 f0a56830 
I/DEBUG   ( 3041): 5b58b754 f0aeef00 6803eb30 68121e5a 2aa379d2 
I/DEBUG   ( 3041): 
I/DEBUG   ( 3041): stack:
I/DEBUG   ( 3041):     5b41bb50  00001c34  
I/DEBUG   ( 3041):     5b41bb54  5b6a76b8  /data/data/com.appcelerator.eventtester/lib/libkroll-v8.so
I/DEBUG   ( 3041):     5b41bb58  00218cd8  
I/DEBUG   ( 3041):     5b41bb5c  00218d30  
I/DEBUG   ( 3041):     5b41bb60  00218cd8  
I/DEBUG   ( 3041):     5b41bb64  0022a7b0  
I/DEBUG   ( 3041):     5b41bb68  00150da8  
I/DEBUG   ( 3041):     5b41bb6c  00000000  
I/DEBUG   ( 3041):     5b41bb70  00000004  
I/DEBUG   ( 3041):     5b41bb74  5b6315f0  /data/data/com.appcelerator.eventtester/lib/libkroll-v8.so
I/DEBUG   ( 3041):     5b41bb78  00000000  
I/DEBUG   ( 3041):     5b41bb7c  51365eb0  
I/DEBUG   ( 3041):     5b41bb80  5b9c0674  
I/DEBUG   ( 3041):     5b41bb84  5b9bc160  
I/DEBUG   ( 3041):     5b41bb88  df0027ad  
I/DEBUG   ( 3041):     5b41bb8c  00000000  
I/DEBUG   ( 3041): #00 5b41bb90  00000000  
I/DEBUG   ( 3041):     5b41bb94  0000129c  
I/DEBUG   ( 3041):     5b41bb98  5b41bba0  
I/DEBUG   ( 3041):     5b41bb9c  00000000  
I/DEBUG   ( 3041):     5b41bba0  00218cd8  
I/DEBUG   ( 3041):     5b41bba4  00000000  
I/DEBUG   ( 3041):     5b41bba8  00000000  
I/DEBUG   ( 3041):     5b41bbac  5b41bc00  
I/DEBUG   ( 3041):     5b41bbb0  51365f0c  
I/DEBUG   ( 3041):     5b41bbb4  5b41bbd8  
I/DEBUG   ( 3041):     5b41bbb8  51365eb0  
I/DEBUG   ( 3041):     5b41bbbc  001e55e0  
I/DEBUG   ( 3041):     5b41bbc0  5b41bbec  
I/DEBUG   ( 3041):     5b41bbc4  56e03e98  
I/DEBUG   ( 3041):     5b41bbc8  51365eac  
I/DEBUG   ( 3041):     5b41bbcc  00000000  
I/DEBUG   ( 3041):     5b41bbd0  51365eb8  
I/DEBUG   ( 3041):     5b41bbd4  4081fc74  /system/lib/libdvm.so
I/DEBUG   ( 3041): debuggerd committing suicide to free the zombie!
I/BootReceiver(  185): Copying /data/tombstones/tombstone_03 to DropBox (SYSTEM_TOMBSTONE)
I/DEBUG   ( 4133): debuggerd: Dec  8 2011 00:55:26
D/Zygote  (  116): Process 4071 terminated by signal (11)
Test case:
//var tester = require('eventtest');
var win = Ti.UI.createWindow({
	title: 'Event Test',
	backgroundColor: '#111',
	modal: true,
	exitOnClose: true
});

var control = Titanium.UI.createWebView({url:'http://www.appcelerator.com'});

//tester.addListeners(control);
win.add(control);
win.open();
Tested on emulator and device.

Comments

  1. Anshu Mittal 2012-03-19

    Closing bug. Webview works fine on back button. Verified fix on: SDK build: 2.0.0.v20120319003254 Titanium Studio, build: 2.0.0.201203182248 Device: GSlate(v 3.1)
  2. Dustin Hyde 2012-04-05

    Opening to edit labels.
  3. Dustin Hyde 2012-04-05

    Note: This issue is intermittent and took 15 runs in the test suite.
  4. Eric Merriman 2012-06-18

    This ticket was inadvertently reopened. Closing.

JSON Source