recordMyDesktop error: Window size specification out of bounds!

Bug #621188 reported by autostatic
50
This bug affects 10 people
Affects Status Importance Assigned to Milestone
recordmydesktop (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: recordmydesktop

When using recordMyDesktop with JACK I get the following error message when using recordMydesktop:

#This is the command given at initialization:
recordmydesktop -o /home/username/out.ogv --fps 15 -x 151 -y 163 --width 863 --height 562 --channels 2 --freq 48000 --v_quality 63 --s_quality 10 --workdir /tmp --use-jack system:capture_1 system:capture_2

#recordMyDesktop stderror output:
Window size specification out of bounds!(current resolution:2560x1024)

When I don't specify JACK as the audio output recordMyDesktop runs fine.

Source package: recordmydesktop-0.3.8.1+svn602-1ubuntu1

1) lsb_release -rd
Description: Ubuntu 10.04.1 LTS
Release: 10.04

2) apt-cache policy recordmydesktop
recordmydesktop:
  Installed: 0.3.8.1+svn602-1ubuntu1
  Candidate: 0.3.8.1+svn602-1ubuntu1
  Version table:
 *** 0.3.8.1+svn602-1ubuntu1 0
        500 http://nl.archive.ubuntu.com/ubuntu/ lucid/universe Packages
        100 /var/lib/dpkg/status

3) recordMyDesktop should start recording and should use the JACK ports I assigned as the sound inputs.

4) recordMyDesktop exits with an error message: Window size specification out of bounds!(current resolution:2560x1024)

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: recordmydesktop 0.3.8.1+svn602-1ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-24.39-generic 2.6.32.15+drm33.5
Uname: Linux 2.6.32-24-generic i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Fri Aug 20 16:47:13 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: recordmydesktop

Revision history for this message
autostatic (autostatic) wrote :
Revision history for this message
autostatic (autostatic) wrote :

If I repeat the recordMydeskTop command several times after one another it finally starts capturing after about 8 times:

username@pc:~/Desktop$ recordmydesktop -o /home/username/out.ogv --fps 15 -x 151 -y 163 --width 863 --height 562 --channels 2 --freq 48000 --v_quality 63 --s_quality 10 --workdir /tmp --use-jack system:capture_1 system:capture_2
Window size specification out of bounds!(current resolution:2560x1024)
username@pc:~/Desktop$ recordmydesktop -o /home/username/out.ogv --fps 15 -x 151 -y 163 --width 863 --height 562 --channels 2 --freq 48000 --v_quality 63 --s_quality 10 --workdir /tmp --use-jack system:capture_1 system:capture_2
Window size specification out of bounds!(current resolution:2560x1024)
username@pc:~/Desktop$ recordmydesktop -o /home/username/out.ogv --fps 15 -x 151 -y 163 --width 863 --height 562 --channels 2 --freq 48000 --v_quality 63 --s_quality 10 --workdir /tmp --use-jack system:capture_1 system:capture_2
Window size specification out of bounds!(current resolution:2560x1024)
username@pc:~/Desktop$ recordmydesktop -o /home/username/out.ogv --fps 15 -x 151 -y 163 --width 863 --height 562 --channels 2 --freq 48000 --v_quality 63 --s_quality 10 --workdir /tmp --use-jack system:capture_1 system:capture_2
Window size specification out of bounds!(current resolution:2560x1024)
username@pc:~/Desktop$ recordmydesktop -o /home/username/out.ogv --fps 15 -x 151 -y 163 --width 863 --height 562 --channels 2 --freq 48000 --v_quality 63 --s_quality 10 --workdir /tmp --use-jack system:capture_1 system:capture_2
Window size specification out of bounds!(current resolution:2560x1024)
username@pc:~/Desktop$ recordmydesktop -o /home/username/out.ogv --fps 15 -x 151 -y 163 --width 863 --height 562 --channels 2 --freq 48000 --v_quality 63 --s_quality 10 --workdir /tmp --use-jack system:capture_1 system:capture_2
Window size specification out of bounds!(current resolution:2560x1024)
username@pc:~/Desktop$ recordmydesktop -o /home/username/out.ogv --fps 15 -x 151 -y 163 --width 863 --height 562 --channels 2 --freq 48000 --v_quality 63 --s_quality 10 --workdir /tmp --use-jack system:capture_1 system:capture_2
Window size specification out of bounds!(current resolution:2560x1024)
username@pc:~/Desktop$ recordmydesktop -o /home/username/out.ogv --fps 15 -x 151 -y 163 --width 863 --height 562 --channels 2 --freq 48000 --v_quality 63 --s_quality 10 --workdir /tmp --use-jack system:capture_1 system:capture_2
Initial recording window is set to:
X:1376 Y:163 Width:863 Height:562
Adjusted recording window is set to:
X:1376 Y:156 Width:864 Height:576
Your window manager appears to be compiz

Detected compositing window manager.
Reverting to full screen capture at every frame.
To disable this check run with --no-wm-check
(though that is not advised, since it will probably produce faulty results).

Initializing...
Capturing!

----

And yes, in this case I'm running Compiz and JACK at once, but I have the same issue with Metacity.

Revision history for this message
Orm Finnendahl (o-finnendahl) wrote :

Same issue here: Ubuntu Lucid on amd64. Disabling Jack works, with enabled jack it never works, not even after repeated efforts as reported above.

Revision history for this message
Rafał Cieślak (rafalcieslak256) wrote :

Affects me on ubuntu maverick. I had to repeat it about 80 times to make it work, but I hung when I stopped playback. If I do not use jack, it captures everything without any trouble.

Changed in recordmydesktop (Ubuntu):
status: New → Confirmed
Revision history for this message
Rafał Cieślak (rafalcieslak256) wrote :

Well, in fact it gives me tons of different errors when I try to use JACK, and none when I do not use it.

Revision history for this message
James (morris-570) wrote :

Same problem here. Would really like to see this fixed as I need this working badly.

Revision history for this message
Carlos Gomes (crlsgms) wrote :

same issue here. But mine is a little different, I really need to use jack as input, so im sticking with the inputs, as this:

recordmydesktop -o radio -x 0 -y 0 --full-shots --fps 15 --channels 2 --freq 44100 --use-jack bridge-5336:monitor_1 bridge-5336:monitor_4 --v_quality 63 --s_quality 10 --v_bitrate 2000000 --delay 5 --width 1024 --height 768

with always giving me the akward error:
Window size specification out of bounds!(current resolution:1024x768)

If I dont specify the window size, it works but grabs a tiny bit of the screen when it woks, but always with the repeated commands waiting for the one that works, as mentioned above the 8 to 80 tries:

guerrilha@dtcrshr:~/Vídeos$ recordmydesktop -o radio --full-shots --fps 15 --channels 2 --freq 44100 --use-jack bridge-5336:monitor_1 bridge-5336:monitor_4 --v_quality 63 --s_quality 10 --v_bitrate 2000000
Initial recording window is set to:
X:-11264 Y:0 Width:12288 Height:768
Adjusted recording window is set to:
X:-11264 Y:0 Width:12288 Height:768
Your window manager appears to be Metacity

Initializing...
Failed to obtain Shared Memory segment!
Capturing!
guerrilha@dtcrshr:~/Vídeos$ recordmydesktop -o radio --full-shots --fps 15 --channels 2 --freq 44100 --use-jack bridge-5336:monitor_1 bridge-5336:monitor_4 --v_quality 63 --s_quality 10 --v_bitrate 2000000
Initial recording window is set to:
X:1024 Y:0 Width:0 Height:768
Adjusted recording window is set to:
X:1024 Y:0 Width:0 Height:768
Your window manager appears to be Metacity

Initializing...
Capturing!
Failed to obtain Shared Memory segment!
guerrilha@dtcrshr:~/Vídeos$ recordmydesktop -o radio --full-shots --fps 15 --channels 2 --freq 44100 --use-jack bridge-5336:monitor_1 bridge-5336:monitor_4 --v_quality 63 --s_quality 10 --v_bitrate 2000000
Initial recording window is set to:
X:-15360 Y:0 Width:16384 Height:768
Adjusted recording window is set to:
X:-15360 Y:0 Width:16384 Height:768
Your window manager appears to be Metacity

Initializing...
Failed to obtain Shared Memory segment!
Capturing!
guerrilha@dtcrshr:~/Vídeos$ recordmydesktop -o radio --full-shots --fps 15 --channels 2 --freq 44100 --use-jack bridge-5336:monitor_1 bridge-5336:monitor_4 --v_quality 63 --s_quality 10 --v_bitrate 2000000
Initial recording window is set to:
X:-11264 Y:0 Width:12288 Height:768
Adjusted recording window is set to:
X:-11264 Y:0 Width:12288 Height:768
Your window manager appears to be Metacity

Initializing...
Failed to obtain Shared Memory segment!
Capturing!
guerrilha@dtcrshr:~/Vídeos$ recordmydesktop -o radio --full-shots --fps 15 --channels 2 --freq 44100 --use-jack bridge-5336:monitor_1 bridge-5336:monitor_4 --v_quality 63 --s_quality 10 --v_bitrate 2000000
Initial recording window is set to:
X:-15360 Y:0 Width:16384 Height:768
Adjusted recording window is set to:
X:-15360 Y:0 Width:16384 Height:768
Your window manager appears to be Metacity

Initializing...
Failed to obtain Shared Memory segment!
Capturing!

odd thing is that it always gets the height right, but the numbers in the width and X orientation are randomly selected, and I cant specify them.

Revision history for this message
Daniele E. Domenichelli (daniele.domenichelli) wrote :

I made some investigation and I found that the problem is in the parsing of the command line, exactly in line 301 of file rmd_parseargs.c

   while ((arg_id = poptGetNextOpt(popt_context)) > 0) {

arg_return->x is 0 just before this line and is set with some random number right after, so the problem might be in popt library

As a very ugly hack to check that the problem is exactly in that line I tried to reset to 0 arg_return->x in the next line and now it works!

Revision history for this message
Rafał Cieślak (rafalcieslak256) wrote : Re: [Bug 621188] Re: redordMyDesktop error: Window size specification out of bounds!

Which version of that file did you use?
I got the source of version 0.3.8.1, and in file rmd_parseargs.c there
is no such line.

Revision history for this message
Rafał Cieślak (rafalcieslak256) wrote :

Oh, sorry - got the trunk source, and there it is.

autostatic (autostatic)
summary: - redordMyDesktop error: Window size specification out of bounds!
+ recordMyDesktop error: Window size specification out of bounds!
Revision history for this message
Daniele E. Domenichelli (daniele.domenichelli) wrote :

I'm using version 0.3.8.1 too
I found that the real bug is not there but in lines

193 { "use-jack", '\0',
194 POPT_ARG_STRING | RMD_USE_JACK_EXTRA_FLAG, &arg_return->x, RMD_ARG_USE_JACK,

replacing &arg_return->x with 0 fix this issue

193 { "use-jack", '\0',
194 POPT_ARG_STRING | RMD_USE_JACK_EXTRA_FLAG, 0, RMD_ARG_USE_JACK,

There is still some problem with "--use-jack", because even though the documentation says that recordmydesktop will connect to all the ports specified, it connects only to the first.
But maybe it should be reported as a different bug, fixing line 194 is enough to close this bug...

Revision history for this message
Rafał Cieślak (rafalcieslak256) wrote : Re: [Bug 621188] Re: recordMyDesktop error: Window size specification out of bounds!

Yes, the previous fix did not work for me. I will try this one as soon as
possible.

Revision history for this message
autostatic (autostatic) wrote :

#11: This does fix the JACK issue but introduces a new one, namely that you can't select specific windows anymore.

Revision history for this message
autostatic (autostatic) wrote :
Revision history for this message
Torbjörn Rathsman (milasudril) wrote :

The package has not been fixed in 16.04

Revision history for this message
Martin Nordholts (enselic) wrote :

This is fixed in the official 0.4.0 release found here: https://github.com/Enselic/recordmydesktop/releases/tag/v0.4.0

Changed in recordmydesktop (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package recordmydesktop - 0.4.0-0ubuntu1

---------------
recordmydesktop (0.4.0-0ubuntu1) hirsute; urgency=medium

  * New upstream release 0.4.0
  * Respect TMPDIR if set instead of always using /tmp (Closes: #706574)
  * Fix crash when XFixesGetCursorImage() returns NULL (LP: #673171)
  * Fix video encoding with newer versions of libtheora by
    defaulting v_bitrate to 0
  * Change default ALSA device to "default"
  * Make --rescue work again, thanks to Justin Frankel
  * Completey reformat man page, thanks to G. Branden Robinson (Closes: #859686)
  * Typo fix: Cleanning -> Cleaning (Closes: #584269)
  * Use libpopt for option parsing
  * configure: Fix check for libjack
  * Fixes window size specification out of bounds (LP: #621188)
  * Fixes issues when running with Jack (LP: #682205)
  * debian/copyright: update to current standards
  * debian/control: bump standards, compat, new homepage
  * Remove obsolete patches

 -- Erich Eickmeyer <email address hidden> Sun, 14 Mar 2021 16:48:56 -0700

Changed in recordmydesktop (Ubuntu):
status: Fix Committed → Fix Released
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.