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

owocr not working on Steam Deck with Big Picture #3

Closed
Keksus1 opened this issue Jul 23, 2024 · 2 comments
Closed

owocr not working on Steam Deck with Big Picture #3

Keksus1 opened this issue Jul 23, 2024 · 2 comments

Comments

@Keksus1
Copy link

Keksus1 commented Jul 23, 2024

Seems like owocr has problems capturing the screen when using it with Steam Big Picture. Tried running it with a script which starts owocr and RetroDeck at the same time. It works with desktop mode (where obviously RetroDeck isn't running particularly well) but no chance with big picture it seems.

ERROR: ld.so: object '/home/deck/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
01:35:17.956 | Parsed config file
01:35:17.957 | Google Lens ready
01:35:17.957 | manga-ocr not available, Manga OCR will not work!
01:35:18.018 | Reading from screen capture, writing to websocket using Google Lens
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/home/deck/.local/lib/python3.11/site-packages/owocr/main.py", line 23, in
main()
File "/home/deck/.local/lib/python3.11/site-packages/owocr/main.py", line 19, in main
fire.Fire(run)
File "/home/deck/.local/lib/python3.11/site-packages/fire/core.py", line 143, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/deck/.local/lib/python3.11/site-packages/fire/core.py", line 477, in _Fire
component, remaining_args = _CallAndUpdateTrace(
^^^^^^^^^^^^^^^^^^^^
File "/home/deck/.local/lib/python3.11/site-packages/fire/core.py", line 693, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^
File "/home/deck/.local/lib/python3.11/site-packages/owocr/run.py", line 907, in run
sct_img = sct.grab(sct_params)
^^^^^^^^^^^^^^^^^^^^
File "/home/deck/.local/lib/python3.11/site-packages/mss/base.py", line 90, in grab
screenshot = self._grab_impl(monitor)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/deck/.local/lib/python3.11/site-packages/mss/linux.py", line 427, in _grab_impl
ximage = self.xlib.XGetImage(
^^^^^^^^^^^^^^^^^^^^
File "/home/deck/.local/lib/python3.11/site-packages/mss/linux.py", line 229, in _validate
raise ScreenShotError(f"{func.name}() failed", details=details)
mss.exception.ScreenShotError: XGetImage() failed

@AuroraWright
Copy link
Owner

A friend said it uses wayland which is not currently supported by mss BoboTiG/python-mss#155
She also wrote this which might be of help here https://github.com/marissa999/steam-showots

@AuroraWright
Copy link
Owner

Closing here since this should just work without changes as soon as mss is updated to support Wayland

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

2 participants