xvinfo makes x server crash

This forum is for all Parhelia based cards (Millenium P650, P690, P750, QID, Parhelia 256, APVe, ...) that need the mtx driver to run properly.

xvinfo makes x server crash

Postby ubuntu-user » Thu Jul 05, 2007 8:33 pm

When I try to run xvinfo the x server crashes.
Any ideas what could be wrong?

X.org 7.2.0, Matrox P650, mtx: x86_64 - v1.4.5

There is also a BT878 Video Capture (Pinnacle) card

Here is the output from xvinfo (until X restarts):

X-Video Extension version 2.2
screen #0
Adaptor #0: "video4linux"
number of ports: 1
port base: 56
operations supported: PutVideo
supported visuals:
depth 24, visualID 0x21
number of attributes: 8
"XV_ENCODING" (range -1000 to 1000)
client settable attribute
client gettable attribute (current value is 0)
"XV_BRIGHTNESS" (range -1000 to 1000)
client settable attribute
client gettable attribute (current value is 0)
"XV_CONTRAST" (range -1000 to 1000)
client settable attribute
client gettable attribute (current value is 0)
"XV_SATURATION" (range -1000 to 1000)
client settable attribute
client gettable attribute (current value is 0)
"XV_HUE" (range -1000 to 1000)
client settable attribute
client gettable attribute (current value is 0)
"XV_VOLUME" (range -1000 to 1000)
client settable attribute
client gettable attribute (current value is 519)
"XV_MUTE" (range 0 to 1)
client settable attribute
client gettable attribute (current value is 1)
"XV_FREQ" (range 0 to 16000)
client settable attribute
client gettable attribute
------------------------------------------------------------

This is from an strace of xvinfo:

read(3, "XV_FREQ\0", 8) = 8
write(3, "\20\1\5\0\v\0\0\0XV_ENCODING\0", 20) = 20
read(3, "\1\373\v\0\0\0\0\0N\0\0\0\0\0\0\0$\354{\0\0\0\0\0000 \224"..., 32) = 32
write(3, "\214\16\3\0008\0\0\0N\0\0\0", 12) = 12
read(3, 0x7ffffeda63e0, 32) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, -1) = 1
read(3, "\1\0\f\0\0\0\0\0\0\0\0\0\0\0\0\0p\357{\0\0\0\0\0\177aU"..., 32) = 32
write(3, "\20\1\6\0\r\0\0\0XV_BRIGHTNESS\0\5\0", 24) = 24
read(3, "\1\373\r\0\0\0\0\0J\0\0\0\0\0\0\0$\354{\0\0\0\0\0000 \224"..., 32) = 32
write(3, "\214\16\3\0008\0\0\0J\0\0\0", 12) = 12
read(3, 0x7ffffeda63e0, 32) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, -1) = 1
read(3, "\1\0\16\0\0\0\0\0\0\0\0\0\0\0\0\0p\357{\0\0\0\0\0\177a"..., 32) = 32
write(3, "\20\1\5\0\v\0\0\0XV_CONTRASTS", 20) = 20
read(3, "\1\373\17\0\0\0\0\0K\0\0\0\0\0\0\0$\354{\0\0\0\0\0000 "..., 32) = 32
write(3, "\214\16\3\0008\0\0\0K\0\0\0", 12) = 12
read(3, "\1\0\20\0\0\0\0\0\0\0\0\0\0\0\0\0p\357{\0\0\0\0\0\177a"..., 32) = 32
write(3, "\20\1\6\0\r\0\0\0XV_SATURATION\0\5\0", 24) = 24
read(3, "\1\373\21\0\0\0\0\0M\0\0\0\0\0\0\0$\354{\0\0\0\0\0000 "..., 32) = 32
write(3, "\214\16\3\0008\0\0\0M\0\0\0", 12) = 12
read(3, 0x7ffffeda63e0, 32) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=3, events=POLLIN, revents=POLLIN}], 1, -1) = 1
read(3, "\1\0\22\0\0\0\0\0\0\0\0\0\0\0\0\0p\357{\0\0\0\0\0\177a"..., 32) = 32
write(3, "\20\1\4\0\6\0\0\0XV_HUEUR", 16) = 16
read(3, "\1\373\23\0\0\0\0\0L\0\0\0\0\0\0\0$\354{\0\0\0\0\0000 "..., 32) = 32
write(3, "\214\16\3\0008\0\0\0L\0\0\0", 12) = 12
read(3, "\1\0\24\0\0\0\0\0\0\0\0\0\0\0\0\0p\357{\0\0\0\0\0\177a"..., 32) = 32
write(3, "\20\1\5\0\t\0\0\0XV_VOLUMETIO", 20) = 20
read(3, "\1\373\25\0\0\0\0\0Q\0\0\0\0\0\0\0$\354{\0\0\0\0\0000 "..., 32) = 32
write(3, "\214\16\3\0008\0\0\0Q\0\0\0", 12) = 12
read(3, "\1\0\26\0\0\0\0\0\7\2\0\0\0\0\0\0p\357{\0\0\0\0\0\177a"..., 32) = 32
write(3, "\20\1\4\0\7\0\0\0XV_MUTEM", 16) = 16
read(3, "\1\373\27\0\0\0\0\0P\0\0\0\0\0\0\0$\354{\0\0\0\0\0000 "..., 32) = 32
write(3, "\214\16\3\0008\0\0\0P\0\0\0", 12) = 12
read(3, "\1\0\30\0\0\0\0\0\1\0\0\0\0\0\0\0p\357{\0\0\0\0\0\177a"..., 32) = 32
write(3, "\20\1\4\0\7\0\0\0XV_FREQM", 16) = 16
read(3, "\1\373\31\0\0\0\0\0O\0\0\0\0\0\0\0$\354{\0\0\0\0\0000 "..., 32) = 32
write(3, "\214\16\3\0008\0\0\0O\0\0\0", 12) = 12
read(3, 0x7ffffeda63e0, 32) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=3, events=POLLIN, revents=POLLIN|POLLHUP}], 1, -1) = 1
read(3, "", 32) = 0
write(2, "X connection to :0.0 broken (exp"..., 65X connection to :0.0 broken (explicit kill or server shutdown).

-------------------------------------------------------------


This is from the logfile:

(II) MTX(0): v4l: memPhysBase=0xf4000000

Backtrace:
0: /usr/X11R6/bin/X(xf86SigHandler+0x6d) [0x48282d]
1: /lib/libc.so.6 [0x2b40fcbb7d40]
2: /usr/X11R6/bin/X(Dispatch+0x120) [0x44dea0]
3: /usr/X11R6/bin/X(main+0x45d) [0x43703d]
4: /lib/libc.so.6(__libc_start_main+0xf4) [0x2b40fcba48e4]
5: /usr/X11R6/bin/X(FontFileCompleteXLFD+0x241) [0x436339]

Fatal server error:
Caught signal 11. Server aborting

(II) MTX(0): Parhelia device stopped.

------------------------------------------------------

xdpyinfo:

name of display: :0.0
version number: 11.0
vendor string: The X.Org Foundation
vendor release number: 70200000
X.Org version: 7.2.0
maximum request size: 16777212 bytes
motion buffer size: 256
bitmap unit, bit order, padding: 32, LSBFirst, 32
image byte order: LSBFirst
number of supported pixmap formats: 7
supported pixmap formats:
depth 1, bits_per_pixel 1, scanline_pad 32
depth 4, bits_per_pixel 8, scanline_pad 32
depth 8, bits_per_pixel 8, scanline_pad 32
depth 15, bits_per_pixel 16, scanline_pad 32
depth 16, bits_per_pixel 16, scanline_pad 32
depth 24, bits_per_pixel 32, scanline_pad 32
depth 32, bits_per_pixel 32, scanline_pad 32
keycode range: minimum 8, maximum 255
focus: window 0x2600021, revert to Parent
number of extensions: 30
BIG-REQUESTS
Composite
DAMAGE
DPMS
Extended-Visual-Information
GLX
MIT-SCREEN-SAVER
MIT-SHM
MIT-SUNDRY-NONSTANDARD
MTXGamma
RANDR
RENDER
SECURITY
SGI-GLX
SHAPE
SYNC
TOG-CUP
X-Resource
XAccessControlExtension
XC-APPGROUP
XC-MISC
XFIXES
XFree86-Bigfont
XFree86-DGA
XFree86-Misc
XFree86-VidModeExtension
XInputExtension
XKEYBOARD
XTEST
XVideo
default screen number: 0
number of screens: 1

screen #0:
dimensions: 1600x1200 pixels (411x311 millimeters)
resolution: 99x98 dots per inch
depths (7): 24, 1, 4, 8, 15, 16, 32
root window id: 0x41
depth of root window: 24 planes
number of colormaps: minimum 1, maximum 1
default colormap: 0x20
default number of colormap cells: 256
preallocated pixels: black 0, white 16777215
options: backing-store NO, save-unders NO
largest cursor: 64x64
current input event mask: 0xfa0033
KeyPressMask KeyReleaseMask EnterWindowMask
LeaveWindowMask StructureNotifyMask SubstructureNotifyMask
SubstructureRedirectMask FocusChangeMask PropertyChangeMask
ColormapChangeMask
number of visuals: 2
default visual id: 0x21
visual:
visual id: 0x21
class: TrueColor
depth: 24 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
visual:
visual id: 0x3f
class: TrueColor
depth: 32 planes
available colormap entries: 256 per subfield
red, green, blue masks: 0xff0000, 0xff00, 0xff
significant bits in color specification: 8 bits
Attachments
Xorg.0.log
Xorg log
(43.4 KiB) Downloaded 258 times
ubuntu-user
Private
Private
 
Posts: 2
Joined: Thu Jul 05, 2007 8:26 pm

Postby tuxx-home.at » Fri Jul 06, 2007 1:24 pm

Here is the output from xvinfo (until X restarts):

X-Video Extension version 2.2
screen #0
Adaptor #0: "video4linux"


The parhelia card offers its own v4l driver. Did you try to install it already?
If it's installed, the first few lines of the xvinfo output should look like this:

Code: Select all
X-Video Extension version 2.2
screen #0
  Adaptor #0: "Matrox Parhelia"


You can see the difference in the "Adaptor #0" line where it should say
"Matrox Parhelia" after installing the Matrox v4l library.

The unofficial driver packages always installed the v4l library automatically,
but the official Matrox driver doesn't. I don't really know why, but this
will be fixed in 1.4.5.1 when it's out.

For now you might want to follow the advice in the readme-advanced.txt
inside the driver archive:

Code: Select all
1 - To allow v4l programs that use the hardware scaler (like
    watching TV with xawtv in full screen), make sure you have the
    'load "v4l"' declaration in the "Module" section of your
    configuration file. This package provides a modified version of
    the v4l driver module. It isn't installed by default and must
    be manually copied to work. This file can be found in the v4l
    directory, accessed by running the installer with the command
    line option "--extract-only".

    - For example, to install the v4l_drv.o file for X.org 6.8.2,
      use the following sequence:

            # su [ENTER]
            # cd /usr/X11R6/lib/modules/driver/linux/ [ENTER]
            # mv v4l_drv.o v4l_drv.o.org [ENTER]
            # cd /root [ENTER]
            # sh mtxdriver-X.X.X.run --extract-only [ENTER]
            # cd /root/mtxdriver/v4l/6.8.2 [ENTER]
            # cp v4l_drv.o /usr/X11R6/lib/modules/driver/linux/
            [ENTER]

    - For example, here is a "Module" section as it would look in
      an X Server config file:

            Section "Modules"
                Load "dbe"
                Load "extmod"
                Load "glx"
                Load "type1"
                Load "freetype"
                Load "v4l"
            EndSection

    - You must also verify that your capture module is loaded
      before starting your X Server (for instance, as 'root' user,
      modprobe bttv for bttv based cards).

    - To reduce tearing, use a smaller resolution or lower the
      refresh rate.
User avatar
tuxx-home.at
Supreme Commander
Supreme Commander
 
Posts: 2199
Joined: Mon Jan 01, 2007 12:51 pm
Location: Vassach - Austria - Europe

Postby ubuntu-user » Fri Jul 06, 2007 7:47 pm

Thank you for your help. I tried that already and it made no difference.

tuxx-home.at wrote:
The parhelia card offers its own v4l driver. Did you try to install it already?
If it's installed, the first few lines of the xvinfo output should look like this:

Code: Select all
X-Video Extension version 2.2
screen #0
  Adaptor #0: "Matrox Parhelia"


You can see the difference in the "Adaptor #0" line where it should say
"Matrox Parhelia" after installing the Matrox v4l library.




From the Xorg log:
Code: Select all
(II) LoadModule: "v4l"
(II) Loading /usr/lib/xorg/modules/drivers//v4l_drv.so
(II) Module v4l: vendor="Matrox Graphics Inc."
        compiled for 7.2.0, module version = 0.0.1
        ABI class: X.Org Video Driver, version 1.1


But still from xvinfo output:

Code: Select all
X-Video Extension version 2.2
screen #0
  Adaptor #0: "video4linux"
    number of ports: 1
    port base: 56
    operations supported: PutVideo
    supported visuals:
      depth 24, visualID 0x21
    number of attributes: 8


Then crash after XV_FREQ as usual.

But if I comment out the v4l module in xorg.conf, then:

Code: Select all
X-Video Extension version 2.2
screen #0
  Adaptor #0: "Matrox Parhelia"
    number of ports: 1
    port base: 56
    operations supported: PutImage
    supported visuals:
      depth 24, visualID 0x21
    number of attributes: 4


And xvinfo exits normally.
ubuntu-user
Private
Private
 
Posts: 2
Joined: Thu Jul 05, 2007 8:26 pm

Postby tuxx-home.at » Sun Jul 08, 2007 5:18 pm

Ah, alright... Will have a look at this on Monday at work to see if this is an
issue of 1.4.5 or some kind of misconfiguration on your system.
User avatar
tuxx-home.at
Supreme Commander
Supreme Commander
 
Posts: 2199
Joined: Mon Jan 01, 2007 12:51 pm
Location: Vassach - Austria - Europe

Postby tuxx-home.at » Mon Jul 09, 2007 11:32 am

Well, that's strange. In my xorg.conf I have

Code: Select all
Section "Module"
   [...]
   Load "v4l"
   [...]
EndSection


in my Xorg.0.log I can see

Code: Select all
(II) LoadModule: "v4l"
(II) Loading /usr/lib/xorg/modules/drivers//v4l_drv.so
(II) Module v4l: vendor="Matrox Graphics Inc."
        compiled for 7.1.0, module version = 0.0.1
        ABI class: X.Org Video Driver, version 1.0
[...]
(II) v4l driver for Video4Linux


and `xvinfo` outputs the following without hanging my system:

Code: Select all
sh-3.1$ xvinfo
X-Video Extension version 2.2
screen #0
  Adaptor #0: "Matrox Parhelia"
    number of ports: 5
    port base: 60
    operations supported: PutImage
    supported visuals:
      depth 24, visualID 0x22
      depth 24, visualID 0x23
      depth 24, visualID 0x24
      depth 24, visualID 0x25
    number of attributes: 4
      "XV_BRIGHTNESS" (range -128 to 127)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_CONTRAST" (range -128 to 127)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_HUE" (range -128 to 127)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_SATURATION" (range -128 to 127)
              client settable attribute
              client gettable attribute (current value is 0)
    maximum XvImage size: 2048 x 2048
    Number of image formats: 4
      id: 0x32595559 (YUY2)
        guid: 59555932-0000-0010-8000-00aa00389b71
        bits per pixel: 16
        number of planes: 1
        type: YUV (packed)
      id: 0x32315659 (YV12)
        guid: 59563132-0000-0010-8000-00aa00389b71
        bits per pixel: 12
        number of planes: 3
        type: YUV (planar)
      id: 0x30323449 (I420)
        guid: 49343230-0000-0010-8000-00aa00389b71
        bits per pixel: 12
        number of planes: 3
        type: YUV (planar)
      id: 0x59565955 (UYVY)
        guid: 55595659-0000-0010-8000-00aa00389b71
        bits per pixel: 16
        number of planes: 1
        type: YUV (packed)


So I don't really know why this happens to you. The strange thing is that
when you remove the v4l option from your xorg.conf, the correct module
gets loaded and if you enable it, the wrong module gets loaded.
That's weird. How many v4l_drv.so files do exist on your system?
You could check that with:

Code: Select all
find / -name "v4l_drv.so"
User avatar
tuxx-home.at
Supreme Commander
Supreme Commander
 
Posts: 2199
Joined: Mon Jan 01, 2007 12:51 pm
Location: Vassach - Austria - Europe


Return to Matrox P-Series Cards

Who is online

Users browsing this forum: No registered users and 1 guest

cron