fails to start without -nodga option

Bug #76501 reported by Lukas Sabota
40
Affects Status Importance Assigned to Milestone
xawtv (Debian)
Fix Released
Unknown
xawtv (Ubuntu)
Fix Released
Low
Unassigned
Nominated for Gutsy by Peter Funk

Bug Description

Binary package hint: xawtv

I'm running Edgy on x86. When I start xawtv, I get this output:
This is xawtv-3.95, running on Linux/i686 (2.6.17-10-386)
X Error of failed request: XF86DGANoDirectVideoMode
  Major opcode of failed request: 136 (XFree86-DGA)
  Minor opcode of failed request: 1 (XF86DGAGetVideoLL)
  Serial number of failed request: 65
  Current serial number in output stream: 65

I'm ready and willing to provide more information to fix this bug.

TEST CASE:
 Make sure the system is effected: On a gutsy system with NVidia graphics
 run:
  xdpyinfo -queryExtensions | grep NV-GLX
 which should return something like
  NV-GLX (opcode: 146)
 Try to run xawtv from the command line.

Revision history for this message
Chris Rose (chris-vault5) wrote :

Thank you for your bug report.

Can you still reproduce this? If so, does it go away if you run xawtv with the -nodga option?

xawtv -nodga

Changed in xawtv:
assignee: nobody → chris-vault5
importance: Undecided → Low
status: Unconfirmed → Needs Info
Revision history for this message
Diego Gaustein (gregorovius) wrote :

I can reproduce this on latest Feisty. It does work with the -nodga option. I believe it's related to the nvidia-glx drivers.

Revision history for this message
Philippe Chabbert (p-chabbert) wrote :

Same problem with feisty, AMD64, nvidia 7600GS and Pinnacle pctv card (BT878).
Error message when starting xawtv in a terminal :

This is xawtv-3.95.dfsg.1, running on Linux/x86_64 (2.6.20-15-generic)
X Error of failed request: XF86DGANoDirectVideoMode
  Major opcode of failed request: 136 (XFree86-DGA)
  Minor opcode of failed request: 1 (XF86DGAGetVideoLL)
  Serial number of failed request: 67
  Current serial number in output stream: 67

xawtv was working fine on my old pc (same tv card, dapper and nvidia legacy driver for a Geforce2)

Changed in xawtv:
assignee: chris-vault5 → nobody
Revision history for this message
houstonbofh (leesharp) wrote :

One more on Feisty with nvidia 7xxx graphics. Easy workaround (-nodga) that is not trivial to find. I am surprised that this bug has been around so long with no change.

Changed in xawtv:
status: Needs Info → Confirmed
Revision history for this message
Jorge Suárez de Lis (ys) wrote :

What about adding a wrapper script that adds -nodga by default if an nvidia driver is detected?

------------------8<--------------------

#!/bin/bash

unset ARGS
if [ `xdpyinfo -queryExtensions | grep NV-GLX` ] ; then
  ARGS="-nodga"

/usr/lib/xawtv/waxtv.bin $ARGS $@

------------------8<--------------------

Revision history for this message
Mihai Niculescu (q-quark) wrote :

I have the same problem and output information just as Philippe Chabbert, except I have Intel P4, Nvidia GeForce 2 MMX, I use nvidia restricted drivers and my Tuner is Kworld

Revision history for this message
houstonbofh (leesharp) wrote :

This bug was marked "expired" today. However, since the last activity I have helped several people involved in the zoneminder project using ubuntu with this bug. It is still unpatched, and still a problem. The wrapper script is a viable patch, so why not use it before letting the bug die on the vine?

Revision history for this message
Diego Gaustein (gregorovius) wrote :

I agree with houstonbofh, if the solution is to simply add a wrapper script, it should be done before closing this bug... MOTUs? :)

Revision history for this message
aguy (astyguy-deactivatedaccount) wrote :

Same problem on gutsy

xawtv
[: 12: (opcode:: unexpected operator
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.22-14-generic)
xinerama 0: 1024x768+0+0
X Error of failed request: XF86DGANoDirectVideoMode
  Major opcode of failed request: 136 (XFree86-DGA)
  Minor opcode of failed request: 1 (XF86DGAGetVideoLL)
  Serial number of failed request: 69
  Current serial number in output stream: 69

Revision history for this message
Krzysztof Burghardt (burghardt) wrote : Re: [Bug 76501] Re: fails to start

2007/10/16, blokeinlondon <email address hidden>:
> Same problem on gutsy
>
> xawtv
> [: 12: (opcode:: unexpected operator
> This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.22-14-generic)
> xinerama 0: 1024x768+0+0
> X Error of failed request: XF86DGANoDirectVideoMode
> Major opcode of failed request: 136 (XFree86-DGA)
> Minor opcode of failed request: 1 (XF86DGAGetVideoLL)
> Serial number of failed request: 69
> Current serial number in output stream: 69

Try: xawtv -nodga

--
Krzysztof Burghardt <email address hidden>
http://www.burghardt.pl/

Revision history for this message
aguy (astyguy-deactivatedaccount) wrote : Re: fails to start

CAN SOMEONE FROM UBUNTU PLEASE REMOVE MY E-MAIL ADDRESS FROM PREVIOUS COMMENT !

Revision history for this message
aguy (astyguy-deactivatedaccount) wrote :

xawtv -nodga
[: 12: (opcode:: unexpected operator
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.22-14-generic)
xinerama 0: 1024x768+0+0
X Error of failed request: XF86DGANoDirectVideoMode
  Major opcode of failed request: 136 (XFree86-DGA)
  Minor opcode of failed request: 1 (XF86DGAGetVideoLL)
  Serial number of failed request: 13
  Current serial number in output stream: 13
v4l-conf had some trouble, trying to continue anyway
v4l2: WARNING: framebuffer size mismatch
v4l2: me=1024x768 v4l=0x0
Warning: Cannot convert string "-*-ledfixed-medium-r-*--39-*-*-*-c-*-*-*" to type FontStruct

Revision history for this message
aguy (astyguy-deactivatedaccount) wrote :

CAN SOMEONE FROM UBUNTU PLEASE REMOVE MY E-MAIL ADDRESS FROM PREVIOUS COMMENT !

Revision history for this message
Krzysztof Burghardt (burghardt) wrote : Re: [Bug 76501] Re: fails to start

2007/10/16, blokeinlondon <email address hidden>:
> xawtv -nodga
> [: 12: (opcode:: unexpected operator

This is a bug in wrapper. Could you apply patch from
http://bugs.debian.org/444447 and tell me if it helps (should work
without passing -nodga).

--
Krzysztof Burghardt <email address hidden>
http://www.burghardt.pl/

Revision history for this message
Tormod Volden (tormodvolden) wrote : Re: fails to start

blokeinlondon, I commented on a similar issue in bug number 111147.

Revision history for this message
Tormod Volden (tormodvolden) wrote :

In Gutsy, with an ATI Radeon Mobility X700 and xserver-xorg-video-ati, I also have to use -nodga, otherwise it craps out with
"X Error of failed request: XF86DGANoDirectVideoMode"

Revision history for this message
Colin Dean (colindean) wrote :

Running gutsy amd64, nvidia-glx-new on an 8800 GTX and an OnAir HDTV-GT USB capture card. I did read somewhere that the OnAir card wasn't supported, but that was in Edgy. I can't confirm that it's working at all in Gutsy because, well, I don't know how to confirm it other than to use xawtv and lsusb, which shows some information about the adapter (but getting that working is not a goal of this bug)

$ xawtv -nodga
[: 12: (opcode:: unexpected operator
This is xawtv-3.95.dfsg.1, running on Linux/x86_64 (2.6.22-14-generic)
xinerama 0: 1680x1050+0+0
X Error of failed request: XF86DGANoDirectVideoMode
  Major opcode of failed request: 137 (XFree86-DGA)
  Minor opcode of failed request: 1 (XF86DGAGetVideoLL)
  Serial number of failed request: 13
  Current serial number in output stream: 13
v4l-conf had some trouble, trying to continue anyway
v4l2: open /dev/video0: No such file or directory
v4l2: open /dev/video0: No such file or directory
v4l: open /dev/video0: No such file or directory
no video grabber device available

Revision history for this message
Peter Funk (pf-artcom-gmbh) wrote :

7.10 (gutsy): We patched the shell-wrapper script /usr/bin/xawtv:

Replace the line number 12 which contains the following
  if [ `xdpyinfo -queryExtensions | grep NV-GLX` ] ; then
with either
  if [ "`xdpyinfo -queryExtensions | grep NV-GLX`" ] ; then
or more elegant
  if xpdyinfo --queryExtensions | grep -q NV-GLX ; then

This is because the command returns something like
NV-GLX (opcode: 146)
which is invalid as a CONDITIONAL EXPRESSION in bash
without the surrounding quotes.

After that the patch xawtv started without the problem.
This trivial patch should make into the gutsy package.

Revision history for this message
Peter Funk (pf-artcom-gmbh) wrote :

Please apply the trivial patch to the shell wrapper script /usr/bin/xawtv, which I described
https://bugs.launchpad.net/ubuntu/+source/xawtv/+bug/76501/comments/18
Thank you very much.

Changed in xawtv:
assignee: nobody → dktrkranz
Revision history for this message
Tormod Volden (tormodvolden) wrote :

This has been fixed in Hardy, so please file a SRU or backport request if you want it fixed in Gutsy.

Changed in xawtv:
assignee: dktrkranz → nobody
status: Confirmed → Fix Released
Revision history for this message
Peter Funk (pf-artcom-gmbh) wrote :

This is my first StableReleaseUpdate Proposal for Gutsy:
1. statement explaining the impact:
  xawtv will not start up due to shell script syntax error (For end users this
  as serious as a segfault on startup in a binary application), if the system
  in question is equipped with a NVidia graphics card and driver.
  NVidia graphics cards are widespread, so many users are effected.
  Without this patch the program is unuable on Gutsy with a NVidia.
2. how the bug has been addressed:
  see https://bugs.launchpad.net/ubuntu/+source/xawtv/+bug/76501/comments/18
  or the description of https://bugs.launchpad.net/ubuntu/+source/xawtv/+bug/157547,
  where Luca Falavigna wrote:
  xawtv (3.95.dfsg.1-7) unstable; urgency=low
  * Applied Tim Connors's patch for xawtv wrapper (Closes: #444447)
3. A patch:
  Since only a single line of code is effected, a patch file is overkill.
  See https://bugs.launchpad.net/ubuntu/+source/xawtv/+bug/76501/comments/18
4. Detailed instructions how to reproduce the bug:
  Try to run xawtv from the menu or the command line on a computer equipped
  with NVidia graphics. Try the command
    xdpyinfo -queryExtensions | grep NV-GLX
  first to make sure the test system is effected by the problem: This should return
  a line similar to this string here: " NV-GLX (opcode: 146)"
5. A discussion of the regression potential:
  Almost no risk, because the patch only removes a trivial shell syntax error.

description: updated
Changed in xawtv:
status: Unknown → Fix Released
Revision history for this message
Tormod Volden (tormodvolden) wrote :

And if a patch is needed, here is the debdiff.

Revision history for this message
tpost001 (tpost001) wrote :

Intersting. I have an ati All-In-Wonder 8500DV (R200) and I am having similar troubles. I got the tv to work once. Don't know what went wrong since. When I try xawtv -nodga I get:

This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.22-14-generic)
xinerama 0: 1280x1024+0+0
Warning: Cannot convert string "-*-ledfixed-medium-r-*--39-*-*-*-c-*-*-*" to type FontStruct
config: invalid value for input: (null)
valid choices for "input": "composite", "tuner", "svideo"
config: invalid value for norm: (null)
valid choices for "norm": "XV_IMAGE", "pal", "ntsc", "secam", "pal_60"

I can set the configurator as many times as I want and click save, and I still get the same. The values don't want to stick. I personally think that the program is looking for stuff that was put somewhere else.

Revision history for this message
Tharakan (tharakan) wrote :

The wrapper script for xawtv has most of what is here in the discussion, but for people who don't have an NVIDIA card, xawtv still does not start with the default /usr/bin/xawtv script. I have an ubuntu 8.04 and the default error message (without adding a manual -nodga) still gives the same XF86DGANoDirectVideoMode error message.

For me, (contrary to what peter funk added on 29th Feb 2008), the if condition without the double quotes works fine for me.

That is rather than this script (which comes with ubuntu 8.04)...

if [ ! "$XAWTV_USE_DGA" ] &&
   [ -n "`xdpyinfo -queryExtensions | grep NV-GLX`" ] ; then
        ARGS="-nodga"
fi

the following script atleast gets xawtv working for me :

if [ ! "$XAWTV_USE_DGA" ] &&
   [ -n `xdpyinfo -queryExtensions | grep NV-GLX` ] ; then
        ARGS="-nodga"
fi

I am not a shell script expert, and so please pardon my ignorance, if I be talking something out of the blue here.

Revision history for this message
gigabeast (lorod-speed) wrote :

try to edit /etc/X11/xorg.conf
add this in that file :

Section "Modules"
Load "v4l"
EndSection

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.