Xvidcap exits with "BadMatch" error

Bug #708332 reported by jdb2
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xvidcap (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: xvidcap

When trying to record video from a Firefox window which contains an embedded flash video Xvidcap fails after the "Start recording" button is clicked with this error :

"
The program 'xvidcap' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 1808 error_code 8 request_code 139 minor_code 4)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
"

I've tried the latest version of Opera so this is not a Firefox specific issue.

The error can be reproduced on this page :

http://www.gameinformer.com/b/news/archive/2011/01/21/exclusive-duke-nukem-forever-has-a-release-date.aspx

Here is my system information :

Distribution : Linux Mint 9 Isadora KDE 64-bit ( equivalent to Kubuntu 10.04 Lucid )

'uname -a' :

Linux aleph1 2.6.32-27-generic #49-Ubuntu SMP Thu Dec 2 00:51:09 UTC 2010 x86_64 GNU/Linux

'lsb_release -a' :

No LSB modules are available.
Distributor ID: LinuxMint
Description: Linux Mint 9 Isadora
Release: 9
Codename: isadora

'apt-cache policy xvidcap' :

xvidcap:
  Installed: 1.1.7-0.2ubuntu8
  Candidate: 1.1.7-0.2ubuntu8
  Version table:
 *** 1.1.7-0.2ubuntu8 0
        500 http://archive.ubuntu.com/ubuntu/ lucid/multiverse Packages
        100 /var/lib/dpkg/status

'kde4-config --version' :

Qt: 4.7.0
KDE Development Platform: 4.5.3 (KDE 4.5.3)
kde4-config: 1.0

Revision history for this message
jdb2 (jonathanbusby) wrote :
Revision history for this message
jdb2 (jonathanbusby) wrote :

I forgot to mention the command I used :

xvidcap --fps 30000/1001 --audio yes --window 0x6000065 -v --file duke.avi

jdb2 (jonathanbusby)
tags: added: avi
removed: mpeg2
Revision history for this message
jdb2 (jonathanbusby) wrote :

I've verified that gtk-recordmydesktop works on the above mentioned web page.

Revision history for this message
jdb2 (jonathanbusby) wrote :

I can confirm that this bug is still present in the latest release of Lucid ( Linux aleph1 2.6.38-8-generic #42~lucid1-Ubuntu SMP Mon Apr 11 13:45:06 UTC 2011 x86_64 GNU/Linux ).

Trying to capture video from a Firefox 4.0.1 window -- just a Gmail session in this case -- results in an error similar to the above after pressing the "record" button :

jdb2@aleph1 ~/screencap $ xvidcap --fps 30000/1001 --sf --auto --file cap%0.9.ppm --gui yes --window 0x580006c
The program 'xvidcap' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 2054 error_code 8 request_code 139 minor_code 4)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Debugging output is attached.

Revision history for this message
jdb2 (jonathanbusby) wrote :
Revision history for this message
jdb2 (jonathanbusby) wrote :

Looks like in this particular case, unlike the previous one involving the embedded video, xvidcap is crashing because I did not select an area to be captured.

Here's more extensive debugging information for what it's worth. Note that I've compiled xvidcap from the source package and run GDB against it.

Revision history for this message
jdb2 (jonathanbusby) wrote :
Revision history for this message
jdb2 (jonathanbusby) wrote :

Comment #6 has the wrong text file attached. Here is the correct one.

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

Other bug subscribers

Remote bug watches

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