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

[Bug] Failed to extract text from screenshot #124

Open
RocketRide9 opened this issue Aug 8, 2023 · 5 comments
Open

[Bug] Failed to extract text from screenshot #124

RocketRide9 opened this issue Aug 8, 2023 · 5 comments

Comments

@RocketRide9
Copy link

Steps to reproduce:

  1. Press Take a Screenshot
  2. Make a screenshot using showed popup
  3. See error

Log:

 ~ flatpak run com.github.tenderowl.frog 
Cache downloaded codes: ['eng', 'osd', 'rus']
Decoding with rus+eng language.
ERROR:  [Errno 2] Нет такого файла или каталога: '/home/dell/%D0%98%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D1%8F/Screenshot-11.png'
on_shot_error? Failed to decode data.
on_shot_error? No text found.
@RocketRide9
Copy link
Author

maybe the issue is frog not able to handle Pictures folder with name containing non ASCII symbols

@amka
Copy link
Contributor

amka commented Aug 16, 2023

This should not be a problem. I tested it, including on folders with Cyrillic and gaps in the name. Perhaps the case is in access, for some reason, Flatpak may not allow access to the specified file. I'll try to repeat it in my system.

@soumyaDghosh
Copy link

I am also facing this now. The app fails to extract data when the screenshot is taken directly from the app. It works when we paste the image or open the image from the file manager.

@RocketRide9
Copy link
Author

Initially I was facing this issue only on my home pc, now i can reproduce it on my laptop. Log:

 ~ flatpak run com.github.tenderowl.frog  

** (python:2): WARNING **: 21:55:48.192: expected enumeration type void, but got PyGLibOptionArg instead
2024-05-15 21:55:48.198 | DEBUG    | frog.widgets.language_popover:__init__:69 - active-language
2024-05-15 21:55:48.220 | DEBUG    | frog.language_manager:active_language:208 - Active language set to <LanguageItem: Английский, eng>
/app/lib/python3.11/site-packages/frog/window.py:84: Warning: g_variant_type_checked_: assertion 'g_variant_type_string_is_valid (type_string)' failed
  self.install_action("window.share", "provider", self._on_share)
/app/lib/python3.11/site-packages/frog/window.py:84: Warning: g_variant_type_copy: assertion 'g_variant_type_check (type)' failed
  self.install_action("window.share", "provider", self._on_share)
2024-05-15 21:55:49.764 | DEBUG    | frog.main:on_settings_changed:145 - SETTINGS: %s changed
2024-05-15 21:55:51.478 | DEBUG    | frog.services.screenshot_service:decode_image:115 - Remove source set to False
2024-05-15 21:55:51.478 | DEBUG    | frog.services.screenshot_service:decode_image:117 - Decoding with eng+eng language.
2024-05-15 21:55:51.478 | DEBUG    | frog.services.screenshot_service:decode_image:140 - ERROR: 
2024-05-15 21:56:08.340 | DEBUG    | frog.main:on_settings_changed:145 - SETTINGS: %s changed
2024-05-15 21:56:10.285 | DEBUG    | frog.services.screenshot_service:decode_image:115 - Remove source set to False
2024-05-15 21:56:10.285 | DEBUG    | frog.services.screenshot_service:decode_image:117 - Decoding with eng+eng language.
2024-05-15 21:56:10.285 | DEBUG    | frog.services.screenshot_service:decode_image:140 - ERROR: 
2024-05-15 21:56:14.435 | DEBUG    | frog.language_manager:get_downloaded_codes:234 - Cache downloaded codes: ['eng', 'rus']
2024-05-15 21:56:14.437 | DEBUG    | frog.main:on_settings_changed:145 - SETTINGS: %s changed

@azzamsa
Copy link

azzamsa commented Jun 24, 2024

Have the same isssue

🐡 ❯ flatpak run com.github.tenderowl.frog

** (python:2): WARNING **: 15:10:28.986: expected enumeration type void, but got PyGLibOptionArg instead
2024-06-24 15:10:28.990 | DEBUG    | frog.widgets.language_popover:__init__:69 - active-language
2024-06-24 15:10:29.011 | DEBUG    | frog.language_manager:active_language:208 - Active language set to <Lang
uageItem: Indonesian, ind>
/app/lib/python3.11/site-packages/frog/window.py:84: Warning: g_variant_type_checked_: assertion 'g_variant_t
ype_string_is_valid (type_string)' failed
  self.install_action("window.share", "provider", self._on_share)
/app/lib/python3.11/site-packages/frog/window.py:84: Warning: g_variant_type_copy: assertion 'g_variant_type_
check (type)' failed
  self.install_action("window.share", "provider", self._on_share)
2024-06-24 15:10:42.202 | DEBUG    | frog.main:on_settings_changed:145 - SETTINGS: %s changed
2024-06-24 15:10:43.927 | DEBUG    | frog.services.screenshot_service:decode_image:115 - Remove source set to
 False
2024-06-24 15:10:43.927 | DEBUG    | frog.services.screenshot_service:decode_image:117 - Decoding with ind+eng language.
2024-06-24 15:10:43.927 | DEBUG    | frog.services.screenshot_service:decode_image:140 - ERROR:

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

4 participants