question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Window content disappears

See original GitHub issue

I am using your Fluent WPF example as a base. Main windows is fine, but sometime as additonal window created would be completely blank, and one of the users sent this crash report

System.OverflowException: Arithmetic operation resulted in an overflow.
   at System.Windows.Shell.WindowChromeWorker._HandleNCHitTest(WM uMsg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Shell.WindowChromeWorker._WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

It just has the acrylic effect image and window can still be moved around and closed. When this happens each windows reopening would produce a window like this until program is restarted. I have not found a reliable way to reproduce this.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:3
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
ShankarBUScommented, Sep 22, 2020

This seems to be a problem with FluentWPF, I had this exact same issue while using FluentWPF (only FluentWPF, no other UI libraries) in one of projects. The window would be blank when reopened after a while.

It’s too annoying for users. Restarting the app may temporarily fix this issue but it may happen later

So it makes sense to open an issue regarding this on the FluentWPF repo.

1reaction
milos12345commented, Nov 3, 2020

For a test, I’ve replaced Style for TabControl/TabItem with a first one I’ve googled https://stackoverflow.com/a/31365307/967565 and the issue is fixed in one window; 2nd one still uses Style from ModernWPF and still results in whole window blank after Lock/Unlock, so the issue is definitely is somewhere in TabControl/TabItem Style of ModernWPF

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why do my windows disappear when I click to move them?
Hi Sandy I am Dave, I will help you with this. Open the Settings App, then go to System - About, then click...
Read more >
Stop Windows From Making Content Disappear
Windows assumes you want to see that task's full window more clearly. So it blanks out everything else on your computer to show...
Read more >
Disappearing content when adjusting browser window size
I'm creating a responsive website. When I adjust the browser screen to a size smaller then 480 px wide, the content (header and...
Read more >
Windows 11 - Disappearing Menu Text : r/windowsinsiders
Windows 11 - Disappearing Menu Text. Does anyone else have in issue with text disappearing from menus - for example right click >...
Read more >
Content sometimes disappears when moving back to ...
Can't reproduce consistently, but sometimes, when I navigate back to Windows Terminal from another window, the content of the Terminal window ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found