Errno = 13 and how to debug this more efficiently? - android

I'm making an application and when i go from menu to an other activity that display image using the e3roid framework, i allways get this (logcat):
D/PhoneWindow( 1562): DebugMonitor class=com.recisio.kfandroid.gui.tab.KFFeaturedTab focus=false
E/copybit ( 1562): Error opening frame buffer errno=13 (Permission denied)
D/PhoneWindow( 1562): DebugMonitor class=com.recisio.kfandroid.gui.player.KFPlayer focus=true
I'm questionning myself about where does the error come?
Is there a way to know exactly where it happens?
May i have to ignore this?
Apparently, copybit is just an abstraction for a basic 2D blitter with support for rotation, scaling and color/pixelformat conversions.
But where it's strange it's that all the images loaded appears well on my screen.
Ok: I tried to change the way i was encoding the bmp I print like this:
return Bitmap.createBitmap(bitmap_width, bitmap_height, Bitmap.Config.RGB_565);
but it doesn't solve the problem.
By printing several display infos everywhere in my code i realised that the error happens while loading the e3roid engine.
I'm going to look at the sources while waiting for more answers.
After some tests with printing a bmp i create before (valid), I get this
E/copybit ( 3274): Error opening frame buffer errno=13 (Permission denied)
D/dalvikvm( 3274): GC freed 3337 objects / 132024 bytes in 150ms
I/DEBUG ( 1145): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 1145): Build fingerprint: 'vodafone_fr/htc_buzz/buzz/buzz:2.1-update1/ERE27/183733:user/release-keys'
I/DEBUG ( 1145): pid: 3274, tid: 3519 >>> com.recisio.kfandroid <<<
I/DEBUG ( 1145): signal 11 (SIGSEGV), fault addr 00000000
I/DEBUG ( 1145): r0 46c62008 r1 00000000 r2 00100000 r3 00000018
I/DEBUG ( 1145): r4 4685fd10 r5 00000002 r6 46c62008 r7 0000000c
I/DEBUG ( 1145): r8 00000000 r9 4191fd20 10 00000de1 fp 002e4428
I/DEBUG ( 1145): ip 80000000 sp 4685fc98 lr acc9697b pc afe0e060 cpsr a0000010
I/DEBUG ( 1145): #00 pc 0000e060 /system/lib/libc.so
I/DEBUG ( 1145): #01 pc 00016978 /system/lib/egl/libGLES_android.so
I/DEBUG ( 1145): #02 pc 00016d5a /system/lib/egl/libGLES_android.so
I/DEBUG ( 1145): #03 pc 0002886c /system/lib/libandroid_runtime.so
I/DEBUG ( 1145): #04 pc 0000f3f4 /system/lib/libdvm.so
I/DEBUG ( 1145):
I/DEBUG ( 1145): code around pc:
I/DEBUG ( 1145): afe0e050 0a00000a e1530002 8202301c e1b0ce03
I/DEBUG ( 1145): afe0e060 28b100f0 48b10300 28a000f0 48a00300
I/DEBUG ( 1145): afe0e070 e3130004 1491a004 1480a004 e0422003
I/DEBUG ( 1145):
I/DEBUG ( 1145): code around lr:
I/DEBUG ( 1145): acc96968 5c39008f 434b6936 435a1c30 f7ed6921
I/DEBUG ( 1145): acc96978 e020e91a fef4f7ff 28001c05 480fd101
I/DEBUG ( 1145): acc96988 69c2e01a 47901c31 1c2169ab 47981c28
I/DEBUG ( 1145):
I/DEBUG ( 1145): stack:
I/DEBUG ( 1145): 4685fc58 001615b8 [heap]
I/DEBUG ( 1145): 4685fc5c 00000800
I/DEBUG ( 1145): 4685fc60 00000000
I/DEBUG ( 1145): 4685fc64 acc97fdb /system/lib/egl/libGLES_android.so
I/DEBUG ( 1145): 4685fc68 00301418 [heap]
I/DEBUG ( 1145): 4685fc6c acc9604d /system/lib/egl/libGLES_android.so
I/DEBUG ( 1145): 4685fc70 00010002 [heap]
I/DEBUG ( 1145): 4685fc74 00100000 [heap]
I/DEBUG ( 1145): 4685fc78 00000200
I/DEBUG ( 1145): 4685fc7c 00000200
I/DEBUG ( 1145): 4685fc80 001615b8 [heap]
I/DEBUG ( 1145): 4685fc84 acc95f3d /system/lib/egl/libGLES_android.so
I/DEBUG ( 1145): 4685fc88 afe38e08 /system/lib/libc.so
I/DEBUG ( 1145): 4685fc8c afe0eed4 /system/lib/libc.so
I/DEBUG ( 1145): 4685fc90 df002777
I/DEBUG ( 1145): 4685fc94 e3a070ad
I/DEBUG ( 1145): #00 4685fc98 00000002
I/DEBUG ( 1145): 4685fc9c 46c62008
I/DEBUG ( 1145): 4685fca0 0000000c
I/DEBUG ( 1145): 4685fca4 00000000
I/DEBUG ( 1145): 4685fca8 4191fd20
I/DEBUG ( 1145): 4685fcac 00000de1
I/DEBUG ( 1145): 4685fcb0 002e4428 [heap]
I/DEBUG ( 1145): 4685fcb4 46c62008
I/DEBUG ( 1145): 4685fcb8 4685fd10
I/DEBUG ( 1145): 4685fcbc acc9697b /system/lib/egl/libGLES_android.so
I/DEBUG ( 1145): #01 4685fcc0 4106788c /dev/ashmem/dalvik-LinearAlloc (deleted)
I/DEBUG ( 1145): 4685fcc4 002e4428 [heap]
I/DEBUG ( 1145): 4685fcc8 ad053c19 /system/lib/libdvm.so
I/DEBUG ( 1145): 4685fccc 00000000
I/DEBUG ( 1145): 4685fcd0 ad080f8c /system/lib/libdvm.so
I/DEBUG ( 1145): 4685fcd4 00300ea0 [heap]
I/DEBUG ( 1145): 4685fcd8 00000200
I/DEBUG ( 1145): 4685fcdc 001615cc [heap]
I/DEBUG ( 1145): 4685fce0 00000001
I/DEBUG ( 1145): 4685fce4 acc96d5f /system/lib/egl/libGLES_android.so
I/DEBUG ( 1145): debuggerd committing suicide to free the zombie!
I/DEBUG ( 3535): debuggerd: May 28 2010 02:08:39
What is this?

Hmm..I guess your device supports ARGB_8888 because all the images
loaded well on your screen. OpenGL sometimes shows strange errors when
the device encounters low memory situations.

I had the same error some times ago, it was due to a lack of memory. In the emulator logcat and not on my phone (wildfire) it was saying: OutOfMemoryException.
Make sure you use the recycle() nethod to clear bitmap from the memory.

This can happen if you are using a not supported texture format. Try using a RGB565. Here you can find some info about the issue: http://code.google.com/p/processing/issues/detail?id=391

Related

android porting: "service 'SurfaceFlinger' died"

I am trying to boot blaze board with jellybean 4AJ.2.5P2. When I am trying to boot, I got the following error.
init: Failed to open socket 'property_service': Address family not supported by protocol
I have used the below bootargs:
setenv bootargs 'console=ttyO2,115200n8 mem=1G androidboot.console=ttyO2 root=/dev/mmcblk0p2 rw rootdelay=2 rootfstype=ext3 init=/init vram=32M omapfb.vram=0:16M androidboot.console=ttyO2 consoleblank=0'
setenv bootcmd 'mmcinit 0;fatload mmc 0 0x80000000 uImage; bootm 0x80000000'
boot
These are the log which i got.
[ 3.341949] cannot apply mgr(lcd2) on inactive device
[ 3.384948] Console: switching to colour frame buffer device 160x48
[ 3.438201] cannot apply mgr(lcd2) on inactive device
[ 3.443969] cannot aply mgr(lcd)--invalid device
[ 3.449310] omapfb omapfb: failed to apply dispc config
[ 3.455230] cannot aply mgr(tv)--invalid device
[ 3.460418] omapfb omapfb: failed to apply dispc config
[ 3.466674] cannot apply mgr(lcd2) on inactive device
[ 3.473510] omapfb omapfb: failed to apply dispc config
[ 3.481842] omapdss DPI: Could not find exact pixel clock. Requested 71000 kHz, got 69818 kHz
[ 3.497100] VUSB: incomplete constraints, leaving on
[ 3.504638] twl_rtc twl_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[ 3.514099] ALSA device list:
[ 3.517669] No soundcards found.
[ 3.522155] Waiting 2sec before mounting root device...
[ 5.576232] kjournald starting. Commit interval 5 seconds
[ 5.580352] EXT3-fs (mmcblk0p2): using internal journal
[ 5.582672] EXT3-fs (mmcblk0p2): recovery complete
[ 5.582702] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
[ 5.582763] VFS: Mounted root (ext3 filesystem) on device 179:2.
[ 5.583251] Freeing init memory: 272K
[ 5.616943] init (1): /proc/1/oom_adj is deprecated, please use /proc/1/oom_score_adj instead.
[ 5.802490] init: could not open /dev/keychord
[ 5.808410] init: cannot open '/initlogo.rle'
[ 6.206970] rproc remoteproc0: skipping power up until last virtio device ipu_c0
[ 6.217071] virtio_rpmsg_bus virtio0: rpmsg host is online
[ 6.223083] init: Failed to open socket 'property_service': Address family not supported by protocol
[ 6.223602] init: init startup failure
[ 6.223999] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
I have searched a lot, i couldn't find anything useful.
Any help will be appreciated!
Thank you!
UPDATE:
We had changed lot in kernel. Now the above mentioned errors are no more. But, I am facing the problem in surface flinger.
When Surface flinger is started, crash is occurred and at last, logcat shows that "service 'SurfaceFlinger' died"
I've attached the recent logs below.
--------- beginning of /dev/log/main
I/installd( 94): installd firing up
E/uim-sysfs( 86): uim: Inside main
E/uim-sysfs( 86): uim:BT/FM/GPS would be unavailable on system
I/DEBUG ( 89): debuggerd: Nov 21 2013 17:58:24
--------- beginning of /dev/log/system
I/Vold ( 83): Vold 2.1 (the revenge) firing up
D/Vold ( 83): Volume sdcard state changing -1 (Initializing) -> 0 (No-Media)
D/Vold ( 83): Volume usbflash1 state changing -1 (Initializing) -> 0 (No-Media)
D/Vold ( 83): Volume usbflash2 state changing -1 (Initializing) -> 0 (No-Media)
I/Netd ( 88): Netd 1.0 starting
W/InterfaceController( 88): Warning (Cannot load library: load_library(linker.cpp:745): library "/system/lib/libnetcmdiface.so" not found) while opening the net interface coy
V/IMGSRV ( 84): Succesfully loaded gfx modules
V/IMGSRV ( 84): pvrsrvinit complete
I/SurfaceFlinger( 90): SurfaceFlinger is starting
I/SurfaceFlinger( 90): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
I/libEGL ( 90): Processor type: omap4460
I/libEGL ( 90): egl.cfg: entry POWERVR_SGX540_120 omap4430
I/libEGL ( 90): egl.cfg: entry POWERVR_SGX540_120 omap4460
I/libEGL ( 90): Picked EGL type 'POWERVR_SGX540_120' for processor 'omap4460'
D/libEGL ( 90): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_120.so
D/MDnsDS ( 88): MDnsSdListener starting to monitor
D/MDnsDS ( 88): MDnsSdListener::Hander starting up
D/MDnsDS ( 88): Going to poll with pollCount 1
D/libEGL ( 90): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so
D/libEGL ( 90): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so
I/mediaserver( 93): ServiceManager: 0x410ffe80
I/AudioFlinger( 93): Using default 3000 mSec as standby time.
I/CameraService( 93): CameraService started (pid=93)
E/SurfaceFlinger( 90): framebuffer_open for fb1 failed (Invalid argument)
E/SurfaceFlinger( 90): composer device failed to initialize (No such device)
I/SurfaceFlinger( 90): Using composer version 1.1
W/SurfaceFlinger( 90): no suitable EGLConfig found, trying without EGL_FRAMEBUFFER_TARGET_ANDROID
E/BufferQueue( 90): [FramebufferSurface] setDefaultBufferSize: dimensions cannot be 0 (w=0, h=0)
I/SurfaceFlinger( 90): EGL informations:
I/SurfaceFlinger( 90): vendor : Android
I/SurfaceFlinger( 90): version : 1.4 Android META-EGL
I/SurfaceFlinger( 90): extensions: EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_fence_
I/SurfaceFlinger( 90): Client API: OpenGL_ES
I/SurfaceFlinger( 90): EGLSurface: 8-8-8-8, config=0x2
I/SurfaceFlinger( 90): OpenGL ES informations:
I/SurfaceFlinger( 90): vendor : Imagination Technologies
I/SurfaceFlinger( 90): renderer : PowerVR SGX 540
I/SurfaceFlinger( 90): version : OpenGL ES-CM 1.1
I/SurfaceFlinger( 90): extensions: GL_EXT_debug_marker GL_OES_byte_coordinates GL_OES_fixed_point GL_OES_single_precision GL_OES_matrix_get GL_OES_read_format GL_OES_comprest
I/SurfaceFlinger( 90): GL_MAX_TEXTURE_SIZE = 2048
I/SurfaceFlinger( 90): GL_MAX_VIEWPORT_DIMS = 2048 x 2048
D/SurfaceFlinger( 90): Screen acquired, type=0 flinger=0x40af9318
F/libc ( 90): Fatal signal 11 (SIGSEGV) at 0x00000800 (code=1), thread 260 (SurfaceFlinger)
E/CameraHal( 93): (400cd3dc) hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXDCC.cpp:99 initDCC - No DCC files found, switching back to default DCC
E/CameraHal( 93): (400cd3dc) hardware/ti/omap4xxx/camera/OMXCameraAdapter/OMXDCC.cpp:44 loadDCC - Error in DCC Init
D/DOMX ( 93): hardware/ti/domx/domx/omx_proxy_common/src/omx_proxy_common.c:1671 __PROXY_SetConfig()
D/DOMX ( 93): ERROR: failed check:(eError == OMX_ErrorNone) || (eError == OMX_ErrorNoMore) - returning error: 0x80001009 - Error returned from OMX API in ducati
E/CameraHal( 93): (400cd3dc) hardware/ti/omap4xxx/camera/BaseCameraAdapter.cpp:2708 CameraAdapter_Capabilities - supportedCameras= 0
E/CameraHal( 93): (400cd3dc) hardware/ti/omap4xxx/camera/CameraProperties.cpp:108 loadProperties - camera busy. properties not loaded. num_cameras = 0
E/CameraHal( 93): (400cd3dc) hardware/ti/omap4xxx/camera/CameraHal_Module.cpp:770 camera_get_number_of_cameras - Unable to create or initialize CameraProperties
I/AudioPolicyManagerBase( 93): loadAudioPolicyConfig() loaded /system/etc/audio_policy.conf
I/AudioFlinger( 93): loadHwModule() Loaded primary audio interface from Default audio HW HAL (audio) handle 1
I/AudioFlinger( 93): HAL output buffer size 1024 frames, normal mix buffer size 1024 frames
W/EffectsFactory( 93): loadLibrary() failed to open /system/lib/soundfx/libdseffect.so
W/EffectsFactory( 93): loadEffect() could not get library ds
I/AudioMixer( 93): found effect "Multichannel Downmix To Stereo" from The Android Open Source Project
I/AudioFlinger( 93): Using module 1 has the primary audio interface
I/AudioFlinger( 93): AudioFlinger's thread 0x41102a58 ready to run
W/AudioFlinger( 93): Thread AudioOut_2 cannot connect to the power manager service
W/AudioFlinger( 93): Thread AudioOut_2 cannot connect to the power manager service
I/AudioFlinger( 93): HAL output buffer size 1024 frames, normal mix buffer size 1024 frames
I/AudioMixer( 93): found effect "Multichannel Downmix To Stereo" from The Android Open Source Project
I/AudioFlinger( 93): AudioFlinger's thread 0x4110d6e8 ready to run
W/AudioFlinger( 93): Thread AudioOut_3 cannot connect to the power manager service
E/AudioFlinger( 93): int android::load_audio_interface(char const*, audio_hw_device_t**) couldn't load audio hw module audio.hdmi (No such file or directory)
I/AudioFlinger( 93): loadHwModule() error -2 loading module hdmi
W/AudioPolicyManagerBase( 93): could not open HW module hdmi
I/audio_a2dp_hw( 93): adev_open: adev_open in A2dp_hw module
I/AudioFlinger( 93): loadHwModule() Loaded a2dp audio interface from A2DP Audio HW HAL (audio) handle 4
I/r_submix( 93): adev_open(name=audio_hw_if)
I/r_submix( 93): adev_init_check()
I/AudioFlinger( 93): loadHwModule() Loaded r_submix audio interface from Wifi Display audio HAL (audio) handle 5
I/AudioPolicyService( 93): Loaded audio policy from LEGACY Audio Policy HAL (audio_policy)
I/DEBUG ( 89): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 89): Build fingerprint: 'Android/svdu/svdu:4.2.2/JDQ39/eng.build.20131121.165220:userdebug/test-keys'
I/DEBUG ( 89): Revision: '0'
I/DEBUG ( 89): pid: 90, tid: 260, name: SurfaceFlinger >>> /system/bin/surfaceflinger <<<
I/DEBUG ( 89): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000800
I/DEBUG ( 89): r0 40859390 r1 00000000 r2 00000000 r3 00000800
I/DEBUG ( 89): r4 40af9318 r5 00000000 r6 400cadc8 r7 00000000
I/DEBUG ( 89): r8 4017f1f6 r9 00000001 sl 40af955c fp 00000009
I/DEBUG ( 89): ip 400d7f80 sp 404e3c40 lr 400c187d pc 00000800 cpsr 40000110
I/DEBUG ( 89): d0 3831333966613034 d1 707974202c646572
I/DEBUG ( 89): d2 47207463656a6272 d3 5f454c5050415f65
I/DEBUG ( 89): d4 0000000080000000 d5 0000000100000000
I/DEBUG ( 89): d6 000000013f800000 d7 3f8000003f800000
I/DEBUG ( 89): d8 0000000000000000 d9 0000000000000000
I/DEBUG ( 89): d10 0000000000000000 d11 0000000000000000
I/DEBUG ( 89): d12 0000000000000000 d13 0000000000000000
I/DEBUG ( 89): d14 0000000000000000 d15 0000000000000000
I/DEBUG ( 89): d16 0000000000000001 d17 0000000000000000
I/DEBUG ( 89): d18 0000000000000000 d19 0000000000000000
I/DEBUG ( 89): d20 0000000000000000 d21 0000000000000000
I/DEBUG ( 89): d22 0000000000000000 d23 0000000000000000
I/DEBUG ( 89): d24 0000000000000000 d25 0000000000000000
I/DEBUG ( 89): d26 0000000000000000 d27 0000000000000000
I/DEBUG ( 89): d28 0000000000000000 d29 0000000000000000
I/DEBUG ( 89): d30 0000000000000000 d31 0000000000000000
I/DEBUG ( 89): scr 60000010
I/DEBUG ( 89):
I/DEBUG ( 89): backtrace:
I/DEBUG ( 89): #00 pc 00000800 <unknown>
I/DEBUG ( 89): #01 pc 0002387b /system/lib/libsurfaceflinger.so (android::HWComposer::acquire(int)+10)
I/DEBUG ( 89): #02 pc 000266bf /system/lib/libsurfaceflinger.so (android::SurfaceFlinger::onScreenAcquired(android::sp<android::DisplayDevice const> const&)+74)
I/DEBUG ( 89): #03 pc 000288fb /system/lib/libsurfaceflinger.so (android::SurfaceFlinger::onInitializeDisplays()+154)
I/DEBUG ( 89): #04 pc 00028929 /system/lib/libsurfaceflinger.so
I/DEBUG ( 89): #05 pc 000247c7 /system/lib/libsurfaceflinger.so (android::MessageBase::handleMessage(android::Message const&)+12)
I/DEBUG ( 89): #06 pc 00014c53 /system/lib/libutils.so (android::Looper::pollInner(int)+426)
I/DEBUG ( 89): #07 pc 00014d71 /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+104)
I/DEBUG ( 89): #08 pc 00024b55 /system/lib/libsurfaceflinger.so (android::MessageQueue::waitMessage()+40)
I/DEBUG ( 89): #09 pc 00025145 /system/lib/libsurfaceflinger.so (android::SurfaceFlinger::threadLoop()+6)
I/DEBUG ( 89): #10 pc 00011267 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+114)
I/DEBUG ( 89): #11 pc 00010dcd /system/lib/libutils.so
I/DEBUG ( 89): #12 pc 0000e3e8 /system/lib/libc.so (__thread_entry+72)
I/DEBUG ( 89): #13 pc 0000dad4 /system/lib/libc.so (pthread_create+160)
I/DEBUG ( 89):
I/DEBUG ( 89): stack:
I/DEBUG ( 89): 404e3c00 40af9490 [heap]
I/DEBUG ( 89): 404e3c04 4017a3c7 /system/lib/libutils.so (android::SortedVectorImpl::_indexOrderOf(void const*, unsigned int*) const+50)
I/DEBUG ( 89): 404e3c08 409aeeac
I/DEBUG ( 89): 404e3c0c 40af9318 [heap]
I/DEBUG ( 89): 404e3c10 404e3c60 [stack:260]
I/DEBUG ( 89): 404e3c14 400c8595 /system/lib/libsurfaceflinger.so (android::SurfaceFlinger::setTransactionState(android::Vector<android::ComposerState> const&, )
I/DEBUG ( 89): 404e3c18 00000000
I/DEBUG ( 89): 404e3c1c 4017f1f6 /system/lib/libutils.so
I/DEBUG ( 89): 404e3c20 409aee90
I/DEBUG ( 89): 404e3c24 409b41d8
I/DEBUG ( 89): 404e3c28 404e3c60 [stack:260]
I/DEBUG ( 89): 404e3c2c 73e76319
I/DEBUG ( 89): 404e3c30 40af9318 [heap]
I/DEBUG ( 89): 404e3c34 404e3c60 [stack:260]
I/DEBUG ( 89): 404e3c38 df0027ad
I/DEBUG ( 89): 404e3c3c 00000000
I/DEBUG ( 89): #00 404e3c40 00000001
I/DEBUG ( 89): ........ ........
I/DEBUG ( 89): #01 404e3c40 00000001
I/DEBUG ( 89): 404e3c44 400c46c3 /system/lib/libsurfaceflinger.so (android::SurfaceFlinger::onScreenAcquired(android::sp<android::DisplayDevice const> const&)+7)
I/DEBUG ( 89): #02 404e3c48 40af9318 [heap]
I/DEBUG ( 89): 404e3c4c 404e3c60 [stack:260]
I/DEBUG ( 89): 404e3c50 404e3c8c [stack:260]
I/DEBUG ( 89): 404e3c54 40af9318 [heap]
I/DEBUG ( 89): 404e3c58 400c8595 /system/lib/libsurfaceflinger.so (android::SurfaceFlinger::setTransactionState(android::Vector<android::ComposerState> const&, )
I/DEBUG ( 89): 4[ 16.940643] init: Boot Animation exit
04e3c5c 400c68ff /system/lib/libsurfaceflinger.so (android::Su[ 16.949279] binder: undelivered death notification, 40673840
rfaceFlinger::onInitializeDisplays()+158)
I/DEBUG ( 89):
I/DEBUG ( 89): memory near r0:
I/DEBUG ( 89): 40859370 0049002e 00530044 00570053 00480042
I/DEBUG ( 89): 40859380 006c0061 00000000 00000000 0000005b
I/DEBUG ( 89): 40859390 00000000 00000000 00000001 40af9630
I/DEBUG ( 89): 408593[ 16.986175] init: untracked pid 405 exited
a0 00000000 00000001 404f8014 40859510
I/DEBUG ( 89): 408593b0 40868008 00000000 00000008 00000008
I/DEBUG ( 89): 408593c0 00000008 00000008 00000020 00000000
I/DEBUG ( 89): 408593d0 00000000 00000002 00000800 00000800
I/DEBUG ( 89): 408593e0 00000001 0000002b 00000001 00000000
I/DEBUG ( 89): 408593f0 00000000 0000003c 404f53e8 00000000
I/DEBUG ( 89): 40859400 00000000 00000000 00003038 0000002b
I/DEBUG ( 89): 40859410 00000001 00000000 00000000 0000000c
I/DEBUG ( 89): 40859420 404f54dc 00000000 00000000 408593e8
I/DEBUG ( 89): 40859430 40123d5c 0000002b 00000001 00000000
I/DEBUG ( 89): 40859440 00000000 00000004 404f5534 00000000
[ 17.056304] init: untracked pid 400 exited
I/DEBUG ( 89): 40859450 00000000 40859410 404f54dc 0000002b
I/DEBUG ( 89): 40859460 00000001 00000001 00000020 0000001c
I/DEBUG ( 89):
I/DEBUG ( 89): memory near r4:
I/DEBUG ( 89): 40af92f8 00630100 00000000 00000161 00670001
I/DEBUG ( 89): 40af9308 4028fa70 409b5d10 00000038 0000021b
I/DEBUG ( 89): 40af9318 400d150c 400d1580 00000000 00000000
I/DEBUG ( 89): 40af9328 400d15d0 400d15e8 00000000 40af9630
I/DEBUG ( 89): 40af9338 00000000 00000000 00000000 00000100
I/DEBUG ( 89): 40af9348 00000000 00000104 400d1608 00000000
I/DEBUG ( 89): 40af9358 400d1448 00000000 00000000 00000000
I/DEBUG ( 89): 40af9368 00000004 400d0ee0 409e8470 00000001
I/DEBUG ( 89): 40af9378 00000000 00000040 ffffffff 00000000
I/DEBUG ( 89): 40af9388 400d29bc 40124228 400d1a10 bed33b10
I/DEBUG ( 89): 40af9398 00000000 00000000 00000000 40af9318
I/DEBUG ( 89): 40af93a8 400d1a14 000000df 40af5030 00000018
I/DEBUG ( 89): 40af93b8 00000000 00000000 400d0c60 00000000
I/DEBUG ( 89): 40af93c8 00000000 00000000 00000004 00000000
I/DEBUG ( 89): 40af93d8 400ce8c0 00000000 00000000 00000000
I/DEBUG ( 89): 40af93e8 00000004 00000000 00000000 40854dc0
I/DEBUG ( 89):
I/DEBUG ( 89): memory near r6:
I/DEBUG ( 89): 400cada8 7fffe88e 00001e04 7fffe898 00001e08
I/DEBUG ( 89): 400cadb8 7fffe96c 8007aab0 7fffeca8 00000001
I/DEBUG ( 89): 400cadc8 66727553 46656361 676e696c 50007265
I/DEBUG ( 89): 400cadd8 696d7265 6f697373 6544206e 6c61696e
I/DEBUG ( 89): 400cade8 6163203a 2074276e 6e65706f 626f6c47
I/DEBUG ( 89): 400cadf8 72546c61 61736e61 6f697463 6970206e
I/DEBUG ( 89): 400cae08 64253d64 6975202c 64253d64 74656700
I/DEBUG ( 89): 400cae18 6579614c 65735572 616e2872 253d656d
I/DEBUG ( 89): 400cae28 69202964 65642073 61006461 6f72646e
I/DEBUG ( 89): 400cae38 702e6469 696d7265 6f697373 43412e6e
I/DEBUG ( 89): 400cae48 53534543 5255535f 45434146 494c465f
I/DEBUG ( 89): 400cae58 5245474e 204c4700 6f727265 78302072
I/DEBUG ( 89): 400cae68 78343025 6c676500 70617753 66667542
I/DEBUG ( 89): 400cae78 28737265 202c7025 20297025 6c696166
I/DEBUG ( 89): 400cae88 77206465 20687469 30257830 42007838
I/DEBUG ( 89): 400cae98 746c6975 206e692d 65726353 48006e65
I/DEBUG ( 89):
I/DEBUG ( 89): memory near r8:
I/DEBUG ( 89): 4017f1d4 20746f67 6e727265 64253d6f 206e6f20
I/DEBUG ( 89): 4017f1e4 27732527 6572000a 746c7573 203d2120
I/DEBUG ( 89): 4017f1f4 6f4c0030 7265706f 756f4300 6e20646c
I/DEBUG ( 89): 4017f204 6120746f 636f6c6c 20657461 20534c54
I/DEBUG ( 89): 4017f214 2e79656b 756f4300 6e20646c 6320746f
I/DEBUG ( 89): 4017f224 74616572 61772065 7020656b 2e657069
I/DEBUG ( 89): 4017f234 72652020 3d6f6e72 43006425 646c756f
I/DEBUG ( 89): 4017f244 746f6e20 6b616d20 61772065 7220656b
I/DEBUG ( 89): 4017f254 20646165 65706970 6e6f6e20 6f6c622d
I/DEBUG ( 89): 4017f264 6e696b63 20202e67 6e727265 64253d6f
I/DEBUG ( 89): 4017f274 756f4300 6e20646c 6d20746f 20656b61
I/DEBUG ( 89): 4017f284 656b6177 69727720 70206574 20657069
I/DEBUG ( 89): 4017f294 2d6e6f6e 636f6c62 676e696b 6520202e
I/DEBUG ( 89): 4017f2a4 6f6e7272 0064253d 6f70456d 64466c6c
I/DEBUG ( 89): 4017f2b4 30203c20 756f4300 6e20646c 6320746f
I/DEBUG ( 89): 4017f2c4 74616572 70652065 206c6c6f 74736e69
I/DEBUG ( 89):
I/DEBUG ( 89): memory near sl:
I/DEBUG ( 89): 40af953c 00000000 00000000 00000073 40181bd8
I/DEBUG ( 89): 40af954c 40af95b8 00000001 00000009 0000000a
I/DEBUG ( 89): 40af955c 00000000 40181a18 409e8330 00000000
I/DEBUG ( 89): 40af956c 00000000 00000010 00000001 0000000b
I/DEBUG ( 89): 40af957c 40181a60 409b5c28 00000001 00000000
I/DEBUG ( 89): 40af958c 00000014 40181ad0 00000000 00000000
I/DEBUG ( 89): 40af959c 00000000 00000014 00000000 ffffffff
I/DEBUG ( 89): 40af95ac 7fffffff 00000000 0000001b 00000001
I/DEBUG ( 89): 40af95bc 00000001 40af9548 00000000 00000000
I/DEBUG ( 89): 40af95cc 0000001b 400d0b3c 40af94dc 00000000
I/DEBUG ( 89): 40af95dc 400d0b64 40af95e8 0000001b 00000001
I/DEBUG ( 89): 40af95ec 00000001 40af95dc 00000000 00000000
I/DEBUG ( 89): 40af95fc 00000013 40afa6a8 40af9620 404e5fbc
I/DEBUG ( 89): 40af960c 00000023 00000001 00000009 66727553
I/DEBUG ( 89): 40af961c 46656361 70616d6f 30363434 00000000
I/DEBUG ( 89): 40af962c 00000043 4009d3dc 409b5b18 00000001
I/DEBUG ( 89):
I/DEBUG ( 89): memory near ip:
I/DEBUG ( 89): 400d7f60 00000000 00000000 400fa741 400fa631
I/DEBUG ( 89): 400d7f70 400e6748 400f4d73 400efe38 400e6c78
I/DEBUG ( 89): 400d7f80 400f0024 400e7ef9 400f0568 400f1988
I/DEBUG ( 89): 400d7f90 40111b93 400f2540 400fa27d 400eb781
I/DEBUG ( 89): 400d7fa0 400f7a5d 400f1890 400f107c 400f1610
I/DEBUG ( 89): 400d7fb0 400f6615 400e5f2d 400e5f19 400fe021
I/DEBUG ( 89): 400d7fc0 400fe041 400fe1a7 400f66d5 40100db1
I/DEBUG ( 89): 400d7fd0 40101ba1 40111c7c 400e5f05 400fe001
I/DEBUG ( 89): 400d7fe0 400fe0d9 400efd98 400efed4 400f1c89
I/DEBUG ( 89): 400d7ff0 400efe54 400f4d33 400fd609 400fad57
I/DEBUG ( 89): 400d8000 400d8000 00000004 00000005 00000006
I/DEBUG ( 89): 400d8010 00000007 400d5089 00000000 00000000
I/DEBUG ( 89): 400d8020 00000000 00000000 00000000 00000000
I/DEBUG ( 89): 400d8030 00000000 00000000 00000000 00000000
I/DEBUG ( 89): 400d8040 00000000 00000000 00000000 00000000
I/DEBUG ( 89): 400d8050 00000000 00000000 00000000 00000000
I/DEBUG ( 89):
I/DEBUG ( 89): memory near sp:
I/DEBUG ( 89): 404e3c20 409aee90 409b41d8 404e3c60 73e76319
I/DEBUG ( 89): 404e3c30 40af9318 404e3c60 df0027ad 00000000
I/DEBUG ( 89): 404e3c40 00000001 400c46c3 40af9318 404e3c60
I/DEBUG ( 89): 404e3c50 404e3c8c 40af9318 400c8595 400c68ff
I/DEBUG ( 89): 404e3c60 409b2b78 400d0fc0 00000000 00000000
I/DEBUG ( 89): 404e3c70 00000000 00000060 400d1008 409e8388
I/DEBUG ( 89): 404e3c80 00000001 00000000 00000034 00000004
I/DEBUG ( 89): 404e3c90 409aee90 00000000 00000001 00000000
I/DEBUG ( 89): 404e3ca0 00000000 00000000 ffffffff ffffffff
I/DEBUG ( 89): 404e3cb0 00000000 00000000 ffffffff ffffffff
I/DEBUG ( 89): 404e3cc0 40af9560 409b5c80 409b5c84 400c27bb
I/DEBUG ( 89): 404e3cd0 40af9560 400c692d 400d165c 400c27c9
I/DEBUG ( 89): 404e3ce0 400d165c 40af9548 00000000 4017cc55
I/DEBUG ( 89): 404e3cf0 00100000 00000014 00100000 642f0001
I/DEBUG ( 89): 404e3d00 00000001 40af9590 0000287d 000028aa
I/DEBUG ( 89): 404e3d10 735f7974 409b5c80 00000000 00000000
I/DEBUG ( 89):
I/DEBUG ( 89): code around pc:
I/DEBUG ( 89): 000007e0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 89): 000007f0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 89): 00000800 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 89): 00000810 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 89): 00000820 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 89): 00000830 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 89): 00000840 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 89): 00000850 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 89): 00000860 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 89): 00000870 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 89): 00000880 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 89): 00000890 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 89): 000008a0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 89): 000008b0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 89): 000008c0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 89): 000008d0 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 89):
I/DEBUG ( 89): code around lr:
I/DEBUG ( 89): 400c185c 0100f8d4 d3e84285 e8bd4638 bf0083f8
I/DEBUG ( 89): 400c186c 01010001 68c0b508 6cc3b110 47982200
I/DEBUG ( 89): 400c187c 2900bd08 dd09b530 4500f04f 4118f8d0
I/DEBUG ( 89): 400c188c 422540cd f06fd105 bd30004a 004af06f
I/DEBUG ( 89): 400c189c 2448bd30 31284361 50421844 60632000
I/DEBUG ( 89): 400c18ac f8842301 bd303020 b5102900 480fdc14
I/DEBUG ( 89): 400c18bc 4478490f e0034479 490f480e 44794478
I/DEBUG ( 89): 400c18cc f7f82200 f7f9ed5e 2300e934 63a362a3
I/DEBUG ( 89): 400c18dc f88463e3 bd103020 dced2902 fb042448
I/DEBUG ( 89): 400c18ec 34280401 28006aa0 bd10d1ed 00009e7b
I/DEBUG ( 89): 400c18fc 00009504 00009e99 000094fa 4604b510
I/DEBUG ( 89): 400c190c b12868c0 f7ff4904 b108f8d9 bd102005
I/DEBUG ( 89): 400c191c 6d186863 bf00bd10 01010001 b11068c0
I/DEBUG ( 89): 400c192c f7ff4901 4770b8cb 01010001 41f0e92d
I/DEBUG ( 89): 400c193c 68c04604 4617460d b1c8461e f7ff490e
I/DEBUG ( 89): 400c194c b1a8f8bd 46294620 4633463a 41f0e8bd
D/skia ( 91): SkGraphics::Init() - BLTsville (CPU) dlopen success
D/AndroidRuntime( 91):
D/AndroidRuntime( 91): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
D/AndroidRuntime( 91): CheckJNI is OFF
I/ServiceManager( 82): service 'SurfaceFlinger' died
W/SurfaceComposerClient( 355): ComposerService remote (surfaceflinger) died [0x415f94d8]
D/BootAnimation( 355): SurfaceFlinger died, exiting...
D/skia ( 382): SkGraphics::Init() - BLTsville (CPU) dlopen success
D/AndroidRuntime( 382):
D/AndroidRuntime( 382): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
D/AndroidRuntime( 382): CheckJNI is OFF
D/dalvikvm( 382): Unable to stat classpath element '/system/framework/ds.jar'
D/dalvikvm( 382): Trying to load lib libjavacore.so 0x0
D/dalvikvm( 382): Added shared lib libjavacore.so 0x0
D/dalvikvm( 382): Trying to load lib libnativehelper.so 0x0
D/dalvikvm( 382): Added shared lib libnativehelper.so 0x0
I/SamplingProfilerIntegration( 382): Profiling disabled.
Please help me to debug it.
Any Guidance will be appreciated!!
I had the same issue with my Nexus 7 AOSP build.
Its was an LOL moment for me after spending 2 days behind this issue.
I hope this will help you in your journey of building ROM using AOSP for android devices.
You are missing some proprietary binaries required to run hardware components used by devices. Those lib are not built by using AOSP make command.
Those binaries can be found here: https://developers.google.com/android/nexus/drivers#flo. Make sure your binaries are for the correct Android version you're building (5.1.1 in my case).
Extract the downloaded files into the root of your working directory. Run the extracted scripts and go through the included terms of agreement. You will get some files like "extract-***.sh" in you home directory, run them one by one like
$ ./extract-****-**.sh**
run make command again.
hope this will take care of the issue you have.
Happy coding.

How to play Live Streaming video in Android

In my project I have a requirement to play live streaming video. I have seen many comments that "live streaming is supported only from 3.0" so that I have to use emulator 3.0. But it does not play. Can anybody help for me.. This is my code:
String SrcPath="http://akamedia2.lsops.net/live/smil:cnbc_en.smil/playlist.m3u8";
myVideoView = new VideoView(this);
myVideoView.setVideoURI(Uri.parse(SrcPath));
setContentView(myVideoView);
myVideoView.setMediaController(new MediaController(this));
myVideoView.requestFocus();
myVideoView.setOnErrorListener(new OnErrorListener() {
public boolean onError(MediaPlayer mp, int what, int extra) {
// TODO Auto-generated method stub
return false;
}
});
myVideoView.setOnPreparedListener(new OnPreparedListener() {
public void onPrepared(MediaPlayer mp) {
// TODO Auto-generated method stub
myVideoView.start();
}
});
The following logcat for this:
Generated scanline__00000177:03515104_00001002_00000000 [ 87 ipp] (110 ins) at [0x477ba6f0:0x477ba8a8] in 606126 ns
V/TLINE ( 360): new: android.text.TextLine#40643358
D/MediaPlayer( 360): Couldn't open file on client side, trying server side
I/ActivityManager( 65): Displayed com.leadapps.android/.LivestreamTest: +1s834ms
D/MediaPlayer( 360): getMetadata
E/MediaPlayerService( 33): getMetadata failed -38
I/LiveSession( 33): onConnect 'http://akamedia2.lsops.net/live/smil:cnbc_en.smil/playlist.m3u8'
I/NuHTTPDataSource( 33): connect to akamedia2.lsops.net:80/live/smil:cnbc_en.smil/playlist.m3u8 #0
D/dalvikvm( 144): GC_EXPLICIT freed 929K, 13% free 14528K/16583K, paused 3ms+3ms
I/NuHTTPDataSource( 33): connect to akamedia2.lsops.net:80/live/smil:cnbc_en.smil/chunklist-b33000.m3u8?wowzasessionid=1036169757 #0
I/NuHTTPDataSource( 33): connect to akamedia2.lsops.net:80/live/smil:cnbc_en.smil/media-b33000_7023.aac?wowzasessionid=1036169757 #0
E/LiveSession( 33): This doesn't look like a transport stream...
I/LiveSession( 33): Retrying with a different bandwidth stream.
I/NuHTTPDataSource( 33): connect to akamedia2.lsops.net:80/live/smil:cnbc_en.smil/chunklist-b120000.m3u8?wowzasessionid=1036169757 #0
I/NuHTTPDataSource( 33): connect to akamedia2.lsops.net:80/live/smil:cnbc_en.smil/media-b120000_7092.ts?wowzasessionid=1036169757 #0
D/dalvikvm( 192): GC_EXPLICIT freed 148K, 5% free 6720K/7047K, paused 4ms+4ms
I/NuHTTPDataSource( 33): connect to akamedia2.lsops.net:80/live/smil:cnbc_en.smil/media-b120000_7093.ts?wowzasessionid=1036169757 #0
I/avc_utils( 33): found AVC codec config (480 x 256, Baseline-profile level 3.0)
I/ESQueue ( 33): found AAC codec config (24000 Hz, 1 channels)
F/ACodec ( 33): frameworks/base/media/libstagefright/ACodec.cpp:1594 CHECK_EQ( omx->allocateNode(componentName.c_str(), observer, &node),(status_t)OK) failed: -2147483648 vs. 0
I/DEBUG ( 31): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 31): Build fingerprint: 'generic/sdk/generic:3.0/HONEYCOMB/104254:eng/test-keys'
I/DEBUG ( 31): pid: 33, tid: 371 >>> /system/bin/mediaserver <<<
I/DEBUG ( 31): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad
I/DEBUG ( 31): r0 deadbaad r1 0000000c r2 00000027 r3 00000000
I/DEBUG ( 31): r4 00000080 r5 aff46658 r6 40706d3c r7 00000000
I/DEBUG ( 31): r8 a801c211 r9 00013000 10 00100000 fp 00000001
I/DEBUG ( 31): ip ffffffff sp 407068e0 lr aff193e9 pc aff15f58 cpsr 00000030
I/DEBUG ( 31): #00 pc 00015f58 /system/lib/libc.so
I/DEBUG ( 31): #01 pc 00001466 /system/lib/liblog.so (__android_log_assert)
I/DEBUG ( 31): #02 pc 00008d90 /system/lib/libstagefright_omx.so (_ZN7android3OMX18CallbackDispatcherC1EPNS_15OMXNodeInstanceE)
I/DEBUG ( 31):
I/DEBUG ( 31): libc base address: aff00000
I/DEBUG ( 31):
I/DEBUG ( 31): code around pc:
I/DEBUG ( 31): aff15f38 68241c23 d1fb2c00 68dae027 d0042a00
I/DEBUG ( 31): aff15f48 20014d18 6028447d 48174790 24802227
I/DEBUG ( 31): aff15f58 f7f57002 2106ea02 eb6ef7f6 0563aa01
I/DEBUG ( 31): aff15f68 60932100 91016051 1c112006 eed4f7f5
I/DEBUG ( 31): aff15f78 2200a905 f7f52002 f7f5eee0 2106e9ee
I/DEBUG ( 31):
I/DEBUG ( 31): code around lr:
I/DEBUG ( 31): aff193c8 b0834a0d 589c447b 26009001 686768a5
I/DEBUG ( 31): aff193d8 220ce008 2b005eab 1c28d003 47889901
I/DEBUG ( 31): aff193e8 35544306 d5f43f01 2c006824 b003d1ee
I/DEBUG ( 31): aff193f8 bdf01c30 00028168 ffffff8c 1c0fb5f0
I/DEBUG ( 31): aff19408 43551c3d a904b087 1c16ac01 604d9004
I/DEBUG ( 31):
I/DEBUG ( 31): stack:
I/DEBUG ( 31): 407068a0 00100000
I/DEBUG ( 31): 407068a4 0000035f
I/DEBUG ( 31): 407068a8 aff416f0 /system/lib/libc.so
I/DEBUG ( 31): 407068ac aff41690 /system/lib/libc.so
I/DEBUG ( 31): 407068b0 00000000
I/DEBUG ( 31): 407068b4 aff193e9 /system/lib/libc.so
I/DEBUG ( 31): 407068b8 00000009
I/DEBUG ( 31): 407068bc aff18459 /system/lib/libc.so
I/DEBUG ( 31): 407068c0 afc01199 /system/lib/liblog.so
I/DEBUG ( 31): 407068c4 00000000
I/DEBUG ( 31): 407068c8 aff46658
I/DEBUG ( 31): 407068cc 40706d3c
I/DEBUG ( 31): 407068d0 00000000
I/DEBUG ( 31): 407068d4 aff186e7 /system/lib/libc.so
I/DEBUG ( 31): 407068d8 df002777
I/DEBUG ( 31): 407068dc e3a070ad
I/DEBUG ( 31): #00 407068e0 407068dc
I/DEBUG ( 31): 407068e4 00000001
I/DEBUG ( 31): 407068e8 a2c386b7 /system/lib/libstagefright.so
I/DEBUG ( 31): 407068ec 00000007
I/DEBUG ( 31): 407068f0 40706914
I/DEBUG ( 31): 407068f4 fffffbdf
I/DEBUG ( 31): 407068f8 00000000
I/DEBUG ( 31): 407068fc a2c386b7 /system/lib/libstagefright.so
I/DEBUG ( 31): 40706900 00000080
I/DEBUG ( 31): 40706904 afc01469 /system/lib/liblog.so
I/DEBUG ( 31): #01 40706908 a2c386b7 /system/lib/libstagefright.so
I/DEBUG ( 31): 4070690c afc01469 /system/lib/liblog.so
I/DEBUG ( 31): 40706910 40706d2c
I/DEBUG ( 31): 40706914 6d617266
I/DEBUG ( 31): 40706918 726f7765
I/DEBUG ( 31): 4070691c 622f736b
I/DEBUG ( 31): 40706920 2f657361
I/DEBUG ( 31): 40706924 6964656d
I/DEBUG ( 31): 40706928 696c2f61
I/DEBUG ( 31): 4070692c 61747362
I/DEBUG ( 31): 40706930 72666567
I/DEBUG ( 31): 40706934 74686769
I/DEBUG ( 31): 40706938 6f43412f
I/DEBUG ( 31): 4070693c 2e636564
I/DEBUG ( 31): 40706940 3a707063
I/DEBUG ( 31): 40706944 34393531
I/DEBUG ( 31): 40706948 45484320
I/DEBUG ( 31): 4070694c 455f4b43
I/DEBUG ( 31): 40706950 6f202851
I/DEBUG ( 31): 40706954 3e2d786d
I/DEBUG ( 31): 40706958 6f6c6c61
I/DEBUG ( 31): 4070695c 65746163
I/DEBUG ( 31): 40706960 65646f4e
I/DEBUG ( 31): 40706964 6d6f6328
I/DEBUG ( 31): 40706968 656e6f70
I/DEBUG ( 31): 4070696c 614e746e
I/DEBUG ( 31): 40706970 632e656d
I/DEBUG ( 31): 40706974 7274735f
I/DEBUG ( 31): 40706978 202c2928
I/DEBUG ( 31): 4070697c 6573626f
I/DEBUG ( 31): 40706980 72657672
I/DEBUG ( 31): 40706984 6e26202c
I/DEBUG ( 31): 40706988 2965646f
I/DEBUG ( 31): 4070698c 7473282c
I/DEBUG ( 31): 40706990 73757461
I/DEBUG ( 31): 40706994 4f29745f
I/DEBUG ( 31): 40706998 6620294b
I/DEBUG ( 31): 4070699c 656c6961
I/DEBUG ( 31): 407069a0 2d203a64
I/DEBUG ( 31): 407069a4 37343132
I/DEBUG ( 31): 407069a8 36333834
I/DEBUG ( 31): 407069ac 76203834
I/DEBUG ( 31): 407069b0 30202e73
I/DEBUG ( 31): 407069b4 00000000
I/DEBUG ( 31): 407069b8 40706a40
I/DEBUG ( 31): 407069bc 00000000
I/DEBUG ( 31): 407069c0 ffffffff
I/DEBUG ( 31): 407069c4 b00094e8 /system/bin/linker
I/DEBUG ( 31): 407069c8 00000000
I/DEBUG ( 31): 407069cc 00000000
I/DEBUG ( 31): 407069d0 a801c211 /system/lib/libutils.so
I/DEBUG ( 31): 407069d4 407069d4
I/DEBUG ( 31): 407069d8 b00053d1 /system/bin/linker
I/DEBUG ( 31): 407069dc b000a04c
I/DEBUG ( 31): 407069e0 b000a087
I/DEBUG ( 31): 407069e4 b000a34b
I/DEBUG ( 31): 407069e8 0000003b
I/DEBUG ( 31): 407069ec 40706a34
I/DEBUG ( 31): 407069f0 00000002
I/DEBUG ( 31): 407069f4 38303131
I/DEBUG ( 31): 407069f8 00000000
I/DEBUG ( 31): 407069fc 80008e83 /system/lib/libstagefright_foundation.so
I/DEBUG ( 31): 40706a00 00000000
I/DEBUG ( 31): 40706a04 00000001
I/DEBUG ( 31): 40706a08 00000003
I/DEBUG ( 31): 40706a0c 40706b80
I/DEBUG ( 31): 40706a10 00000070
I/DEBUG ( 31): 40706a14 00000000
I/DEBUG ( 31): 40706a18 40706aa8
I/DEBUG ( 31): 40706a1c 000000c0
I/DEBUG ( 31): 40706a20 b000952c /system/bin/linker
I/DEBUG ( 31): 40706a24 00000454
I/DEBUG ( 31): 40706a28 40706a8c
I/DEBUG ( 31): 40706a2c b0004c35 /system/bin/linker
I/DEBUG ( 31): 40706a30 b0007120 /system/bin/linker
I/DEBUG ( 31): 40706a34 b0006bb8 /system/bin/linker
I/DEBUG ( 31): 40706a38 00000454
I/DEBUG ( 31): 40706a3c a300b042 /system/lib/libstagefright_omx.so
I/DEBUG ( 31): 40706a40 00000018
I/DEBUG ( 31): 40706a44 40706b80
I/DEBUG ( 31): 40706a48 00000003
I/DEBUG ( 31): 40706a4c 8000595b /system/lib/libstagefright_foundation.so
I/DEBUG ( 31): 40706a50 40706b80
I/DEBUG ( 31): 40706a54 40706a9c
I/DEBUG ( 31): 40706a58 00000003
I/DEBUG ( 31): 40706a5c a2c25f9d /system/lib/libstagefright.so
I/DEBUG ( 31): 40706a60 ffffffff
I/DEBUG ( 31): 40706a64 00000000
I/DEBUG ( 31): 40706a68 4089501b
I/DEBUG ( 31): 40706a6c b00094e8 /system/bin/linker
I/DEBUG ( 31): 40706a70 a78e7cd8
I/DEBUG ( 31): 40706a74 00000000
I/DEBUG ( 31): 40706a78 a78e7cd8
I/DEBUG ( 31): 40706a7c 00000000
I/DEBUG ( 31): 40706a80 000005f8
I/DEBUG ( 31): 40706a84 00000002
I/DEBUG ( 31): 40706a88 0001c2c0 [heap]
I/DEBUG ( 31): 40706a8c 7379732f
I/DEBUG ( 31): 40706a90 2f6d6574
I/DEBUG ( 31): 40706a94 2f62696c
I/DEBUG ( 31): 40706a98 7362696c
I/DEBUG ( 31): 40706a9c 65676174
I/DEBUG ( 31): 40706aa0 67697266
I/DEBUG ( 31): 40706aa4 77687468
I/DEBUG ( 31): 40706aa8 006f732e
I/DEBUG ( 31): 40706aac afb04a3c /system/lib/libcutils.so
I/DEBUG ( 31): 40706ab0 0000f438 [heap]
I/DEBUG ( 31): 40706ab4 40706afc
I/DEBUG ( 31): 40706ab8 00000009
I/DEBUG ( 31): 40706abc a8015049 /system/lib/libutils.so
I/DEBUG ( 31): 40706ac0 0000f428 [heap]
I/DEBUG ( 31): 40706ac4 0000f438 [heap]
I/DEBUG ( 31): 40706ac8 00000009
I/DEBUG ( 31): 40706acc a8015165 /system/lib/libutils.so
I/DEBUG ( 31): 40706ad0 0000f3d8 [heap]
I/DEBUG ( 31): 40706ad4 40706afc
I/DEBUG ( 31): 40706ad8 fffffffc
I/DEBUG ( 31): 40706adc 00000000
I/DEBUG ( 31): 40706ae0 40706afc
I/DEBUG ( 31): 40706ae4 a81147b5 /system/lib/libbinder.so
I/DEBUG ( 31): 40706ae8 40706c48
I/DEBUG ( 31): 40706aec a811a575 /system/lib/libbinder.so
I/DEBUG ( 31): 40706af0 00000030
I/DEBUG ( 31): 40706af4 00000000
I/DEBUG ( 31): 40706af8 00024230 [heap]
I/DEBUG ( 31): 40706afc 0000f3d8 [heap]
I/DEBUG ( 31): 40706b00 40706b18
I/DEBUG ( 31): 40706b04 40706c48
I/DEBUG ( 31): 40706b08 00000000
I/DEBUG ( 31): 40706b0c 40009028 /dev/binder
I/DEBUG ( 31): 40706b10 40009038 /dev/binder
I/DEBUG ( 31): 40706b14 a811a5a1 /system/lib/libbinder.so
I/DEBUG ( 31): 40706b18 00000000
I/DEBUG ( 31): 40706b1c a801c211 /system/lib/libutils.so
I/DEBUG ( 31): 40706b20 40706c48
I/DEBUG ( 31): 40706b24 00000010
I/DEBUG ( 31): 40706b28 40009028 /dev/binder
I/DEBUG ( 31): 40706b2c a811a5fb /system/lib/libbinder.so
I/DEBUG ( 31): 40706b30 40009038 /dev/binder
I/DEBUG ( 31): 40706b34 00000000
I/DEBUG ( 31): 40706b38 ffffff20
I/DEBUG ( 31): 40706b3c a8123204 /system/lib/libbinder.so
I/DEBUG ( 31): 40706b40 000241d0 [heap]
I/DEBUG ( 31): 40706b44 a81165b7 /system/lib/libbinder.so
I/DEBUG ( 31): 40706b48 00000001
I/DEBUG ( 31): 40706b4c a81164c1 /system/lib/libbinder.so
I/DEBUG ( 31): 40706b50 000241d0 [heap]
I/DEBUG ( 31): 40706b54 a8123204 /system/lib/libbinder.so
I/DEBUG ( 31): 40706b58 40706c78
I/DEBUG ( 31): 40706b5c 000241d0 [heap]
I/DEBUG ( 31): 40706b60 00024200 [heap]
I/DEBUG ( 31): 40706b64 40706c48
I/DEBUG ( 31): 40706b68 00000060
I/DEBUG ( 31): 40706b6c 00000000
I/DEBUG ( 31): 40706b70 00000000
I/DEBUG ( 31): 40706b74 00000000
I/DEBUG ( 31): 40706b78 00000000
I/DEBUG ( 31): 40706b7c 00000000
I/DEBUG ( 31): 40706b80 000003e8
I/DEBUG ( 31): 40706b84 00000010
I/DEBUG ( 31): 40706b88 00000004
I/DEBUG ( 31): 40706b8c 40009028 /dev/binder
I/DEBUG ( 31): 40706b90 40009038 /dev/binder
I/DEBUG ( 31): 40706b94 4ab3df53
I/DEBUG ( 31): 40706b98 00000009
I/DEBUG ( 31): 40706b9c 0000f43c [heap]
I/DEBUG ( 31): 40706ba0 ffffffff
I/DEBUG ( 31): 40706ba4 40706bfc
I/DEBUG ( 31): 40706ba8 a801c211 /system/lib/libutils.so
I/DEBUG ( 31): 40706bac afb04a3c /system/lib/libcutils.so
I/DEBUG ( 31): 40706bb0 0000f438 [heap]
I/DEBUG ( 31): 40706bb4 40706bfc
I/DEBUG ( 31): 40706bb8 0000003b
I/DEBUG ( 31): 40706bbc 0000003b
I/DEBUG ( 31): 40706bc0 b000a04c
I/DEBUG ( 31): 40706bc4 a801c211 /system/lib/libutils.so
I/DEBUG ( 31): 40706bc8 00013000 [heap]
I/DEBUG ( 31): 40706bcc 00100000
I/DEBUG ( 31): 40706bd0 00000001
I/DEBUG ( 31): 40706bd4 b00120d9
I/DEBUG ( 31): 40706bd8 40706c2c
I/DEBUG ( 31): 40706bdc b0005405 /system/bin/linker
I/DEBUG ( 31): 40706be0 b00053d1 /system/bin/linker
I/DEBUG ( 31): 40706be4 00000006
I/DEBUG ( 31): 40706be8 00000000
I/DEBUG ( 31): 40706bec aff10ed4 /system/lib/libc.so
I/DEBUG ( 31): 40706bf0 00000000
I/DEBUG ( 31): 40706bf4 aff10ed4 /system/lib/libc.so
I/DEBUG ( 31): 40706bf8 00000033
I/DEBUG ( 31): 40706bfc 000245d8 [heap]
I/DEBUG ( 31): 40706c00 000001b4
I/DEBUG ( 31): 40706c04 c0000000
I/DEBUG ( 31): 40706c08 a801c211 /system/lib/libutils.so
I/DEBUG ( 31): 40706c0c 00013000 [heap]
I/DEBUG ( 31): 40706c10 00100000
I/DEBUG ( 31): 40706c14 aff1402b /system/lib/libc.so
I/DEBUG ( 31): 40706c18 000001b4
I/DEBUG ( 31): 40706c1c c0000000
I/DEBUG ( 31): 40706c20 00000000
I/DEBUG ( 31): 40706c24 aff10ed4 /system/lib/libc.so
I/DEBUG ( 31): 40706c28 000000da
I/DEBUG ( 31): 40706c2c 00007a08
I/DEBUG ( 31): 40706c30 000001b4
I/DEBUG ( 31): 40706c34 c0000000
I/DEBUG ( 31): 40706c38 a801c211 /system/lib/libutils.so
I/DEBUG ( 31): 40706c3c 00013000 [heap]
I/DEBUG ( 31): 40706c40 00100000
I/DEBUG ( 31): 40706c44 aff12d45 /system/lib/libc.so
I/DEBUG ( 31): 40706c48 00000000
I/DEBUG ( 31): 40706c4c aff10ed4 /system/lib/libc.so
I/DEBUG ( 31): 40706c50 00000013
I/DEBUG ( 31): 40706c54 000245a8 [heap]
I/DEBUG ( 31): 40706c58 300001b4
I/DEBUG ( 31): 40706c5c 4ab3df53
I/DEBUG ( 31): 40706c60 a801c211 /system/lib/libutils.so
I/DEBUG ( 31): 40706c64 00000000
I/DEBUG ( 31): 40706c68 00000000
I/DEBUG ( 31): 40706c6c aff10ed4 /system/lib/libc.so
I/DEBUG ( 31): 40706c70 00000013
I/DEBUG ( 31): 40706c74 000245d0 [heap]
I/DEBUG ( 31): 40706c78 000001b4
I/DEBUG ( 31): 40706c7c c0000000
I/DEBUG ( 31): 40706c80 a801c211 /system/lib/libutils.so
I/DEBUG ( 31): 40706c84 00013000 [heap]
I/DEBUG ( 31): 40706c88 00100000
I/DEBUG ( 31): 40706c8c aff1402b /system/lib/libc.so
I/DEBUG ( 31): 40706c90 7fffffff
I/DEBUG ( 31): 40706c94 00000020
I/DEBUG ( 31): 40706c98 a801c211 /system/lib/libutils.so
I/DEBUG ( 31): 40706c9c 00013000 [heap]
I/DEBUG ( 31): 40706ca0 00000000
I/DEBUG ( 31): 40706ca4 aff10ed4 /system/lib/libc.so
I/DEBUG ( 31): 40706ca8 000245c8 [heap]
I/DEBUG ( 31): 40706cac 000245c8 [heap]
I/DEBUG ( 31): 40706cb0 00000010
I/DEBUG ( 31): 40706cb4 000000a0
I/DEBUG ( 31): 40706cb8 00000000
I/DEBUG ( 31): 40706cbc aff10ed4 /system/lib/libc.so
I/DEBUG ( 31): 40706cc0 000245c8 [heap]
I/DEBUG ( 31): 40706cc4 000245c8 [heap]
I/DEBUG ( 31): 40706cc8 000000a8
I/DEBUG ( 31): 40706ccc 000000c0
I/DEBUG ( 31): 40706cd0 a801c211 /system/lib/libutils.so
I/DEBUG ( 31): 40706cd4 00013000 [heap]
I/DEBUG ( 31): 40706cd8 00100000
I/DEBUG ( 31): 40706cdc aff14461 /system/lib/libc.so
I/DEBUG ( 31): 40706ce0 00000000
I/DEBUG ( 31): 40706ce4 000245d0 [heap]
I/DEBUG ( 31): 40706ce8 00000011
I/DEBUG ( 31): 40706cec 000245a8 [heap]
I/DEBUG ( 31): 40706cf0 00000000
I/DEBUG ( 31): 40706cf4 a801c211 /system/lib/libutils.so
I/DEBUG ( 31): 40706cf8 00013000 [heap]
I/DEBUG ( 31): 40706cfc 00100000
I/DEBUG ( 31): 40706d00 00000001
I/DEBUG ( 31): 40706d04 0002465f [heap]
I/DEBUG ( 31): 40706d08 40706d3c
I/DEBUG ( 31): 40706d0c 8000774b /system/lib/libstagefright_foundation.so
I/DEBUG ( 31): 40706d10 40706d48
I/DEBUG ( 31): 40706d14 4ab3df53
I/DEBUG ( 31): 40706d18 000245a8 [heap]
I/DEBUG ( 31): 40706d1c a3008d95 /system/lib/libstagefright_omx.so
I/DEBUG ( 31): 40706d20 40706d48
I/DEBUG ( 31): 40706d24 a2b4d3a3 /system/lib/libstagefright.so
W/AudioSystem( 65): AudioPolicyService server died!
W/AudioSystem( 360): AudioFlinger server died!
W/IMediaDeathNotifier( 360): media server died
E/MediaPlayer( 360): error (100, 0)
E/MediaPlayer( 360): Error (100,0)
D/VideoView( 360): Error: 100,0
I/ee ( 360): ==============100
W/AudioSystem( 131): AudioFlinger server died!
W/AudioSystem( 131): AudioPolicyService server died!
I/ServiceManager( 28): service 'media.audio_flinger' died
I/ServiceManager( 28): service 'media.player' died
I/ServiceManager( 28): service 'media.camera' died
I/ServiceManager( 28): service 'media.audio_policy' died
I/BootReceiver( 65): Copying /data/tombstones/tombstone_01 to DropBox (SYSTEM_TOMBSTONE)
D/dalvikvm( 360): GC_FOR_ALLOC freed 62K, 3% free 6407K/6599K, paused 124ms
String SrcPath="http://akamedia2.lsops.net/live/smil:cnbc_en.smil/playlist.m3u8";
myVideoView = new VideoView(this);
myVideoView.setVideoURI(Uri.parse(SrcPath));
setContentView(myVideoView);
myVideoView.setMediaController(new MediaController(this));
myVideoView.requestFocus();
Remove this line.
myVideoView.requestFocus();
According to some threads, you should use httplive:// scheme for version 2.3 and 3.0 and the http:// scheme for 3.0+: How to play m3u8 on Android?
It worked on my 2.3 device but I'm not sure if it wold work on an emulator. Moreover, I made it work using the m3u8 test URI ( http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8 ) of apple. I can't still make it work using the my own URI.

Why does the Android emulator browser just exit to the home screen when I enter a url and press enter?

A couple days ago I installed the Android SDK on my work laptop. I created an AVD for 4.0.3. I ran it with proxy information on the command line. When it started up I ran the browser app and it successfully displayed the Google home page. I then clicked in the URL field of the browser app and entered a public host name that's associated with a web site, and pressed Enter on my PC keyboard. The result is that the browser app just exited back to the home screen. I tried a couple of different hostnames (www.cnn.com was one of them), with the same result.
What am I missing?
The logcat output that I get right about when I press Enter on the new URL is the following:
I/ActivityThread( 485): Pub com.android.quicksearchbox.google:com.android.quicksearchbox.google.GoogleSuggestionProvider
I/ActivityThread( 485): Pub com.android.quicksearchbox.shortcuts: com.android.quicksearchbox.ShortcutsProvider
D/dalvikvm( 444): GC_CONCURRENT freed 243K, 4% free 10706K/11079K, paused 5ms+5ms
D/dalvikvm( 132): GC_CONCURRENT freed 374K, 30% free 9903K/14023K, paused 5ms+14ms
F/libc ( 444): Fatal signal 11 (SIGSEGV) at 0x0000001c (code=1)
I/DEBUG ( 34): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 34): Build fingerprint: 'generic/sdk/generic:4.0.4/MR1/302030:eng/test-keys'
I/DEBUG ( 34): pid: 444, tid: 468 >>> com.android.browser <<<
I/DEBUG ( 34): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0000001c
I/DEBUG ( 34): r0 00000000 r1 4a19845c r2 00000000 r3 003d3ba8
I/DEBUG ( 34): r4 002fdac0 r5 00000000 r6 4a198480 r7 ffffffff
I/DEBUG ( 34): r8 00000001 r9 00000001 10 00192110 fp 4a198c04
I/DEBUG ( 34): ip 48696d20 sp 4a198428 lr 482e66df pc 482e55d2 cpsr 60000030
I/DEBUG ( 34): d0 00000000cf000000 d1 0000000000000000
I/DEBUG ( 34): d2 3ff0000000000000 d3 0000000000000000
I/DEBUG ( 34): d4 01e1338000000000 d5 4129f23400000000
I/DEBUG ( 34): d6 0000000000000000 d7 0000000000000000
I/DEBUG ( 34): d8 0000000000000000 d9 0000000000000000
I/DEBUG ( 34): d10 0000000000000000 d11 0000000000000000
I/DEBUG ( 34): d12 0000000000000000 d13 0000000000000000
I/DEBUG ( 34): d14 0000000000000000 d15 0000000000000000
I/DEBUG ( 34): scr 60000013
I/DEBUG ( 34):
I/DEBUG ( 34): #00 pc 003865d2 /system/lib/libwebcore.so
I/DEBUG ( 34): #01 pc 003876da /system/lib/libwebcore.so
I/DEBUG ( 34): #02 pc 00387aa6 /system/lib/libwebcore.so
I/DEBUG ( 34): #03 pc 00172072 /system/lib/libwebcore.so
I/DEBUG ( 34): #04 pc 00161898 /system/lib/libwebcore.so
I/DEBUG ( 34): #05 pc 00165dc2 /system/lib/libwebcore.so
I/DEBUG ( 34): #06 pc 0016b6ba /system/lib/libwebcore.so
I/DEBUG ( 34): #07 pc 0016ef24 /system/lib/libwebcore.so
I/DEBUG ( 34): #08 pc 0016ede0 /system/lib/libwebcore.so
I/DEBUG ( 34): #09 pc 0016191c /system/lib/libwebcore.so
I/DEBUG ( 34): #10 pc 00164e30 /system/lib/libwebcore.so
I/DEBUG ( 34): #11 pc 00166fa2 /system/lib/libwebcore.so
I/DEBUG ( 34): #12 pc 001670ae /system/lib/libwebcore.so
I/DEBUG ( 34): #13 pc 0016cea6 /system/lib/libwebcore.so
I/DEBUG ( 34): #14 pc 0016d35a /system/lib/libwebcore.so
I/DEBUG ( 34): #15 pc 0026c0f2 /system/lib/libwebcore.so
I/DEBUG ( 34): #16 pc 0016d7f8 /system/lib/libwebcore.so
I/DEBUG ( 34): #17 pc 00167250 /system/lib/libwebcore.so
I/DEBUG ( 34): #18 pc 0016740a /system/lib/libwebcore.so
I/DEBUG ( 34): #19 pc 00167496 /system/lib/libwebcore.so
I/DEBUG ( 34): #20 pc 001674c2 /system/lib/libwebcore.so
I/DEBUG ( 34): #21 pc 0027bafe /system/lib/libwebcore.so
I/DEBUG ( 34): #22 pc 0001ec30 /system/lib/libdvm.so (dvmPlatformInvoke)
I/DEBUG ( 34): #23 pc 000590ce /system/lib/libdvm.so (_Z16dvmCallJNIMethodPKjP6JValuePK6MethodP6Thread)
I/DEBUG ( 34): #24 pc 0004cbe8 /system/lib/libdvm.so (_Z21dvmCheckCallJNIMethodPKjP6JValuePK6MethodP6Thread)
I/DEBUG ( 34): #25 pc 00030a4c /system/lib/libdvm.so
I/DEBUG ( 34): #26 pc 000341fc /system/lib/libdvm.so (_Z12dvmInterpretP6ThreadPK6MethodP6JValue)
I/DEBUG ( 34): #27 pc 0006ca8e /system/lib/libdvm.so (_Z14dvmCallMethodVP6ThreadPK6MethodP6ObjectbP6JValueSt9__va_list)
I/DEBUG ( 34): #28 pc 0006cab0 /system/lib/libdvm.so (_Z13dvmCallMethodP6ThreadPK6MethodP6ObjectP6JValuez)
I/DEBUG ( 34): #29 pc 0005fbd0 /system/lib/libdvm.so
I/DEBUG ( 34): #30 pc 00012e48 /system/lib/libc.so (__thread_entry)
I/DEBUG ( 34): #31 pc 00012998 /system/lib/libc.so (pthread_create)
I/DEBUG ( 34):
I/DEBUG ( 34): code around pc:
I/DEBUG ( 34): 482e55b0 ff1af59b 1d38e003 f617a909 9809fb11 ......8.........
I/DEBUG ( 34): 482e55c0 ff06f59b e8bdb00b bf008ff0 680bb507 ...............h
I/DEBUG ( 34): 482e55d0 61c32200 600a680b f841a902 f7ff3d04 .".a.h.`..A..=..
I/DEBUG ( 34): 482e55e0 9801ff43 fef4f59b bf00bd0e 4604b510 C..............F
I/DEBUG ( 34): 482e55f0 b1286840 30b0f890 4621b913 fa48f000 #h(....0..!F..H.
I/DEBUG ( 34):
I/DEBUG ( 34): code around lr:
I/DEBUG ( 34): 482e66bc 682380ac 685a4620 e0d44790 30bcf8d4 ..#h FZh.G.....0
I/DEBUG ( 34): 482e66cc a90ab153 f8416d60 f8c43d04 f7fe20bc S...`mA..=... ..
I/DEBUG ( 34): 482e66dc 9809ff77 fe76f59a 6d606be5 d1014285 w.....v..k`m.B..
I/DEBUG ( 34): 482e66ec e0022500 f5db4628 6d63ff4b 2200a90a .%..(F..K.cm..."
I/DEBUG ( 34): 482e66fc f8414620 65623d0c fb86f7ff f5e99807 FA..=be........
I/DEBUG ( 34):
I/DEBUG ( 34): stack:
I/DEBUG ( 34): 4a1983e8 00000005
I/DEBUG ( 34): 4a1983ec 001eb800 [heap]
I/DEBUG ( 34): 4a1983f0 48287dad /system/lib/libwebcore.so
I/DEBUG ( 34): 4a1983f4 0044edf0 [heap]
I/DEBUG ( 34): 4a1983f8 0048b9f0 [heap]
I/DEBUG ( 34): 4a1983fc 002c07a8 [heap]
I/DEBUG ( 34): 4a198400 002fdd20 [heap]
I/DEBUG ( 34): 4a198404 48082143 /system/lib/libwebcore.so
I/DEBUG ( 34): 4a198408 00000005
I/DEBUG ( 34): 4a19840c 48081ebd /system/lib/libwebcore.so
I/DEBUG ( 34): 4a198410 0048b9f0 [heap]
I/DEBUG ( 34): 4a198414 48287dad /system/lib/libwebcore.so
I/DEBUG ( 34): 4a198418 0044edf0 [heap]
I/DEBUG ( 34): 4a19841c 00000000
I/DEBUG ( 34): 4a198420 df0027ad
I/DEBUG ( 34): 4a198424 00000000
I/DEBUG ( 34): #00 4a198428 00000000
I/DEBUG ( 34): 4a19842c 4a19845c
I/DEBUG ( 34): 4a198430 00000000
I/DEBUG ( 34): 4a198434 482e66df /system/lib/libwebcore.so
I/DEBUG ( 34): #01 4a198438 00000001
I/DEBUG ( 34): 4a19843c 00000000
I/DEBUG ( 34): 4a198440 48287ea9 /system/lib/libwebcore.so
I/DEBUG ( 34): 4a198444 00000000
I/DEBUG ( 34): 4a198448 00000001
I/DEBUG ( 34): 4a19844c 482e5771 /system/lib/libwebcore.so
I/DEBUG ( 34): 4a198450 00000001
I/DEBUG ( 34): 4a198454 00000000
I/DEBUG ( 34): 4a198458 002fdac0 [heap]
I/DEBUG ( 34): 4a19845c 003d3ba8 [heap]
I/DEBUG ( 34): 4a198460 4a198480
I/DEBUG ( 34): 4a198464 002fdac0 [heap]
I/DEBUG ( 34): 4a198468 00000000
I/DEBUG ( 34): 4a19846c 4a198480
I/DEBUG ( 34): 4a198470 002b01a0 [heap]
I/DEBUG ( 34): 4a198474 482e6aab /system/lib/libwebcore.so
D/Zygote ( 37): Process 444 terminated by signal (11)
I/ActivityManager( 80): Process com.android.browser (pid 444) has died.
I/WindowManager( 80): WIN DEATH: Window{4158a718 com.android.browser/com.android.browser.BrowserActivity paused=false}
W/NetworkManagementSocketTagger( 80): setKernelCountSet(10002, 0) failed with errno -2
W/ActivityManager( 80): Force removing ActivityRecord{41402f88 com.android.browser/.BrowserActivity}: app died, no saved state
W/NetworkManagementSocketTagger( 80): setKernelCountSet(10013, 1) failed with errno -2
I/BootReceiver( 80): Copying /data/tombstones/tombstone_06 to DropBox (SYSTEM_TOMBSTONE)
D/dalvikvm( 80): GC_FOR_ALLOC freed 237K, 6% free 12091K/12743K, paused 104ms
D/dalvikvm( 80): GC_FOR_ALLOC freed 873K, 12% free 11461K/12999K, paused 107ms
I/Process ( 80): Sending signal. PID: 175 SIG: 3
I/dalvikvm( 175): threadid=3: reacting to signal 3
I/dalvikvm( 175): Wrote stack traces to '/data/anr/traces.txt'
W/InputManagerService( 80): Got RemoteException sending setActive(false) notification to pid 444 uid 10002
D/dalvikvm( 80): GC_CONCURRENT freed 318K, 11% free 11688K/12999K, paused 6ms+14ms
W/GoogleSearch( 485): Error
W/GoogleSearch( 485): java.net.SocketTimeoutException
W/GoogleSearch( 485): at java.net.PlainSocketImpl.read(PlainSocketImpl.java:491)
You say that you "ran it with proxy information on the command line". I would recommend you to run the emulator normally without setting the proxy through command line.
e.g.
emulator -avd avdname -partition-size 1024
Later, after successful boot up of Android, go to Menu->Settings->Wireless & Networks->More->Mobile Networks->Access Point Names
Default configuration is "TelKila" on the emulator. Click on that and set the proxy, port etc here.
Now try to surf the internet and do share the result with us.

Android & JNI_OnLoad lead to a crash on device

I am pretty new to working with JNI on Android, and I've been writing an app that requires the implementation of JNI_OnLoad.. I've perused the internet for help, and it seems like a lot of different documents conflict in how this function should be implemented. Nevertheless, I went with a method that seemed to work on my emulator but not on my device.
LogCat produces the following:
D/dalvikvm(11317): Trying to load lib /data/app/libHelloAndroid.so 0xb6db9f50
D/dalvikvm(11317): Added shared lib /data/app/libHelloAndroid.so 0xb6db9f50
I/DEBUG ( 1244): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 1244): Build fingerprint: 'generic/mfld_cdk/mfld_cdk:2.3.3/GRI40/eng.gerrit2.20110607.120237:eng/test-keys'
I/DEBUG ( 1244): pid: 11317, tid: 11317 >>> com.example.helloandroid <<<
I/DEBUG ( 1244): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000001
I/DEBUG ( 1244): eax 09353b90 ebx 8293910c ecx 00000300 edx 00000001
I/DEBUG ( 1244): esi 094313e0 edi 84400395
I/DEBUG ( 1244): xcs 00000073 xds 0000007b xes 0000007b xfs 00000000 xss 0000007b
I/DEBUG ( 1244): eip 8440039d ebp bf859e70 esp bf859e00 flags 00010206
I/DEBUG ( 1244): #00
I/DEBUG ( 1244): eip: 8440039d /data/app/libHelloAndroid.so (JNI_OnLoad)
I/DEBUG ( 1244): #01
I/DEBUG ( 1244): eip: 828a8df9 /system/lib/libdvm.so (Dalvik_java_lang_Runtime_nativeLoad)
I/DEBUG ( 1244): #02
I/DEBUG ( 1244): eip: 82831cd9 /system/lib/libdvm.so
I/DEBUG ( 1244): #03
I/DEBUG ( 1244): eip: b680ec7c
I/DEBUG ( 1244): #04
I/DEBUG ( 1244): eip: 0004011a
I/DEBUG ( 1244): #05
I/DEBUG ( 1244): eip: ffffffff
I/DEBUG ( 1244): #06
I/DEBUG ( 1244): eip: ffffffff
I/DEBUG ( 1244): #07
I/DEBUG ( 1244): eip: ffffffff
I/DEBUG ( 1244): stack:
I/DEBUG ( 1244): #00
I/DEBUG ( 1244): bf859e00 a901b083
I/DEBUG ( 1244): bf859e04 8287da14 /system/lib/libdvm.so (dvmLoadNativeCode)
I/DEBUG ( 1244): bf859e08 09353b90 [heap] (dvmLoadNativeCode)
I/DEBUG ( 1244): bf859e0c 00000000 (dvmLoadNativeCode)
I/DEBUG ( 1244): bf859e10 8291f9bf /system/lib/libdvm.so
I/DEBUG ( 1244): bf859e14 094313e0 [heap]
I/DEBUG ( 1244): bf859e18 b6db9f50 /dev/ashmem/dalvik-heap (deleted)
I/DEBUG ( 1244): bf859e1c 8293910c /system/lib/libdvm.so
I/DEBUG ( 1244): bf859e20 bf859e70 [stack]
I/DEBUG ( 1244): bf859e24 82888b77 /system/lib/libdvm.so (dvmCreateCstrFromString)
I/DEBUG ( 1244): bf859e28 0000001d (dvmCreateCstrFromString)
I/DEBUG ( 1244): bf859e2c bf859ea0 [stack] (dvmCreateCstrFromString)
I/DEBUG ( 1244): bf859e30 b632ea84 /dev/ashmem/dalvik-LinearAlloc (deleted) (dvmCreateCstrFromString)
I/DEBUG ( 1244): bf859e34 00000001 (dvmCreateCstrFromString)
I/DEBUG ( 1244): bf859e38 00000000 (dvmCreateCstrFromString)
I/DEBUG ( 1244): bf859e3c 09431418 [heap] (dvmCreateCstrFromString)
I/DEBUG ( 1244): ...... ......
I/DEBUG ( 1244): #01
I/DEBUG ( 1244): bf859e74 828a8df9 /system/lib/libdvm.so (Dalvik_java_lang_Runtime_nativeLoad)
I/DEBUG ( 1244): bf859e78 094313e0 [heap] (Dalvik_java_lang_Runtime_nativeLoad)
I/DEBUG ( 1244): bf859e7c b6db9f50 /dev/ashmem/dalvik-heap (deleted) (Dalvik_java_lang_Runtime_nativeLoad)
I/DEBUG ( 1244): bf859e80 bf859e94 [stack] (Dalvik_java_lang_Runtime_nativeLoad)
I/DEBUG ( 1244): bf859e84 b55611c2 /data/dalvik-cache/data#app#com.example.helloandroid-2.apk#classes.dex (Dalvik_java_lang_Runtime_nativeLoad)
I/DEBUG ( 1244): bf859e88 8289ac09 /system/lib/libdvm.so (dvmGetCaller2Class)
I/DEBUG ( 1244): bf859e8c 8293910c /system/lib/libdvm.so (dvmGetCaller2Class)
I/DEBUG ( 1244): bf859e90 bf859eb0 [stack] (dvmGetCaller2Class)
I/DEBUG ( 1244): bf859e94 00000000 (dvmGetCaller2Class)
I/DEBUG ( 1244): bf859e98 b680ec3c (dvmGetCaller2Class)
I/DEBUG ( 1244): bf859e9c b680eb78 (dvmGetCaller2Class)
I/DEBUG ( 1244): bf859ea0 094314e0 [heap] (dvmGetCaller2Class)
I/DEBUG ( 1244): bf859ea4 00000020 (dvmGetCaller2Class)
I/DEBUG ( 1244): bf859ea8 b5fa27fc /data/dalvik-cache/system#framework#core.jar#classes.dex (dvmGetCaller2Class)
I/DEBUG ( 1244): bf859eac b680ec24 (dvmGetCaller2Class)
I/DEBUG ( 1244): bf859eb0 bf859f50 [stack] (dvmGetCaller2Class)
I/DEBUG ( 1244): ...... ......
I/DEBUG ( 1244): #02
I/DEBUG ( 1244): bf859eb4 82831cd9 /system/lib/libdvm.so
I/DEBUG ( 1244): bf859eb8 b680ec04
I/DEBUG ( 1244): bf859ebc bf859f58 [stack]
I/DEBUG ( 1244): bf859ec0 b63f8f60 /dev/ashmem/dalvik-LinearAlloc (deleted)
I/DEBUG ( 1244): bf859ec4 09355e68 [heap]
I/DEBUG ( 1244): bf859ec8 b6dbcfa8 /dev/ashmem/dalvik-heap (deleted)
I/DEBUG ( 1244): bf859ecc 09355e68 [heap]
I/DEBUG ( 1244): bf859ed0 b680ebec
I/DEBUG ( 1244): bf859ed4 09355e68 [heap]
I/DEBUG ( 1244): bf859ed8 bf859f4c [stack]
I/DEBUG ( 1244): bf859edc 00000000
I/DEBUG ( 1244): bf859ee0 82c03d68
I/DEBUG ( 1244): bf859ee4 00002000
I/DEBUG ( 1244): bf859ee8 bf859e14 [stack]
I/DEBUG ( 1244): bf859eec bf859f50 [stack]
I/DEBUG ( 1244): bf859ef0 bf859f50 [stack]
I/DEBUG ( 1244): ...... ......
I/DEBUG ( 1244): #03
I/DEBUG ( 1244): #04
I/DEBUG ( 1244): b5560980 0004011a
I/DEBUG ( 1244): b5560984 00022071
I/DEBUG ( 1244): b5560988 001a0010
I/DEBUG ( 1244): b556098c 10710001
I/DEBUG ( 1244): b5560990 00000027
I/DEBUG ( 1244): b5560994 0034001a
I/DEBUG ( 1244): b5560998 0035011a
I/DEBUG ( 1244): b556099c 00022071
I/DEBUG ( 1244): b55609a0 000e0010
I/DEBUG ( 1244): b55609a4 00010002
I/DEBUG ( 1244): b55609a8 00000002
I/DEBUG ( 1244): b55609ac 00001358
I/DEBUG ( 1244): b55609b0 0000000b
I/DEBUG ( 1244): b55609b4 00001070
I/DEBUG ( 1244): b55609b8 00220001
I/DEBUG ( 1244): b55609bc 2070000c
I/DEBUG ( 1244): ...... ......
I/DEBUG ( 1244): #05
I/DEBUG ( 1244): #06
I/DEBUG ( 1244): #07
The following is my JNI_OnLoad implementation...
JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *reserved)
{
LOGI("Executing JNI_OnLoad");
JNIEnv *env;
jint onLoad_err = -1;
jclass k;
static const char* const strClassName="com/example/helloandroid/HelloAndroid";
cached_jvm = vm;
// Checks JNI version
if((*vm)->GetEnv(vm, (void**) &env, JNI_VERSION_1_4) != JNI_OK){
LOGE("JNI Check failure");
return onLoad_err;
}
// Checks if environment is null
if (env == NULL) {
LOGE("Env is NULL");
return onLoad_err;
}
k = (*env)->FindClass(env, strClassName);
if(k == NULL){
LOGE("Find Class returns NULL");
return onLoad_err;
}
if ((*env)->RegisterNatives(env, k, methods, sizeof(methods)/sizeof(methods[0])) != JNI_OK){
LOGE("Method registration failure");
return onLoad_err;
}
LOGI("Successfully executed JNI_onLoad");
return JNI_VERSION_1_4;
}
Is there something specific about native code that makes it act differently on an emulator than on an actual device? Or do I need to do more in JNI_OnLoad?
Thanks in advance!
There's nothing you should need to do to run on a device that isn't already done on the emulator.
I notice from your log that your device is an x86 type device. The emulator is an ARM processor... are you trying to run ARM code or x86 code on your device?

What does this Android error log mean?

User of my Android app says that it's crashing, without the force close dialog - the Activity just disappears and homescreen is shown. He sent this error log, what does it mean?
I/DEBUG ( 1337): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 1337): Build fingerprint: 'verizon/inc/inc/inc:2.1-update1/ERE27/161494:user/release-keys'
I/DEBUG ( 1337): pid: 13046, tid: 13059 >>> cz.fhejl.pubtran <<<
I/DEBUG ( 1337): signal 11 (SIGSEGV), fault addr 0000000b
I/DEBUG ( 1337): r0 00000003 r1 000000ab r2 00000008 r3 00000002
I/DEBUG ( 1337): r4 46d29d3e r5 43057f08 r6 4730cca8 r7 00000846
I/DEBUG ( 1337): r8 ad0100c0 r9 00000008 10 45052698 fp 003722a0
I/DEBUG ( 1337): ip 00000046 sp 4730cc68 lr ad014bb8 pc ad01125c cpsr 20000010
I/DEBUG ( 1337): #00 pc 0001125c /system/lib/libdvm.so
I/DEBUG ( 1337): #01 pc 0001ac10 /system/lib/libdvm.so
I/DEBUG ( 1337): #02 pc 0001a0c4 /system/lib/libdvm.so
I/DEBUG ( 1337): #03 pc 00050fe0 /system/lib/libdvm.so
I/DEBUG ( 1337): #04 pc 00051012 /system/lib/libdvm.so
I/DEBUG ( 1337): #05 pc 00045598 /system/lib/libdvm.so
I/DEBUG ( 1337): #06 pc 00010010 /system/lib/libc.so
I/DEBUG ( 1337): #07 pc 0000fae4 /system/lib/libc.so
I/DEBUG ( 1337):
I/DEBUG ( 1337): code around pc:
I/DEBUG ( 1337): ad01124c e7950102 e7951103 e3500000 0a000f66
I/DEBUG ( 1337): ad01125c e5903008 e0800101 e1510003 2a000f49
I/DEBUG ( 1337): ad01126c e1f470b4 e5902010 e207c0ff e7852109
I/DEBUG ( 1337):
I/DEBUG ( 1337): code around lr:
I/DEBUG ( 1337): ad014ba8 112fff10 ea000003 e1a00004 fa01340e
I/DEBUG ( 1337): ad014bb8 e3500000 112fff10 e5054008 e24f800c
I/DEBUG ( 1337): ad014bc8 e2488c4b e1d470b0 e5960038 e3500000
I/DEBUG ( 1337):
I/DEBUG ( 1337): stack:
I/DEBUG ( 1337): 4730cc28 000003a0
I/DEBUG ( 1337): 4730cc2c 4513aca8 /dev/ashmem/mspace/dalvik-heap/2 (deleted)
I/DEBUG ( 1337): 4730cc30 00000018
I/DEBUG ( 1337): 4730cc34 ad01859c /system/lib/libdvm.so
I/DEBUG ( 1337): 4730cc38 40036740 /dev/ashmem/mspace/dalvik-heap/zygote/0 (deleted)
I/DEBUG ( 1337): 4730cc3c 43057f08
I/DEBUG ( 1337): 4730cc40 ad08b368 /system/lib/libdvm.so
I/DEBUG ( 1337): 4730cc44 00000322
I/DEBUG ( 1337): 4730cc48 ad0100c0 /system/lib/libdvm.so
I/DEBUG ( 1337): 4730cc4c 46d29c32 /data/dalvik-cache/data#app#cz.fhejl.pubtran.apk#classes.dex
I/DEBUG ( 1337): 4730cc50 45052698 /dev/ashmem/mspace/dalvik-heap/2 (deleted)
I/DEBUG ( 1337): 4730cc54 ad046099 /system/lib/libdvm.so
I/DEBUG ( 1337): 4730cc58 46d29c32 /data/dalvik-cache/data#app#cz.fhejl.pubtran.apk#classes.dex
I/DEBUG ( 1337): 4730cc5c 46d29d38 /data/dalvik-cache/data#app#cz.fhejl.pubtran.apk#classes.dex
I/DEBUG ( 1337): 4730cc60 df002777
I/DEBUG ( 1337): 4730cc64 e3a070ad
I/DEBUG ( 1337): #00 4730cc68 00000000
I/DEBUG ( 1337): 4730cc6c 4730cca8
I/DEBUG ( 1337): 4730cc70 00015fc8 [heap]
I/DEBUG ( 1337): 4730cc74 ad01aba8 /system/lib/libdvm.so
I/DEBUG ( 1337): 4730cc78 43057fe4
I/DEBUG ( 1337): 4730cc7c ad08ddc8 /system/lib/libdvm.so
I/DEBUG ( 1337): 4730cc80 4730ced8
I/DEBUG ( 1337): 4730cc84 429ee550 /data/dalvik-cache/system#framework#framework.jar#classes.dex
I/DEBUG ( 1337): 4730cc88 003722a0 [heap]
I/DEBUG ( 1337): 4730cc8c ad01ac14 /system/lib/libdvm.so
I/DEBUG ( 1337): #01 4730cc90 003722a0 [heap]
I/DEBUG ( 1337): 4730cc94 4730cca8
I/DEBUG ( 1337): 4730cc98 ad01aba8 /system/lib/libdvm.so
I/DEBUG ( 1337): 4730cc9c ad01a0c8 /system/lib/libdvm.so
This is log output, after the moment it crashes. My app doesn't use NDK, it uses Android Library Project and I'm loading some classes via Class.forName(...).
It's crashing inside the Dalvik VM. I'm not able to decode the stack trace (private verizon build). A fault address of 0000000b doesn't sound like a null pointer dereference... maybe a data structure inside the VM got corrupted?
Has this been run on a variety of devices and only this one has a problem? Do you know if other people with the same device have this issue? I'm wondering if something got corrupted, and uninstall/reinstall of your app would help.

Categories

Resources