I encounter the same problem with latest cupcake and main branch, my CPU is ARM926EJS. I checked SystemServer.java:332, but i don't have any idea why I got this error message and it cause the VM (AndroidRuntime) restart again and again. Can any one give some suggestion? The kernel and HW isn't changed, i only update the code from cupcake and main yesterday and it can't work now. Laster weeks cupcake and main are both OK in my platform.
D/dalvikvm( 706): Trying to load lib /system/lib/libsoundpool.so 0x0 D/dalvikvm( 706): Added shared lib /system/lib/libsoundpool.so 0x0 W/AudioService( 706): Soundpool could not load file: /system/media/ audio/ui/Effect_Tick.ogg W/AudioService( 706): Soundpool could not load file: /system/media/ audio/ui/KeypressStandard.ogg W/AudioService( 706): Soundpool could not load file: /system/media/ audio/ui/KeypressSpacebar.ogg W/AudioService( 706): Soundpool could not load file: /system/media/ audio/ui/KeypressDelete.ogg W/AudioService( 706): Soundpool could not load file: /system/media/ audio/ui/KeypressReturn.ogg I/SystemServer( 706): Starting HeadsetObserver W/HeadsetObserver( 706): This kernel does not have wired headset support I/SystemServer( 706): Starting AppWidget Service W/dalvikvm( 706): threadid=17: thread exiting with uncaught exception (group=0x4000fe70) E/AndroidRuntime( 706): Uncaught handler: thread android.server.ServerThread exiting due to uncaught exception E/AndroidRuntime( 706): *** EXCEPTION IN SYSTEM PROCESS. System will crash. E/AndroidRuntime( 706): java.lang.NullPointerException E/AndroidRuntime( 706): at com.android.server.ServerThread.run (SystemServer.java:332) I/Process ( 706): Sending signal. PID: 706 SIG: 9 I/ServiceManager( 593): service 'activity' died I/ServiceManager( 593): service 'package' died I/ServiceManager( 593): service 'SurfaceFlinger' died I/ServiceManager( 593): service 'power' died I/ServiceManager( 593): service 'batteryinfo' died I/ServiceManager( 593): service 'usagestats' died I/ServiceManager( 593): service 'telephony.registry' died I/ServiceManager( 593): service 'statusbar' died I/ServiceManager( 593): service 'clipboard' died I/ServiceManager( 593): service 'content' died I/ServiceManager( 593): service 'cpuinfo' died I/ServiceManager( 593): service 'activity.broadcasts' died I/ServiceManager( 593): service 'activity.services' died I/ServiceManager( 593): service 'activity.senders' died I/ServiceManager( 593): service 'activity.providers' died I/ServiceManager( 593): service 'permission' died I/ServiceManager( 593): service 'meminfo' died I/ServiceManager( 593): service 'netstat' died I/ServiceManager( 593): service 'input_method' died I/ServiceManager( 593): service 'wifi' died I/ServiceManager( 593): service 'devicestoragemonitor' died I/ServiceManager( 593): service 'connectivity' died I/ServiceManager( 593): service 'notification' died I/ServiceManager( 593): service 'mount' died I/ServiceManager( 593): service 'location' died I/ServiceManager( 593): service 'search' died I/ServiceManager( 593): service 'checkin' died I/ServiceManager( 593): service 'wallpaper' died I/ServiceManager( 593): service 'appwidget' died I/ServiceManager( 593): service 'audio' died E/installd( 600): eof E/installd( 600): failed to read size I/installd( 600): closing connection I/Zygote ( 705): Exit zygote because system server (706) has terminated D/AndroidRuntime( 741): D/AndroidRuntime( 741): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<< D/AndroidRuntime( 741): CheckJNI is ON D/AndroidRuntime( 741): --- registering native functions --- Best Regards! Tony On 3月31日, 下午7时41分, Androidphan <niels.kee...@tass.nl> wrote: > Thanks again. Another problem to start it: > > I/SystemServer( 2543): Starting Battery Service. > E/BatteryService( 2543): Could not open '/sys/class/power_supply/ac/ > online' > E/BatteryService( 2543): Could not open '/sys/class/power_supply/usb/ > online' > E/BatteryService( 2543): Could not open '/sys/class/power_supply/ > battery/present' > E/BatteryService( 2543): Could not open '/sys/class/power_supply/ > battery/capacity' > E/BatteryService( 2543): Could not open '/sys/class/power_supply/ > battery/batt_vol' > E/BatteryService( 2543): Could not open '/sys/class/power_supply/ > battery/batt_temp' > E/BatteryService( 2543): Could not open '/sys/class/power_supply/ > battery/status' > E/BatteryService( 2543): Could not open '/sys/class/power_supply/ > battery/health' > E/BatteryService( 2543): Could not open '/sys/class/power_supply/ > battery/technology' > E/ActivityManager( 2543): Attempt to launch receivers of broadcast > intent Intent { action=android.intent.action.POWER_DISCONNECTED } > before boot completion > E/System ( 2543): Failure starting core service > E/System ( 2543): java.lang.IllegalStateException: Cannot broadcast > before boot completed > E/System ( 2543): at > com.android.server.am.ActivityManagerService.broadcastIntent > (ActivityManagerService.java:10241) > E/System ( 2543): at android.app.ApplicationContext.sendBroadcast > (ApplicationContext.java:640) > E/System ( 2543): at com.android.server.BatteryService.update > (BatteryService.java:247) > E/System ( 2543): at com.android.server.BatteryService.<init> > (BatteryService.java:131) > E/System ( 2543): at com.android.server.ServerThread.run > (SystemServer.java:128) > E/AndroidRuntime( 2543): Crash logging skipped, no checkin service > I/SystemServer( 2543): Starting Status Bar Service. > .... > Starting more services. > .... > I/SystemServer( 2543): Starting HeadsetObserver > W/HeadsetObserver( 2543): This kernel does not have wired headset > support > I/SystemServer( 2543): Starting AppWidget Service > W/dalvikvm( 2543): threadid=15: thread exiting with uncaught exception > (group=0xa8007df8) > E/AndroidRuntime( 2543): Uncaught handler: thread > android.server.ServerThread exiting due to uncaught exception > E/AndroidRuntime( 2543): *** EXCEPTION IN SYSTEM PROCESS. System will > crash. > E/AndroidRuntime( 2543): java.lang.NullPointerException > E/AndroidRuntime( 2543): at com.android.server.ServerThread.run > (SystemServer.java:332) > I/Process ( 2543): Sending signal. PID: 2543 SIG: 9 > I/ServiceManager( 2076): service 'batteryinfo' died > I/ServiceManager( 2076): service 'usagestats' died > more services died... > > Is the problem here at the BatteryService? > > On 31 mrt, 11:51, Chen Yang <sunsety...@gmail.com> wrote:> The problem comes > from the lack update in init.rc on x86, you may need > > to put those lines in the vendor/asus/eee_701/init.rc. > > # Define the oom_adj values for the classes of processes that can be > > # killed by the kernel. These are used in ActivityManagerService. > > setprop ro.FOREGROUND_APP_ADJ 0 > > setprop ro.VISIBLE_APP_ADJ 1 > > setprop ro.SECONDARY_SERVER_ADJ 2 > > setprop ro.HOME_APP_ADJ 4 > > setprop ro.HIDDEN_APP_MIN_ADJ 7 > > setprop ro.CONTENT_PROVIDER_ADJ 14 > > setprop ro.EMPTY_APP_ADJ 15 > > > You can reference the system/core/rootdir/init.rc > > -- > > Chen > > > On Tue, Mar 31, 2009 at 5:45 PM, Androidphan <niels.kee...@tass.nl> wrote: > > > > Thanks, removing the classes in preloaded-classes dit work. > > > The Android screen is loading now. But now I'm getting the following > > > errors: > > > > I/SurfaceFlinger( 2238): SurfaceFlinger is starting > > > I/SurfaceFlinger( 2238): SurfaceFlinger's main thread ready to run. > > > Initializing graphics H/W... > > > E/MemoryHeapBase( 2238): error opening /dev/pmem: No such file or > > > directory > > > E/SurfaceFlinger( 2238): Couldn't open /sys/power/wait_for_fb_sleep > > > or /sys/power/wait_for_fb_wake > > > E/GLLogger( 2238): couldn't load <libhgl.so> library (Cannot find > > > library) > > > .... > > > W/HAL ( 2238): load: module=/system/lib/hw/copybit.default.so > > > error=Cannot find library > > > .... > > > W/HAL ( 2238): load: module=/system/lib/hw/copybit.default.so > > > error=Cannot find library > > > W/HAL ( 2238): load: module=/system/lib/hw/overlay.default.so > > > error=Cannot find library > > > ..... > > > E/GLLogger( 2238): couldn't load <libhgl.so> library (Cannot find > > > library) > > > I/SystemServer( 2238): Starting Power Manager. > > > I/SystemServer( 2238): Starting Activity Manager. > > > W/dalvikvm( 2238): threadid=17: thread exiting with uncaught exception > > > (group=0xb0064df8) > > > E/AndroidRuntime( 2238): Uncaught handler: thread ActivityManager > > > exiting due to uncaught exception > > > E/AndroidRuntime( 2238): *** EXCEPTION IN SYSTEM PROCESS. System will > > > crash. > > > E/AndroidRuntime( 2238): java.lang.NumberFormatException: unable to > > > parse '' as integer > > > E/AndroidRuntime( 2238): at java.lang.Integer.parseInt > > > (Integer.java:364) > > > E/AndroidRuntime( 2238): at java.lang.Integer.parseInt > > > (Integer.java:333) > > > E/AndroidRuntime( 2238): at java.lang.Integer.valueOf > > > (Integer.java:590) > > > E/AndroidRuntime( 2238): at > > > com.android.server.am.ActivityManagerService.<init> > > > (ActivityManagerService.java:1288) > > > E/AndroidRuntime( 2238): at > > > com.android.server.am.ActivityManagerService.<init> > > > (ActivityManagerService.java:110) > > > E/AndroidRuntime( 2238): at > > > com.android.server.am.ActivityManagerService$AThread.run > > > (ActivityManagerService.java:1130) > > > E/AndroidRuntime( 2238): Crash logging skipped, no checkin service > > > I/Process ( 2238): Sending signal. PID: 2238 SIG: 9 > > > I/ServiceManager( 2076): service 'SurfaceFlinger' died > > > I/ServiceManager( 2076): service 'power' died > > > I/Zygote ( 2237): Exit zygote because system server (2238) has > > > terminated > > > > On 31 mrt, 11:23, Chen Yang <sunsety...@gmail.com> wrote: > > >> Tha seems to be from the mismatch of the eee_701's policy profile, you > > >> can remove those classes in frameworks/base/preloaded-classes or > > >> replace them with Mid related classes, and rebuild the image. > > >> -- > > >> Chen > > > >> On Tue, Mar 31, 2009 at 4:51 PM, Androidphan <niels.kee...@tass.nl> > > >> wrote: > > > >> > I'm getting the following error when having built the latest source of > > >> > Android for x86: > > > >> > E/Zygote ( 2124): Class not found for preloading: > > >> > com.android.internal.policy.impl.PhoneLayoutInflater > > >> > E/Zygote ( 2124): Class not found for preloading: > > >> > com.android.internal.policy.impl.PhoneWindow > > >> > E/Zygote ( 2124): Class not found for preloading: > > >> > com.android.internal.policy.impl.PhoneWindow$1 > > >> > E/Zygote ( 2124): Class not found for preloading: > > >> > com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback > > >> > E/Zygote ( 2124): Class not found for preloading: > > >> > com.android.internal.policy.impl.PhoneWindow$DecorView > > >> > E/Zygote ( 2124): Class not found for preloading: > > >> > com.android.internal.policy.impl.PhoneWindow$PanelFeatureState > > >> > E/Zygote ( 2124): Class not found for preloading: > > >> > com.android.internal.policy.impl.PhoneWindow$PanelFeatureState > > >> > $SavedState > > >> > E/Zygote ( 2124): Class not found for preloading: > > >> > com.android.internal.policy.impl.PhoneWindow$PanelFeatureState > > >> > $SavedState$1 > > >> > .... > > >> > E/Zygote ( 2124): Zygote died with exception > > >> > E/Zygote ( 2124): java.lang.IllegalStateException: Missing class(es) > > >> > for preloading, update preloaded-classes > > >> > [com.android.internal.policy.impl.PhoneLayoutInflater > > >> > com.android.internal.policy.impl.PhoneWindow > > >> > com.android.internal.policy.impl.PhoneWindow$1 > > >> > com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback > > >> > com.android.internal.policy.impl.PhoneWindow$DecorView > > >> > com.android.internal.policy.impl.PhoneWindow$PanelFeatureState > > >> > com.android.internal.policy.impl.PhoneWindow$PanelFeatureState > > >> > $SavedState com.android.internal.policy.impl.PhoneWindow > > >> > $PanelFeatureState$SavedState$1] > > >> > E/Zygote ( 2124): at > > >> > com.android.internal.os.ZygoteInit.preloadClasses(ZygoteInit.java:299) > > >> > E/Zygote ( 2124): at com.android.internal.os.ZygoteInit.main > > >> > (ZygoteInit.java:512) > > >> > E/Zygote ( 2124): at dalvik.system.NativeStart.main(Native > > >> > Method) > > >> > D/AndroidRuntime( 2124): Shutting down VM > > > >> > Is something not comE/Zygote ( 2124): Zygote died with exception > > >> > E/Zygote ( 2124): java.lang.IllegalStateException: Missing class(es) > > >> > for preloading, update preloaded-classes > > >> > [com.android.internal.policy.impl.PhoneLayoutInflater > > >> > com.android.internal.policy.impl.PhoneWindow > > >> > com.android.internal.policy.impl.PhoneWindow$1 > > >> > com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback > > >> > com.android.internal.policy.impl.PhoneWindow$DecorView > > >> > com.android.internal.policy.impl.PhoneWindow$PanelFeatureState > > >> > com.android.internal.policy.impl.PhoneWindow$PanelFeatureState > > >> > $SavedState com.android.internal.policy.impl.PhoneWindow > > >> > $PanelFeatureState$SavedState$1] > > >> > E/Zygote ( 2124): at > > >> > com.android.internal.os.ZygoteInit.preloadClasses(ZygoteInit.java:299) > > >> > E/Zygote ( 2124): at com.android.internal.os.ZygoteInit.main > > >> > (ZygoteInit.java:512) > > >> > E/Zygote ( 2124): at dalvik.system.NativeStart.main(Native > > >> > Method) > > >> > D/AndroidRuntime( 2124): Shutting down VM > > > >> > Why is this? Did I miss something during compiling? > > --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---