Hello,
I'm using 'lavrec' to record sound/video. The first run is always
successful, however the second run *always* crashes. The crash prevents
any further usage of *any* lavtools application. It complains about an
audio error. To use lavrec again I *must* reboot.
The first recorded video is fine, however the second video has an
serious error at the end. That error will produce a similar crash if I
use mplayer to watch it.
My hardware: P3 500Mhz, SB Live! 5.1, Matrox Marvel G200.
My kernel: 2.4.20-custom, with RML Preempt Patch, with ACPI Patch.
My software: RH8, mgavideo0.1.1, mjpegtools1.6.1
I boot up in runlevel 3, for FB mode I run the following:
/sbin/modprobe i2c-matroxfb
/sbin/modprobe matroxfb_maven
/sbin/insmod matroxfb_crtc2
/usr/local/bin/matroxset -f /dev/fb0 -m 3
/usr/local/bin/matroxset -f /dev/fb0 -o 1 2
I initialize the video recording with the 'iv4l1' script from
mgavideo0.1.1 which loads the remaining drivers/modules. My 'lsmod'
output is at the end of this email. I also have my 'dmesg' output at the
end.
This is really frustrating. Is there any way to fix this? If not, does
anyone know of a work around to allow for continued usage of 'lavrec'
WITHOUT rebooting?
Please help.
-Mauriat Miranda
This is basically how it happens:
(first run)
[EMAIL PROTECTED] root]# lavrec -f a -i n -d 2 -q 50 -s -l 80 -R l -t 10 r1.avi
mgagrab: get_format failed
mgacore: no sub-handler for VIRQ 0x0 to remove!
0.00.10:00 int:033 lst: 0 ins: 0 del: 0 ae: 6 td1=0.013 td2=0.059
Recording time : 0.00.10:00
Lost frames : 000
A/V sync ins/del: 000/000
Audio errors: 006
(second run)
[EMAIL PROTECTED] root]# lavrec -f a -i n -d 2 -q 50 -s -l 80 -R l -t 10 r2.avi
0.00.10:00 int:034 lst: 0 ins: 0 del: 0 ae: 0 td1=0.012 td2=0.057
Recording time : 0.00.10:00
Lost frames : 000
A/V sync ins/del: 000/000
Audio errors: 000
Unable to handle kernel NULL pointer dereference at virtual address 0004
printing eip:
c0137e21
*pde =
Oops: 0002
CPU:0
EIP:0010:[]Not tainted
EFLAGS: 00010092
eax: ebx: 0371 ecx: c1009788 edx:
esi: c100975c edi: 1000 ebp: c02c3440 esp: c929ded0
ds: 0018 es: 0018 ss: 0018
Process lavrec (pid: 1049, stackpage=c929d000)
Stack: c02c34ac c11c c1009788 c02c3420 c11c 0207
01b8
1000 c8e70050 0001 0002 c012d657 c1009788 0020
0040 c1009788 4040 c9181404 40023000 c012bc1b
cbfde820
Call Trace:[] [] [] []
[]
[] []
Code: 89 50 04 89 02 c7 46 04 00 00 00 00 c7 06 00 00 00 00 d1 64
<6>note: lavrec[1049] exited with preempt_count 2
Segmentation fault
(any following usage)
[EMAIL PROTECTED] root]# lavrec -f a -i n -d 2 -q 50 -s -l 80 -R l -t 10 r3.avi
**ERROR: [lavrec] Error initializing Audio: Audio task died. Reason:
Error mapping audio buffer - Invalid argument
++ WARN: [lavrec] Not ready for capture (state = 0)!
Press enter to start recording>
Recording time : 0.00.00:00
Lost frames : 000
A/V sync ins/del: 000/000
Audio errors: 000
(lsmod output)
Module Size Used byNot tainted
mgajpg 9524 0 (unused)
i33 8308 0 [mgajpg]
zr3606015376 0 [mgajpg i33]
mgavideo9768 0 [mgajpg i33]
mgacap 8500 0 [mgajpg]
mgagrab13592 1 [mgavideo mgacap]
mga_core 55592 4 [mgajpg i33 zr36060 mgavideo mgacap
mgagrab]
videodev8416 2 [mgajpg mgacap]
tuner 11840 1
ks0127 11808 2
maven 8060 1
msp340016332 1
i2c-algo-ks 8264 1 [mga_core]
matroxfb_crtc2 9748 0 (unused)
matroxfb_maven 13212 0 (unused)
i2c-matroxfb6004 0 (unused)
i2c-algo-bit8840 3 [i2c-matroxfb]
i2c-core 19140 0 [tuner ks0127 maven msp3400
i2c-algo-ks matroxfb_maven i2c-algo-bit]
matroxfb_base 23492 63 [matroxfb_crtc2 i2c-matroxfb]
matroxfb_Ti3026 7800 0 [matroxfb_base]
matroxfb_DAC1064 12048 0 [matroxfb_crtc2 matroxfb_base]
g450_pll4772 0 [matroxfb_DAC1064]
matroxfb_accel 10248 0 [matroxfb_base matroxfb_Ti3026
matroxfb_DAC1064]
matroxfb_misc 11264 0 [matroxfb_crtc2 matroxfb_maven
i2c-matroxfb matroxfb_base matroxfb_Ti3026 matroxfb_DAC1064 g450_pll
matroxfb_accel]
button 3820 0 (unused)
autofs 13620 0 (autoclean) (unused)
microcode 4796 0 (autoclean)
usbvnetr 70264 3
mousedev5588 0 (unused)
keybdev 2976 0 (unused)
hid22308 0 (unused)
input 5856 0 [mousedev keybdev hi