normcap
normcap copied to clipboard
Hyprland Black Screen Even With Grim Installed
What happened?
Hi, Normcap shows black screen under Hyprland
It says it cannot found grim but it's installed
How did you install NormCap?
FlatPak (Linux)
Operating System + Version?
Fedora 40
[Linux only] Display Server (DS) + Desktop environment (DE)?
Wayland / Hyprland
Debug log output?*
tahinli:~/ $ flatpak run --command=normcap com.github.dynobo.normcap -v debug [22:24:07]
22:26:32 - INFO - normcap:50 - Start NormCap v0.5.8
22:26:32 - DEBUG - normcap.gui.tray:70 - System info:
{'normcap_version': '0.5.8', 'python_version': '3.11.10', 'cli_args': '/app/bin/normcap -v debug', 'is_briefcase_package': False, 'is_flatpak_package': True, 'is_appimage_package': False, 'platform': 'linux', 'desktop_environment': <DesktopEnvironment.HYPRLAND: 6>, 'display_manager_is_wayland': True, 'pyside6_version': '6.7.0', 'qt_version': '6.7.0', 'qt_library_path': '/usr/share/runtime/lib/plugins, /app/lib/python3.11/site-packages/PySide6/Qt/plugins, /usr/bin', 'locale': 'DEFAULT', 'config_directory': PosixPath('/home/tahinli/.var/app/com.github.dynobo.normcap/config/normcap'), 'resources_path': PosixPath('/app/lib/python3.11/site-packages/normcap/resources'), 'tesseract_path': PosixPath('/app/bin/tesseract'), 'tessdata_path': PosixPath('/home/tahinli/.var/app/com.github.dynobo.normcap/config/normcap/tessdata'), 'envs': {'TESSDATA_PREFIX': '/app/share', 'LD_LIBRARY_PATH': ''}, 'screens': [Screen(left=1920, top=0, right=3839, bottom=1079, device_pixel_ratio=1.0, index=0, screenshot=None)]}
22:26:32 - DEBUG - normcap.gui.settings:162 - Skip update of non existing setting (show_introduction: None)
22:26:32 - DEBUG - normcap.gui.settings:162 - Skip update of non existing setting (cli_mode: False)
22:26:32 - DEBUG - normcap.gui.settings:162 - Skip update of non existing setting (background_mode: False)
22:26:32 - DEBUG - normcap.gui.settings:162 - Skip update of non existing setting (clipboard_handler: None)
22:26:32 - DEBUG - normcap.gui.tray:384 - Listen on local socket v0.5.8-normcap.
22:26:32 - DEBUG - normcap.screengrab.main:21 - Compatible capture handlers: ['GRIM', 'DBUS_PORTAL', 'DBUS_SHELL']
22:26:32 - DEBUG - normcap.screengrab.main:28 - Available capture handlers: ['DBUS_PORTAL', 'DBUS_SHELL']
22:26:32 - WARNING - normcap.screengrab.main:47 - The preferred capture handler on your system would be GRIM but can't be used due to missing dependencies. Install the package `grim` using your system's package manager.
22:26:32 - DEBUG - normcap.screengrab.handlers.dbus_portal:92 - DBus request message: <PySide6.QtDBus.QDBusMessage(type=MethodReturn, service="", signature="o", contents=([ObjectPath: /org/freedesktop/portal/desktop/request/1_1493/normcap_hadicfdi]) ) at 0x7f55a784bec0>
22:26:32 - DEBUG - normcap.screengrab.handlers.dbus_portal:99 - Request accepted
22:26:32 - DEBUG - normcap.ocr.tesseract:24 - Executing '/app/bin/tesseract --list-langs --tessdata-dir /home/tahinli/.var/app/com.github.dynobo.normcap/config/normcap/tessdata'
22:26:32 - DEBUG - normcap.ocr.tesseract:37 - Tesseract command output: List of available languages in "/home/tahinli/.var/app/com.github.dynobo.normcap/config/normcap/tessdata/" (2): ¬ eng ¬ tur ¬
22:26:32 - DEBUG - normcap.screengrab.handlers.dbus_portal:119 - DBus signal message: <PySide6.QtDBus.QDBusMessage(type=Signal, service=":1.12", path="/org/freedesktop/portal/desktop/request/1_1493/normcap_hadicfdi", interface="org.freedesktop.portal.Request", member="Response", signature="ua{sv}", contents=(0, [Argument: a{sv} {"uri" = [Variant(QString): "file:///run/user/1000/doc/ac7ffefb/xdph_screenshot_247c149c.png"]}]) ) at 0x7f55a784bec0>
22:26:32 - DEBUG - normcap.screengrab.handlers.dbus_portal:137 - Parse response
22:26:32 - WARNING - normcap.screengrab.handlers.dbus_portal:212 - Missing permission to remove screenshot file '/run/user/1000/doc/ac7ffefb/xdph_screenshot_247c149c.png'!
22:26:32 - DEBUG - normcap.screengrab.post_processing:17 - Virtual geometry width: 1920
22:26:32 - DEBUG - normcap.screengrab.post_processing:18 - Image width: 1920
22:26:32 - DEBUG - normcap.screengrab.post_processing:19 - Resize ratio: 1.0
22:26:32 - INFO - normcap.screengrab.main:67 - Screen captured using DBUS_PORTAL
22:26:32 - DEBUG - normcap.gui.utils:22 - Save debug image as /tmp/normcap/2024-10-06_19-26-32_raw_screen0.png
22:26:32 - DEBUG - normcap.gui.window:51 - Create window for screen 0
22:26:32 - DEBUG - normcap.gui.window:141 - Set window of screen 0 to fullscreen
22:26:33 - WARNING - normcap.gui.window:129 - No window move method for 6
22:26:36 - DEBUG - normcap.gui.tray:350 - Hide 1 window
22:26:36 - INFO - normcap.gui.tray:242 - Crop image to region (535, 261, 1366, 709)
22:26:36 - DEBUG - normcap.gui.utils:22 - Save debug image as /tmp/normcap/2024-10-06_19-26-36_cropped.png
22:26:36 - DEBUG - normcap.gui.tray:267 - Start OCR
22:26:36 - DEBUG - normcap.ocr.enhance:84 - Scale image x2
22:26:36 - DEBUG - normcap.ocr.enhance:57 - Pad image by 80px
22:26:36 - DEBUG - normcap.ocr.recognize:34 - Run Tesseract on image of size (1824, 1058) with args:
TessArgs(tessdata_path=PosixPath('/home/tahinli/.var/app/com.github.dynobo.normcap/config/normcap/tessdata'), lang='eng', oem=<OEM.DEFAULT: 3>, psm=<PSM.AUTO: 3>)
22:26:36 - DEBUG - normcap.ocr.tesseract:24 - Executing '/app/bin/tesseract /tmp/tmpe9vc6i3m/normcap_tesseract_input.png /tmp/tmpe9vc6i3m/normcap_tesseract_input.png -c tessedit_create_tsv=1 -l eng --oem 3 --psm 3 --tessdata-dir /home/tahinli/.var/app/com.github.dynobo.normcap/config/normcap/tessdata -c tessedit_write_images=1 -c tessedit_dump_pageseg_images=1'
22:26:36 - DEBUG - normcap.ocr.tesseract:37 - Tesseract command output:
22:26:36 - DEBUG - normcap.ocr.tesseract:67 - Skip moving file to temp dir, it does not exist: /tmp/tmpe9vc6i3m/normcap_tesseract_input.png.png_debug.pdf
22:26:36 - DEBUG - normcap.ocr.recognize:43 - OCR result:
OcrResult(tess_args=TessArgs(tessdata_path=PosixPath('/home/tahinli/.var/app/com.github.dynobo.normcap/config/normcap/tessdata'), lang='eng', oem=<OEM.DEFAULT: 3>, psm=<PSM.AUTO: 3>), words=[], image=<PySide6.QtGui.QImage(QSize(1824, 1058),format=QImage::Format_RGB32,depth=32,devicePixelRatio=1,bytesPerLine=7296,sizeInBytes=7719168) at 0x7f55a7857680>, transformer_scores={}, parsed='')
22:26:36 - DEBUG - normcap.gui.utils:22 - Save debug image as /tmp/normcap/2024-10-06_19-26-36_enhanced.png
22:26:37 - INFO - normcap.gui.tray:285 - Text from OCR:
22:26:37 - DEBUG - normcap.gui.tray:319 - Nothing there to be copied to clipboard!
22:26:37 - DEBUG - normcap.gui.notification:173 - Send notification via QT
22:26:42 - INFO - normcap.gui.tray:606 - Exit normcap
22:26:42 - DEBUG - normcap.gui.tray:607 - Debug images saved in /tmp/normcap
Same problem with Nix package, with a black screen on one monitor. Terminal output
WARNING - normcap.gui.window:129 - No window move method for 6