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.
Related
Is there a way to get more useful information from an android crash? Deliberately inducing a UAF crash in android ICS I get the following output to my logcat, but is there a way to do a more complete stack dump and heap dump at the time of the crash? I can't seem to do it in ddms because as soon as the fatal signal is hit ddms abandons the process (because it doesn't exist anymore)
F/libc ( 598): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1)
I/DEBUG ( 33): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEUG ( 33): Build fingerprint: 'generic/sdk/generic:4.0.2/ICS_MR0/229537:eng/test-keys'
I/DEBUG ( 33): pid: 598, tid: 621 >>> com.android.browser <<<
I/DEBUG ( 33): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
I/DEBUG ( 33): r0 4b7824f0 r1 004b6da0 r2 00000000 r3 00000000
I/DEBUG ( 33): r4 00e8d7c0 r5 004b6da0 r6 00348370 r7 00000000
I/DEBUG ( 33): r8 49c61b10 r9 4afc808d 10 497df75d fp 00108698
I/DEBUG ( 33): ip 00000000 sp 4b7824f0 lr 496bf215 pc 00000000 cpsr 20000010
I/DEBUG ( 33): d0 44750000cf000000 d1 44c1000000000000
I/DEBUG ( 33): d2 0000000044c10000 d3 4475000044750000
I/DEBUG ( 33): d4 0000000000000000 d5 44c1000000000000
I/DEBUG ( 33): d6 0000000000000000 d7 0000000000000000
I/DEBUG ( 33): d8 0000000000000000 d9 3fa999999999999a
I/DEBUG ( 33): d10 0000000000000000 d11 0000000000000000
I/DEBUG ( 33): d12 0000000000000000 d13 0000000000000000
I/DEBUG ( 33): d14 0000000000000000 d15 0000000000000000
I/DEBUG ( 33): scr 60000013
I/DEBUG ( 33):
I/DEBUG ( 33): #00 pc 00000000
I/DEBUG ( 33): #01 pc 00191212 /system/lib/libwebcore.so
I/DEBUG ( 33): #02 pc 001745c8 /system/lib/libwebcore.so
I/DEBUG ( 33): #03 pc 002b1766 /system/lib/libwebcore.so
I/DEBUG ( 33): #04 pc 004dccae /system/lib/libwebcore.so
I/DEBUG ( 33): #05 pc 004e052a /system/lib/libwebcore.so
I/DEBUG ( 33): #06 pc 004c3aae /system/lib/libwebcore.so
I/DEBUG ( 33): #07 pc 004c3b34 /system/lib/libwebcore.so
I/DEBUG ( 33):
I/DEBUG ( 33): code around pc:
I/DEBUG ( 33): 00000000 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 33): 00000010 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 33): 00000020 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 33): 00000030 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 33): 00000040 ffffffff ffffffff ffffffff ffffffff
I/DEBUG ( 33):
I/DEBUG ( 33): code around lr:
I/DEBUG ( 33): 496bf1f4 47904668 bd0e9801 68c3b507 b1134601
I/DEBUG ( 33): 496bf204 fc64f004 6800e005 20b0f8d0 47904668
I/DEBUG ( 33): 496bf214 bd0e9800 68c3b510 f004b113 e001fc49
I/DEBUG ( 33): 496bf224 fd18f7fe bf00bd10 68c3b510 f004b113
I/DEBUG ( 33): 496bf234 e001fc31 fd04f7fe bf00bd10 0124f1a1
I/DEBUG ( 33):
I/DEBUG ( 33): stack:
I/DEBUG ( 33): 4b7824b0 00738f28
I/DEBUG ( 33): 4b7824b4 00348370
I/DEBUG ( 33): 4b7824b8 00000000
I/DEBUG ( 33): 4b7824bc 49c61b10
I/DEBUG ( 33): 4b7824c0 4afc808d
I/DEBUG ( 33): 4b7824c4 497df75d /system/lib/libwebcore.so
I/DEBUG ( 33): 4b7824c8 00108698
I/DEBUG ( 33): 4b7824cc 49857421 /system/lib/libwebcore.so
I/DEBUG ( 33): 4b7824d0 00e7c388
I/DEBUG ( 33): 4b7824d4 00000000
I/DEBUG ( 33): 4b7824d8 00e7c388
I/DEBUG ( 33): 4b7824dc 498573f9 /system/lib/libwebcore.so
I/DEBUG ( 33): 4b7824e0 00e7c388
I/DEBUG ( 33): 4b7824e4 00000000
I/DEBUG ( 33): 4b7824e8 df0027ad
I/DEBUG ( 33): 4b7824ec 00000000
I/DEBUG ( 33): #01 4b7824f0 004b6da0
I/DEBUG ( 33): 4b7824f4 00000001
I/DEBUG ( 33): 4b7824f8 00000000
I/DEBUG ( 33): 4b7824fc 496a25cd /system/lib/libwebcore.so
You can see the complete logs of the device by selecting All messages(no filters) option in Logcat.
For some reason I cannot get Native (C/C++) address / stack traces happening on the ICS devices I have here.
On my Nexus 7 nothing is output when a native library crashes. log.redirect-stdio is set to 1 when set through /system/default.prop and /data/local.prop, neither worked.
I tried setting log.redirect-stdio to true using the stop, setprop, start command but still no native stacktrace was output to logcat.
Google I mean come on... I loose more and more faith in Google every day just because of my buggy, unpredictable relationship with Android.
check HERE because u may have to alter the NDK/ndk-build step... by changing 'Android.mk' , 'Application.mk' files in ./jni folder.
have u tried this:
$ adb shell stop
$ adb shell setprop log.redirect-stdio true
$ adb shell start
when i do that in JB, i get stuff like the following in normal logcat...
F/libc (13345): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 13345 (bpo.media.notes)
I/DEBUG ( 121): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 121): Build fingerprint: 'google/takju/maguro:4.1.1/JRO03C/398337:user/release-keys'
I/DEBUG ( 121): pid: 13345, tid: 13345, name: bpo.media.notes >>> com.b2bpo.media.notes <<<
I/DEBUG ( 121): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000000
I/DEBUG ( 121): r0 4110e470 r1 dbe00019 r2 dda00021 r3 59e4d144
I/DEBUG ( 121): r4 4110e470 r5 00000000 r6 dbe00019 r7 00000000
I/DEBUG ( 121): r8 dda00021 r9 5cab8e50 sl 4110fa18 fp be95a5d4
I/DEBUG ( 121): ip 00000000 sp be95a5a0 lr 59e4bd11 pc 00000000 cpsr 48000010
I/DEBUG ( 121): d0 756f6620746f6e20 d1 203a5d333930315b
I/DEBUG ( 121): d2 207972617262694c d3 276765706d666627
I/DEBUG ( 121): d4 0066007200750053 d5 0054006500630061
I/DEBUG ( 121): d6 0000000000780065 d7 00000000c3120000
I/DEBUG ( 121): d8 000000000000040e d9 4434000000000000
I/DEBUG ( 121): d10 000000004481c000 d11 0000000000000000
I/DEBUG ( 121): d12 0000000000000000 d13 0000000000000000
I/DEBUG ( 121): d14 0000000000000000 d15 0000000000000000
I/DEBUG ( 121): d16 0000000000000001 d17 0000000000000001
I/DEBUG ( 121): d18 0000000000000002 d19 0000000000000000
I/DEBUG ( 121): d20 4062400000000000 d21 3ff0000000000000
I/DEBUG ( 121): d22 8000000000000000 d23 0000000000000000
I/DEBUG ( 121): d24 0000000000000000 d25 8000000000000000
I/DEBUG ( 121): d26 3ff0000000000000 d27 3fdb6f2281b5dfe3
I/DEBUG ( 121): d28 3fe3341cf8e40e47 d29 bfa8605c00000000
I/DEBUG ( 121): d30 40079e7e00000000 d31 3fe2b80340000000
I/DEBUG ( 121): scr 60000011
I/DEBUG ( 121):
I/DEBUG ( 121): backtrace:
I/DEBUG ( 121): #00 pc 00000000 <unknown>
I/DEBUG ( 121): #01 pc 00000d0f /data/data/com.b2bpo.media.notes/lib/libffmpeginvoke.so (Java_com_b2bpo_media_notes_RecorderActivity_run+66)
I/DEBUG ( 121): #02 pc 0001de30 /system/lib/libdvm.so (dvmPlatformInvoke+112)
I/DEBUG ( 121): #03 pc 0004d083 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+394)
I/DEBUG ( 121): #04 pc 0004f19f /system/lib/libdvm.so (dvmResolveNativeMethod(unsigned int const*, JValue*, Method const*, Thread*)+174)
I/DEBUG ( 121): #05 pc 00027260 /system/lib/libdvm.so
I/DEBUG ( 121): #06 pc 0002bb68 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+180)
I/DEBUG ( 121): #07 pc 0005fab7 /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+374)
I/DEBUG ( 121): #08 pc 0006700d /system/lib/libdvm.so
I/DEBUG ( 121): #09 pc 00027260 /system/lib/libdvm.so
I/DEBUG ( 121): #10 pc 0002bb68 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+180)
I/DEBUG ( 121): #11 pc 0005fab7 /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+374)
I/DEBUG ( 121): #12 pc 0006700d /system/lib/libdvm.so
I/DEBUG ( 121): #13 pc 00027260 /system/lib/libdvm.so
I/DEBUG ( 121): #14 pc 0002bb68 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+180)
I/DEBUG ( 121): #15 pc 0005f7f1 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+272)
I/DEBUG ( 121): #16 pc 00049673 /system/lib/libdvm.so
I/DEBUG ( 121): #17 pc 0004698d /system/lib/libandroid_runtime.so
I/DEBUG ( 121): #18 pc 0004746f /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+390)
I/DEBUG ( 121): #19 pc 00000dcf /system/bin/app_process
I/DEBUG ( 121):
I/DEBUG ( 121): stack:
I/DEBUG ( 121): be95a560 be95a5d4 [stack]
I/DEBUG ( 121): be95a564 4017fb61 /system/bin/linker
I/DEBUG ( 121): be95a568 4018afd0 /system/bin/linker
I/DEBUG ( 121): be95a56c 4018afeb /system/bin/linker
I/DEBUG ( 121): be95a570 40197c0c
I/DEBUG ( 121): be95a574 00000000
I/DEBUG ( 121): be95a578 00000000
I/DEBUG ( 121): be95a57c 59e4bd07 /data/data/com.b2bpo.media.notes/lib/libffmpeginvoke.so (Java_com_b2bpo_media_notes_RecorderActivity_run+58)
I/DEBUG ( 121): be95a580 59e4d144 /data/data/com.b2bpo.media.notes/lib/libffmpeginvoke.so
I/DEBUG ( 121): be95a584 4017fbfd /system/bin/linker
I/DEBUG ( 121): be95a588 00000000
I/DEBUG ( 121): be95a58c 59e4d144 /data/data/com.b2bpo.media.notes/lib/libffmpeginvoke.so
I/DEBUG ( 121): be95a590 4110e470 [heap]
I/DEBUG ( 121): be95a594 c200001d
I/DEBUG ( 121): be95a598 df0027ad
I/DEBUG ( 121): be95a59c 00000000
I/DEBUG ( 121): #00 be95a5a0 dda00021
I/DEBUG ( 121): ........ ........
I/DEBUG ( 121): #01 be95a5a0 dda00021
I/DEBUG ( 121): be95a5a4 56ddb4e0 /dev/ashmem/dalvik-LinearAlloc (deleted)
I/DEBUG ( 121): be95a5a8 4110fa08 [heap]
I/DEBUG ( 121): be95a5ac 00000000
I/DEBUG ( 121): be95a5b0 410c6cdc
I/DEBUG ( 121): be95a5b4 be95a5c0 [stack]
I/DEBUG ( 121): be95a5b8 410c6cd4
I/DEBUG ( 121): be95a5bc 4074ee34 /system/lib/libdvm.so (dvmPlatformInvoke+116)
I/DEBUG ( 121): #02 be95a5c0 410c6cd0
I/DEBUG ( 121): be95a5c4 00000001
I/DEBUG ( 121): be95a5c8 41ba41b8 /dev/ashmem/dalvik-heap (deleted)
I/DEBUG ( 121): be95a5cc 59e4902b /data/dalvik-cache/data#app#com.b2bpo.media.notes-2.apk#classes.dex
I/DEBUG ( 121): be95a5d0 00000019
I/DEBUG ( 121): be95a5d4 4077e087 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)
I/DEBUG ( 121):
I/DEBUG ( 121): memory near r0:
I/DEBUG ( 121): 4110e450 6c436d65 0000001b 411254d8 4007c51c emCl.....T.A...#
I/DEBUG ( 121): 4110e460 74696e49 4007003b 00000018 00000023 Init;..#....#...
I/DEBUG ( 121): 4110e470 407d4970 407d4de4 00000001 4110fa08 pI}#.M}#.......A
I/DEBUG ( 121): 4110e480 00000000 58ba5a30 00000000 0000001b ....0Z.X........
I/DEBUG ( 121): 4110e490 00000000 00000000 00000000 4110e490 ...............A
I/DEBUG ( 121):
I/DEBUG ( 121): memory near r3:
I/DEBUG ( 121): 59e4d124 e0833102 e2830008 e28dd014 e8bd8000 .1..............
I/DEBUG ( 121): 59e4d134 e92d4008 ebfffac7 e92d4008 ebfffac5 .#-......#-.....
I/DEBUG ( 121): 59e4d144 6176614a 6d6f635f 6232625f 6d5f6f70 Java_com_b2bpo_m
I/DEBUG ( 121): 59e4d154 61696465 746f6e5f 525f7365 726f6365 edia_notes_Recor
I/DEBUG ( 121): 59e4d164 41726564 76697463 5f797469 7552616e derActivity_naRu
I/DEBUG ( 121):
I/DEBUG ( 121): memory near r4:
I/DEBUG ( 121): 4110e450 6c436d65 0000001b 411254d8 4007c51c emCl.....T.A...#
I/DEBUG ( 121): 4110e460 74696e49 4007003b 00000018 00000023 Init;..#....#...
I/DEBUG ( 121): 4110e470 407d4970 407d4de4 00000001 4110fa08 pI}#.M}#.......A
I/DEBUG ( 121): 4110e480 00000000 58ba5a30 00000000 0000001b ....0Z.X........
I/DEBUG ( 121): 4110e490 00000000 00000000 00000000 4110e490 ...............A
I/DEBUG ( 121):
I/DEBUG ( 121): memory near r9:
I/DEBUG ( 121): 5cab8e30 4023af08 5cab8d80 00000033 00000007 ..##...\3.......
I/DEBUG ( 121): 5cab8e40 00000002 00000000 59c61708 00000011 ...........Y....
I/DEBUG ( 121): 5cab8e50 5bd26990 4007c514 00000010 00000012 .i.[...#........
I/DEBUG ( 121): 5cab8e60 59e810b4 4007c514 00000010 00000043 ...Y...#....C...
I/DEBUG ( 121): 5cab8e70 4023aea0 5cb8a368 4023aec0 59f65d60 ..##h..\..##`].Y
I/DEBUG ( 121):
I/DEBUG ( 121): memory near sl:
I/DEBUG ( 121): 4110f9f8 00000000 00000800 4109e008 00000453 ...........AS...
I/DEBUG ( 121): 4110fa08 57c0df5a 410c6cd0 56ddb400 59c6b000 Z..W.l.A...V...Y
I/DEBUG ( 121): 4110fa18 0000007a 98b9bd7e be95a710 00000000 z...~...........
I/DEBUG ( 121): 4110fa28 be95a744 00000001 00000000 4074efc0 D.............t#
I/DEBUG ( 121): 4110fa38 00000000 00000000 4066fe70 410c1300 ........p.f#...A
I/DEBUG ( 121):
I/DEBUG ( 121): memory near fp:
I/DEBUG ( 121): be95a5b4 be95a5c0 410c6cd4 4074ee34 410c6cd0 .....l.A4.t#.l.A
I/DEBUG ( 121): be95a5c4 00000001 41ba41b8 59e4902b 00000019 .....A.A+..Y....
I/DEBUG ( 121): be95a5d4 4077e087 410c6cd0 59e49028 59e4bccd ..w#.l.A(..Y...Y
I/DEBUG ( 121): be95a5e4 4110fa18 00000000 00000000 59fe8dc0 ...A...........Y
I/DEBUG ( 121): be95a5f4 40083a4c 00000000 40048571 40048539 L:.#....q..#9..#
I/DEBUG ( 121):
I/DEBUG ( 121): memory near sp:
I/DEBUG ( 121): be95a580 59e4d144 4017fbfd 00000000 59e4d144 D..Y...#....D..Y
I/DEBUG ( 121): be95a590 4110e470 c200001d df0027ad 00000000 p..A.....'......
I/DEBUG ( 121): be95a5a0 dda00021 56ddb4e0 4110fa08 00000000 !......V...A....
I/DEBUG ( 121): be95a5b0 410c6cdc be95a5c0 410c6cd4 4074ee34 .l.A.....l.A4.t#
I/DEBUG ( 121): be95a5c0 410c6cd0 00000001 41ba41b8 59e4902b .l.A.....A.A+..Y
I/DEBUG ( 121):
I/DEBUG ( 121): code around pc:
I/DEBUG ( 121): 00000000 ffffffff ffffffff ffffffff ffffffff ................
I/DEBUG ( 121): 00000010 ffffffff ffffffff ffffffff ffffffff ................
I/DEBUG ( 121): 00000020 ffffffff ffffffff ffffffff ffffffff ................
I/DEBUG ( 121): 00000030 ffffffff ffffffff ffffffff ffffffff ................
I/DEBUG ( 121): 00000040 ffffffff ffffffff ffffffff ffffffff ................
I/DEBUG ( 121):
I/DEBUG ( 121): code around lr:
I/DEBUG ( 121): 59e4bcf0 f8d34629 460732a8 47984620 46384907 )F...2.F F.G.I8F
I/DEBUG ( 121): 59e4bd00 f7ff4479 4631efc4 46054642 47a84620 yD....1FBF.F F.G
I/DEBUG ( 121): 59e4bd10 e8bd4638 f7ff43f8 bf00bf99 00001440 8F...C......#...
I/DEBUG ( 121): 59e4bd20 e5903000 e3130101 13833102 03c33102 .0.......1...1..
I/DEBUG ( 121): 59e4bd30 e0800003 e12fff1e e92d4ff0 e59f51ac ....../..O-..Q..
I/ActivityManager(11604): Process com.b2bpo.media.notes (pid 13345) has died.
I/WindowState(11604): WIN DEATH: Window{425a34d0 com.b2bpo.media.notes/com.b2bpo.media.notes.RecorderActivity paused=false}
W/ActivityManager(11604): Force removing ActivityRecord{425839e0 com.b2bpo.media.notes/.RecorderActivity}: app died, no saved stat
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
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?
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.