ahrm / sioyek

Sioyek is a PDF viewer with a focus on textbooks and research papers
https://sioyek.info/
GNU General Public License v3.0
6.75k stars 219 forks source link

Sioyek 2.0.0 Opens Up to a Blank Screen in Windows 10 #1107

Open mbennette68 opened 2 weeks ago

mbennette68 commented 2 weeks ago

Hello,

On my Windows 10 laptop, Sioyek 2.0.0 opens up to a black blank page, can't change from light to dark mode, even after opening new document. I've tried deleting all files in "C:\Users\current-user\AppData\Roaming\sioyek", deleting the main directory, then reinstalling the portable version but still get the same issue, blank window, no text, no F8 to switch from Dark to Light mode. This has happened before but it then fixed itself. I don't know how it happened.

Any thoughts would be appreciated.

Thank you, mb

ahrm commented 2 weeks ago

It seems that maybe sioyek is not recognizing your config files? Do keyboard keybindings other than f8 work? If not, make sure sioyek can access its prefs.config and shared.config files (for example maybe they are in a folder which requires admin priviledge?).

mbennette68 commented 2 weeks ago

Hello,

Thank you for the response.

Based on your idea, I believe I may have come across a possible cause and limited solution, at least for in my case, for the software not functioning correctly on my machine. I've outlined the steps I took to get Sioyek to behave better.

I downloaded both sioyek-release-windows-portable.zip and and sioyek-release-windows.zip I get the same issue. F8 does not work, and the only other one that works is the F11 but it gets stuck on maximize and can't be restored to previous size unless I click the restore button with the mouse.

I tested with Versions 2.0.0 and 1.5.0 to see if the behavior would be different or the same. For the above versions, I created two folders Sioyek200 and Sioyek15 placed in two different locations.

The prefs.config an shared.config files on my Windows 10 Machine for the two above software releases are stored in the, above mentioned, folders. Both versions of Sioyek behave the same.

Both versions of the software were given full permissions and there were no change in their behavior.

image

I even excluded the folder from the Antivirus program so that it does not flag any files as a threat.

For some reason, the system was not allowing Sioyek to work correctly, but I could not figure out why?

I decided to try to play with the Graphics Performance Settings within the Graphics Settings as they apply to Sioyek200 and as shown here:

image

There are three Options as show below...

Let Windows decide:

image

Power saving:

image

High performance:

image

When the setting is either on Let Windows decide or Power saving, Sioyek does not work correctly:

Let Windows decide:

image

Power saving:

image

When the setting is on High performance, Sioyek returns to normal:

High performance:

image

This only seems to work when the program resides in the original folder that it was unzipped from: C:\Users\UserName\Downloads\Utility\Reader\sioyek-release-windows-portable\sioyek-release-windows When I decompress the file, it creates a folder and subfolder: ..\sioyek-release-windows-portable\sioyek-release-windows

It seems that on my machine, Sioyek does not play well with the Intel Integrated Graphics hardware but it does play well with the Nvidia hardware not only that it only seems to work in the above directory. If I change the name to Sioyek200 or something else and move that directory, the system still won't recognize Sioyek's settings. It is strange that it exhibiting both graphics problems and permissions problems at the same time.

UPDATE: 06/23/24 I tried testing with the older Sioyek releases v0.31.5 and v0.31.6. Release v0.31.5 actually worked but v0.31.6 is even more unstable on my Windows 10 laptop. So something that was added after release v0.31.5 seems to be causing issues with my machine or some component that was added on a Microsoft update is interfering with later releases of Sioyek.

Thank you, MB