Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

qTox freezing when opening Webcam... #2353

Closed
alexeysvrv opened this issue Oct 7, 2015 · 15 comments
Closed

qTox freezing when opening Webcam... #2353

alexeysvrv opened this issue Oct 7, 2015 · 15 comments
Labels
C-bug The issue contains a bug report M-video Affected Module: Video upstream The problem is with a component from a 3rd party

Comments

@alexeysvrv
Copy link
Contributor

Hello. I Russian and i use Qtox. But CameraDevice.cpp error on 224(opendevice). Qtox is freeze. And only cloze Qtox - Ctrl+C in terminale. My system Ubuntu 14.04
none device
First screenshot - device None, second - opening camera and freeze. Help me please
opening camera device

@alexeysvrv
Copy link
Contributor Author

Sometimes closing from terminale with Ctrl+C not working and closing even "kill -9 PID Qtox"(SIGKILL) who are not working... Closing only with help HARD reset, because soft reset back to defautl theme on system

@alexeysvrv alexeysvrv reopened this Oct 7, 2015
@zetok zetok added C-bug The issue contains a bug report help wanted M-video Affected Module: Video labels Oct 7, 2015
@tux3
Copy link
Member

tux3 commented Oct 7, 2015

Does it work if you use your webcam in other programs?

@alexeysvrv
Copy link
Contributor Author

My webcam worked in other programs. In Skype and web browser webcam great are worked. This regression from jule, august mounts... Early all was OK!

@antis81
Copy link
Contributor

antis81 commented Oct 8, 2015

Experiencing this for quite some time now on my system (Lubuntu 14.04/15.04 on MacBook 2,1) as well. @tux3 I didn't have time yet to check your latest improvements.

@antis81 antis81 changed the title Qtox freezing when opening Webcam... qTox freezing when opening Webcam... Oct 8, 2015
@ghost
Copy link

ghost commented Oct 8, 2015

Can't reproduce on Mint 17.2 (Ubuntu 14.04 based). Tested with 9cafb31 and bfc62ab changing between None and the integrated camera several times.

@sudden6
Copy link
Member

sudden6 commented Oct 8, 2015

Another problem with cyrilic (or non ASCII chars in general) chars in device names?

@alexeysvrv
Copy link
Contributor Author

-6
Its my lsusb -v device Webcamera. Ciryllic i dont find in the name

@zetok
Copy link
Contributor

zetok commented Oct 9, 2015

@alexeysvrv instead of screenshot, could you just put the text in comment, in between (without space before "`"):

 ```
text
 ```

?

@alexeysvrv
Copy link
Contributor Author

@zetok I do it

Bus 001 Device 003: ID 0ac8:3610 Z-Star Microelectronics Corp. 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass          239 Miscellaneous Device
  bDeviceSubClass         2 ?
  bDeviceProtocol         1 Interface Association
  bMaxPacketSize0        64
  idVendor           0x0ac8 Z-Star Microelectronics Corp.
  idProduct          0x3610 
  bcdDevice            1.00
  iManufacturer           1 
  iProduct                2 
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          501
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              320mA
    Interface Association:
      bLength                 8
      bDescriptorType        11
      bFirstInterface         0
      bInterfaceCount         2
      bFunctionClass         14 Video
      bFunctionSubClass       3 Video Interface Collection
      bFunctionProtocol       0 
      iFunction               2 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass        14 Video
      bInterfaceSubClass      1 Video Control
      bInterfaceProtocol      0 
      iInterface              2 
      VideoControl Interface Descriptor:
        bLength                13
        bDescriptorType        36
        bDescriptorSubtype      1 (HEADER)
        bcdUVC               1.00
        wTotalLength           79
        dwClockFrequency       30.000000MHz
        bInCollection           1
        baInterfaceNr( 0)       1
      VideoControl Interface Descriptor:
        bLength                18
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID             1
        wTerminalType      0x0201 Camera Sensor
        bAssocTerminal          0
        iTerminal               0 
        wObjectiveFocalLengthMin      0
        wObjectiveFocalLengthMax      0
        wOcularFocalLength            0
        bControlSize                  3

@alexeysvrv
Copy link
Contributor Author

It's my strace log when i opening device webcam

write(2, "[09:52:28.781] src/video/cameras"..., 78[09:52:28.781] src/video/camerasource.cpp:294 : Debug: Closing device  "none"
) = 78
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1502, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1502, ...}) = 0
stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1502, ...}) = 0
fstat(2, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
write(9, "[09:52:28.782] src/video/cameras"..., 85) = 85
write(2, "[09:52:28.782] src/video/cameras"..., 85[09:52:28.782] src/video/camerasource.cpp:224 : Debug: Opening device  "/dev/video0"
) = 85
open("/dev/video0", O_RDWR)             = 16
ioctl(16, VIDIOC_QUERYCAP or VT_OPENQRY, 0x7fff822288a0) = 0
ioctl(16, VIDIOC_G_INPUT, 0x54c9360)    = 0
ioctl(16, VIDIOC_ENUMINPUT, 0x7fff82228cb0) = 0
ioctl(16, VIDIOC_G_FMT or VIDIOC_SUBDEV_G_FMT or VT_SENDSIG, 0x7fff82228d00) = 0
ioctl(16, VIDIOC_SUBDEV_S_FMT or VIDIOC_S_FMT or VT_RELDISP, 0x7fff82228830) = 0
ioctl(16, VIDIOC_SUBDEV_S_FMT or VIDIOC_S_FMT or VT_RELDISP, 0x7fff82228830) = 0
ioctl(16, VIDIOC_SUBDEV_S_FMT or VIDIOC_S_FMT or VT_RELDISP, 0x7fff82228830) = 0
ioctl(16, VIDIOC_SUBDEV_S_FMT or VIDIOC_S_FMT or VT_RELDISP, 0x7fff82228830) = 0
ioctl(16, VIDIOC_SUBDEV_S_FMT or VIDIOC_S_FMT or VT_RELDISP, 0x7fff82228830) = 0
ioctl(16, VIDIOC_G_STD, 0x54c9358)      = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(16, VIDIOC_G_PARM, 0x7fff82228d00) = 0
ioctl(16, VIDIOC_REQBUFS or VT_DISALLOCATE

@tux3
Copy link
Member

tux3 commented Oct 9, 2015

@alexeysvrv Could you try running it in a debugger, and taking a backtrace of all threads (thread apply all bt with gdb) when it's freezing so we know exactly where the problem is?

@antis81 Is your webcam USB as well?

@alexeysvrv
Copy link
Contributor Author

Sorry guys. All OK. I just update Linux kernel to version 4.2.3 from 3.16
Issue was in Linux Kernel. I can select resolution camera in options and camera normally worked.

@zetok zetok added the upstream The problem is with a component from a 3rd party label Oct 9, 2015
@agilob
Copy link
Contributor

agilob commented Oct 9, 2015

Now I remember I had the same problem on linux 2.6

@antis81
Copy link
Contributor

antis81 commented Oct 9, 2015

Hm… still having this problem with current 3.19 kernel. GUVCView works all fine though… ??

@tux3
Copy link
Member

tux3 commented Oct 9, 2015

@antis81 Could you try to get a backtrace?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C-bug The issue contains a bug report M-video Affected Module: Video upstream The problem is with a component from a 3rd party
Projects
None yet
Development

No branches or pull requests

6 participants