New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repaint issues on Windows 7 with Java 1.8 #64

Open
leandor opened this Issue Jul 23, 2016 · 9 comments

Comments

Projects
None yet
4 participants
@leandor

leandor commented Jul 23, 2016

Hey there, I didn't see this mentioned anywhere, so I thought I would add an issue for this.

image

image

There seems to be some kind of issue with the handling of the Paint windows messages, it seems that the window area gets trashed and after a wait of some seconds (up to 5) it then repaints.

Don't if this is a known issue with Java 1.8, or is just some kind of combination of things that is making this behaviour show up.

Thanks, and best regards.

@magiruuvelvet

This comment has been minimized.

Show comment
Hide comment
@magiruuvelvet

magiruuvelvet Jul 24, 2016

Contributor

Repainting issues happens on Linux with KWin_X11 and Unity 7 aswell (maybe other Compositors too, untested). Dialogs like the User Info (Chat History, T/O&Ban Buttons) are most affected by this and corrupt pretty fast. Happens with Java 7, 8 and 9 preview, all x86_64.

And yes I use Oracles Java on Linux, OpenJDK sucks imo. UI corruption happens on OpenJDK too, in case it helps.

I will add some screenshots later if someone I follow goes live 😄

Contributor

magiruuvelvet commented Jul 24, 2016

Repainting issues happens on Linux with KWin_X11 and Unity 7 aswell (maybe other Compositors too, untested). Dialogs like the User Info (Chat History, T/O&Ban Buttons) are most affected by this and corrupt pretty fast. Happens with Java 7, 8 and 9 preview, all x86_64.

And yes I use Oracles Java on Linux, OpenJDK sucks imo. UI corruption happens on OpenJDK too, in case it helps.

I will add some screenshots later if someone I follow goes live 😄

@magiruuvelvet

This comment has been minimized.

Show comment
Hide comment
@magiruuvelvet

magiruuvelvet Jul 24, 2016

Contributor

So I've attached some screenshots.

What exactly happens?

The initial state of the dialog is ok. Now when you open the dialog several times on different users the corruption begins. The text in the box has the content from the previous dialog "session". To get the new updated text you need to press Ctrl+A, but this only refreshes the area of the new content while the old one is still stuck. Repoening the dialog the next time reverts it to normal the most times, than everything starts from the beginning.

When the new content is shorter than the old one, the dialog "shallows" the whole message and you are basically forced to press Ctrl+A to get the updated test.

This is very annoying. What is even causing such nasty UI corruptions?

screenshot_20160724_225331
screenshot_20160724_225358

Contributor

magiruuvelvet commented Jul 24, 2016

So I've attached some screenshots.

What exactly happens?

The initial state of the dialog is ok. Now when you open the dialog several times on different users the corruption begins. The text in the box has the content from the previous dialog "session". To get the new updated text you need to press Ctrl+A, but this only refreshes the area of the new content while the old one is still stuck. Repoening the dialog the next time reverts it to normal the most times, than everything starts from the beginning.

When the new content is shorter than the old one, the dialog "shallows" the whole message and you are basically forced to press Ctrl+A to get the updated test.

This is very annoying. What is even causing such nasty UI corruptions?

screenshot_20160724_225331
screenshot_20160724_225358

@leandor

This comment has been minimized.

Show comment
Hide comment
@leandor

leandor Jul 24, 2016

Should have mentioned that in my case, I'm currently running on Windows 7 x64, and on Java 1.8 32 bit runtime, and I observe this behaviour in all windows I used (Live Streams, Emoticons, Main window, Livestreamer launcher)

Also, tried running as admin, just in case, and it didn't make any difference.

Java version blob:
{{{
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
}}}

leandor commented Jul 24, 2016

Should have mentioned that in my case, I'm currently running on Windows 7 x64, and on Java 1.8 32 bit runtime, and I observe this behaviour in all windows I used (Live Streams, Emoticons, Main window, Livestreamer launcher)

Also, tried running as admin, just in case, and it didn't make any difference.

Java version blob:
{{{
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)
}}}

@tduva

This comment has been minimized.

Show comment
Hide comment
@tduva

tduva Jul 25, 2016

Contributor

In case you have more than on monitor, have you tried it on another monitor? Also someone had issues with visual glitches due to other programs interfering: #27 (comment)

Otherwise I don't really know much about this. I myself have some drawing glitches on the notifications, but only a certain region where mIRC seems to interfere with them. At least it seemed to start happening with a mIRC update.

Contributor

tduva commented Jul 25, 2016

In case you have more than on monitor, have you tried it on another monitor? Also someone had issues with visual glitches due to other programs interfering: #27 (comment)

Otherwise I don't really know much about this. I myself have some drawing glitches on the notifications, but only a certain region where mIRC seems to interfere with them. At least it seemed to start happening with a mIRC update.

@magiruuvelvet

This comment has been minimized.

Show comment
Hide comment
@magiruuvelvet

magiruuvelvet Jul 25, 2016

Contributor

@leandor You could try to enable the Disable Direct3D setting under Settings->Other to see if it helps, or enable both options. On X11 at least it fixes the UI corruption for me.
I'm not sure why I had this disabled 😕

@tduva This should give you an clue about UI corruptions in Java http://stackoverflow.com/a/26610279/2039868

Contributor

magiruuvelvet commented Jul 25, 2016

@leandor You could try to enable the Disable Direct3D setting under Settings->Other to see if it helps, or enable both options. On X11 at least it fixes the UI corruption for me.
I'm not sure why I had this disabled 😕

@tduva This should give you an clue about UI corruptions in Java http://stackoverflow.com/a/26610279/2039868

@leandor

This comment has been minimized.

Show comment
Hide comment
@leandor

leandor Jul 26, 2016

Thank you for all the replies :)

@tduva: Nope, I have a single monitor myself :(

And thank you for the pointer, @GhettoGirl

Followed your link, and used the suggestion one poster made in one answer. I added this:
-Dsun.java2d.d3d=false to my shortcut starting Chatty, and it seems all my problems are solved.

Feel free to close the issue now, if you feel satisfied with that solution as is. I'm satisfied with it as I can use the program without the window trashing annoyance 😄

leandor commented Jul 26, 2016

Thank you for all the replies :)

@tduva: Nope, I have a single monitor myself :(

And thank you for the pointer, @GhettoGirl

Followed your link, and used the suggestion one poster made in one answer. I added this:
-Dsun.java2d.d3d=false to my shortcut starting Chatty, and it seems all my problems are solved.

Feel free to close the issue now, if you feel satisfied with that solution as is. I'm satisfied with it as I can use the program without the window trashing annoyance 😄

@tduva

This comment has been minimized.

Show comment
Hide comment
@tduva

tduva Jul 26, 2016

Contributor

Does disabling D3D in the Chatty settings not work? I should be like that by default and also sets the sun.java2d.d3d property to false.

Contributor

tduva commented Jul 26, 2016

Does disabling D3D in the Chatty settings not work? I should be like that by default and also sets the sun.java2d.d3d property to false.

@leandor

This comment has been minimized.

Show comment
Hide comment
@leandor

leandor Jul 26, 2016

@tduva: It didn't work for me. As it was already disabled in my install when I checked after GhettoGirl post :/

Tried enabling/disabling both options, in combinations... and none seemed to affect the problem I was having. Of course, after each change, I restated Chatty as requested.

leandor commented Jul 26, 2016

@tduva: It didn't work for me. As it was already disabled in my install when I checked after GhettoGirl post :/

Tried enabling/disabling both options, in combinations... and none seemed to affect the problem I was having. Of course, after each change, I restated Chatty as requested.

@sicwan

This comment has been minimized.

Show comment
Hide comment
@sicwan

sicwan Aug 3, 2016

I too, have this issue, windows 10, dual monitors, works flawlessly on the main main monitor, but messes up on the 2nd one, it doesn't happen all the time, but when it does, it lasts for days, even through reboots. no amount of enabling/disabling seems to help either. it fixes itself if I move it from the 2nd monitor to the 1st one, but quickly messes back up if i move it back to the 2nd one

sicwan commented Aug 3, 2016

I too, have this issue, windows 10, dual monitors, works flawlessly on the main main monitor, but messes up on the 2nd one, it doesn't happen all the time, but when it does, it lasts for days, even through reboots. no amount of enabling/disabling seems to help either. it fixes itself if I move it from the 2nd monitor to the 1st one, but quickly messes back up if i move it back to the 2nd one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment