Clean Eclair build crashes OS

General topics about the Android-Platform itself.
Coding issues please to the subforum right below.

Clean Eclair build crashes OS

Postby chokob » Mon Dec 14, 2009 10:32 am

Hello,

I am having some problems with CalendarProvider (com.android.providers.calendar) and the Camera application (com.android.camera) whenever I build Eclair from source and launch the image files in the emulator.

CalendarProvider causes an exception just after boot and the Camera application causes the whole OS to reboot when started (clicked at). I have re-built Android several times trying to figure out what may be wrong but I still don't have a solution to this. Has anyone else experienced this?

Any advice would be apprectiated.

This is what I've tried so far:

Download the source:
repo init -u git://android.git.kernel.org/platform/manifest.git -b eclair
repo sync

Build it:
source build/envsetup.sh
lunch generic-eng
make

I then downloaded the Eclair (2.0) SDK from Google's website, launched the emulator with the included image files just to make sure everything is working alright. (No problems with either CalendarProvider or the Camera app)

I then copy the following images files from my own build and replace the image files in the Google SDK:
out/target/product/generic/system.img
out/target/product/generic/userdata.img
out/target/product/generic/ramdisk.img

When I boot the emulator again, I get an exception from CalendarProvider right after the desktop is loaded and I'm forced to click the "Force Close" button. Just to make sure everything's clean, I always delete the old AVD and create a new one before I restart the emulator. For this I use the following commands:

./android delete avd -n <name>
./android create avd -n <name> -t 1 -p <path>

I must be missing something since I'm getting errors on a clean boot. Any ideas what it may be? (Check below for the error log)

The Camera application won't work correctly either. Whenever the Camera icon is clicked the OS gets rebooted. First I thought the following was the problem:

E/MediaPlayerService( 260): error: -2
E/MediaPlayer( 260): Unable to to create media player
E/CameraService( 260): Failed to load CameraService sounds.
E/MediaPlayerService( 260): error: -2
E/MediaPlayer( 260): Unable to to create media player
E/CameraService( 260): Failed to load CameraService sounds.

So I added audio files to my image by renaming one of the .mk files in the frameworks/base/data/sounds directory which got rid of errors. I also tried adding a camera (hw.camera) to my AVD when creating it. However, clicking the Camera icon still crashes the whole OS.

EDIT:
I'm using Ubuntu 9.04 for building and testing the emulator.


Here is the error log for CalendarProvider on boot:
E/AndroidRuntime( 203): Uncaught handler: thread main exiting due to uncaught exception
E/AndroidRuntime( 203): java.lang.NullPointerException
E/AndroidRuntime( 203): at com.android.providers.calendar.CalendarSyncAdapter.onAccountsChanged(CalendarSyncAdapter.java:1400)
E/AndroidRuntime( 203): at android.content.AbstractSyncableContentProvider$1.onAccountsUpdated(AbstractSyncableContentProvider.java:187)
E/AndroidRuntime( 203): at android.accounts.AccountManager$10.run(AccountManager.java:826)
E/AndroidRuntime( 203): at android.os.Handler.handleCallback(Handler.java:587)
E/AndroidRuntime( 203): at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 203): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 203): at android.app.ActivityThread.main(ActivityThread.java:4325)
E/AndroidRuntime( 203): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 203): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 203): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime( 203): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/AndroidRuntime( 203): at dalvik.system.NativeStart.main(Native Method)


And here's the error log for the Camera application when clicked at:
I/ActivityManager( 266): Displayed activity com.android.launcher/.Launcher: 15957 ms (total 15957 ms)
I/ActivityManager( 266): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.camera/.Camera }
I/ActivityManager( 266): Start proc com.android.camera for activity com.android.camera/.Camera: pid=402 uid=10006 gids={1006, 1015, 2001, 3003}
D/dalvikvm( 261): GC freed 279 objects / 10688 bytes in 323ms
I/WindowManager( 266): Setting rotation to 1, animFlags=0
D/dalvikvm( 261): GC freed 45 objects / 2040 bytes in 114ms
I/ActivityManager( 266): Config changed: { scale=1.0 imsi=310/260 loc=en_US touch=3 keys=2/1/2 nav=3/1 orien=2 layout=18}
D/dalvikvm( 261): GC freed 2 objects / 48 bytes in 323ms
D/CameraService( 260): CameraService::connect E (pid 402, client 0xd750)
D/CameraService( 260): Client::Client E (pid 402)
D/CameraHardwareStub( 260): initHeapLocked: preview size=176x144
D/CameraService( 260): Client::Client X (pid 402)
D/CameraService( 260): CameraService::connect X
D/CameraService( 260): getParameters(picture-format=jpeg;picture-size=213x350;preview-format=yuv422sp;preview-frame-rate=15;preview-size=176x144)
D/CameraService( 260): getParameters(picture-format=jpeg;picture-size=213x350;preview-format=yuv422sp;preview-frame-rate=15;preview-size=176x144)
D/Camera ( 402): app passed NULL surface
D/CameraService( 260): setPreviewDisplay(0x0) (pid 402)
D/CameraService( 260): getParameters(picture-format=jpeg;picture-size=213x350;preview-format=yuv422sp;preview-frame-rate=15;preview-size=176x144)
D/CameraService( 260): setParameters(preview-size=176x144;preview-format=yuv422sp;jpeg-quality=85;picture-size=213x350;picture-format=jpeg;preview-frame-rate=15)
D/CameraHardwareStub( 260): initHeapLocked: preview size=176x144
V/camera ( 402): startPreview
D/CameraService( 260): startPreview (pid 402)
D/CameraService( 260): startCameraMode(0) (pid 402)
D/CameraService( 260): mSurface is not set yet.
D/CameraService( 260): startPreviewMode (pid 402)
D/Camera-JNI( 402): dataCallback(16, 0x2eb968)
V/camera ( 402): Got first frame
W/IInputConnectionWrapper( 313): showStatusIcon on inactive InputConnection
D/CameraService( 260): setPreviewDisplay(0xd9e8) (pid 402)
I/ActivityManager( 266): Displayed activity com.android.camera/.Camera: 1621 ms (total 1621 ms)
E/gralloc ( 266): invalid gralloc handle (at 0x0)
I/DEBUG ( 259): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 259): Build fingerprint: 'generic/sdk/generic/:Eclair/ECLAIR/eng.stprec.20091208.102619:eng/test-keys'
I/DEBUG ( 259): pid: 266, tid: 266 >>> system_server <<<
I/DEBUG ( 259): signal 11 (SIGSEGV), fault addr e1833027
I/DEBUG ( 259): r0 00000050 r1 e1833023 r2 004347f8 r3 afe38e08
I/DEBUG ( 259): r4 000000c0 r5 e1833023 r6 00000003 r7 e1833020
I/DEBUG ( 259): r8 bea0c5b8 r9 4104bdb0 10 4104bd98 fp 00000000
I/DEBUG ( 259): ip a9d29b58 sp bea0c518 lr afe0bc01 pc afe0b8ca cpsr 80000030
I/ServiceManager( 25): service 'telephony.registry' died
I/ServiceManager( 25): service 'package' died
I/ServiceManager( 25): service 'batteryinfo' died
I/ServiceManager( 25): service 'SurfaceFlinger' died
I/ServiceManager( 25): service 'appwidget' died
I/ServiceManager( 25): service 'meminfo' died
I/ServiceManager( 25): service 'account' died
I/ServiceManager( 25): service 'entropy' died
I/ServiceManager( 25): service 'usagestats' died
I/ServiceManager( 25): service 'power' died
I/ServiceManager( 25): service 'activity' died
I/ServiceManager( 25): service 'cpuinfo' died
I/ServiceManager( 25): service 'activity.broadcasts' died
I/ServiceManager( 25): service 'activity.services' died
I/ServiceManager( 25): service 'activity.senders' died
I/ServiceManager( 25): service 'activity.providers' died
I/ServiceManager( 25): service 'permission' died
I/ServiceManager( 25): service 'content' died
I/ServiceManager( 25): service 'battery' died
I/ServiceManager( 25): service 'hardware' died
I/ServiceManager( 25): service 'alarm' died
I/ServiceManager( 25): service 'sensor' died
I/ServiceManager( 25): service 'window' died
I/ServiceManager( 25): service 'statusbar' died
I/ServiceManager( 25): service 'clipboard' died
I/ServiceManager( 25): service 'input_method' died
I/ServiceManager( 25): service 'netstat' died
I/ServiceManager( 25): service 'wifi' died
I/ServiceManager( 25): service 'connectivity' died
I/ServiceManager( 25): service 'devicestoragemonitor' died
I/ServiceManager( 25): service 'location' died
I/ServiceManager( 25): service 'accessibility' died
I/ServiceManager( 25): service 'mount' died
I/ServiceManager( 25): service 'notification' died
I/ServiceManager( 25): service 'search' died
I/ServiceManager( 25): service 'checkin' died
I/ServiceManager( 25): service 'wallpaper' died
I/ServiceManager( 25): service 'backup' died
I/ServiceManager( 25): service 'audio' died
I/ActivityThread( 378): Removing dead content provider: settings
I/ActivityThread( 307): Removing dead content provider: settings
I/ActivityThread( 328): Removing dead content provider: settings
I/ActivityThread( 309): Removing dead content provider: settings
I/ActivityThread( 313): Removing dead content provider: settings
E/installd( 31): eof
E/installd( 31): failed to read size
I/installd( 31): closing connection
E/vold ( 26): Framework disconnected
D/qemud ( 34): fdhandler_event: disconnect on fd 12
D/qemud ( 34): fdhandler_event: disconnect on fd 13
D/qemud ( 34): fdhandler_accept_event: accepting on fd 10
D/qemud ( 34): created client 0xc038 listening on fd 12
D/qemud ( 34): fdhandler_event: disconnect on fd 14
D/qemud ( 34): client_fd_receive: attempting registration for service 'sensors'
D/qemud ( 34): client_fd_receive: -> received channel id 14
D/qemud ( 34): client_registration: registration succeeded for client 14
D/SensorManager( 402): found sensor: Goldfish 3-axis Accelerometer, handle=0
D/qemud ( 34): fdhandler_event: disconnect on fd 12
I/DEBUG ( 259): tid 266 not responding!
E/SensorManager( 402): RemoteException in registerListener:
E/SensorManager( 402): android.os.DeadObjectException
E/SensorManager( 402): at android.os.BinderProxy.transact(Native Method)
E/SensorManager( 402): at android.hardware.ISensorService$Stub$Proxy.enableSensor(ISensorService.java:129)
E/SensorManager( 402): at android.hardware.SensorManager.registerListener(SensorManager.java:911)
E/SensorManager( 402): at android.hardware.SensorManager.registerListener(SensorManager.java:853)
E/SensorManager( 402): at android.view.OrientationEventListener.enable(OrientationEventListener.java:94)
E/SensorManager( 402): at com.android.camera.Camera.initializeFirstTime(Camera.java:259)
E/SensorManager( 402): at com.android.camera.Camera.access$800(Camera.java:86)
E/SensorManager( 402): at com.android.camera.Camera$MainHandler.handleMessage(Camera.java:232)
E/SensorManager( 402): at android.os.Handler.dispatchMessage(Handler.java:99)
E/SensorManager( 402): at android.os.Looper.loop(Looper.java:123)
E/SensorManager( 402): at android.app.ActivityThread.main(ActivityThread.java:4325)
E/SensorManager( 402): at java.lang.reflect.Method.invokeNative(Native Method)
E/SensorManager( 402): at java.lang.reflect.Method.invoke(Method.java:521)
E/SensorManager( 402): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/SensorManager( 402): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/SensorManager( 402): at dalvik.system.NativeStart.main(Native Method)
I/DEBUG ( 259): debuggerd committing suicide to free the zombie!
D/Zygote ( 261): Process 266 terminated by signal (11)
I/Zygote ( 261): Exit zygote because system server (266) has terminated
I/ServiceManager( 25): service 'isms' died
I/ServiceManager( 25): service 'simphonebook' died
I/ServiceManager( 25): service 'iphonesubinfo' died
I/ServiceManager( 25): service 'phone' died
I/ServiceManager( 25): service 'media.audio_flinger' died
I/ServiceManager( 25): service 'media.player' died
I/ServiceManager( 25): service 'media.camera' died
I/ServiceManager( 25): service 'media.audio_policy' died
I/DEBUG ( 413): debuggerd: Dec 8 2009 10:36:18
D/AndroidRuntime( 415):
D/AndroidRuntime( 415): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
D/AndroidRuntime( 415): CheckJNI is ON
I/ ( 414): ServiceManager: 0xad08
D/AudioHardwareInterface( 414): setMode(NORMAL)
D/AndroidRuntime( 415): --- registering native functions ---
I/CameraService( 414): CameraService started: pid=414
I/AudioFlinger( 414): AudioFlinger's thread 0xb388 ready to run
I/SamplingProfilerIntegration( 415): Profiler is disabled.
I/Zygote ( 415): Preloading classes...
D/dalvikvm( 415): GC freed 791 objects / 50440 bytes in 5ms
D/dalvikvm( 415): GC freed 255 objects / 16392 bytes in 4ms
D/dalvikvm( 415): GC freed 298 objects / 19120 bytes in 5ms
D/dalvikvm( 415): GC freed 222 objects / 14224 bytes in 6ms


Any ideas would be appreciated!
chokob
Once Poster
Once Poster
 
Posts: 1
Joined: Mon Dec 14, 2009 10:25 am

Top

Return to General

Who is online

Users browsing this forum: No registered users and 4 guests