[Gambas-user] Issue 463 in gambas: v4l webcam remains idle when close program, and can be used

gambas at ...2524... gambas at ...2524...
Fri Sep 27 22:21:12 CEST 2013


Status: New
Owner: ----
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Debian Arch-Any  
Desktop-Any GUI-Any Usability Maintainability

New issue 463 by mckayger... at ...626...: v4l webcam remains idle when close  
program, and can be used
http://code.google.com/p/gambas/issues/detail?id=463

1) Describe the problem.

i have strange behavior with v4l webcam

i have a subprocess, but in some cases, if program close, webcam are  
still "opened"

so then when reopen my program i cannot use again webcam due are "busy"

2) INFORMATIONS (if they are appropriate):

Version: 3.4.0 + (patched with bugfixed from 3.4.2)
Operating system: Linux
Distribution: Debian/VenenuX
Architecture: x86
GUI component: QT4/GTK+
Desktop used: LXDE

3) Provide a little project that reproduces the bug or the crash.

Not necesary, use this code:

Public hWebCam
Public sub useWebCam()
  Try hWebCam = New VideoDevice(FMain.datos.getCamaraDev())
     If Error Then
         Print "Error accediendo al dispositivo: " & Error.Text
     Endif
End

If close and reopen my program, output said that webcam are busy:

gb.v4l: v4l2: Device is V4L2!: No existe el fichero o el directorio
gb.v4l: v4l2: cropping not supported: Argumento inválido
gb.v4l: v4l2: VIDIOC_S_FMT, can't set YUYV, trying YUV 420: Dispositivo o  
recurso ocupado
gb.v4l: v4l2: VIDIOC_S_FMT, can't set YUV420, defaulting : Dispositivo o  
recurso ocupado
gb.v4l: v4l2: mmap not supported or error: Dispositivo o recurso ocupado
gb.v4l: v4l2: VIDIOC_STREAMOFF error: Descriptor de fichero erróneo
gb.v4l: v4l2: error closing device: Descriptor de fichero erróneo


5) Explain clearly how to reproduce the bug or the crash.

use the example Mywebcam from ide, and made the usage of webcam directly,  
then close and reopen program,

output are same as above


-- 
You received this message because this project is configured to send all  
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings


More information about the User mailing list