Re: RFR: 8364996: java/awt/font/FontNames/LocaleFamilyNames.java times out on Windows [v2]

2025-08-08 Thread Christoph Langer
On Fri, 8 Aug 2025 08:10:09 GMT, Matthias Baesken wrote: >> java/awt/font/FontNames/LocaleFamilyNames.java is slow on Windows and on >> some machines it even times out. >> Add some logging to the test, and we could also increase the test timeout a >> bit. > > Matthias Baesken has updated the pu

Re: RFR: 8364996: java/awt/font/FontNames/LocaleFamilyNames.java times out on Windows

2025-08-07 Thread Christoph Langer
On Thu, 7 Aug 2025 08:14:45 GMT, Matthias Baesken wrote: > java/awt/font/FontNames/LocaleFamilyNames.java is slow on Windows and on some > machines it even times out. > Add some logging to the test, and we could also increase the test timeout a > bit. Looks good. What is the reason to use othe

Re: RFR: 8362390: AIX make fails in awt_GraphicsEnv.c

2025-07-16 Thread Christoph Langer
On Wed, 16 Jul 2025 12:44:45 GMT, Matthias Baesken wrote: > We have build errors on AIX , seems related to > [JDK-8354415](https://bugs.openjdk.org/browse/JDK-8354415) : > > > === Output from failing command(s) repeated here === > * For target support_native_java.desktop_libawt_xawt_awt_Graphi

Re: RFR: 8330936: [ubsan] exclude function BilinearInterp and ShapeSINextSpan in libawt java2d from ubsan checks

2025-01-29 Thread Christoph Langer
On Thu, 23 Jan 2025 09:23:52 GMT, Matthias Baesken wrote: > In java2d coding there are a few overflows (those are shown when running > jtreg tests with ubsan enabled binaries) > jtreg test java/awt/Scrollbar/AquaLFScrollbarTest/ScrollBarBorderTest.java > shows > > jdk/src/java.desktop/share/n

Re: RFR: 8330936: [ubsan] signed integer overflows in libawt java2d

2025-01-28 Thread Christoph Langer
On Thu, 23 Jan 2025 09:23:52 GMT, Matthias Baesken wrote: > In java2d coding there are a few overflows (those are shown when running > jtreg tests with ubsan enabled binaries) > jtreg test java/awt/Scrollbar/AquaLFScrollbarTest/ScrollBarBorderTest.java > shows > > jdk/src/java.desktop/share/n

Re: RFR: 8347576: Error output in libjsound has non matching format strings [v3]

2025-01-15 Thread Christoph Langer
On Wed, 15 Jan 2025 08:39:49 GMT, Matthias Baesken wrote: > ping, need a re-review after recent changes ... What about Martin's comment regarding the %p for hex byte values? Shouldn't some form of %x be better? - PR Comment: https://git.openjdk.org/jdk/pull/23076#issuecomment-2592

Re: RFR: 8347576: Error output in libjsound has non matching format strings [v2]

2025-01-14 Thread Christoph Langer
On Tue, 14 Jan 2025 10:51:56 GMT, Matthias Baesken wrote: >> When enabling the jsound ERROR and TRACE reporting (see >> src/java.desktop/share/native/libjsound/Configure.h >> https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/native/libjsound/Configure.h#L32 >> ), we run into so

Re: RFR: 8347576: Error output in libjsound has non matching format strings

2025-01-14 Thread Christoph Langer
On Tue, 14 Jan 2025 08:55:57 GMT, Matthias Baesken wrote: > Regarding jlong-format, in HS globalDefinitions.hpp we have this > > ``` > #define INT64_FORMAT "%" PRId64 > > #ifndef JLONG_FORMAT > #define JLONG_FORMAT INT64_FORMAT > ``` > > Not sure we want t

Re: RFR: 8347576: Error output in libjsound has non matching format strings

2025-01-14 Thread Christoph Langer
On Mon, 13 Jan 2025 14:54:09 GMT, Matthias Baesken wrote: > When enabling the jsound ERROR and TRACE reporting (see > src/java.desktop/share/native/libjsound/Configure.h > https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/native/libjsound/Configure.h#L32 > ), we run into some b

Re: RFR: 8347576: Error output in libjsound has non matching format strings

2025-01-13 Thread Christoph Langer
On Mon, 13 Jan 2025 14:54:09 GMT, Matthias Baesken wrote: > When enabling the jsound ERROR and TRACE reporting (see > src/java.desktop/share/native/libjsound/Configure.h > https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/native/libjsound/Configure.h#L32 > ), we run into some b

Re: RFR: 8339475: Check return value of pthread_create in jdk coding [v3]

2024-09-26 Thread Christoph Langer
On Thu, 26 Sep 2024 14:44:53 GMT, Matthias Baesken wrote: >> It has been discussed that checking the return value of pthread_create >> should be done. >> See the discussion here https://github.com/openjdk/jdk/pull/20812 about the >> splashscreen coding . > > Matthias Baesken has updated the pul

Re: RFR: 8339475: Check return value of pthread_create in jdk coding

2024-09-26 Thread Christoph Langer
On Thu, 26 Sep 2024 07:07:27 GMT, Matthias Baesken wrote: > > Yes, I think the call to java_md_macosx.m seems redundant. And I would > > remove the comment in java_md_common.c. strerror is >used at various places > > in JDK coding and there's actually only one place that uses strerror_r, in >

Re: RFR: 8339475: Check return value of pthread_create in jdk coding

2024-09-26 Thread Christoph Langer
On Wed, 25 Sep 2024 11:46:00 GMT, Matthias Baesken wrote: > It has been discussed that checking the return value of pthread_create should > be done. > See the discussion here https://github.com/openjdk/jdk/pull/20812 about the > splashscreen coding . > JLI_ReportErrorMessageSys > I found so

Re: RFR: 8339475: Check return value of pthread_create in jdk coding

2024-09-25 Thread Christoph Langer
On Wed, 25 Sep 2024 11:46:00 GMT, Matthias Baesken wrote: > It has been discussed that checking the return value of pthread_create should > be done. > See the discussion here https://github.com/openjdk/jdk/pull/20812 about the > splashscreen coding . Looks good overall, just one nit. I guess

Re: RFR: 8339364: AIX build fails: various unused variable and function warnings

2024-09-02 Thread Christoph Langer
On Mon, 2 Sep 2024 11:43:20 GMT, Matthias Baesken wrote: > We get a couple of warnings as errors on AIX because of unused variables or > functions , for example : > /priv/jenkins/client-home/workspace/openjdk-jdk-dev-aix_ppc64-opt/jdk/src/java.base/unix/native/libjava/ProcessHandleImpl_unix.c:66

Re: RFR: 8327137: Add test for ConcurrentModificationException in BasicDirectoryModel

2024-03-18 Thread Christoph Langer
On Fri, 15 Mar 2024 11:39:05 GMT, Christoph Langer wrote: > > > I added it to our testing. Results early next week. > > > > > > @RealCLanger Thank you. I'm more interested in the failing case. How > > reliable does the test reproduce the problem? >

Re: RFR: 8327137: Add test for ConcurrentModificationException in BasicDirectoryModel

2024-03-15 Thread Christoph Langer
On Fri, 15 Mar 2024 10:53:06 GMT, Alexey Ivanov wrote: > > I added it to our testing. Results early next week. > > @RealCLanger Thank you. I'm more interested in the failing case. How reliable > does the test reproduce the problem? Yes, it's running in 21 and 22 as well, so we'll see what happ

Re: RFR: 8327137: Add test for ConcurrentModificationException in BasicDirectoryModel

2024-03-15 Thread Christoph Langer
On Mon, 11 Mar 2024 19:16:21 GMT, Alexey Ivanov wrote: > @mrserb, @RealCLanger, could you run this test in your environments, please? > It is for Linux and macOS only. > > I'm looking for confirmation that the test fails without the fix for > [JDK-8323670](https://bugs.openjdk.org/browse/JDK-8

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v11]

2024-03-13 Thread Christoph Langer
On Thu, 7 Mar 2024 16:55:12 GMT, Christoph Langer wrote: >> The assertions reported in the bug were observed spuriously and here and >> there broke tests in some Windows configurations. >> For instance [JDK-8266129](https://bugs.openjdk.org/browse/JDK-8266129), >

Integrated: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185

2024-03-13 Thread Christoph Langer
On Mon, 29 Jan 2024 14:24:43 GMT, Christoph Langer wrote: > The assertions reported in the bug were observed spuriously and here and > there broke tests in some Windows configurations. > For instance [JDK-8266129](https://bugs.openjdk.org/browse/JDK-8266129), > [JDK-82

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v11]

2024-03-07 Thread Christoph Langer
CreateDC returns non-NULL in Devices.cpp. I also add some more > checking/error handling to AwtWin32GraphicsDevice::Initialize() for > correctness. > > Furthermore, I re-enable the test > `javax/swing/reliability/HangDuringStaticInitialization.java` for Windows > Debug VMs, which reve

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v9]

2024-03-07 Thread Christoph Langer
On Thu, 7 Mar 2024 16:43:52 GMT, Alexey Ivanov wrote: >> src/java.desktop/windows/native/libawt/windows/awt_Win32GraphicsDevice.cpp >> line 182: >> >>> 180: gpBitmapInfo->bmiHeader.biBitCount = 0; >>> 181: HDC hBMDC = this->GetDC(); >>> 182: VERIFY(hBMDC != NULL); >> >> You may wan

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v2]

2024-03-07 Thread Christoph Langer
On Thu, 7 Mar 2024 00:47:00 GMT, Phil Race wrote: >> It is not what I meant… If we want to preserve the way it work, we should >> execute the below code even if `this->GetDC()` fails… >> >> On the other hand, testing didn't find any problems, in which case I prefer >> bailing out after `::GetD

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v8]

2024-03-07 Thread Christoph Langer
On Wed, 6 Mar 2024 08:29:01 GMT, Alexey Ivanov wrote: >> Maybe. I think, as Phil already mentions, a cleanup/centralization of the >> places that load libawt should be done. But I would suggest to do this in a >> separate issue. > > Sounds reasonable. Will you create a CR for this? So that we w

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v9]

2024-03-07 Thread Christoph Langer
On Wed, 6 Mar 2024 08:31:34 GMT, Alexey Ivanov wrote: >> Christoph Langer has updated the pull request with a new target base due to >> a merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request cont

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v10]

2024-03-07 Thread Christoph Langer
CreateDC returns non-NULL in Devices.cpp. I also add some more > checking/error handling to AwtWin32GraphicsDevice::Initialize() for > correctness. > > Furthermore, I re-enable the test > `javax/swing/reliability/HangDuringStaticInitialization.java` for Windows > Debug VMs, which reve

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v8]

2024-03-05 Thread Christoph Langer
On Tue, 5 Mar 2024 18:20:39 GMT, Alexey Ivanov wrote: > It looks good to me. > > The only question I have is for the fallback in `awt_Win32GraphicsDevice.cpp`. > > Bailing out quickly makes the code cleaner. In this case, if `::GetDIBits` > fails, we can bail out too. > > If the fallback is n

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v9]

2024-03-05 Thread Christoph Langer
On Wed, 6 Mar 2024 07:50:08 GMT, Christoph Langer wrote: >> The assertions reported in the bug were observed spuriously and here and >> there broke tests in some Windows configurations. >> For instance [JDK-8266129](https://bugs.openjdk.org/browse/JDK-8266129), >

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v8]

2024-03-05 Thread Christoph Langer
On Tue, 5 Mar 2024 18:00:51 GMT, Alexey Ivanov wrote: >> Christoph Langer has updated the pull request incrementally with one >> additional commit since the last revision: >> >> load awt.dll before display check > > src/java.desktop/windows/classes/sun/awt/Pla

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v9]

2024-03-05 Thread Christoph Langer
CreateDC returns non-NULL in Devices.cpp. I also add some more > checking/error handling to AwtWin32GraphicsDevice::Initialize() for > correctness. > > Furthermore, I re-enable the test > `javax/swing/reliability/HangDuringStaticInitialization.java` for Windows > Debug VMs, which reve

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v7]

2024-03-01 Thread Christoph Langer
On Thu, 29 Feb 2024 22:24:14 GMT, Christoph Langer wrote: >> The assertions reported in the bug were observed spuriously and here and >> there broke tests in some Windows configurations. >> For instance [JDK-8266129](https://bugs.openjdk.org/browse/JDK-8266129), >

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v8]

2024-03-01 Thread Christoph Langer
CreateDC returns non-NULL in Devices.cpp. I also add some more > checking/error handling to AwtWin32GraphicsDevice::Initialize() for > correctness. > > Furthermore, I re-enable the test > `javax/swing/reliability/HangDuringStaticInitialization.java` for Windows > Debug VMs, which reve

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v7]

2024-02-29 Thread Christoph Langer
CreateDC returns non-NULL in Devices.cpp. I also add some more > checking/error handling to AwtWin32GraphicsDevice::Initialize() for > correctness. > > Furthermore, I re-enable the test > `javax/swing/reliability/HangDuringStaticInitialization.java` for Windows > Debug VMs, which reve

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v6]

2024-02-29 Thread Christoph Langer
On Fri, 23 Feb 2024 13:44:15 GMT, Christoph Langer wrote: >> The assertions reported in the bug were observed spuriously and here and >> there broke tests in some Windows configurations. >> For instance [JDK-8266129](https://bugs.openjdk.org/browse/JDK-8266129), >

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v6]

2024-02-25 Thread Christoph Langer
On Fri, 23 Feb 2024 13:44:15 GMT, Christoph Langer wrote: >> The assertions reported in the bug were observed spuriously and here and >> there broke tests in some Windows configurations. >> For instance [JDK-8266129](https://bugs.openjdk.org/browse/JDK-8266129), >

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v6]

2024-02-24 Thread Christoph Langer
On Sat, 24 Feb 2024 19:12:31 GMT, Phil Race wrote: > So there is something wrong here. About 40 tests just plain crash. About 10 > tests fail with headlessException - even if they say they are headful. > Probably more tests would fail but entire tasks timed out as a result. OK - do you have so

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v6]

2024-02-23 Thread Christoph Langer
On Fri, 23 Feb 2024 21:43:21 GMT, Phil Race wrote: > The change looks good but I'd like to run it through all our tests since if > there's anything wrong with this code path we are in trouble :-) Yes, please test thoroughly and let me know. I'll give it another spin in our testing as well. >

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v5]

2024-02-23 Thread Christoph Langer
On Fri, 16 Feb 2024 13:26:19 GMT, Christoph Langer wrote: >> The assertions reported in the bug were observed spuriously and here and >> there broke tests in some Windows configurations. >> For instance [JDK-8266129](https://bugs.openjdk.org/browse/JDK-8266129), >

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v6]

2024-02-23 Thread Christoph Langer
CreateDC returns non-NULL in Devices.cpp. I also add some more > checking/error handling to AwtWin32GraphicsDevice::Initialize() for > correctness. > > Furthermore, I re-enable the test > `javax/swing/reliability/HangDuringStaticInitialization.java` for Windows > Debug VMs, which reve

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v5]

2024-02-22 Thread Christoph Langer
On Fri, 16 Feb 2024 21:50:09 GMT, Phil Race wrote: > The first thing I worry about here is that the obvious implication is that we > can now have zero monitors. Even if the monitor were not usable, that seems > to have been "OK" in practice so long as we didn't assert out in a debug > build. H

Re: RFR: JDK-8326140: src/jdk.accessibility/windows/native/libjavaaccessbridge/AccessBridgeJavaEntryPoints.cpp ReleaseStringChars might be missing in early returns

2024-02-21 Thread Christoph Langer
On Mon, 19 Feb 2024 13:04:47 GMT, Matthias Baesken wrote: > In AccessBridgeJavaEntryPoints.cpp we have a couple of exception checks with > potential early returns. Those miss ReleaseStringChars . LGTM - Marked as reviewed by clanger (Reviewer). PR Review: https://git.openjdk.org/

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v4]

2024-02-16 Thread Christoph Langer
On Fri, 16 Feb 2024 12:52:34 GMT, Alexey Ivanov wrote: >> OK, yes, I'll turn this back to previous behavior. Rather don't touch >> something at all if we have no idea... 😉 > > I prefer *backing out*… — it makes the code cleaner. At the same time, I am > unsure about the consequences of doing so

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v4]

2024-02-16 Thread Christoph Langer
On Fri, 16 Feb 2024 11:40:15 GMT, Alexey Ivanov wrote: >> Christoph Langer has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Little cleanup > > src/java.desktop/windows/native/libawt/windows/Devi

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v5]

2024-02-16 Thread Christoph Langer
CreateDC returns non-NULL in Devices.cpp. I also add some more > checking/error handling to AwtWin32GraphicsDevice::Initialize() for > correctness. > > Furthermore, I re-enable the test > `javax/swing/reliability/HangDuringStaticInitialization.java` for Windows > Debug VMs, which reve

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v4]

2024-02-16 Thread Christoph Langer
On Fri, 16 Feb 2024 11:29:18 GMT, Alexey Ivanov wrote: >> Christoph Langer has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Little cleanup > > src/java.desktop/windows/native/libawt/windows/awt_Win32

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v4]

2024-02-16 Thread Christoph Langer
On Fri, 16 Feb 2024 08:46:10 GMT, Christoph Langer wrote: >> The assertions reported in the bug were observed spuriously and here and >> there broke tests in some Windows configurations. >> For instance [JDK-8266129](https://bugs.openjdk.org/browse/JDK-8266129), >

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v2]

2024-02-16 Thread Christoph Langer
On Thu, 15 Feb 2024 09:56:51 GMT, Alexey Ivanov wrote: >> Christoph Langer has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Add comments > > src/java.desktop/windows/native/libawt/windows/Devices.cpp line

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v2]

2024-02-16 Thread Christoph Langer
On Thu, 15 Feb 2024 22:46:54 GMT, Christoph Langer wrote: >> src/java.desktop/windows/native/libawt/windows/Devices.cpp line 102: >> >>> 100: memset((void*)(&mieInfo), 0, sizeof(MONITORINFOEX)); >>> 101: mieInfo.cbSize = sizeof(MONITORINFOEX); >>

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v4]

2024-02-16 Thread Christoph Langer
CreateDC returns non-NULL in Devices.cpp. I also add some more > checking/error handling to AwtWin32GraphicsDevice::Initialize() for > correctness. > > Furthermore, I re-enable the test > `javax/swing/reliability/HangDuringStaticInitialization.java` for Windows > Debug VMs, which reve

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v2]

2024-02-16 Thread Christoph Langer
On Thu, 15 Feb 2024 09:31:34 GMT, Alexey Ivanov wrote: >> Christoph Langer has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Add comments > > src/java.desktop/windows/native/libawt/windows/Devices

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v3]

2024-02-16 Thread Christoph Langer
CreateDC returns non-NULL in Devices.cpp. I also add some more > checking/error handling to AwtWin32GraphicsDevice::Initialize() for > correctness. > > Furthermore, I re-enable the test > `javax/swing/reliability/HangDuringStaticInitialization.java` for Windows > Debug VMs, which reve

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v2]

2024-02-15 Thread Christoph Langer
On Thu, 15 Feb 2024 09:37:28 GMT, Alexey Ivanov wrote: >> Christoph Langer has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Add comments > > src/java.desktop/windows/native/libawt/windows/awt_Win32

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v2]

2024-02-15 Thread Christoph Langer
On Thu, 15 Feb 2024 09:25:26 GMT, Alexey Ivanov wrote: >> Christoph Langer has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Add comments > > src/java.desktop/windows/native/libawt/windows/Devices.cpp line 10

Integrated: 8323664: java/awt/font/JNICheck/FreeTypeScalerJNICheck.java still fails with JNI warning on some Windows configurations

2024-02-15 Thread Christoph Langer
On Fri, 12 Jan 2024 17:47:23 GMT, Christoph Langer wrote: > This picks up fixing the issue of > [JDK-8276809](https://bugs.openjdk.org/browse/JDK-8276809) again. A fix had > been integrated with #17224 but @prrace had concerns and so it was backed out. > > I have now spent quit

Re: RFR: 8323664: java/awt/font/JNICheck/FreeTypeScalerJNICheck.java still fails with JNI warning on some Windows configurations [v3]

2024-02-09 Thread Christoph Langer
On Fri, 9 Feb 2024 14:23:28 GMT, Alexey Ivanov wrote: >> As far as I can see, the real problem is that `DWMIsCompositionEnabled` >> calls a Java method and does not check if an exception occurred. It should >> do it according to the JNI specification. >> >> I can assume `initScreens(env)` does

Re: RFR: 8323664: java/awt/font/JNICheck/FreeTypeScalerJNICheck.java still fails with JNI warning on some Windows configurations [v4]

2024-02-09 Thread Christoph Langer
On Wed, 31 Jan 2024 06:05:18 GMT, Christoph Langer wrote: >> This picks up fixing the issue of >> [JDK-8276809](https://bugs.openjdk.org/browse/JDK-8276809) again. A fix had >> been integrated with #17224 but @prrace had concerns and so it was backed >> out. >>

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v2]

2024-01-30 Thread Christoph Langer
On Wed, 31 Jan 2024 07:23:13 GMT, Christoph Langer wrote: >> The assertions reported in the bug were observed spuriously and here and >> there broke tests in some Windows configurations. >> For instance [JDK-8266129](https://bugs.openjdk.org/browse/JDK-8266129), >

Re: RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185 [v2]

2024-01-30 Thread Christoph Langer
CreateDC returns non-NULL in Devices.cpp. I also add some more > checking/error handling to AwtWin32GraphicsDevice::Initialize() for > correctness. > > Furthermore, I re-enable the test > `javax/swing/reliability/HangDuringStaticInitialization.java` for Windows > Debug VMs, which reve

Re: RFR: 8323664: java/awt/font/JNICheck/FreeTypeScalerJNICheck.java still fails with JNI warning on some Windows configurations [v3]

2024-01-30 Thread Christoph Langer
On Tue, 30 Jan 2024 14:03:39 GMT, Alexey Ivanov wrote: > Now that I re-read the problem statement and the exception handling JNI, the > fix doesn't look correct to me. > > What does the warning say? > > > WARNING in native method: JNI call made without checking exceptions when > > required to

Re: RFR: 8323664: java/awt/font/JNICheck/FreeTypeScalerJNICheck.java still fails with JNI warning on some Windows configurations [v3]

2024-01-30 Thread Christoph Langer
On Tue, 30 Jan 2024 14:13:07 GMT, Alexey Ivanov wrote: >> Christoph Langer has updated the pull request with a new target base due to >> a merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request conta

Re: RFR: 8323664: java/awt/font/JNICheck/FreeTypeScalerJNICheck.java still fails with JNI warning on some Windows configurations [v3]

2024-01-30 Thread Christoph Langer
On Tue, 30 Jan 2024 13:44:22 GMT, Alexey Ivanov wrote: >> In fact, any method can throw an exception… >> >> Is there a guide which clearly states where `ExceptionCheck` is required? >> The function returns a boolean indicating whether there's a pending >> exception. Shall we back out if there

Re: RFR: 8323664: java/awt/font/JNICheck/FreeTypeScalerJNICheck.java still fails with JNI warning on some Windows configurations [v3]

2024-01-30 Thread Christoph Langer
On Mon, 29 Jan 2024 20:45:18 GMT, Alexey Ivanov wrote: >> Christoph Langer has updated the pull request with a new target base due to >> a merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request conta

Re: RFR: 8323664: java/awt/font/JNICheck/FreeTypeScalerJNICheck.java still fails with JNI warning on some Windows configurations [v4]

2024-01-30 Thread Christoph Langer
/8b6293f6bfb7b7628c6604e6c44401fc96d85cf4/src/java.desktop/windows/native/libawt/windows/awt_Win32GraphicsEnv.cpp#L141 > Maybe the usual control flow would call the wrapping native method > `DWMIsCompositi onEnabled()` from somewhere else initially such that the initialization of `Win32Gr

RFR: 8185862: AWT Assertion Failure in ::GetDIBits(hBMDC, hBM, 0, 1, 0, gpBitmapInfo, 0) 'awt_Win32GraphicsDevice.cpp', at line 185

2024-01-29 Thread Christoph Langer
The assertions reported in the bug were observed spuriously and here and there broke tests in some Windows configurations. For instance [JDK-8266129](https://bugs.openjdk.org/browse/JDK-8266129), [JDK-8269529](https://bugs.openjdk.org/browse/JDK-8269529) or [JDK-8323664](https://bugs.openjdk.org

Re: RFR: 8323664: java/awt/font/JNICheck/FreeTypeScalerJNICheck.java still fails with JNI warning on some Windows configurations [v3]

2024-01-28 Thread Christoph Langer
/8b6293f6bfb7b7628c6604e6c44401fc96d85cf4/src/java.desktop/windows/native/libawt/windows/awt_Win32GraphicsEnv.cpp#L141 > Maybe the usual control flow would call the wrapping native method > `DWMIsCompositi onEnabled()` from somewhere else initially such that the initialization of `Win32G

Re: RFR: 8323664: java/awt/font/JNICheck/FreeTypeScalerJNICheck.java still fails with JNI warning on some Windows configurations [v2]

2024-01-28 Thread Christoph Langer
On Sat, 27 Jan 2024 06:44:59 GMT, Christoph Langer wrote: > Thanks for the review. For some reason, however, I still saw the jni warning > in our env with the patch applied. Still looking into it to understand what > I'm missing... OK, got it. The exception check needs to be b

Re: RFR: 8323664: java/awt/font/JNICheck/FreeTypeScalerJNICheck.java still fails with JNI warning on some Windows configurations [v2]

2024-01-26 Thread Christoph Langer
On Thu, 25 Jan 2024 06:36:36 GMT, Christoph Langer wrote: >> This picks up fixing the issue of >> [JDK-8276809](https://bugs.openjdk.org/browse/JDK-8276809) again. A fix had >> been integrated with #17224 but @prrace had concerns and so it was backed >> out. >>

Re: RFR: 8323664: java/awt/font/JNICheck/FreeTypeScalerJNICheck.java still fails with JNI warning on some Windows configurations [v2]

2024-01-24 Thread Christoph Langer
/8b6293f6bfb7b7628c6604e6c44401fc96d85cf4/src/java.desktop/windows/native/libawt/windows/awt_Win32GraphicsEnv.cpp#L141 > Maybe the usual control flow would call the wrapping native method > `DWMIsCompositi onEnabled()` from somewhere else initially such that the initialization of `Win32G

Re: RFR: JDK-8320405: [Windows Server 2016] java/awt/image/MultiResolutionImage/MultiResolutionImageObserverTest.java shows issues in awt_Win32GraphicsDevice.cpp [v3]

2024-01-24 Thread Christoph Langer
On Thu, 11 Jan 2024 16:52:40 GMT, Matthias Baesken wrote: >> When running with fastdebug binaries we run intermittent into the issue >> below in >> jtreg test >> java/awt/image/MultiResolutionImage/MultiResolutionImageObserverTest.java . >> Seems we miss checking of successful HBITMAP creation

Re: RFR: JDK-8320405: [Windows Server 2016] java/awt/image/MultiResolutionImage/MultiResolutionImageObserverTest.java shows issues in awt_Win32GraphicsDevice.cpp [v3]

2024-01-24 Thread Christoph Langer
On Thu, 11 Jan 2024 16:52:40 GMT, Matthias Baesken wrote: >> When running with fastdebug binaries we run intermittent into the issue >> below in >> jtreg test >> java/awt/image/MultiResolutionImage/MultiResolutionImageObserverTest.java . >> Seems we miss checking of successful HBITMAP creation

Re: RFR: 8323664: java/awt/font/JNICheck/FreeTypeScalerJNICheck.java still fails with JNI warning on some Windows configurations

2024-01-24 Thread Christoph Langer
On Fri, 12 Jan 2024 17:47:23 GMT, Christoph Langer wrote: > This picks up fixing the issue of > [JDK-8276809](https://bugs.openjdk.org/browse/JDK-8276809) again. A fix had > been integrated with #17224 but @prrace had concerns and so it was backed out. > > I have now spent quit

Re: RFR: 8323664: java/awt/font/JNICheck/FreeTypeScalerJNICheck.java still fails with JNI warning on some Windows configurations

2024-01-16 Thread Christoph Langer
On Fri, 12 Jan 2024 17:47:23 GMT, Christoph Langer wrote: > This picks up fixing the issue of > [JDK-8276809](https://bugs.openjdk.org/browse/JDK-8276809) again. A fix had > been integrated with #17224 but @prrace had concerns and so it was backed out. > > I have now spent quit

RFR: 8323664: java/awt/font/JNICheck/FreeTypeScalerJNICheck.java still fails with JNI warning on some Windows configurations

2024-01-12 Thread Christoph Langer
This picks up fixing the issue of [JDK-8276809](https://bugs.openjdk.org/browse/JDK-8276809) again. A fix had been integrated with #17224 but @prrace had concerns and so it was backed out. I have now spent quite some thoughts into the problem and end up with the [initial commit](https://github

Re: RFR: JDK-8276809: java/awt/font/JNICheck/FreeTypeScalerJNICheck.java shows JNI warning on Windows

2024-01-09 Thread Christoph Langer
On Tue, 2 Jan 2024 15:03:12 GMT, Matthias Baesken wrote: > The new test java/awt/font/JNICheck/FreeTypeScalerJNICheck.java introduced > with https://bugs.openjdk.java.net/browse/JDK-8269223 adds -Xcheck:jni , and > shows on Windows server 2019 the following JNI warning , so the test fails on >

Integrated: 8317706: Exclude java/awt/Graphics2D/DrawString/RotTransText.java on linux

2023-10-10 Thread Christoph Langer
On Sun, 8 Oct 2023 22:15:59 GMT, Christoph Langer wrote: > This test is failing on several Linux configurations (SLES 15), so it should > be excluded. This pull request has now been integrated. Changeset: fcff222f Author:Christoph Langer URL: https://git.openjdk.org/jdk/

RFR: 8317706: Exclude java/awt/Graphics2D/DrawString/RotTransText.java on linux

2023-10-08 Thread Christoph Langer
This test is failing on several Linux configurations (SLES 15), so it should be excluded. - Commit messages: - JDK-8317706 Changes: https://git.openjdk.org/jdk/pull/16096/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=16096&range=00 Issue: https://bugs.openjdk.org/browse

Re: RFR: 8316710: Exclude java/awt/font/Rotate/RotatedTextTest.java [v2]

2023-09-27 Thread Christoph Langer
On Wed, 27 Sep 2023 08:10:16 GMT, Christoph Langer wrote: >> Exclude java/awt/font/Rotate/RotatedTextTest.java until >> [JDK-8219641](https://bugs.openjdk.org/browse/JDK-8219641) is fixed. The >> error shows in several linux installations. > > Christoph Langer has updat

Integrated: 8316710: Exclude java/awt/font/Rotate/RotatedTextTest.java

2023-09-27 Thread Christoph Langer
On Fri, 22 Sep 2023 06:20:42 GMT, Christoph Langer wrote: > Exclude java/awt/font/Rotate/RotatedTextTest.java until > [JDK-8219641](https://bugs.openjdk.org/browse/JDK-8219641) is fixed. The > error shows in several linux installations. This pull request has now been integrated.

Re: RFR: 8316710: Exclude java/awt/font/Rotate/RotatedTextTest.java [v2]

2023-09-27 Thread Christoph Langer
On Tue, 26 Sep 2023 13:37:53 GMT, Alexey Ivanov wrote: >> I couldn't find any best practices for problem-listing. >> >> Yet keeping tests in the same area closer seems like a good idea to me. >> Either line is fine with me. Thanks. >> >> I started an internal discussion in clientlibs to see wh

Re: RFR: 8316710: Exclude java/awt/font/Rotate/RotatedTextTest.java [v2]

2023-09-27 Thread Christoph Langer
> Exclude java/awt/font/Rotate/RotatedTextTest.java until > [JDK-8219641](https://bugs.openjdk.org/browse/JDK-8219641) is fixed. The > error shows in several linux installations. Christoph Langer has updated the pull request with a new target base due to a merge or a rebase. The in

Re: RFR: 8316710: Exclude java/awt/font/Rotate/RotatedTextTest.java

2023-09-25 Thread Christoph Langer
On Mon, 25 Sep 2023 10:35:21 GMT, Alexey Ivanov wrote: >> Exclude java/awt/font/Rotate/RotatedTextTest.java until >> [JDK-8219641](https://bugs.openjdk.org/browse/JDK-8219641) is fixed. The >> error shows in several linux installations. > > test/jdk/ProblemList.txt line 472: > >> 470: >> 471:

RFR: 8316710: Exclude java/awt/font/Rotate/RotatedTextTest.java

2023-09-21 Thread Christoph Langer
Exclude java/awt/font/Rotate/RotatedTextTest.java until [JDK-8219641](https://bugs.openjdk.org/browse/JDK-8219641) is fixed. The error shows in several linux installations. - Commit messages: - JDK-8316710 Changes: https://git.openjdk.org/jdk/pull/15880/files Webrev: https://webr

Re: RFR: 8219641: java/awt/font/Rotate/RotatedTextTest.java fails on Linux: Test failed for angle 15.0

2023-09-17 Thread Christoph Langer
On Mon, 18 Sep 2023 06:19:05 GMT, Arno Zeller wrote: > The test fails on newer SLES versions that have RobotoSlab-Regular.ttf as > default font. I suggest to try getting a DejaVu font as default on Linux > because it is known to work without issues. To me this looks pragmatic. I made a few sug

Re: RFR: JDK-8311938: Add default cups include location for configure on AIX [v4]

2023-08-03 Thread Christoph Langer
On Thu, 3 Aug 2023 08:16:55 GMT, Andreas Steiner wrote: >> Add the default include location(/opt/freeware/include/) for cups on AIX. >> With this set the additional configure parameter --with-cups-include can be >> removed, which was needed on AIX. > > Andreas Steiner has updated the pull reque

Re: RFR: JDK-8311938: Add default cups include location for configure on AIX [v3]

2023-08-02 Thread Christoph Langer
On Wed, 2 Aug 2023 15:20:55 GMT, Andreas Steiner wrote: >> Add the default include location(/opt/freeware/include/) for cups on AIX. >> With this set the additional configure parameter --with-cups-include can be >> removed, which was needed on AIX. > > Andreas Steiner has updated the pull reque

Re: RFR: JDK-8311938: Add default cups include location for configure on AIX [v2]

2023-08-01 Thread Christoph Langer
On Tue, 1 Aug 2023 12:50:47 GMT, Andreas Steiner wrote: >> Add the default include location(/opt/freeware/include/) for cups on AIX. >> With this set the additional configure parameter --with-cups-include can be >> removed, which was needed on AIX. > > Andreas Steiner has updated the pull reque

Re: RFR: JDK-8311938: Add default cups include location for configure on AIX

2023-08-01 Thread Christoph Langer
On Tue, 1 Aug 2023 07:28:02 GMT, Andreas Steiner wrote: > Add the default include location(/opt/freeware/include/) for cups on AIX. > With this set the additional configure parameter --with-cups-include can be > removed, which was needed on AIX. I think the check for the cups default location

Re: RFR: JDK-8313252: Java_sun_awt_windows_ThemeReader_paintBackground release resources in early returns

2023-07-31 Thread Christoph Langer
On Fri, 28 Jul 2023 07:52:14 GMT, Matthias Baesken wrote: > In file ThemeReader.cpp > functionJava_sun_awt_windows_ThemeReader_paintBackground > we create DCs and release them at the end, but seems we miss it in early > returns. > > While looking at the code, I noticed that CreateCompatibleDC

Re: RFR: JDK-8312612: handle WideCharToMultiByte return values [v2]

2023-07-28 Thread Christoph Langer
On Fri, 28 Jul 2023 09:58:01 GMT, Matthias Baesken wrote: >> The function WideCharToMultiByte is used at a number of places of the JDK >> codebase for conversion purposes. >> Unfortunately, the function might fail because of various reasons, so the >> return value must be checked to avoid undef

Re: RFR: JDK-8312612: handle WideCharToMultiByte return values

2023-07-28 Thread Christoph Langer
On Tue, 25 Jul 2023 11:17:23 GMT, Matthias Baesken wrote: > The function WideCharToMultiByte is used at a number of places of the JDK > codebase for conversion purposes. > Unfortunately, the function might fail because of various reasons, so the > return value must be checked to avoid undefined

Re: RFR: JDK-8310550: Adjust references to rt.jar [v4]

2023-07-05 Thread Christoph Langer
On Wed, 5 Jul 2023 15:01:52 GMT, Matthias Baesken wrote: >> There are a few references to rt.jar in comments and in the codebase itself. >> Some of them might be removed or adjusted. > > Matthias Baesken has updated the pull request incrementally with one > additional commit since the last revi

Re: RFR: JDK-8310550: Adjust references to rt.jar [v3]

2023-07-05 Thread Christoph Langer
On Fri, 30 Jun 2023 11:37:10 GMT, Matthias Baesken wrote: >> There are a few references to rt.jar in comments and in the codebase itself. >> Some of them might be removed or adjusted. > > Matthias Baesken has updated the pull request incrementally with one > additional commit since the last rev

Re: RFR: JDK-8310550: Adjust references to rt.jar [v3]

2023-07-05 Thread Christoph Langer
On Thu, 22 Jun 2023 09:21:29 GMT, Matthias Baesken wrote: >> src/jdk.compiler/share/classes/com/sun/tools/javac/file/JavacFileManager.java >> line 196: >> >>> 194: >>> 195: /** >>> 196: * Set whether or not to use ct.sym as an alternate >> >> As an alternate to what? This needs somet

Re: RFR: JDK-8309703: AIX build fails after JDK-8280982 [v2]

2023-06-09 Thread Christoph Langer
On Fri, 9 Jun 2023 10:42:59 GMT, Matthias Baesken wrote: >> After >> [JDK-8280982](https://bugs.openjdk.org/browse/JDK-8280982): [Wayland] >> [XWayland] java.awt.Robot taking screenshots >> the AIX build fails. >> We get >> >> * For target support_native_java.desktop_libawt_xawt_screencast_pipe

Re: RFR: 8296812: sprintf is deprecated in Xcode 14 [v19]

2022-12-27 Thread Christoph
On Thu, 8 Dec 2022 19:41:16 GMT, Xue-Lei Andrew Fan wrote: >> Hi, >> >> May I have this update reviewed? >> >> The sprintf is deprecated in Xcode 14 because of security concerns, and the >> use of it causing building failure. The build could pass if warnings are >> disabled for codes that us

Re: RFR: JDK-8299025: BMPImageReader.java readColorPalette could use staggeredReadByteStream

2022-12-20 Thread Christoph Langer
On Mon, 19 Dec 2022 13:49:18 GMT, Matthias Baesken wrote: > Looks like the coding in > jdk/src/java.desktop/share/classes/com/sun/imageio/plugins/bmp/BMPImageReader.java > readColorPalette is rather close to what staggeredReadByteStream does, so we > could instead use staggeredReadByteStream a

Re: RFR: JDK-8298093: improve cleanup and error handling of awt_parseColorModel in awt_parseImage.c [v3]

2022-12-14 Thread Christoph Langer
On Wed, 7 Dec 2022 08:54:29 GMT, Matthias Baesken wrote: >> The cleanup and error handling in function awt_parseColorModel in >> awt_parseImage.c could be improved. > > Matthias Baesken has updated the pull request incrementally with one > additional commit since the last revision: > > small