From ebakke at mit.edu Fri Jan 1 15:30:46 2016 From: ebakke at mit.edu (Eirik Bakke) Date: Fri, 1 Jan 2016 15:30:46 +0000 Subject: Info regarding the MacOS JProgress Bar bug In-Reply-To: References: Message-ID: Hi, Saurav. I'm happy to submit a JDK bug report on this. Some more information would be useful--what are the conditions under which you are able to reproduce it yourself? And what are you observing? High CPU usage? Flickering? Is it related to a JProgressBar? Are you on MacOS? -- Eirik On 12/28/15, 1:16 PM, "macosx-port-dev on behalf of Saurav Sarkar" wrote: >Hi All, > >I stumbled onto this bug >http://mail.openjdk.java.net/pipermail/macosx-port-dev/2015-December/00698 >9.html >raised by Erik few days back. We face a similar problem in our Mac >application > >Is there any update on this or is this being filed as a bug ? > >cheers, > >Saurav From saurav.sarkar1 at gmail.com Sat Jan 2 03:18:23 2016 From: saurav.sarkar1 at gmail.com (Saurav Sarkar) Date: Sat, 2 Jan 2016 08:48:23 +0530 Subject: Info regarding the MacOS JProgress Bar bug In-Reply-To: References: Message-ID: Hi Eirik, Please find the info below. We are on Mac OS and we see huge energy impact when the progress bar is shown. The wave like animation when showing the progress is causing the impact. Its related to JProgressBar. I haven't run your test case, but if it is reproducing the issue then it is better to raise a bug. Thanks and Regards, Saurav On Fri, Jan 1, 2016 at 9:00 PM, Eirik Bakke wrote: > Hi, Saurav. > > I'm happy to submit a JDK bug report on this. Some more information would > be useful--what are the conditions under which you are able to reproduce > it yourself? And what are you observing? High CPU usage? Flickering? Is it > related to a JProgressBar? Are you on MacOS? > > -- Eirik > > On 12/28/15, 1:16 PM, "macosx-port-dev on behalf of Saurav Sarkar" > saurav.sarkar1 at gmail.com> wrote: > > >Hi All, > > > >I stumbled onto this bug > > > http://mail.openjdk.java.net/pipermail/macosx-port-dev/2015-December/00698 > >9.html > >raised by Erik few days back. We face a similar problem in our Mac > >application > > > >Is there any update on this or is this being filed as a bug ? > > > >cheers, > > > >Saurav > > From ebakke at mit.edu Wed Jan 13 19:18:22 2016 From: ebakke at mit.edu (Eirik Bakke) Date: Wed, 13 Jan 2016 19:18:22 +0000 Subject: Info regarding the MacOS JProgress Bar bug In-Reply-To: References: Message-ID: I just filed an official bug report on http://bugreport.java.com/ and received review ID JI-9028577. I'll wait for it to appear on JIRA. -- Eirik From: Saurav Sarkar > Date: Friday, January 1, 2016 at 10:18 PM To: Eirik Bakke > Cc: "macosx-port-dev at openjdk.java.net" > Subject: Re: Info regarding the MacOS JProgress Bar bug Hi Eirik, Please find the info below. We are on Mac OS and we see huge energy impact when the progress bar is shown. The wave like animation when showing the progress is causing the impact. Its related to JProgressBar. I haven't run your test case, but if it is reproducing the issue then it is better to raise a bug. Thanks and Regards, Saurav On Fri, Jan 1, 2016 at 9:00 PM, Eirik Bakke > wrote: Hi, Saurav. I'm happy to submit a JDK bug report on this. Some more information would be useful--what are the conditions under which you are able to reproduce it yourself? And what are you observing? High CPU usage? Flickering? Is it related to a JProgressBar? Are you on MacOS? -- Eirik On 12/28/15, 1:16 PM, "macosx-port-dev on behalf of Saurav Sarkar" on behalf of saurav.sarkar1 at gmail.com> wrote: >Hi All, > >I stumbled onto this bug >http://mail.openjdk.java.net/pipermail/macosx-port-dev/2015-December/00698 >9.html >raised by Erik few days back. We face a similar problem in our Mac >application > >Is there any update on this or is this being filed as a bug ? > >cheers, > >Saurav From ebakke at mit.edu Tue Jan 19 16:18:41 2016 From: ebakke at mit.edu (Eirik Bakke) Date: Tue, 19 Jan 2016 16:18:41 +0000 Subject: JScrollPane jitter during trackpad scrolling on MacOS/Aqua In-Reply-To: References: Message-ID: Hi, macos-port-dev. Here's another bug report for Swing on Aqua/MacOS. In recent Java versions (6-12 months, not sure), trackpad scrolling in any JScrollPane has become extremely jittery, as demonstrated in the following video: https://vimeo.com/151843642 The source code for the example app used can be found here: https://gist.github.com/eirikbakke/09a090ab8052d38c8c87 Note that the "implements Scrollable" business is not necessary to trigger the bug, I just did it to set the getScrollableBlockIncrement to something higher than 1 so that you'd see the jitter clearly on a video. This happens in any app that uses a JScrollPane, including the NetBeans IDE's code editor and other scrollable panels, as well as in trivial apps like the linked example. The bug occurs consistently, with or without external monitors attached, at any resolution, and with or without simulated retina mode enabled. I'm on a 13-inch mid-2012 MacBook Air. If no one knows about an existing bug report about this, I'll submit it on http://bugreport.java.com (I searched bugs.openjdk.java.net ). -- Eirik From Sergey.Bylokhov at oracle.com Tue Jan 19 16:50:33 2016 From: Sergey.Bylokhov at oracle.com (Sergey Bylokhov) Date: Tue, 19 Jan 2016 19:50:33 +0300 Subject: JScrollPane jitter during trackpad scrolling on MacOS/Aqua In-Reply-To: References: Message-ID: <569E6959.6070209@oracle.com> I am not sure that this is regression or a bug. In your case you scroll from left-down to right-up. But left-to-right is a scroll to up, and down-to-up is a scroll to down. So you scroll in both direction at the same time. On 19/01/16 19:18, Eirik Bakke wrote: > Hi, macos-port-dev. > > Here's another bug report for Swing on Aqua/MacOS. In recent Java versions (6-12 months, not sure), trackpad scrolling in any JScrollPane has become extremely jittery, as demonstrated in the following video: > > https://vimeo.com/151843642 > > The source code for the example app used can be found here: https://gist.github.com/eirikbakke/09a090ab8052d38c8c87 > Note that the "implements Scrollable" business is not necessary to trigger the bug, I just did it to set the getScrollableBlockIncrement to something higher than 1 so that you'd see the jitter clearly on a video. > > This happens in any app that uses a JScrollPane, including the NetBeans IDE's code editor and other scrollable panels, as well as in trivial apps like the linked example. The bug occurs consistently, with or without external monitors attached, at any resolution, and with or without simulated retina mode enabled. I'm on a 13-inch mid-2012 MacBook Air. > > If no one knows about an existing bug report about this, I'll submit it on http://bugreport.java.com (I searched bugs.openjdk.java.net ). > > -- Eirik > -- Best regards, Sergey. From Sergey.Bylokhov at oracle.com Tue Jan 19 17:04:06 2016 From: Sergey.Bylokhov at oracle.com (Sergey Bylokhov) Date: Tue, 19 Jan 2016 20:04:06 +0300 Subject: JScrollPane jitter during trackpad scrolling on MacOS/Aqua In-Reply-To: <569E6959.6070209@oracle.com> References: <569E6959.6070209@oracle.com> Message-ID: <569E6C86.7030000@oracle.com> On 19/01/16 19:50, Sergey Bylokhov wrote: > I am not sure that this is regression or a bug. In your case you scroll > from left-down to right-up. > But left-to-right is a scroll to up, and down-to-up is a scroll to down. > So you scroll in both direction at the same time. But it can be regression of JDK-8033000, I will double check. > > On 19/01/16 19:18, Eirik Bakke wrote: >> Hi, macos-port-dev. >> >> Here's another bug report for Swing on Aqua/MacOS. In recent Java >> versions (6-12 months, not sure), trackpad scrolling in any >> JScrollPane has become extremely jittery, as demonstrated in the >> following video: >> >> https://vimeo.com/151843642 >> >> The source code for the example app used can be found here: >> https://gist.github.com/eirikbakke/09a090ab8052d38c8c87 >> Note that the "implements Scrollable" business is not necessary to >> trigger the bug, I just did it to set the getScrollableBlockIncrement >> to something higher than 1 so that you'd see the jitter clearly on a >> video. >> >> This happens in any app that uses a JScrollPane, including the >> NetBeans IDE's code editor and other scrollable panels, as well as in >> trivial apps like the linked example. The bug occurs consistently, >> with or without external monitors attached, at any resolution, and >> with or without simulated retina mode enabled. I'm on a 13-inch >> mid-2012 MacBook Air. >> >> If no one knows about an existing bug report about this, I'll submit >> it on http://bugreport.java.com (I >> searched bugs.openjdk.java.net ). >> >> -- Eirik >> > > -- Best regards, Sergey. From ebakke at mit.edu Tue Jan 19 21:51:02 2016 From: ebakke at mit.edu (Eirik Bakke) Date: Tue, 19 Jan 2016 21:51:02 +0000 Subject: JScrollPane jitter during trackpad scrolling on MacOS/Aqua In-Reply-To: <569E6959.6070209@oracle.com> References: <569E6959.6070209@oracle.com> Message-ID: > But left-to-right is a scroll to up, and down-to-up is a scroll to down. So you scroll in both direction at the same time. Whoa, great catch! That's the problem! This is definitively not the right behavior on trackpads; often the user will not scroll exactly horizontally or exactly vertically. And it interacts very badly with the momentum feature of the trackpad; see for instance the video at 1:13, where the viewport is jittering up and down _after_ my fingers have left the trackpad. The "left-to-right is scroll up" feature is not how native apps work on MacOS, so my guess would be it could simply be disabled on MacOS. Note also that when scrolling with the trackpad in native MacOS apps, the OS makes a decision as to whether the scroll is vertical or horizontal, and then scrolls in that direction only. The cut-off is 45 degrees, giving the user plenty of wiggle room. You can never scroll truly diagonally except by zig-zaging. -- Eirik On 1/19/16, 11:50 AM, "Sergey Bylokhov" > wrote: I am not sure that this is regression or a bug. In your case you scroll from left-down to right-up. But left-to-right is a scroll to up, and down-to-up is a scroll to down. So you scroll in both direction at the same time. On 19/01/16 19:18, Eirik Bakke wrote: Hi, macos-port-dev. Here's another bug report for Swing on Aqua/MacOS. In recent Java versions (6-12 months, not sure), trackpad scrolling in any JScrollPane has become extremely jittery, as demonstrated in the following video: https://vimeo.com/151843642 The source code for the example app used can be found here: https://gist.github.com/eirikbakke/09a090ab8052d38c8c87 Note that the "implements Scrollable" business is not necessary to trigger the bug, I just did it to set the getScrollableBlockIncrement to something higher than 1 so that you'd see the jitter clearly on a video. This happens in any app that uses a JScrollPane, including the NetBeans IDE's code editor and other scrollable panels, as well as in trivial apps like the linked example. The bug occurs consistently, with or without external monitors attached, at any resolution, and with or without simulated retina mode enabled. I'm on a 13-inch mid-2012 MacBook Air. If no one knows about an existing bug report about this, I'll submit it on http://bugreport.java.com (I searched bugs.openjdk.java.net ). -- Eirik -- Best regards, Sergey. From Sergey.Bylokhov at oracle.com Thu Jan 21 02:13:37 2016 From: Sergey.Bylokhov at oracle.com (Sergey Bylokhov) Date: Thu, 21 Jan 2016 05:13:37 +0300 Subject: JScrollPane jitter during trackpad scrolling on MacOS/Aqua In-Reply-To: References: <569E6959.6070209@oracle.com> Message-ID: <56A03ED1.5010903@oracle.com> Hi, Eirik. Did you create a bug at bugreport.java.com? On 20/01/16 00:51, Eirik Bakke wrote: > > The "left-to-right is scroll up" feature is not how native apps work on > MacOS, so my guess would be it could simply be disabled on MacOS. I will take a look what we can do here. The problem only occurs if the second(horisontal) scrollbar is invisible. > > Note also that when scrolling with the trackpad in native MacOS apps, > the OS makes a decision as to whether the scroll is vertical or > horizontal, and then scrolls in that direction only. The cut-off is 45 > degrees, giving the user plenty of wiggle room. You can never scroll > truly diagonally except by zig-zaging. Not sure but personally I like the possibility to scroll diagonally w/o zig-zaging when two scrolls are visible. > > -- Eirik > > On 1/19/16, 11:50 AM, "Sergey Bylokhov" > wrote: > > I am not sure that this is regression or a bug. In your case you scroll > from left-down to right-up. > But left-to-right is a scroll to up, and down-to-up is a scroll to > down. > So you scroll in both direction at the same time. > > On 19/01/16 19:18, Eirik Bakke wrote: > > Hi, macos-port-dev. > > Here's another bug report for Swing on Aqua/MacOS. In recent Java > versions (6-12 months, not sure), trackpad scrolling in any > JScrollPane > has become extremely jittery, as demonstrated in the following > video: > > https://vimeo.com/151843642 > > The source code for the example app used can be found here: > https://gist.github.com/eirikbakke/09a090ab8052d38c8c87 > Note that the "implements Scrollable" business is not necessary to > trigger the bug, I just did it to set the > getScrollableBlockIncrement to > something higher than 1 so that you'd see the jitter clearly on > a video. > > This happens in any app that uses a JScrollPane, including the > NetBeans > IDE's code editor and other scrollable panels, as well as in > trivial > apps like the linked example. The bug occurs consistently, with or > without external monitors attached, at any resolution, and with or > without simulated retina mode enabled. I'm on a 13-inch mid-2012 > MacBook > Air. > > If no one knows about an existing bug report about this, I'll > submit it > on http://bugreport.java.com (I > searched > bugs.openjdk.java.net ). > > -- Eirik > > > > -- > Best regards, Sergey. > -- Best regards, Sergey. From ebakke at mit.edu Thu Jan 21 12:57:28 2016 From: ebakke at mit.edu (Eirik Bakke) Date: Thu, 21 Jan 2016 12:57:28 +0000 Subject: JScrollPane jitter during trackpad scrolling on MacOS/Aqua In-Reply-To: <56A03ED1.5010903@oracle.com> References: <569E6959.6070209@oracle.com> <56A03ED1.5010903@oracle.com> Message-ID: > Did you create a bug at bugreport.java.com? I can go ahead and file one! > Not sure but personally I like the possibility to scroll diagonally w/o >zig-zaging when two scrolls are visible. I don't have strong opinions on this one. Presumably Apple decided that the use case of exact horizontal/vertical scrolling would get priority over smooth diagonal scrolling. It could also have ergonomic reasons, as it allows exact vertical scrolling without the user curling their fingers even when their hands are on the side of the trackpad, as they are when aligned with a MacBook keyboard. In any case it's a separate issue from the jitter bug, of course. -- Eirik On 1/20/16, 9:13 PM, "Sergey Bylokhov" wrote: >Hi, Eirik. >Did you create a bug at bugreport.java.com? > >On 20/01/16 00:51, Eirik Bakke wrote: >> >> The "left-to-right is scroll up" feature is not how native apps work on >> MacOS, so my guess would be it could simply be disabled on MacOS. > >I will take a look what we can do here. The problem only occurs if the >second(horisontal) scrollbar is invisible. > >> >> Note also that when scrolling with the trackpad in native MacOS apps, >> the OS makes a decision as to whether the scroll is vertical or >> horizontal, and then scrolls in that direction only. The cut-off is 45 >> degrees, giving the user plenty of wiggle room. You can never scroll >> truly diagonally except by zig-zaging. > >Not sure but personally I like the possibility to scroll diagonally w/o >zig-zaging when two scrolls are visible. > >> >> -- Eirik >> >> On 1/19/16, 11:50 AM, "Sergey Bylokhov" > > wrote: >> >> I am not sure that this is regression or a bug. In your case you >>scroll >> from left-down to right-up. >> But left-to-right is a scroll to up, and down-to-up is a scroll to >> down. >> So you scroll in both direction at the same time. >> >> On 19/01/16 19:18, Eirik Bakke wrote: >> >> Hi, macos-port-dev. >> >> Here's another bug report for Swing on Aqua/MacOS. In recent >>Java >> versions (6-12 months, not sure), trackpad scrolling in any >> JScrollPane >> has become extremely jittery, as demonstrated in the following >> video: >> >> https://vimeo.com/151843642 >> >> The source code for the example app used can be found here: >> https://gist.github.com/eirikbakke/09a090ab8052d38c8c87 >> Note that the "implements Scrollable" business is not necessary >>to >> trigger the bug, I just did it to set the >> getScrollableBlockIncrement to >> something higher than 1 so that you'd see the jitter clearly on >> a video. >> >> This happens in any app that uses a JScrollPane, including the >> NetBeans >> IDE's code editor and other scrollable panels, as well as in >> trivial >> apps like the linked example. The bug occurs consistently, with >>or >> without external monitors attached, at any resolution, and with >>or >> without simulated retina mode enabled. I'm on a 13-inch mid-2012 >> MacBook >> Air. >> >> If no one knows about an existing bug report about this, I'll >> submit it >> on http://bugreport.java.com (I >> searched >> bugs.openjdk.java.net ). >> >> -- Eirik >> >> >> >> -- >> Best regards, Sergey. >> > > >-- >Best regards, Sergey. From ebakke at mit.edu Thu Jan 21 17:42:18 2016 From: ebakke at mit.edu (Eirik Bakke) Date: Thu, 21 Jan 2016 17:42:18 +0000 Subject: JScrollPane jitter during trackpad scrolling on MacOS/Aqua In-Reply-To: <56A03ED1.5010903@oracle.com> References: <569E6959.6070209@oracle.com> <56A03ED1.5010903@oracle.com> Message-ID: Hi again, Sergey. I just filed a bug report and got review ID JI-9028846. Thanks for your help! -- Eirik On 1/20/16, 9:13 PM, "Sergey Bylokhov" wrote: >Hi, Eirik. >Did you create a bug at bugreport.java.com? > >On 20/01/16 00:51, Eirik Bakke wrote: >> >> The "left-to-right is scroll up" feature is not how native apps work on >> MacOS, so my guess would be it could simply be disabled on MacOS. > >I will take a look what we can do here. The problem only occurs if the >second(horisontal) scrollbar is invisible. > >> >> Note also that when scrolling with the trackpad in native MacOS apps, >> the OS makes a decision as to whether the scroll is vertical or >> horizontal, and then scrolls in that direction only. The cut-off is 45 >> degrees, giving the user plenty of wiggle room. You can never scroll >> truly diagonally except by zig-zaging. > >Not sure but personally I like the possibility to scroll diagonally w/o >zig-zaging when two scrolls are visible. > >> >> -- Eirik >> >> On 1/19/16, 11:50 AM, "Sergey Bylokhov" > > wrote: >> >> I am not sure that this is regression or a bug. In your case you >>scroll >> from left-down to right-up. >> But left-to-right is a scroll to up, and down-to-up is a scroll to >> down. >> So you scroll in both direction at the same time. >> >> On 19/01/16 19:18, Eirik Bakke wrote: >> >> Hi, macos-port-dev. >> >> Here's another bug report for Swing on Aqua/MacOS. In recent >>Java >> versions (6-12 months, not sure), trackpad scrolling in any >> JScrollPane >> has become extremely jittery, as demonstrated in the following >> video: >> >> https://vimeo.com/151843642 >> >> The source code for the example app used can be found here: >> https://gist.github.com/eirikbakke/09a090ab8052d38c8c87 >> Note that the "implements Scrollable" business is not necessary >>to >> trigger the bug, I just did it to set the >> getScrollableBlockIncrement to >> something higher than 1 so that you'd see the jitter clearly on >> a video. >> >> This happens in any app that uses a JScrollPane, including the >> NetBeans >> IDE's code editor and other scrollable panels, as well as in >> trivial >> apps like the linked example. The bug occurs consistently, with >>or >> without external monitors attached, at any resolution, and with >>or >> without simulated retina mode enabled. I'm on a 13-inch mid-2012 >> MacBook >> Air. >> >> If no one knows about an existing bug report about this, I'll >> submit it >> on http://bugreport.java.com (I >> searched >> bugs.openjdk.java.net ). >> >> -- Eirik >> >> >> >> -- >> Best regards, Sergey. >> > > >-- >Best regards, Sergey. From ebakke at mit.edu Sat Jan 23 19:54:24 2016 From: ebakke at mit.edu (Eirik Bakke) Date: Sat, 23 Jan 2016 19:54:24 +0000 Subject: Info regarding the MacOS JProgressBar bug Message-ID: Another Aqua JProgressBar-related crash (livelock?): Today my Java app stopped responding with 100% CPU utilization; the attached VisualVM thread dump shows the event dispatch thread stuck in the native method apple.laf.JRSUIControl.paintImage, called via com.apple.laf.AquaProgressBarUI.paint(AquaProgressBarUI.java:164). This crash happened while doing a tab pane drag-and-drop operation in a NetBeans Platform-based window system to relocate a sidebar in the window layout. In this case the NetBeans window system does an offscreen paint of the dragged panel (which contained a JProgressBar); this may have confused the painting code. I was able to reproduce this crash several times, getting the same stack trace in the event dispatch thread every time. -- Eirik On 1/13/16, 2:18 PM, "macosx-port-dev on behalf of Eirik Bakke" wrote: >I just filed an official bug report on http://bugreport.java.com/ and >received review ID JI-9028577. I'll wait for it to appear on JIRA. > >-- Eirik > >From: Saurav Sarkar >> >Date: Friday, January 1, 2016 at 10:18 PM >To: Eirik Bakke > >Cc: >"macosx-port-dev at openjdk.java.net >" > >> >Subject: Re: Info regarding the MacOS JProgress Bar bug > >Hi Eirik, > >Please find the info below. > >We are on Mac OS and we see huge energy impact when the progress bar is >shown. >The wave like animation when showing the progress is causing the impact. > >Its related to JProgressBar. I haven't run your test case, but if it is >reproducing the issue then it is better to raise a bug. > >Thanks and Regards, >Saurav > >On Fri, Jan 1, 2016 at 9:00 PM, Eirik Bakke >> wrote: >Hi, Saurav. > >I'm happy to submit a JDK bug report on this. Some more information would >be useful--what are the conditions under which you are able to reproduce >it yourself? And what are you observing? High CPU usage? Flickering? Is it >related to a JProgressBar? Are you on MacOS? > >-- Eirik > >On 12/28/15, 1:16 PM, "macosx-port-dev on behalf of Saurav Sarkar" >penjdk.java.net> on behalf of >saurav.sarkar1 at gmail.com> wrote: > >>Hi All, >> >>I stumbled onto this bug >>http://mail.openjdk.java.net/pipermail/macosx-port-dev/2015-December/0069 >>8 >>9.html >>raised by Erik few days back. We face a similar problem in our Mac >>application >> >>Is there any update on this or is this being filed as a bug ? >> >>cheers, >> >>Saurav > > -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: 160123 Stuck in AquaProgressBarUI.paint.txt URL: