Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux Version Cannot Detect Webcam #73

Open
CaliberDied opened this issue Mar 14, 2024 · 11 comments
Open

Linux Version Cannot Detect Webcam #73

CaliberDied opened this issue Mar 14, 2024 · 11 comments

Comments

@CaliberDied
Copy link

For some reason the software doesn't seem to be able to detect my webcam anymore. I tested the webcam with other software, including the online web app, and it gets detected and works perfectly fine. However, using the standalone downloaded version, the webcam can't be detected. When entering streamer mode, there was a sound prompt, and the upper left hand corner said [Cancelled]. The same message occurs when trying to configure the webcam or VMC protocol.
Screenshot_20240314_131316

@ButzYung
Copy link
Owner

Sounds like a permission issue. Click "DevTools" on app menu (usually on the top right or lower right of your OS, depending on what version of Linux you use), choose "Console" and see if there is any error message related to webcam.

@CaliberDied
Copy link
Author

CaliberDied commented Mar 15, 2024

three.module.js:20298 THREE.WebGLProgram: Shader Error 1282 - VALIDATE_STATUS false

Program Info Log: Program binary could not be loaded. Binary is not compatible with current driver/hardware combination. Driver build date Feb 22 2024. Please check build information of source that generated the binary.
Location of variable pc_fragColor conflicts with another variable.

-1710489978239.log

EDIT: It works perfectly fine on version 0.16.2 just not any version thereafter

@ButzYung
Copy link
Owner

Can you provide a log that shows only the messages on the console tab? Some expected messages seem to be missing. When you try to activate a webcam, there should be some messages logged in console no matter it succeeds or not.

There is a major electron version change after v0.16.2, though it shouldn't affect Linux AFAIK
https://github.com/ButzYung/SystemAnimatorOnline/releases/tag/XR-Animator_v0.17.0

@PantherFarber
Copy link

Also having this issue on linux. since 16.2 every new version will sometimes run correctly once then never again. Even unpacking a new copy does nothing.

@PantherFarber
Copy link

Did some further testing. It seems things break with each electron update. I just tried 17 and 18.0 again. They did not work when originally released but they do now. all versions 19.0 and after do not.

@CaliberDied
Copy link
Author

Can you provide a log that shows only the messages on the console tab? Some expected messages seem to be missing. When you try to activate a webcam, there should be some messages logged in console no matter it succeeds or not.

There is a major electron version change after v0.16.2, though it shouldn't affect Linux AFAIK https://github.com/ButzYung/SystemAnimatorOnline/releases/tag/XR-Animator_v0.17.0
-1710610803989.log

@ButzYung
Copy link
Owner

@CaliberDied When you choose "Webcam/Media", does it show a message saying "No camera is available on this device. Drop a local media file as input instead."? Or does it simply show/do nothing with just the "Canceled" message on the top left?

@CaliberDied
Copy link
Author

@CaliberDied When you choose "Webcam/Media", does it show a message saying "No camera is available on this device. Drop a local media file as input instead."? Or does it simply show/do nothing with just the "Canceled" message on the top left?

There is a sound prompt, but no message at all. The Cancelled message only displayed after choosing another option i.e. Streamer Mode. Otherwise, there is no message at all.

@ButzYung
Copy link
Owner

Judging from your log file, I wonder if it's actually a WebGL-related error that prevents the speech bubble menu from being displayed. Did you see any speech bubble menu when you double-click "Webcam/Media" or basically any item on the bottom menu?

@CaliberDied
Copy link
Author

Judging from your log file, I wonder if it's actually a WebGL-related error that prevents the speech bubble menu from being displayed. Did you see any speech bubble menu when you double-click "Webcam/Media" or basically any item on the bottom menu?

Not that I can see, no.

@ButzYung
Copy link
Owner

So this may actually be a WebGL/GPU driver issue instead of webcam. The speech bubble (2D sprite in 3D context) fails to load for some unknown reasons. This may have something to do with the following issue.

electron/electron#40684

It may have something to do with caching. Try the following and see if it helps.

$ rm -rf ~/.config/Electron/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants