JosefNemec / Playnite

Video game library manager with support for wide range of 3rd party libraries and game emulation support, providing one unified interface for your games.
https://playnite.link
MIT License
9.43k stars 504 forks source link

Black Screen upon restart after update or changing settings #1675

Closed darklinkpower closed 4 years ago

darklinkpower commented 4 years ago

Describe the bug Sometimes after a restart, Playnite's window is just a black screen

To Reproduce It sometimes happens when a restart is made after updating or changing settings that require a restart. I found it can be fixed by double clicking Playnite's tray icon.

Screenshots 2020-02-28_11-16-04

I'll copy paste the last log lines when this happened:

2020-02-28 10:52:12.0014|DEBUG:Downloading data async from multiple mirrors. 2020-02-28 10:52:12.0084|DEBUG:Downloading data async from http://playnite.link/update/stable/7.1/70to71.exe to C:\Users\Brandon\AppData\Local\Temp\Playnite\update.exe. 2020-02-28 10:52:43.5867|INFO:Installing new update to E:\Emulation\emulators\Playnite, in /PORTABLE mode 2020-02-28 10:52:43.5867|DEBUG:Starting process: C:\Users\Brandon\AppData\Local\Temp\Playnite\update.exe, /SILENT /NOCANCEL /DIR="E:\Emulation\emulators\Playnite" /UPDATE /PORTABLE, 2020-02-28 10:52:43.6040|INFO:Shutting down Playnite 2020-02-28 10:52:43.6230|DEBUG:Releasing Playnite resources... 2020-02-28 10:52:48.0306|DEBUG:Releasing Playnite resources... 2020-02-28 10:52:56.9382|INFO:Application started from 'E:\Emulation\emulators\Playnite', with '' arguments. 2020-02-28 10:52:57.3772|INFO:Loaded plugin: Battle.net Library Importer 2020-02-28 10:52:57.4707|INFO:Loaded plugin: Epic Store Library Importer 2020-02-28 10:52:57.4943|INFO:Loaded plugin: GOG Library Importer 2020-02-28 10:52:57.5255|INFO:Loaded plugin: Humble Library Importer 2020-02-28 10:52:57.5441|INFO:Loaded plugin: IGDB metadata provider 2020-02-28 10:52:58.6298|INFO:Loaded plugin: LBGDB metadata provider 2020-02-28 10:52:58.6742|INFO:Loaded plugin: Origin Library Importer 2020-02-28 10:52:58.7281|INFO:Loaded plugin: RAWG metadata provider 2020-02-28 10:52:58.8944|INFO:Loaded plugin: Steam Library Importer 2020-02-28 10:52:58.9300|INFO:Loaded plugin: Twitch Library Importer 2020-02-28 10:52:58.9300|INFO:Loaded plugin: Universal Steam Metadata 2020-02-28 10:52:59.0733|INFO:Loaded plugin: Uplay Library Importer 2020-02-28 10:52:59.1454|INFO:Loaded plugin: VNDB metadata provider 2020-02-28 10:52:59.1740|INFO:Loaded plugin: Xbox Library Importer 2020-02-28 10:53:01.7579|INFO:Loaded script extension: E:\Emulation\emulators\Playnite\Extensions\LibraryExporter\LibraryExporter.ps1 2020-02-28 10:53:02.7479|INFO:Opening db E:\Emulation\emulators\Playnite\Database 2020-02-28 10:53:18.2799|INFO:Completely recalculating database statistics... 2020-02-28 10:53:22.4835|INFO:Application 7.1.0.30660 started 2020-02-28 10:53:27.4901|DEBUG:Downloading string content from http://www.playnite.link/update/stable/info.json using System.Text.UTF8Encoding encoding.

JosefNemec commented 4 years ago

I'm not sure what's causing this since there was no change in 7.1 that could cause this. Also I can't reproduce this :(

darklinkpower commented 4 years ago

It has been happening since Playnite 6 if I'm correct. It happened frequently when installing a new theme (and switching?) and restarting. I'll do some testing when I come back home to see how to reproduce it.

JosefNemec commented 4 years ago

If this is happening since Playnite 6 then this is first time somebody is reporting it. I have never seen this and honestly I have no idea what may be causing it. What GPU do you have? Does it occur if you disable HW acceleration in settings?

darklinkpower commented 4 years ago

I have in intel iGPU 4400 hd in my laptop. I have not tried disabling HW acceleration but I'll do some testing later and report back.

darklinkpower commented 4 years ago

Sadly I've been trying for a while but I can't reproduce it with either hw acceleration or not but I have a fair idea of the what could be the cause. I have the following settings:

imagen

Playnite is supposed to start minimized, but the times it has had the black screen on start, it didn't start minimized but windowed and with the black screen. I sometimes see on restarts that a Playnite's window shows for a split of a second and correctly minimizes, my guess here is that Playnite is not doing the proper behaviour of starting minimized and because it's configured to not show the window yet, it doesn't draw anything on the window and that's why when double clicking the tray icon "tells" Playnite the window is open and it actually draws on the window.

edit: happened again after changing the font this time. Same behaviour, Playnite shows window on start and solved by double clicking tray icon.

JosefNemec commented 4 years ago

Do you use some 3rd party tool that somehow interacts with window state (window manager, resizer etc.)?

darklinkpower commented 4 years ago

Only things that could interact is an AHK script that has the following content:

^SPACE:: Winset, Alwaysontop, , A

It's used to put any window on top of everything but it's activated manually with the configured hotkeys so I don't know if it could be the culprit. I'll close it and see if it happens again.

JosefNemec commented 4 years ago

I'm unable to reproduce this on any of my systems or in VM. Also this looks like some WPF issue to me, because we don't explicitly hide content when the window is minimized, it's all handled by WPF,

darklinkpower commented 4 years ago

it's pretty rare, I can't reproduce it too. It has hapenned very rarely and has not happened in days. I'll post an update if I find anything.

darklinkpower commented 4 years ago

It happened again after installing an extension and restarting, with hw acceleration off.

JosefNemec commented 4 years ago

I'm closing this because there's nothing I can do about this. The rendering is completely controlled by WPF.