Shubhamai / StableView

Easy, fast and efficient Head Tracking application using only webcam.
MIT License
114 stars 4 forks source link

Crashes under Proton; cannot find webcam #66

Open raven-intheclouds opened 10 months ago

raven-intheclouds commented 10 months ago

Logs

2024-02-01T19:50:33.115719Z  WARN StableView: Version 0.0.2 on windows
2024-02-01T19:50:33.116110Z  WARN StableView: The configuration file path is: "C:\\users\\deck\\AppData\\Roaming\\StableView\\config\\config.toml"
2024-02-01T19:51:03.752302Z ERROR StableView::camera: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:51:03.752557Z ERROR StableView::structs::state: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:51:03.754485Z ERROR StableView::camera: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:51:03.754517Z ERROR StableView::structs::state: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:51:03.755929Z ERROR StableView::camera: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:51:03.755962Z ERROR StableView::structs::state: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:51:03.757548Z ERROR StableView::camera: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:51:03.757570Z ERROR StableView::structs::state: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:51:03.758990Z ERROR StableView::camera: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:51:03.759715Z ERROR StableView::structs::state: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:51:03.761190Z ERROR StableView::camera: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:51:03.761582Z ERROR StableView::structs::state: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:51:03.762946Z ERROR StableView::camera: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:51:03.763159Z ERROR StableView::structs::state: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:51:03.764711Z ERROR StableView::camera: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:51:03.764910Z ERROR StableView::structs::app: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:51:03.769151Z ERROR StableView::camera: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:51:03.769313Z ERROR StableView::structs::state: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:51:03.771724Z  WARN StableView: Config : (config: (min_cutoff : 0.0025, beta: 0.01, ip: 127.0.0.1, port: 4242, fps: 60, selected_camera: No Device Found, hide_camera: true), camera_list: {}, headtracker_running: false, should_exit: false, version: 0.0.2)
2024-02-01T19:51:12.626300Z ERROR StableView::camera: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:51:12.626321Z ERROR StableView::structs::state: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:51:12.626327Z ERROR StableView::camera: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:51:12.626330Z ERROR StableView::structs::state: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:51:12.626334Z ERROR StableView::camera: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:51:12.626336Z ERROR StableView::structs::state: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:51:12.626339Z ERROR StableView::camera: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:51:12.626341Z ERROR StableView::structs::state: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:51:12.626344Z ERROR StableView::camera: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:51:12.626346Z ERROR StableView::structs::state: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:51:12.626349Z ERROR StableView::camera: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:51:12.626351Z ERROR StableView::structs::state: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:51:16.664162Z ERROR StableView::gui::app: Unable to find camera index, setting default to 0
2024-02-01T19:51:18.370775Z  WARN StableView::camera: Shutting down camera thread...
2024-02-01T19:51:20.305248Z ERROR StableView::gui::app: Unable to find camera index, setting default to 0
2024-02-01T19:52:03.545440Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.545531Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:03.547235Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.547453Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:03.550370Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.550540Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:03.559936Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.560029Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:03.569766Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.569905Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:03.580270Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.580346Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:03.590329Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.590724Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:03.600457Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.600553Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:03.610879Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.610957Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:03.621036Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.621268Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:03.634004Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.634206Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:03.640448Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.640903Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:03.652362Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.652513Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:03.658026Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.658104Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:03.671408Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.671531Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:03.693121Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.693231Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:03.702095Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.702147Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:03.840027Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.840201Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:03.849369Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.849441Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:03.858397Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.858466Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:03.865988Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.866188Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:03.874548Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.874645Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:03.882605Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.882694Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:03.892203Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.892348Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:03.900977Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.901040Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:03.911016Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.911134Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:03.920136Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.920209Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:03.929568Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.929635Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:03.939090Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.939157Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:03.949238Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.949443Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:03.957188Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.957248Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:03.964458Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.964572Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:03.973175Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.973381Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:03.980445Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.980569Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:03.988233Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:03.988301Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:29.227352Z  WARN StableView::camera: Shutting down camera thread...
2024-02-01T19:52:30.171354Z ERROR StableView::gui::app: Unable to find camera index, setting default to 0
2024-02-01T19:52:32.420391Z  WARN StableView::camera: Shutting down camera thread...
2024-02-01T19:52:36.233287Z ERROR StableView::gui::app: Unable to find camera index, setting default to 0
2024-02-01T19:52:37.340545Z  WARN StableView::camera: Shutting down camera thread...
2024-02-01T19:52:42.675114Z ERROR StableView::camera: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:52:42.675133Z ERROR StableView::gui::app: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:52:45.852315Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:45.884742Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:45.917292Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:45.976559Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:46.018452Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:46.068559Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:46.101744Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:46.169294Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:46.208403Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:46.359336Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:47.736286Z ERROR StableView::gui::app: Unable to find camera index, setting default to 0
2024-02-01T19:52:55.030182Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:52:55.031890Z  WARN winit::platform_impl::platform::event_loop::runner: RedrawEventsCleared emitted without explicit MainEventsCleared    
2024-02-01T19:52:57.481834Z  WARN StableView::camera: Shutting down camera thread...
2024-02-01T19:52:59.611827Z ERROR StableView::gui::app: Unable to find camera index, setting default to 0
2024-02-01T19:53:09.710366Z  WARN winit::platform_impl::platform::event_loop::runner: NewEvents emitted without explicit RedrawEventsCleared    
2024-02-01T19:53:09.784050Z  WARN StableView::camera: Shutting down camera thread...
2024-02-01T19:53:12.672366Z ERROR StableView::camera: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:53:12.672384Z ERROR StableView::structs::state: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:53:12.672387Z ERROR StableView::camera: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:53:12.672389Z ERROR StableView::structs::state: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:53:12.672390Z ERROR StableView::camera: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:53:12.672392Z ERROR StableView::structs::state: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:53:12.672393Z ERROR StableView::camera: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:53:12.672395Z ERROR StableView::structs::state: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:53:12.672396Z ERROR StableView::camera: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:53:12.672397Z ERROR StableView::structs::state: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:53:12.672399Z ERROR StableView::camera: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:53:12.672401Z ERROR StableView::structs::state: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }
2024-02-01T19:53:14.237922Z ERROR StableView::gui::app: Unable to find camera index, setting default to 0
2024-02-01T19:53:42.229708Z  WARN StableView::camera: Shutting down camera thread...

Describe the bug

Hi, Great project!

Tried it in Wine via Lutris, it shows the webcam output in the winder, yet it is not recognizing any device.

Steps to reproduce

On steamdeck, Verify that the USB webcam works in Linux, Install my webcam's driver in a game's Wine prefix by running the driver installer through "Run EXE inside Wine prefix", Install StableView in a game's Wine prefix by running the installer through "Run EXE inside Wine prefix", finish the install, start StableView now installed, via "Run EXE inside Wine prefix", click on "show camera", see the led of the camera (Logi HD Pro c920) on, see the camera output on StableView, yet StableView shows "No device found" on dropdown menu. There doesn't seem to be any UDP output towards 127.0.01:4242.

References (optional)

No response

Additional info (optional)

No response

Discord Username (optional)

No response

Shubhamai commented 5 months ago

Hi, not sure why it's happening but can you try the latest prerelease and see if it still occurs ? thanks.

raven-intheclouds commented 4 months ago

Hi, tried it again with 1.1.0 with no luck, I keep having the same errors (RROR StableView::camera: Unable to read camera devices : InitializeError { backend: MediaFoundation, error: "0xC00D36E3" }).

I can't find out why it acts that way. When clicking start, as said, StableView shows the webcam output, consumes lots of cpu, but there's no UDP output towards 127.0.0.1:4242.

I will try 1.1.0 on native Linux and see how it goes.

Shubhamai commented 4 months ago

Can you check if the UDP output is received on 0.0.0.0:0 ?