Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.3.0
-
None
Description
I was trying to use the QCamera class but failed, so then I tried with one of the examples, which fails as well, just showing a black window, while the same example on android seems to work fine.
I tried with the declarative-camera example. And nothing comes from my webcam and the LED doesn't go on. The webcam works fine with v4l2 software and has a device called /dev/video0.
On the computer I get this output:
```
Starting /opt/Qt5.3.0/Examples/Qt-5.3/multimedia/build-declarative-camera-Desktop_Qt_5_3_0_GCC_64bit-Debug/declarative-camera...
QML debugging is enabled. Only use this in a safe environment.
(declarative-camera:29347): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(declarative-camera:29347): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
(declarative-camera:29347): GStreamer-CRITICAL **: gst_object_ref_sink: assertion 'GST_IS_OBJECT (object)' failed
(declarative-camera:29347): GStreamer-CRITICAL **: gst_element_get_bus: assertion 'GST_IS_ELEMENT (element)' failed
(declarative-camera:29347): GStreamer-CRITICAL **: gst_bus_add_watch_full: assertion 'GST_IS_BUS (bus)' failed
(declarative-camera:29347): GStreamer-CRITICAL **: gst_bus_set_sync_handler: assertion 'GST_IS_BUS (bus)' failed
(declarative-camera:29347): GStreamer-CRITICAL **: gst_object_ref: assertion 'object != NULL' failed
(declarative-camera:29347): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed
(declarative-camera:29347): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed
(declarative-camera:29347): GLib-GObject-CRITICAL **: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(declarative-camera:29347): GLib-GObject-CRITICAL **: g_object_get: assertion 'G_IS_OBJECT (object)' failed
(declarative-camera:29347): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed
(declarative-camera:29347): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed
(declarative-camera:29347): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed
(declarative-camera:29347): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed
(declarative-camera:29347): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed
(declarative-camera:29347): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed
(declarative-camera:29347): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed
(declarative-camera:29347): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed
```