hongquan / CoBang

A QR code scanner desktop app for Linux
GNU General Public License v3.0
253 stars 26 forks source link

Can't make video work #35

Open lgbaldoni opened 3 years ago

lgbaldoni commented 3 years ago

Packaged 0.8.0 on openSUSE Tumbleweed, application start and it loads and properly decodes a file, but it doesn't show anything in the video tab.

This is what I see on startup:

** (__main__.py:7269): WARNING **: 18:36:19.319: AT-SPI: Could not obtain desktop path or name

** (__main__.py:7269): WARNING **: 18:36:19.325: atk-bridge: get_device_events_reply: unknown signature

** (__main__.py:7269): WARNING **: 18:36:19.326: atk-bridge: get_device_events_reply: unknown signature

** (__main__.py:7269): WARNING **: 18:36:19.326: atk-bridge: GetRegisteredEvents returned message with unknown signature

** (__main__.py:7269): WARNING **: 18:36:19.487: AT-SPI: Could not obtain desktop path or name

** (__main__.py:7269): WARNING **: 18:36:19.744: AT-SPI: Could not obtain desktop path or name

** (__main__.py:7269): WARNING **: 18:36:19.761: AT-SPI: Could not obtain desktop path or name

** (__main__.py:7269): WARNING **: 18:36:19.763: AT-SPI: Could not obtain desktop path or name

** (__main__.py:7269): WARNING **: 18:36:19.785: AT-SPI: Could not obtain desktop path or name

** (__main__.py:7269): WARNING **: 18:36:19.793: AT-SPI: Could not obtain desktop path or name

** (__main__.py:7269): WARNING **: 18:36:19.793: AT-SPI: Could not obtain desktop path or name

What could be possibly missing?

Full disclosure: I'm using a simulated webcam via v4l2loopback. It creates /dev/video0 and according to strace, CoBang is opening it. It also works from a web browser.

hongquan commented 3 years ago

Could you please give more info about your system: GTK version, GNOME version (if you use GNOME), GStreamer version?

lgbaldoni commented 3 years ago

Using GTK v3.24.29, plasma5 5.22.2.1 and GStreamer 1.18.4.

Also on launch, I see this error, but not always:

** (gst-plugin-scanner-x86_64:15184): CRITICAL **: 19:27:53.514: Couldn't g_module_open libpython. Reason: /usr/lib64/python3.8/config-3.8-x86_64-linux-gnu/libpython3.8.so: cannot open shared object file: No such file or directory

Further detail I forgot to mention; I'm running openSUSE Tumbleweed in a VirtualBox VM, but that shouldn't be a problem, should it?

hongquan commented 3 years ago

Using GTK v3.24.29, plasma5 5.22.2.1 and GStreamer 1.18.4.

This is almost the same as Ubuntu 21.04 on my PC. But these warning message I never seen before, look like they are from lower level than the application.

About

Couldn't g_module_open libpython

Sound like something wrong with your OpenSUSE installation.

hongquan commented 3 years ago

I'm running openSUSE Tumbleweed in a VirtualBox VM

I remember when I tested CoBang in VirtualBox, I faced something wrong, that I had to warn in README. But not remember what is exactly.

lgbaldoni commented 3 years ago

Sound like something wrong with your OpenSUSE installation.

I have a /usr/lib64/libpython3.8.so.1.0 on my system. Just not in that path and not the generic .so which is reserved to the linker, AFAIK.

I remember when I tested CoBang in VirtualBox, I faced something wrong, that I had to warn in README. But not remember what is exactly.

No USB subsystem by default, perhaps?

Anyway, this cobang window is what I see: how come the video source is not detected?

lgbaldoni commented 3 years ago

New warning:

(__main__.py:24854): dbind-WARNING **: 11:29:51.345: Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

(this is the only one now).

dbus-monitor shows some activity, and the following error lines appear only when cobang is running:

error time=1625132155.362351 sender=org.freedesktop.DBus -> destination=:1.279 error_name=org.freedesktop.DBus.Error.NameHasNoOwner reply_serial=9
error time=1625132155.362732 sender=org.freedesktop.DBus -> destination=:1.279 error_name=org.freedesktop.DBus.Error.NameHasNoOwner reply_serial=12
error time=1625132155.717096 sender=:1.39 -> destination=:1.279 error_name=org.gtk.GDBus.UnmappedGError.Quark._g_2dio_2derror_2dquark.Code16 reply_serial=110
error time=1625132155.717131 sender=:1.39 -> destination=:1.279 error_name=org.gtk.GDBus.UnmappedGError.Quark._g_2dio_2derror_2dquark.Code16 reply_serial=111

Couldn't debug further without knowing what to look for.

hongquan commented 3 years ago

No USB subsystem by default, perhaps?

No, it is related to graphic (display/render). Could you test with OpenSUSE on real machine and real webcam?