Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-s (autostart recording) does not work #3

Open
swick opened this issue Jun 11, 2012 · 2 comments
Open

-s (autostart recording) does not work #3

swick opened this issue Jun 11, 2012 · 2 comments
Labels

Comments

@swick
Copy link
Owner

swick commented Jun 11, 2012

$glc-capture -s -l test.log -o test.glc sh -c "cd ~/.wine/drive_c/The\ Elder\ Scrolls\ V-\ Skyrim/ && wine TESV.exe" >/dev/null 2>&1
$cat test.log
[   0.06s       file error ] can't lock file: Die Ressource ist zur Zeit nicht verfügbar (11)
[   0.06s       main error ] can't start capturing: Die Ressource ist zur Zeit nicht verfügbar (11)

starting with the shortcut works fine

@ghost
Copy link

ghost commented Sep 1, 2012

The same problem here:

$ glc-capture --start --pulseaudio --fps=24 --out=glc-test wine gta_sa.exe --log=0

[ 0.24s file error ] can't lock file: Recurso temporariamente indisponível (11)
[ 0.24s main error ] can't start capturing: Recurso temporariamente indisponível (11)

This happens only in some applications. Starting without --start and recording with shift+f8 works

@swick
Copy link
Owner Author

swick commented Sep 6, 2012

The problem is that LD_PRELOAD starts glc in every child proccess (which uses a overridden function). Wine starts a lot child proccesses (wine-preloader) and glc locks the *.glc file in the wrong proccess.
There is no way to know if the current proccess is the one you want to record (at least no way that works automatically all the time) therefore glc should append a number to the filename if the file allready exists (filename.glc filename.glc.1 filename.glc.2 ...)
I'm not 100% sure, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant