YomiNinja icon indicating copy to clipboard operation
YomiNinja copied to clipboard

Overlay area turns black when activating the ocr (if not launched as admin)

Open Kukoro opened this issue 1 year ago • 22 comments

image

image

It looks odd that the whole area turns black but it's still useable.

Kukoro avatar Jan 02 '24 22:01 Kukoro

Problem disappeared after restarting the application as admin

Kukoro avatar Jan 02 '24 22:01 Kukoro

I was unable to replicate the issue. To better understand and address it, could you please provide some additional information?

  • Which operating system are you using?
  • Could you specify which application is running behind the overlay when this occurs?
  • Does this issue occur regardless of the application behind the overlay?
  • What is the GPU model of your system?

matt-m-o avatar Jan 03 '24 18:01 matt-m-o

This may be completely unrelated to Kukoro's issue, but I had a problem that sounded very similar on Linux using the Qtile window manager. The problem for me was probably caused by the fact that Qtile doesn't support transparency and needs a compositor like Picom for this.

So Linux users should make sure their window manager supports transparency, or install and enable a compositor that does. Additionally, for tiling window managers, users may have to manually line up the overlay window with the target window

Cyanisk avatar Jan 08 '24 12:01 Cyanisk

I seem to have the same issue as Kukoro even tho the program was started as admin. The print screen button does load the OCR, I do see the highlights, and the overlay seems to be on top of the application, but it is all black and can't see the program (all applications including games like persona 4 and 5, or browsers like edge and chrome) under that. I am trying this on an ROG Ally windows 11 AMD Ryzen Z1 Extreme

misosouphero avatar Jan 23 '24 17:01 misosouphero

@misosouphero I suspect this issue may be related to some other software. Unfortunately, I don't have access to a ROG Ally to test it.

To help narrow down the possibilities, could you please try running the application in a Windows Sandbox environment? This will allow us to isolate the application and determine if it's caused by any third-party applications or conflicting settings. Ensure to install VCRedist in the sandbox whenever a new session is launched.

matt-m-o avatar Jan 30 '24 20:01 matt-m-o

@misosouphero I suspect this issue may be related to some other software. Unfortunately, I don't have access to a ROG Ally to test it.

To help narrow down the possibilities, could you please try running the application in a Windows Sandbox environment? This will allow us to isolate the application and determine if it's caused by any third-party applications or conflicting settings. Ensure to install VCRedist in the sandbox whenever a new session is launched.


Thank you for your reply. I unfortunately do not have access to virtual machine software on the device, and the windows sandbox doesn't install on Windows 11 home version. Meanwhile, I have tried to change the ocr engine, deleting/reinstalling; however, the issue seems to persist. From further testing, I noticed that when selecting a specific window/program, yomininja will not overlay (no red square framing) on the window/program and nothing will appear even if I press the print screen input. When I select an entire screen as the source, once the print screen button is pressed, the yomininja overlay will come to the foreground (all black) and cover the whole screen.

misosouphero avatar Feb 01 '24 04:02 misosouphero

@misosouphero Try running Yomininja in Windows Safe Mode. I found some instructions that might help, but I don't know if it works. Safe Mode starts Windows with only essential drivers, which can help identify if the problem is related to third-party software.

matt-m-o avatar Feb 02 '24 12:02 matt-m-o

@misosouphero Try running Yomininja in Windows Safe Mode. I found some instructions that might help, but I don't know if it works. Safe Mode starts Windows with only essential drivers, which can help identify if the problem is related to third-party software.

Yomininja does not seem to load in safe mode

misosouphero avatar Feb 02 '24 14:02 misosouphero

@misosouphero

Oh, sorry about that. Please try selecting "Safe Mode with Networking" Yomininja checks GitHub for updates, so it requires at least a network driver (an internet connection is not required). It worked fine here with Windows 10.

Yomininja v0 5 1 SafeMode

matt-m-o avatar Feb 02 '24 14:02 matt-m-o

@misosouphero

Oh, sorry about that. Please try selecting "Safe Mode with Networking" Yomininja checks GitHub for updates, so it requires at least a network driver (an internet connection is not required). It worked fine here with Windows 10.

This did not seem to solve the issue. Is it possible that a compatibility issue related to the Z1 Extreme processor might be causing the problem?

misosouphero avatar Feb 02 '24 20:02 misosouphero

@misosouphero

Did the application load? If the overlay remains black, even in safe mode, it might be related to the GPU or something that ASUS changed on Windows.

matt-m-o avatar Feb 02 '24 21:02 matt-m-o

@misosouphero

Did the application load? If the overlay remains black, even in safe mode, it might be related to the GPU or something that ASUS changed on Windows.

The application did not launch at all, even in safe mode with networking.

I don't know if this will help, but when using the program in normal windows mode, using OCR shortcut with ONNX CPU selected will cause a black screen with red boxes (detecting words). If using OpenVino CPU, the same black screen will appear when using the OCR shortcut, but it doesn't detect the words of the selected screen (no red boxes).

misosouphero avatar Feb 02 '24 22:02 misosouphero

Can you please try the last version and confirm if the problem persists?

madmalkav avatar Jun 16 '24 07:06 madmalkav

I am having this problem as well and no solutions have been effective so far.

I am on a windows 11 pc and the overlay area turns completely black with just the red text boxes. I am able to hover over them to check their definitions with 10ten but I cannot see anything beyond the fully black screen.

GunnerTardis avatar Jun 23 '24 02:06 GunnerTardis

I also have this problem. RTX 4070 with latest drivers. I tried launching as an admin, no effect. I tried exclusive fullscreen, borderless window, different applications, all the same result. I've tried other applications in the past that where supposed to do something similiar, and had the same problem.

DiscourseStu avatar Jul 11 '24 05:07 DiscourseStu

If you are using a chromium browser on windows at least, it is this option: chrome://flags/#calculate-native-win-occlusion

Just disable it and it will work :)

Mupu avatar Jul 15 '24 20:07 Mupu

Hello and sorry for the long time without a response. I tested it again today, with and without admin and I got this black screen.

The Problem

YomiNinja_xVsZBCSD72

If i click on my second monitor on a different application it turns to this:

YomiNinja_dmIWQvpaw5

Informations

  • Operating System: Windows 10 Home
  • The application is the game Kingdom Hearts 1
  • There are no other windows behind the game
  • GPU is a Nvidia RTX 3080

I will check what the app does in safe mode...

Kukoro avatar Jul 19 '24 15:07 Kukoro

Live from safemode. The overlay works here works

I then tried soem stuff that didn't have any effect once I was back to normal mode

  • Switching to only one monitor
  • Disabling monitor scaling
  • disabling g-sync
  • disabling Kaspersky Anti Virus

Now it's the needle in a haystack unfortunate :(

Kukoro avatar Jul 19 '24 15:07 Kukoro

I had the same problem solutions here didn't work and application didn't even start in safe mode I just added --disable-gpu-compositing to the shortcut it is working now but i am not sure if it breaks anything I am using gtx 1050 ti on windows 10

ScaryDescent avatar Jul 19 '24 16:07 ScaryDescent

I had the same problem solutions here didn't work and application didn't even start in safe mode I just added --disable-gpu-compositing to the shortcut it is working now but i am not sure if it breaks anything I am using gtx 1050 ti on windows 10

Yes that fixed it for me too.

Kukoro avatar Jul 19 '24 22:07 Kukoro

I had the same problem solutions here didn't work and application didn't even start in safe mode I just added --disable-gpu-compositing to the shortcut it is working now but i am not sure if it breaks anything I am using gtx 1050 ti on windows 10

Confirming that this fixed my issue as well. Thank you so much!

For anyone who may be confused on how to go about this.

  1. Navigate to the Yomininja shortcut, right click and select properties.
  2. Select the shortcut tab
  3. In the shortcut tab look for the target text box and navigate to the end of the text adding a space at the end.
  4. Copy and paste "--disable-gpu-compositing" without quotations into the end of the text box.
  5. Apply the changes and you should be good to go.

GunnerTardis avatar Jul 20 '24 02:07 GunnerTardis

Thank you so much! I upgraded the dependencies in v0.8, which may fix the issue. However, I can’t confirm this as I haven’t been able to reproduce the behavior. I’ve also added an option in the settings to disable hardware acceleration in case the first solution doesn’t work, and I’ll be adding an option to disable GPU compositing soon.

matt-m-o avatar Jul 24 '24 03:07 matt-m-o

I struggled with this issue and none of the solutions offered here fixed it. However, I just solved it now by removing "mica for everyone" which must have been interfering with the overlay, so if you're still having problems try getting rid of anything you might have installed to customise windows backdrop/display

jjp87 avatar Nov 02 '24 03:11 jjp87

I can confirm this issue on Ubuntu 22.04 when using i3 with picom. On the same system but running GNOME instead it works as intended. It's a shame because I really want to keep using tiling window managers, I could try and help you debug this

idrilirdi avatar Dec 20 '24 09:12 idrilirdi

I’m having the same black screen issue on my ryzen z1 (legion go) on windows 11. I tried using "--disable-gpu-compositing" but it just changes the screen from black with red outlines (after selecting the app to capture) to white (with no red outlines).

Funny enough if I connect an external monitor before starting yomininja, everything works fine. If I unplug the monitor it keeps working. If I stop and restart yomininja, it’s back to the original broken behavior

Edit: just found a workaround. Hopefully it’ll help other people stuck in the same situation while we get a proper fix. Just setup a virtual external display with this https://github.com/VirtualDisplay/Virtual-Display-Driver

jacopomaroli avatar Feb 06 '25 17:02 jacopomaroli