[MPlayer-users] crash using the mouse when dsp is required by gkrellm

phobos phobos at goupilfr.org
Thu May 30 21:07:01 CEST 2002


I had already posted this , but I didn t use the right method to use gdb .
I updated to the current cvs , and the trouble still occurs .


Here are the informations once gain :

I use Window Maker , and Gkrellm .
I have configured Gkrellm to play a sound when I have mail .
I use input.conf from Mplayer to play forward and backward using the wheel mouse 
and it works perfectly .

But when I have a mail , the dsp device is busy with mplayer , of course .
If I use the wheel mouse to go forward and backward in the movie I look , Mplayer crashes. .

I hope this will be helpfull .
I have recompiled mplayer  "./configure  --enable-debug=3 --enable-gui" and used gdb 
like you explain on the web page .

Phil

System Information

Debian unstable   

kernel version:
2.4.18

libc version:
 ls -l /lib/libc[.-]*
-rwxr-xr-x    1 root     root      1153784 avr 28 11:57 /lib/libc-2.2.5.so
lrwxrwxrwx    1 root     root           14 avr  3 20:56 /lib/libc.so.5 -> libc.so.5.4.46
-rw-r--r--    1 root     root       563068 fév  4 22:30 /lib/libc.so.5.4.46
lrwxrwxrwx    1 root     root           13 mai  1 19:15 /lib/libc.so.6 -> libc-2.2.5.so


X version:
XFree86 Version 4.1.0.1 

gcc and ld versions:
gcc version 2.95.4 20011002 (Debian prerelease)
GNU ld version 2.12.90.0.7 20020423 Debian GNU/Linux

binutils version:
as --version
Assembleur GNU 2.12.90.0.7 20020423 Debian GNU/Linux

# cat /proc/cpuinfo 
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 6
model name      : AMD Athlon(tm) XP 1700+
stepping        : 2
cpu MHz         : 1466.460
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow
bogomips        : 2922.90

Video card :
01:00.0 VGA compatible controller: nVidia Corporation NV15 [GeForce2 Ti] (rev a4) (prog-if 00 [VGA])
        Subsystem: LeadTek Research Inc.: Unknown device 2847
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
        Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
        Latency: 248 (1250ns min, 250ns max)
        Interrupt: pin A routed to IRQ 16
        Region 0: Memory at de000000 (32-bit, non-prefetchable) [size=16M]
        Region 1: Memory at d0000000 (32-bit, prefetchable) [size=128M]
        Expansion ROM at dfef0000 [disabled] [size=64K]
        Capabilities: [60] Power Management version 1
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [44] AGP version 2.0
                Status: RQ=31 SBA- 64bit- FW+ Rate=x1,x2,x4
                Command: RQ=31 SBA- AGP+ 64bit- FW- Rate=x4

Driver Riva
cat /proc/driver/nvidia/version 
NVRM version: NVIDIA NVdriver Kernel Module  1.0-2880  Tue Mar 26 08:12:38 PST 2002
GCC version:  gcc version 2.95.4 20011002 (Debian prerelease)


Sound card :
00:08.0 Multimedia audio controller: Ensoniq 5880 AudioPCI (rev 02)
        Subsystem: Ensoniq Creative Sound Blaster AudioPCI128
        Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B-
        Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort+ <MAbort+ >SERR- <PERR-
        Latency: 64 (3000ns min, 32000ns max)
        Interrupt: pin A routed to IRQ 19
        Region 0: I/O ports at e400 [size=64]
        Capabilities: [dc] Power Management version 1
                Flags: PMEClk- DSI+ D1- D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-

Sound Driver = OSS from kernel .

(gdb) run -v /home/phil/Any_Movie.avi
Starting program: /home/phil/cvs/main/mplayer -v /home/phil/Any_Movie.avi
[New Thread 1024 (LWP 28707)]


MPlayer CVS-020530-20:07-2.95.4 (C) 2000-2002 Arpad Gereoffy (see DOCS!)

CPU: Advanced Micro Devices Athlon 4 PM Palomino/Athlon MP Multiprocessor/Athlon XP eXtreme Perfo           
rmance (Family: 6, Stepping: 2)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE

/etc/mplayer.conf(11): option: vo
/etc/mplayer.conf(11): parameter: sdl
/etc/mplayer.conf(127): option: framedrop
/etc/mplayer.conf(127): parameter: yes
/etc/mplayer.conf(134): option: cache
/etc/mplayer.conf(134): parameter: 8192
/home/phil/.mplayer/config(2): option: vo
/home/phil/.mplayer/config(2): parameter: xv
/home/phil/.mplayer/config(3): option: osdlevel
/home/phil/.mplayer/config(3): parameter: 0
/home/phil/.mplayer/config(4): option: gui
/home/phil/.mplayer/config(4): parameter: 1
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1600x1200 with depth 24 and 32 bits/pixel (":0.0" => local display)
[x11] Create window for WM detect ...
[x11] Detected wm is WindowMaker style.
Reading /home/phil/.mplayer/codecs.conf: can't open '/home/phil/.mplayer/codecs.conf': No such fi           
le or directory
Reading /usr/local/share/mplayer/codecs.conf: 34 audio & 92 video codecs
CommandLine: '-v' '/home/phil/Lesbian_Extreme.avi'
get_path('font/font.desc') -> '/home/phil/.mplayer/font/font.desc'
Font /home/phil/.mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Linux RTC init error in ioctl (rtc_pie_on): Permission denied
Using usleep() timing
get_path('input.conf') -> '/home/phil/.mplayer/input.conf'
Parsing input config file /home/phil/.mplayer/input.conf
Input config file /home/phil/.mplayer/input.conf parsed : 52 binds
get_path('Skin') -> '/home/phil/.mplayer/Skin'
SKIN dir 1: '/home/phil/.mplayer/Skin'
SKIN dir 2: '/usr/local/share/mplayer/Skin'

Playing /home/phil/Any_Movie.avi
Not an URL!
File size is 685166592 bytes
CACHE_PRE_INIT: 0 [0] 0  pre:0  eof:0  
Cache fill: 10,25% (860160 bytes)    Detected AVI file format!
list_end=0x2286
======= AVI Header =======
us/frame: 40000  (fps=25,000)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
frames  total: 127140   initial: 0
streams: 2
Suggested BufferSize: 0
Size:  640 x 480
list_end=0x10F4
==> Found video stream: 0
======= STREAM Header =======
Type: vids   FCC: divx (78766964)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 25/1 = 25,000
Start: 0   Len: 127140
Suggested BufferSize: 32322
Quality -1
Sample size: 0
found 'bih', 40 bytes of 40
======= VIDEO Format ======
  biSize 40
  biWidth 640
  biHeight 480
  biPlanes 1
  biBitCount 24
  biCompression 1482049860='DIVX'
  biSizeImage 921600
==========================
Regenerating keyframe table for DIVX 4 video
list_end=0x217A
==> Found audio stream: 1
======= STREAM Header =======
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 1
Rate: 24000/1 = 24000,000
Start: 0   Len: 122052096
Suggested BufferSize: 1536
Quality -1
Sample size: 1
found 'wf', 18 bytes of 20
======= WAVE Format =======
Format Tag: 8192 (0x2000)
Channels: 2
Samplerate: 48000
avg byte/sec: 24000
Block align: 1
bits/sample: 0
cbSize: 18
Unknown extra header dump: [b4] [a8] [45] [0] [b4] [a8] [45] [0] [0] [0] [0] [0] [0] [0] [0] [0]            
[0] [0] 
list_end=0x2286
Broken chunk?  chunksize=1394  (id=JUNK)
list_end=0x28A45A36
Found movie at 0x280C - 0x28A45A36
Reading INDEX block, 206601 chunks for 127140 frames
Broken chunk?  chunksize=0  (id=idx1)
Reading INDEX block, 206601 chunks for 127140 frames
AVI index offset: 0x2808 (movi=0x280C idx0=0x4 idx1=0x60C)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video length=558144490
VIDEO:  [DIVX]  640x480  24bpp  25,00 fps  878,0 kbps (107,2 kbyte/s)
[V] filefmt:3  fourcc:0x58564944  size:640x480  fps:25,00  ftime:=0,0400
get_path('sub/') -> '/home/phil/.mplayer/sub/'
Detected audio codec: [a52] afm:14 (AC3-liba52)
Initializing audio codec...
Opening audio decoder: [liba52] AC3-liba52
dec_audio: Allocating 3840 bytes for input buffer
dec_audio: Allocating 6144 + 65536 = 71680 bytes for output buffer
Using SSE optimized IMDCT transform
AC3: 2.0 (stereo)  48000 Hz  192,0 kbit/s
A52 flags before a52_frame: 0x2A
A52 flags after a52_frame: 0x2
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, sfmt: 0x10 (2 bps), ratio: 24000->192000 (192,0 kbit)
==========================================================================
Requested video codec family [ffodivx] (vfm=5) not available (enable it at compile time!)
Opening video decoder: [odivx] DivX4Linux lib (odivx mode)
INFO: OpenDivX video codec init OK!
VDec: vo config request - 640 x 480 (preferred csp: Planar YV12)  
[PP] Using codec's postprocessing, max q = 9
vo_debug: query(Planar YV12) returned 0x437 (i=0) 
Movie-Aspect is undefined - no prescaling applied.
video_out->init(640x480->640x480,flags=0,'MPlayer',0x32315659)
VO: [xv] 640x480 => 640x480 Planar YV12 
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel at goldbach.in-berlin.de>
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x30323449 (I420) planar
using Xvideo port 61 for hw scaling
vo_xv: reset gamma correction
[xv] dx: 0 dy: 0 dw: 640 dh: 480
Detected video codec: [odivx] vfm:3 (OpenDivX (MPEG-4 v2))
==========================================================================
vo_xv: get: XV_DOUBLE_BUFFER = 1
vo_xv: assume: XV_DOUBLE_BUFFER = 2000
vo_xv: get: XV_COLORKEY = 66046
vo_xv: assume: XV_COLORKEY = 31
vo_xv: get: XV_AUTOPAINT_COLORKEY = 1
vo_xv: assume: XV_AUTOPAINT_COLORKEY = 2000
vo_xv: get: XV_BRIGHTNESS = 0
vo_xv: assume: XV_BRIGHTNESS = 0
vo_xv: get: XV_CONTRAST = 4096
vo_xv: assume: XV_CONTRAST = 0
vo_xv: get: XV_SATURATION = 4096
vo_xv: assume: XV_SATURATION = 0
vo_xv: get: XV_HUE = 0
vo_xv: assume: XV_HUE = -1000
AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
ao2: 48000 Hz  2 chans  Signed 16-bit (Little-Endian)
audio_setup: using '/dev/dsp' dsp device
audio_setup: sample format: Signed 16-bit (Little-Endian) (requested: Signed 16-bit (Little-Endia           
n))
audio_setup: using 2 channels (requested: 2)
audio_setup: using 48000 Hz samplerate (requested: 48000)
audio_setup: frags: 128/128  (1024 bytes/frag)  free: 131072
Start playing...
XXX initial  v_pts=0,000  a_pos=1536 (0,064) 
*** [vo] Exporting mp_image_t, 640x480x12bpp YUV planar, 460800 bytes
[ws] Detected wm is WindowMaker style.
[ws] Detected wm is WindowMaker style.
[x11] Detected wm is WindowMaker style.
[xv] dx: 0 dy: 0 dw: 640 dh: 480
SEEK: idx=919  (a:0 v:919)  v.skip=923  a.skip=2/0,000  0%  1,4% 0 0 96%
SEEK: idx=431  (a:0 v:431)  v.skip=435  a.skip=2/0,000  7%  1,1% 0 0 60%
SEEK: idx=919  (a:0 v:919)  v.skip=923  a.skip=2/0,000  9%  1,1% 0 0 78%
SEEK: idx=431  (a:0 v:431)  v.skip=435  a.skip=2/0,000  7%  1,0% 0 0 59%
SEEK: idx=1406  (a:0 v:1406)  v.skip=1410  a.skip=2/0,000  %  0,8% 0 0 49%
SEEK: idx=1894  (a:0 v:1894)  v.skip=1898  a.skip=2/0,000   1,3% 0 0 68%
[xv] dx: 0 dy: 0 dw: 640 dh: 480:  0,050  1333/1333  11%  8%  0,8% 0 0 49%
[xv] dx: 0 dy: 0 dw: 640 dh: 480:  0,050  1334/1334  11%  8%  0,8% 0 0 49%
[xv] dx: 0 dy: 0 dw: 640 dh: 480:  0,050  1335/1335  11%  8%  0,8% 0 0 49%
[xv] dx: 0 dy: 0 dw: 640 dh: 480:  0,049  1939/1939  11%  4%  0,7% 0 0 49%
[xv] dx: 0 dy: 0 dw: 640 dh: 480:  0,049  1940/1940  11%  4%  0,7% 0 0 49%
[xv] dx: 0 dy: 0 dw: 640 dh: 480:  0,049  1941/1941  11%  4%  0,7% 0 0 49%
SEEK: idx=2381  (a:0 v:2381)  v.skip=2385  a.skip=2/0,000  %  0,7% 0 0 49%

Fatal error: *** CANNOT RE-OPEN / RESET AUDIO DEVICE *** Périphérique ou ressource occupé

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 28707)]
0x0812e0a3 in get_space () at ao_oss.c:285
285            FD_SET(audio_fd, &rfds);
(gdb) bt
#0  0x0812e0a3 in get_space () at ao_oss.c:285
#1  0x08065dee in main (argc=3, argv=0xbffffc44, envp=0xbffffc54) at mplayer.c:1507
(gdb) disass $eip-32 $eip+32
Dump of assembler code from 0x812e083 to 0x812e0c3:
0x812e083 <get_space+75>:       ret    
0x812e084 <get_space+76>:       jmp    0x812e0e2 <get_space+170>
0x812e086 <get_space+78>:       xor    %eax,%eax
0x812e088 <get_space+80>:       mov    $0x20,%ecx
0x812e08d <get_space+85>:       lea    0xffffff80(%ebp),%ebx
0x812e090 <get_space+88>:       mov    %ebx,%edi
0x812e092 <get_space+90>:       cld    
0x812e093 <get_space+91>:       repz stos %eax,%es:(%edi)
0x812e095 <get_space+93>:       mov    0x81badac,%edx
0x812e09b <get_space+99>:       mov    %edx,%eax
0x812e09d <get_space+101>:      and    $0x1f,%eax
0x812e0a0 <get_space+104>:      shr    $0x5,%edx
0x812e0a3 <get_space+107>:      bts    %eax,(%ebx,%edx,4)
0x812e0a7 <get_space+111>:      movl   $0x0,0xffffff78(%ebp)
0x812e0b1 <get_space+121>:      lea    0xffffff78(%ebp),%eax
0x812e0b7 <get_space+127>:      movl   $0x0,0x4(%eax)
0x812e0be <get_space+134>:      add    $0xfffffff4,%esp
0x812e0c1 <get_space+137>:      push   %eax
0x812e0c2 <get_space+138>:      push   $0x0
End of assembler dump.
(gdb) 






More information about the MPlayer-users mailing list