when i call the method start of MediaPlayer, my application aborts
abruptly, after execute part of video.
the exception doesn't captured
the LogCat return this:

VERBOSE/VideoPlayer(1061): path: /sdcard/vid3.3gp
INFO/MediaPlayer(1061): prepare: surface=0x13de58 (id=0)
VERBOSE/VideoPlayer(1061): Duration:  ===>31200
DEBUG/AudioFlinger(518): Audio hardware exiting standby
DEBUG/AudioMixer(518): enable(8192)
DEBUG/AudioMixer(518): setParameter(RESAMPLE, SAMPLE_RATE, 8000)
DEBUG/AudioMixer(518): mixer configuration change: 1 activeTracks
(00000002) all16BitsStereoNoResample=0, resampling=1, volumeRamp=0
INFO/DEBUG(504): *** *** *** *** *** *** *** *** *** *** *** *** ***
*** *** ***
INFO/DEBUG(504): pid: 1061, tid: 1108  >>> br.ceset.unicamp.tgi <<<
INFO/DEBUG(504): signal 11 (SIGSEGV), fault addr 00000004
INFO/DEBUG(504):  r0 00126a80  r1 00126b70  r2 00000001  r3 00000002
INFO/DEBUG(504):  r4 00126a80  r5 00000000  r6 0012b118  r7 a747f650
INFO/DEBUG(504):  r8 0012abd0  r9 00000059  10 00000001  fp 0000000c
INFO/DEBUG(504):  ip a747cc14  sp 42a53e60  lr a716d2ec  pc a716d210
cpsr 80000010
INFO/DEBUG(504):          #01  pc a716d210  /system/lib/libpv.so
INFO/DEBUG(504):          #01  lr a716d2ec  /system/lib/libpv.so
INFO/DEBUG(504): stack:
INFO/DEBUG(504):     42a53e00  001269f0  [heap]
INFO/DEBUG(504):     42a53e04  afe0e5d8  /system/lib/libc.so
INFO/DEBUG(504):     42a53e08  00126a80  [heap]
INFO/DEBUG(504):     42a53e0c  afe0e5d8  /system/lib/libc.so
INFO/DEBUG(504):     42a53e10  00126a80  [heap]
INFO/DEBUG(504):     42a53e14  000000dc
INFO/DEBUG(504):     42a53e18  afe3c34c
INFO/DEBUG(504):     42a53e1c  afe0e448  /system/lib/libc.so
INFO/DEBUG(504):     42a53e20  000000dc
INFO/DEBUG(504):     42a53e24  00000003
INFO/DEBUG(504):     42a53e28  0012abd0  [heap]
INFO/DEBUG(504):     42a53e2c  afe0e5d8  /system/lib/libc.so
INFO/DEBUG(504):     42a53e30  0012abd0  [heap]
INFO/DEBUG(504):     42a53e34  000000dc
INFO/DEBUG(504):     42a53e38  afe3c34c
INFO/DEBUG(504):     42a53e3c  afe0e448  /system/lib/libc.so
INFO/DEBUG(504):     42a53e40  000000dc
INFO/DEBUG(504):     42a53e44  00000003
INFO/DEBUG(504):     42a53e48  00124958  [heap]
INFO/DEBUG(504):     42a53e4c  afe0e5d8  /system/lib/libc.so
INFO/DEBUG(504):     42a53e50  00124958  [heap]
INFO/DEBUG(504):     42a53e54  a747f650  /system/lib/libpv.so
INFO/DEBUG(504):     42a53e58  df002777
INFO/DEBUG(504):     42a53e5c  e3a070ad
INFO/DEBUG(504): ==> 42a53e60  0012abd0  [heap]
INFO/DEBUG(504):     42a53e64  001248f0  [heap]
INFO/DEBUG(504):     42a53e68  a747f650  /system/lib/libpv.so
INFO/DEBUG(504):     42a53e6c  a747f650  /system/lib/libpv.so
INFO/DEBUG(504):     42a53e70  0012abd0  [heap]
INFO/DEBUG(504):     42a53e74  a716d2ec  /system/lib/libpv.so
INFO/DEBUG(504):     42a53e78  00124970  [heap]
INFO/DEBUG(504):     42a53e7c  a7394f34  /system/lib/libpv.so
INFO/DEBUG(504):     42a53e80  00124a18  [heap]
INFO/DEBUG(504):     42a53e84  a7396450  /system/lib/libpv.so
INFO/DEBUG(504):     42a53e88  001248f4  [heap]
INFO/DEBUG(504):     42a53e8c  00124b90  [heap]
INFO/DEBUG(504):     42a53e90  00124970  [heap]
INFO/DEBUG(504):     42a53e94  a7394fa4  /system/lib/libpv.so
INFO/DEBUG(504):     42a53e98  0012abd0  [heap]
INFO/DEBUG(504):     42a53e9c  a7398dac  /system/lib/libpv.so
INFO/DEBUG(504):     42a53ea0  00126574  [heap]
INFO/DEBUG(504):     42a53ea4  a747ce5c  /system/lib/libpv.so
INFO/DEBUG(504):     42a53ea8  00001400
INFO/DEBUG(504):     42a53eac  a747f650  /system/lib/libpv.so
INFO/DEBUG(504):     42a53eb0  00000000
INFO/DEBUG(504):     42a53eb4  00000001
INFO/DEBUG(504):     42a53eb8  afe39538  /system/lib/libc.so
INFO/DEBUG(504):     42a53ebc  a747f650  /system/lib/libpv.so
INFO/DEBUG(504):     42a53ec0  00000001
INFO/DEBUG(504):     42a53ec4  a7182df3  /system/lib/libpv.so
INFO/DEBUG(504):     42a53ec8  00126568  [heap]
INFO/DEBUG(504):     42a53ecc  00000000
INFO/DEBUG(504):     42a53ed0  a747f650  /system/lib/libpv.so
INFO/DEBUG(504):     42a53ed4  00124ccc  [heap]
INFO/DEBUG(504):     42a53ed8  001264e0  [heap]
INFO/DEBUG(504):     42a53edc  00124e18  [heap]
INFO/DEBUG(504):     42a53ee0  00124ccc  [heap]
INFO/DEBUG(504):     42a53ee4  0012653c  [heap]
INFO/DEBUG(504):     42a53ee8  001264e0  [heap]
INFO/DEBUG(504):     42a53eec  a7183af3  /system/lib/libpv.so
INFO/DEBUG(504):     42a53ef0  00000078
INFO/DEBUG(504):     42a53ef4  00000000
INFO/DEBUG(504):     42a53ef8  00000000
INFO/DEBUG(504):     42a53efc  42da6d60
INFO/DEBUG(504):     42a53f00  a73978b8  /system/lib/libpv.so
INFO/DEBUG(504):     42a53f04  00000200
INFO/DEBUG(504):     42a53f08  00124970  [heap]
INFO/DEBUG(504):     42a53f0c  a73978b8  /system/lib/libpv.so
INFO/DEBUG(504):     42a53f10  00000078
INFO/DEBUG(504):     42a53f14  a7183c03  /system/lib/libpv.so
INFO/DEBUG(504):     42a53f18  00124970  [heap]
INFO/DEBUG(504):     42a53f1c  a747f650  /system/lib/libpv.so
INFO/DEBUG(504):     42a53f20  001264e0  [heap]
INFO/DEBUG(504):     42a53f24  00124e18  [heap]
INFO/DEBUG(504):     42a53f28  00001d28
INFO/DEBUG(504):     42a53f2c  a7397788  /system/lib/libpv.so
INFO/DEBUG(504):     42a53f30  a747f650  /system/lib/libpv.so
INFO/DEBUG(504):     42a53f34  00124970  [heap]
INFO/DEBUG(504):     42a53f38  00124974  [heap]
INFO/DEBUG(504):     42a53f3c  00000000
INFO/DEBUG(504):     42a53f40  00124970  [heap]
INFO/DEBUG(504):     42a53f44  00124e18  [heap]
INFO/DEBUG(504):     42a53f48  00124e18  [heap]
INFO/DEBUG(504):     42a53f4c  00003318
INFO/DEBUG(504):     42a53f50  a747f650  /system/lib/libpv.so
INFO/DEBUG(504):     42a53f54  a7397a4c  /system/lib/libpv.so
INFO/DEBUG(504):     42a53f58  a73978b8  /system/lib/libpv.so
INFO/DEBUG(504):     42a53f5c  a747f650  /system/lib/libpv.so
INFO/DEBUG(504):     42a53f60  00124970  [heap]
INFO/DEBUG(504):     42a53f64  00124e18  [heap]
INFO/DEBUG(504):     42a53f68  42a53f80
INFO/DEBUG(504):     42a53f6c  afe0f188  /system/lib/libc.so
INFO/DEBUG(504):     42a53f70  42a4c000
INFO/DEBUG(504):     42a53f74  42a53f80
INFO/DEBUG(504):     42a53f78  00124d98  [heap]
INFO/DEBUG(504):     42a53f7c  afe0ee2c  /system/lib/libc.so
INFO/DEBUG(504):     42a53f80  42a53f80
INFO/DEBUG(504):     42a53f84  00124d98  [heap]
INFO/DEBUG(504):     42a53f88  00000000
INFO/DEBUG(504):     42a53f8c  00000000
INFO/DEBUG(504):     42a53f90  00000000
INFO/DEBUG(504):     42a53f94  00000000
INFO/DEBUG(504):     42a53f98  00000000
INFO/DEBUG(504):     42a53f9c  00000000
INFO/DEBUG(504):     42a53fa0  00000000
INFO/DEBUG(504):     42a53fa4  00000000
INFO/DEBUG(504):     42a53fa8  00124de8  [heap]
INFO/DEBUG(504):     42a53fac  00000000
INFO/DEBUG(504):     42a53fb0  00000000
INFO/DEBUG(504):     42a53fb4  00000000
INFO/DEBUG(504):     42a53fb8  00000000
INFO/DEBUG(504):     42a53fbc  00000000
INFO/DEBUG(504):     42a53fc0  00000000
INFO/DEBUG(504):     42a53fc4  00000000
INFO/DEBUG(504):     42a53fc8  00000000
INFO/DEBUG(504):     42a53fcc  00000000
INFO/DEBUG(504):     42a53fd0  00000000
INFO/DEBUG(504):     42a53fd4  00000000
INFO/DEBUG(504):     42a53fd8  00000000
INFO/DEBUG(504):     42a53fdc  00000000
INFO/DEBUG(504):     42a53fe0  00000000
INFO/DEBUG(504):     42a53fe4  00000000
INFO/DEBUG(504):     42a53fe8  00000000
INFO/DEBUG(504):     42a53fec  00000000
INFO/DEBUG(504):     42a53ff0  00000000
INFO/DEBUG(504):     42a53ff4  00000000
INFO/DEBUG(504):     42a53ff8  00000000
INFO/DEBUG(504):     42a53ffc  00000000
INFO/ActivityManager(518): APP DEATH: br.ceset.unicamp.tgi
INFO/WindowManager(518): WIN DEATH: Window{40228358
br.ceset.unicamp.tgi/br.ceset.unicamp.tgi.VideoPlayer}
DEBUG/ActivityManager(518): Resuming: HistoryRecord{40283590
{com.google.android.home/com.google.android.home.NewHome}}
INFO/WindowManager(518): WIN DEATH: Window{401dd538 SurfaceView/
br.ceset.unicamp.tgi/br.ceset.unicamp.tgi.VideoPlayer}
WARN/SurfaceFlinger(518): LayerVector[0x141834, counts=(1,1)]: layer
(0x1858b8, index=0) not found (not a bug)
DEBUG/AudioMixer(518): disable(8192)
DEBUG/AudioMixer(518): deleteTrackName(1)
INFO/dalvikvm-heap(518): GC! (78 sec since last GC)
INFO/dalvikvm-heap(573): GC! (79 sec since last GC)
INFO/dalvikvm-heap(573): GC old usage 50.0%; now 0.845MB used /
1.692MB soft max (2.062MB real max)
INFO/dalvikvm-heap(518): GC old usage 49.7%; now 1.799MB used /
3.599MB soft max (4.190MB real max)
INFO/dalvikvm-heap(573): GC freed 255 objects / 12596 bytes in 180ms
DEBUG/SurfaceFlinger(518): Surface 1, heap=0x1864a8 destroyed
INFO/dalvikvm-heap(518): GC freed 14400 objects / 1044432 bytes in
235ms
DEBUG/SurfaceFlinger(518): Surface 0, heap=0x190968 destroyed
DEBUG/SurfaceFlinger(518): Surface 2, heap=0x1864a8 destroyed
DEBUG/SurfaceFlinger(518): Surface 1, heap=0x190968 destroyed
DEBUG/SurfaceFlinger(518): Surface 0, heap=0x1864a8 destroyed
DEBUG/SurfaceFlinger(518): Surface 2, heap=0x127480 destroyed
DEBUG/SurfaceFlinger(518): Surface 1, heap=0x127480 destroyed
DEBUG/AudioFlinger(518): Audio hardware entering standby


my code :

    private void playVideo() {
        try {
            final String path = mPath.getText().toString();
            Log.v("VideoPlayer", "path: " + path);

            if (path.equals(current) && mp != null) {
                mp.start();
                return;
            }
            current = path;

            mp = new MediaPlayer();
            mp.setOnErrorListener(this);
            mp.setOnBufferingUpdateListener(this);
            mp.setOnCompletionListener(this);
            mp.setOnPreparedListener(this);

            mp.setDisplay(mPreview.getHolder().getSurface());

            Runnable r = new Runnable() {
                public void run() {
                    try {
                        setDataSource("/sdcard/vid3.3gp");
                        mp.prepare();
                        Log.v("VideoPlayer", "Duration : " +
mp.getDuration());
                        mp.start();
                    } catch (Throwable e) {
                        Log.e("VideoPlayer", e.getMessage(), e);
                    }
                }
            };
            new Thread(r).start();
        } catch (Throwable e) {
            Log.e("VideoPlayer", "error: " + e.getMessage(), e);
            if (mp != null) {
                mp.stop();
                mp.release();
            }
        }
    }
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to