简体   繁体   中英

Display issues on multiple screens after Windows 7 Update KB4034664 (August 2017)

Users of our application have been experiencing problems with their Swing GUIs not drawing correctly.

The common link between all users with problems is that they've recently applied a Windows update. Users have reported that dialogs draw correctly on some monitors but not on others.

An example of the kind of problems we're seeing*:

申请提出问题

Users also report dialogs which only show a frame, and are otherwise transparent. Effectively the same kind of problems you'd see if the UI thread were blocked.

What could be the problem?


*I can't post screenshots of our actual application as it contains sensitive information

Update: This issue has been fixed in update KB4039884 .


This seems to be a reasonably wide-spread issue caused by a recent patch. It's not limited to Java:

It seems, that Microsoft's Update KB4034664 (and KB4034679 ) for Windows 7 and Windows Server is causing display issues with several applications on a second screen.

Reported by Born City , Computer World , and Microsoft themselves :

If a machine has more than one monitor connected and the screen numbering is not in sequence, some applications will experience rendering issues.

You should be able to solve the problem by rolling back the patch. It is a security update (links above detail what is included), so if you're particularly risk-averse you may not want to do this.

Microsoft lists the workaround as:

  1. Enable Desktop Composition (needs graphics card support).
  2. Make sure that the main monitor is on the top left in the monitor layout.

建议的监视器布局示例

You could also try switching to a single monitor setup, or making other changes to your monitor configuration (Control Panel > Display > Change display settings). Some reports speculate that which monitor is set as your 'main display' may make a difference.

You might also want to try the following flag: -Dsun.noddraw=true

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM