Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15419] Android: WebView problem in Android Emulator

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionDuplicate
Resolution Date2013-10-08T15:50:59.000+0000
Affected Version/sRelease 3.1.3
Fix Version/sn/a
ComponentsAndroid
LabelsAndroid, SupportTeam, WebView
ReporterMostafizur Rahman
AssigneeIngo Muschenetz
Created2013-10-08T12:00:39.000+0000
Updated2017-03-20T22:17:58.000+0000

Description

Android Emulator auto crashes for WebView

When I added web view in window. Its crash my android emulator. I have also tried for both local and remote web URL.

Test Code

var win1 = Titanium.UI.createWindow({
	backgroundColor : '#fff',

});

// Create a WebView
var aWebView = Ti.UI.createWebView({
	url : 'http://docs.appcelerator.com/'
});
 
win1.add(aWebView);

win1.open({
	fullscreen : true
});

<Alloy>
	<Window class="container" navBarHidden="true" exitOnClose="true">
		<WebView id="w1" url="http://volume8.logiamobile.com/login.aspx"></WebView>
	</Window>
</Alloy>

Steps to reproduce

Please follow my step for reproducing this issue. 1. Create new apps for Titanium Classic or Alloy 2. Replace my test code to app.js code 3. Now run in android emulator for testing 4. Look in your Android emulator for crash state

Build logs for webview

[INFO][dalvikvm( 1059)] "WebViewCoreThread" prio=5 tid=13 NATIVE
[INFO][dalvikvm( 1059)]   | group="main" sCount=0 dsCount=0 obj=0x405c8e68 self=0x2ae838
[INFO][dalvikvm( 1059)]   | sysTid=1073 nice=0 sched=0/0 cgrp=default handle=2816296
[INFO][dalvikvm( 1059)]   | schedstat=( 1344693134 954955096 334 )
[INFO][dalvikvm( 1059)]   at android.webkit.JWebCoreJavaBridge.sharedTimerFired(Native Method)
[INFO][dalvikvm( 1059)]   at android.webkit.JWebCoreJavaBridge.sharedTimerFired(Native Method)
[INFO][dalvikvm( 1059)]   at android.webkit.JWebCoreJavaBridge.fireSharedTimer(JWebCoreJavaBridge.java:91)
[INFO][dalvikvm( 1059)]   at android.webkit.JWebCoreJavaBridge.handleMessage(JWebCoreJavaBridge.java:108)
[INFO][dalvikvm( 1059)]   at android.os.Handler.dispatchMessage(Handler.java:99)
[INFO][dalvikvm( 1059)]   at android.os.Looper.loop(Looper.java:123)
[INFO][dalvikvm( 1059)]   at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:629)
[INFO][dalvikvm( 1059)]   at java.lang.Thread.run(Thread.java:1019)
[INFO][dalvikvm( 1059)] 
[ERROR][dalvikvm( 1059)] VM aborting
[INFO][DEBUG   ( 1037)] *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
[INFO][DEBUG   ( 1037)] Build fingerprint: 'generic/sdk/generic:2.3.3/GRI34/101070:eng/test-keys'
[INFO][DEBUG   ( 1037)] pid: 1059, tid: 1073  >>> com.appc.webview <<<
[INFO][DEBUG   ( 1037)] signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadd00d
[INFO][DEBUG   ( 1037)]  r0 fffffec4  r1 deadd00d  r2 00000026  r3 00000000
[INFO][DEBUG   ( 1037)]  r4 800a45c0  r5 406508c8  r6 80085acc  r7 002afa18
[INFO][DEBUG   ( 1037)]  r8 4496bb58  r9 444d9f1c  10 444d9f04  fp 41edd8a0
[INFO][DEBUG   ( 1037)]  ip 800a4720  sp 4496b678  lr afd19375  pc 80045a4a  cpsr 20000030
[INFO][DEBUG   ( 1037)]          #00  pc 00045a4a  /system/lib/libdvm.so
[INFO][DEBUG   ( 1037)]          #01  pc 00037748  /system/lib/libdvm.so
[INFO][DEBUG   ( 1037)]          #02  pc 00039a10  /system/lib/libdvm.so
[INFO][DEBUG   ( 1037)]          #03  pc 0003a4ec  /system/lib/libdvm.so
[INFO][DEBUG   ( 1037)]          #04  pc 002989d6  /system/lib/libwebcore.so
[INFO][DEBUG   ( 1037)]          #05  pc 002120a4  /system/lib/libwebcore.so
[INFO][DEBUG   ( 1037)]          #06  pc 00113216  /system/lib/libwebcore.so
[INFO][DEBUG   ( 1037)]          #07  pc 00212b70  /system/lib/libwebcore.so
[INFO][DEBUG   ( 1037)]          #08  pc 002c716e  /system/lib/libwebcore.so
[INFO][DEBUG   ( 1037)]          #09  pc 002ca4c6  /system/lib/libwebcore.so
[INFO][DEBUG   ( 1037)]          #10  pc 002d83b0  /system/lib/libwebcore.so
[INFO][DEBUG   ( 1037)]          #11  pc 002cfae8  /system/lib/libwebcore.so
[INFO][DEBUG   ( 1037)]          #12  pc 00210094  /system/lib/libwebcore.so
[INFO][DEBUG   ( 1037)]          #13  pc 00210112  /system/lib/libwebcore.so
[INFO][DEBUG   ( 1037)]          #14  pc 00210180  /system/lib/libwebcore.so
[INFO][DEBUG   ( 1037)]          #15  pc 001e7cc6  /system/lib/libwebcore.so
[INFO][DEBUG   ( 1037)]          #16  pc 0007eeda  /system/lib/libwebcore.so
[INFO][DEBUG   ( 1037)]          #17  pc 0007ef84  /system/lib/libwebcore.so
[INFO][DEBUG   ( 1037)]          #18  pc 0011b076  /system/lib/libwebcore.so
[INFO][DEBUG   ( 1037)]          #19  pc 00017d74  /system/lib/libdvm.so
[INFO][DEBUG   ( 1037)]          #20  pc 00048f08  /system/lib/libdvm.so
[INFO][DEBUG   ( 1037)]          #21  pc 00041ab6  /system/lib/libdvm.so
[INFO][DEBUG   ( 1037)]          #22  pc 0001cfd4  /system/lib/libdvm.so
[INFO][DEBUG   ( 1037)]          #23  pc 000220dc  /system/lib/libdvm.so
[INFO][DEBUG   ( 1037)]          #24  pc 00020fd0  /system/lib/libdvm.so
[INFO][DEBUG   ( 1037)]          #25  pc 0005f430  /system/lib/libdvm.so
[INFO][DEBUG   ( 1037)]          #26  pc 0005f656  /system/lib/libdvm.so
[INFO][DEBUG   ( 1037)]          #27  pc 00053b4e  /system/lib/libdvm.so
[INFO][DEBUG   ( 1037)]          #28  pc 00011a7c  /system/lib/libc.so
[INFO][DEBUG   ( 1037)]          #29  pc 00011640  /system/lib/libc.so
[INFO][DEBUG   ( 1037)] 
[INFO][DEBUG   ( 1037)] code around pc:
[INFO][DEBUG   ( 1037)] 80045a28 447a4479 ed0cf7d1 20004c09 ee34f7d1 
[INFO][DEBUG   ( 1037)] 80045a38 447c4808 6bdb5823 d0002b00 49064798 
[INFO][DEBUG   ( 1037)] 80045a48 700a2226 eea0f7d1 000436b7 00045275 
[INFO][DEBUG   ( 1037)] 80045a58 0005eb82 fffffec4 deadd00d b510b40e 
[INFO][DEBUG   ( 1037)] 80045a68 4c0a4b09 447bb083 aa05591b 6b5bca02 
[INFO][DEBUG   ( 1037)] 
[INFO][DEBUG   ( 1037)] code around lr:
[INFO][DEBUG   ( 1037)] afd19354 b0834a0d 589c447b 26009001 686768a5 
[INFO][DEBUG   ( 1037)] afd19364 220ce008 2b005eab 1c28d003 47889901 
[INFO][DEBUG   ( 1037)] afd19374 35544306 d5f43f01 2c006824 b003d1ee 
[INFO][DEBUG   ( 1037)] afd19384 bdf01c30 000281a8 ffffff88 1c0fb5f0 
[INFO][DEBUG   ( 1037)] afd19394 43551c3d a904b087 1c16ac01 604d9004 
[INFO][DEBUG   ( 1037)] 
[INFO][DEBUG   ( 1037)] stack:
[INFO][DEBUG   ( 1037)]     4496b638  00000015  
[INFO][DEBUG   ( 1037)]     4496b63c  afd18407  /system/lib/libc.so
[INFO][DEBUG   ( 1037)]     4496b640  afd4270c  /system/lib/libc.so
[INFO][DEBUG   ( 1037)]     4496b644  afd426b8  /system/lib/libc.so
[INFO][DEBUG   ( 1037)]     4496b648  00000000  
[INFO][DEBUG   ( 1037)]     4496b64c  afd19375  /system/lib/libc.so
[INFO][DEBUG   ( 1037)]     4496b650  002ae838  [heap]
[INFO][DEBUG   ( 1037)]     4496b654  afd183d9  /system/lib/libc.so
[INFO][DEBUG   ( 1037)]     4496b658  002afa18  [heap]
[INFO][DEBUG   ( 1037)]     4496b65c  0005eb82  [heap]
[INFO][DEBUG   ( 1037)]     4496b660  406508c8  /dev/ashmem/dalvik-heap (deleted)
[INFO][DEBUG   ( 1037)]     4496b664  80085acc  /system/lib/libdvm.so
[INFO][DEBUG   ( 1037)]     4496b668  002afa18  [heap]
[INFO][DEBUG   ( 1037)]     4496b66c  afd18437  /system/lib/libc.so
[INFO][DEBUG   ( 1037)]     4496b670  df002777  
[INFO][DEBUG   ( 1037)]     4496b674  e3a070ad  
[INFO][DEBUG   ( 1037)] #00 4496b678  00000001  
[INFO][DEBUG   ( 1037)]     4496b67c  8003774d  /system/lib/libdvm.so
[INFO][DEBUG   ( 1037)] #01 4496b680  00000001  
[INFO][DEBUG   ( 1037)]     4496b684  80039a15  /system/lib/libdvm.so

Thanks

Comments

  1. Ingo Muschenetz 2013-10-08

    Marked as duplicate of linked issue.
  2. Lee Morris 2017-03-20

    Closing ticket as duplicate.

JSON Source