Hi All

     I meet a problem that Browser is suddenly crashed without any
debug info.

[Steps]
1. launch Browser and go to Google homepage.
2. click "news"
3. select one news
4. When it finish loading, press back
5. repeat 2~4 steps continuously.

[Result]
Browser is crashed without any info.

I attached the
[Log info]
--------------------------------------------------------------------------------
System.log-----------------------------------------------------------------------------------------
11:48:13 I/ActivityManager(1464): Process com.android.browser (pid
2113) has died.
11:48:13 I/WindowManager(1464): WIN DEATH: Window{306160a8
com.android.browser/com.android.browser.BrowserActivity paused=false}
11:48:13 I/WindowManager(1464): WIN DEATH: Window{304b2e88
com.android.browser/com.android.browser.BrowserActivity paused=false}
11:48:13 I/UsageStats(1464): Unexpected resume of
com.acer.android.breeze.launcher while already resumed in
com.android.browser
11:48:13 W/BackupManagerService(1464): dataChanged but no participant
pkg='com.android.providers.settings' uid=10036
11:48:13 V/HOMEBROADCAST(1464): Receive the home's broadcast(522,560)
11:48:13 W/InputManagerService(1464): Got RemoteException sending
setActive(false) notification to pid 2113 uid 10049
11:48:13 V/HOMEBROADCAST(1464): Receive the home's broadcast(522,560)

------------------------------------------------------------------------------------
kmsg.log-----------------------------------------------------------------------------------------
11:48:13<4>[ 1758.361124] CookieSyncManag used greatest stack depth:
3908 bytes left
11:48:13<6>[ 1758.401858] binder: 1464:1556 transaction failed 29189,
size52-0
11:48:13<6>[ 1758.402071] binder: 1464:1556 transaction failed 29189,
size52-0

     At first, we suspect two points. 1. JIT and 2.JavaScript.
Therefore, we disable JavaScript and JIT and let Monkey to test
Browser. The following are my modifications.
1. Disable JIT
path: android/packages/app/Browser/AndroidManfest.xml
>android:vmSafeMode="true"

2. Forbid Monkey to change JS setup
path: android/framework/base/core/java/android/webkit/WebSetting.java
>    public synchronized void setJavaScriptEnabled(boolean flag) {
>        boolean isMonkey = SystemProperties.getBoolean("ro.monkey", false);
>        if (mJavaScriptEnabled != flag && isMonkey != true) {
>            mJavaScriptEnabled = flag;
>            postSync();
>        }
>    }

3. disable JavaScript and let monkey run
    3.1 launch browser
    3.2 press "menu" button ->"more"-> "Settings" -> uncheck "Enable
JavaScript"
    3.3 execute the monkey. The following is my command
          # adb.exe shell setprop ro.monkey true
          # adb.exe shell "monkey -p com.android.browser -s 2 --ignore-
crashes --ignore-timeouts --ignore-security-exceptions --kill-
process-after-error --monitor-native-crashes -v -v --throttle 1000
2000000 > /sdcard/Monkey_log.txt"

     As disabling JavaScript and JIT, Browser is still crashed. So
far, is there any good suggestion or idea, or does anyone meet the
same problem? Thanks for your reading and I will really appreciate
your suggestion or idea.

Best Regards,

Wayne Lin

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to