phaselden / FlipIt

Flip Clock screensaver
Creative Commons Zero v1.0 Universal
1.08k stars 126 forks source link

blank screen windows7 issue #3

Closed nshopik closed 3 years ago

nshopik commented 3 years ago

Just replaced beta 1 with beta 2 and got just blank screen, settings seems works, but not screensaver itself

phaselden commented 3 years ago

Sorry to hear that. What OS, screen, and resolution are you using?

nshopik commented 3 years ago

Windows7 x64. I tried to mess around in settings maybe some of it cause problem with no luck

phaselden commented 3 years ago

Hmm, I don't have any Win7 machines to test that out, only Win 10. Are you able to debug the source to try and work out what is going on?

nshopik commented 3 years ago

Yeah i don't really know C# that well but my simplified glance didn't found anything suspicions, you basically packed font that's it.

Beta 4 now show me one square (where hour is) instead fully blank black screen.

For me its looks like somehow it still missing font and not even fallback on some default one. Maybe add callback to search font locally installed for now?

phaselden commented 3 years ago

The font it uses is now embedded, so that shouldn't be the problem.

A couple of questions...

What's the make and model of the monitor (or laptop) you are using?

What is the screen resolution?

nshopik commented 3 years ago

dell 24' with 1920x1200. But i even tried todo clean VM install with windows7 just in case my installation is kinda funky, with same result. Also i did check originally i didn't had 4.8 framework but only 4.5, but upgrading didn't change thing.

phaselden commented 3 years ago

Hmm, that screen should be fine.

Can you post a screenshot of what you see? (While it's running hit the PtSc key to copy the screen to the clipboard.)

phaselden commented 3 years ago

A question for others? If you are running Windows 7 are you also having problems?

nshopik commented 3 years ago

so i did additional test with windows 8.1, everything works fine. so seems to me its somehow windows7 only issue. here is screen image

moliuluo commented 3 years ago

I encountered the same problem in the latest version

redburn commented 3 years ago

A question for others? If you are running Windows 7 are you also having problems?

I see the same on a Windows 7 laptop. .NET Framework 4.8 is installed.

I'm afraid I don't even have enough disk space on this laptop to install Visual Studio to try debugging (not a C# programmer either).

Is this log from ProcMon of any use? https://pastebin.com/raw/rq3pyJsC

Version 1.2 Beta still works, Beta 2 does not (empty black screen), and with anything newer I see the same as the above.

phaselden commented 3 years ago

OK thanks. I will try and find a Windows 7 machine to test it on, or read up on any differences in the Windows/.NET APIs which may be responsible.

SmilerRyan commented 3 years ago

A question for others? If you are running Windows 7 are you also having problems?

I believe I see the same issue on a Windows 7 machine. The machine has all the updates (apart from the language packs) installed. It's runtimes are The Visual C++ Redistributable Runtimes and .NET Framework 4.8.

Can you post a screenshot of what you see? (While it's running hit the PtSc key to copy the screen to the clipboard.)

JavaSCU commented 3 years ago

same issue on a Windows 7 64bit, 1920x1080, HP EliteBook 820 G3, Version 1.2

phaselden commented 3 years ago

Thanks all. Those screenshots are helpful. It seems it is drawing the background of the first box, and then failing to draw the text (the hours) on top of it.

Can someone please check what happens if: a) change to 24hr time if currently showing 12hr time, or visa versa? b) display the World Times on the screen rather than the current time?

redburn commented 3 years ago

a) change to 24hr time if currently showing 12hr time, or visa versa?

No difference there.

b) display the World Times on the screen rather than the current time?

Like in clock mode, only the first flap is drawn for the World Times, so that seems to support your theory.

Support for OpenType fonts might be limited in Windows 7.

nshopik commented 3 years ago

Support for OpenType fonts might be limited in Windows 7.

wasn't previous font (external) was also OpenType, no?

redburn commented 3 years ago

wasn't previous font (external) was also OpenType, no?

The font wasn't included with FlipIt, the readme pointed to Google Fonts, where you can only download the TTF for Oswald.

I just installed the Oswald Bold OTF on Windows 7, and the screensaver (version 1.1) would not use it. Once I replaced it with the TTF, it worked. Not sure if that relates directly to the issue at hand, but a quick Google search turned up quite a few results regarding Windows 7 and OTF compatibility issues.

phaselden commented 3 years ago

It seems that under Windows 7 that the PrivateFontCollection class does not handle OTF fonts as well as Windows 10 does. The embedded fonts have been converted to TTF format (using https://everythingfonts.com/otf-to-ttf) and things seem to be working better now. A new release will be available soon.

Thanks to all those that posted info about this issue.

redburn commented 3 years ago

Yep, that fixed it! Thanks.

SmilerRyan commented 3 years ago

I can confirm that it runs fine on my Windows 7 and 8.1 enviroment.