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 00000004
  printing eip:
c0137e21
*pde = 00000000
Oops: 0002
CPU:    0
EIP:    0010:[<c0137e21>]    Not tainted
EFLAGS: 00010092
eax: 00000000   ebx: 00000371   ecx: c1009788   edx: 00000000
esi: c100975c   edi: 00001000   ebp: c02c3440   esp: c929ded0
ds: 0018   es: 0018   ss: 0018
Process lavrec (pid: 1049, stackpage=c929d000)
Stack: c02c34ac c100001c c1009788 c02c3420 c100001c 00000207 ffffffff
000001b8
        00001000 c8e70050 00010000 00000002 c012d657 c1009788 00000020
00000000
        00400000 c1009788 40400000 c9181404 40023000 00000000 c012bc1b
cbfde820
Call Trace:    [<c012d657>] [<c012bc1b>] [<c012ed4f>] [<c011a1ca>]
[<c011f4f1>]
   [<c011f6c3>] [<c010927f>]

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 by    Not tainted
mgajpg                  9524   0  (unused)
i33                     8308   0  [mgajpg]
zr36060                15376   0  [mgajpg i33]
mgavideo                9768   0  [mgajpg i33]
mgacap                  8500   0  [mgajpg]
mgagrab                13592   1  [mgavideo mgacap]
mga_core               55592   4  [mgajpg i33 zr36060 mgavideo mgacap
mgagrab]
videodev                8416   2  [mgajpg mgacap]
tuner                  11840   1
ks0127                 11808   2
maven                   8060   1
msp3400                16332   1
i2c-algo-ks             8264   1  [mga_core]
matroxfb_crtc2          9748   0  (unused)
matroxfb_maven         13212   0  (unused)
i2c-matroxfb            6004   0  (unused)
i2c-algo-bit            8840   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_pll                4772   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
mousedev                5588   0  (unused)
keybdev                 2976   0  (unused)
hid                    22308   0  (unused)
input                   5856   0  [mousedev keybdev hid]
uhci                   30896   0  (unused)
usbcore                79904   1  [usbvnetr hid uhci]



(dmesg output - snipped)
----------------------------------------
matroxfb: Matrox Marvel G200 (AGP) detected
matroxfb: MTRR's turned on
matroxfb: 640x480x8bpp (virtual: 640x26208)
matroxfb: framebuffer at 0xD8000000, mapped to 0xcc8bd000, size 16777216
Console: switching to colour frame buffer device 80x30
fb0: MATROX VGA frame buffer device
i2c-core.o: i2c core module
i2c-algo-bit.o: i2c bit algorithm module
i2c-core.o: adapter DDC:fb0 #0 on i2c-matroxfb registered as adapter 0.
i2c-core.o: adapter DDC:fb0 #1 on i2c-matroxfb registered as adapter 1.
i2c-core.o: adapter MAVEN:fb0 on i2c-matroxfb registered as adapter 2.
i2c-core.o: driver maven registered.
i2c-core.o: client [maven client] registered to adapter [MAVEN:fb0 on
i2c-matroxfb](pos. 0).
i2c-algo-bit.o: MAVEN:fb0 on i2c-matroxfb i2c_write: error - bailout.
WriteReg(140) failed
want: 421050, xtal: 450450, h: 802, v: 525, fmax: 5000000
Match: 112 / 15 / 3 / 172
Better...
Match: 56 / 15 / 2 / 172
Match: 112 / 30 / 2 / 172
Match: 28 / 15 / 1 / 172
Match: 56 / 30 / 1 / 172
want: 421575, xtal: 450450, h: 803, v: 525, fmax: 5000000
want: 422100, xtal: 450450, h: 804, v: 525, fmax: 5000000
want: 422625, xtal: 450450, h: 805, v: 525, fmax: 5000000
want: 423150, xtal: 450450, h: 806, v: 525, fmax: 5000000
want: 423675, xtal: 450450, h: 807, v: 525, fmax: 5000000
Match: 94 / 25 / 2 / 555
Better...
Match: 47 / 25 / 1 / 555
want: 424200, xtal: 450450, h: 808, v: 525, fmax: 5000000
Match: 94 / 25 / 2 / 31
Better...
Match: 47 / 25 / 1 / 31
want: 424725, xtal: 450450, h: 809, v: 525, fmax: 5000000
i2c-algo-ks.o: i2c bit algorithm module version 2.6.1 (20010830)
i2c-core.o: driver i2c msp3400 driver registered.
i2c-core.o: driver maven registered.
i2c-core.o: driver ks0127 registered.
ks0127: attach: on-board video decoder
i2c-core.o: client [ks0127-10009] registered to adapter [MAVEN:fb0 on
i2c-matroxfb](pos. 1).
i2c-core.o: driver i2c TV tuner driver registered.
tuner: ignoring DDC:fb0 #0 on i2c-matroxfb i2c adapter [id=0x10009]
tuner: ignoring DDC:fb0 #1 on i2c-matroxfb i2c adapter [id=0x10009]
tuner: ignoring MAVEN:fb0 on i2c-matroxfb i2c adapter [id=0x10009]
Linux video capture interface: v1.00
Matrox core interface v0.1 (c) David Barth
mgacore: Found MGA G200 AGP
mgacore: 16 MB detected
mgacore: PCI IRQ 5 handler registered
mgacodec: *mga @ cd8f90e0
  i2c-algo-ks.o: scanning bus mgai2c.
(00)(01)(02)(03)(04)(05).....................(1b)....................................(40)................................(61)...........(6d)..................
msp34xx: init: chip=MSP3430G-A1, has NICAM support
msp3400: daemon started
i2c-core.o: client [MSP3430G-A1] registered to adapter [mgai2c](pos. 0).
maven: attach: tv-out
i2c-core.o: client [maven] registered to adapter [mgai2c](pos. 1).
ks0127: attach: on-board video decoder
i2c-core.o: client [ks0127-10005] registered to adapter [mgai2c](pos. 2).
tuner: probing mgai2c i2c adapter [id=0x10005]
tuner: chip found @ 0xc2
i2c-core.o: client [(unset)] registered to adapter [mgai2c](pos. 3).
i2c-core.o: adapter mgai2c registered as adapter 3.
Matrox Marvel and Rainbow Runner G Capture Driver (V4L)
Matrox KS switchboard
Matrox MJPEG driver
Matrox Marvel and Rainbow Runner G Capture Driver (V4L1)
Creative EMU10K1 PCI Audio Driver, version 0.20, 15:40:13 Jan  2 2003
emu10k1: EMU10K1 rev 10 model 0x8065 found, IO at 0xc400-0xc41f, IRQ 11
ac97_codec: AC97 Audio codec, id: ƒ„v8(SigmaTel STAC9708)
emu10k1: SBLive! 5.1 card detected
mgagrab: get_format failed
mgacore: no sub-handler for VIRQ 0x0 to remove!
want: 421050, xtal: 450450, h: 802, v: 525, fmax: 5000000
Match: 112 / 15 / 3 / 172
Better...
Match: 56 / 15 / 2 / 172
Match: 112 / 30 / 2 / 172
Match: 28 / 15 / 1 / 172
Match: 56 / 30 / 1 / 172
want: 421575, xtal: 450450, h: 803, v: 525, fmax: 5000000
want: 422100, xtal: 450450, h: 804, v: 525, fmax: 5000000
want: 422625, xtal: 450450, h: 805, v: 525, fmax: 5000000
want: 423150, xtal: 450450, h: 806, v: 525, fmax: 5000000
want: 423675, xtal: 450450, h: 807, v: 525, fmax: 5000000
Match: 94 / 25 / 2 / 555
Better...
Match: 47 / 25 / 1 / 555
want: 424200, xtal: 450450, h: 808, v: 525, fmax: 5000000
Match: 94 / 25 / 2 / 31
Better...
Match: 47 / 25 / 1 / 31
want: 424725, xtal: 450450, h: 809, v: 525, fmax: 5000000
want: 421050, xtal: 450450, h: 802, v: 525, fmax: 5000000
Match: 112 / 15 / 3 / 172
Better...
Match: 56 / 15 / 2 / 172
Match: 112 / 30 / 2 / 172
Match: 28 / 15 / 1 / 172
Match: 56 / 30 / 1 / 172
want: 421575, xtal: 450450, h: 803, v: 525, fmax: 5000000
want: 422100, xtal: 450450, h: 804, v: 525, fmax: 5000000
want: 422625, xtal: 450450, h: 805, v: 525, fmax: 5000000
want: 423150, xtal: 450450, h: 806, v: 525, fmax: 5000000
want: 423675, xtal: 450450, h: 807, v: 525, fmax: 5000000
Match: 94 / 25 / 2 / 555
Better...
Match: 47 / 25 / 1 / 555
want: 424200, xtal: 450450, h: 808, v: 525, fmax: 5000000
Match: 94 / 25 / 2 / 31
Better...
Match: 47 / 25 / 1 / 31
want: 424725, xtal: 450450, h: 809, v: 525, fmax: 5000000
Unable to handle kernel NULL pointer dereference at virtual address 00000004
  printing eip:
c0137e21
*pde = 00000000
Oops: 0002
CPU:    0
EIP:    0010:[<c0137e21>]    Not tainted
EFLAGS: 00010092
eax: 00000000   ebx: 00000371   ecx: c1009788   edx: 00000000
esi: c100975c   edi: 00001000   ebp: c02c3440   esp: c929ded0
ds: 0018   es: 0018   ss: 0018
Process lavrec (pid: 1049, stackpage=c929d000)
Stack: c02c34ac c100001c c1009788 c02c3420 c100001c 00000207 ffffffff
000001b8
        00001000 c8e70050 00010000 00000002 c012d657 c1009788 00000020
00000000
        00400000 c1009788 40400000 c9181404 40023000 00000000 c012bc1b
cbfde820
Call Trace:    [<c012d657>] [<c012bc1b>] [<c012ed4f>] [<c011a1ca>]
[<c011f4f1>]
   [<c011f6c3>] [<c010927f>]

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








-------------------------------------------------------
This SF.net email is sponsored by: Does your code think in ink? You could win a Tablet PC. Get a free Tablet PC hat just for playing. What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to