JDK-8255898 : Test java/awt/FileDialog/FilenameFilterTest/FilenameFilterTest.java fails on Mac OS
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 13,14,15,16
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • Submitted: 2020-11-04
  • Updated: 2024-07-12
  • Resolved: 2021-10-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 17 JDK 18
11.0.25-oracleFixed 17.0.13-oracleFixed 18 b20Fixed
Related Reports
Relates :  
Relates :  
Description
Test open/java/awt/FileDialog/FilenameFilterTest/FilenameFilterTest.java failed on Mac OS with the Following Exception
----------System.out:(0/0)----------
----------System.err:(14/1034)----------
2020-11-04 08:13:30.198 java[59570:20412999] +[NSXPCSharedListener endpointForReply:withListenerName:]: an error occurred while attempting to obtain endpoint for listener 'com.apple.view-bridge': Connection interrupted
java.lang.RuntimeException: Filter was not called
	at FilenameFilterTest.main(FilenameFilterTest.java:73)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:832)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Filter was not called
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Filter was not called
----------rerun:(41/6771)*----------
cd /System/Volumes/Data/mesos/work_dir/slaves/4076d11c-c6ed-4d07-84c1-4ab8d55cd975-S405868/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/fff3a4aa-1535-4da9-aba5-5f8bd0cd7f2e/runs/5bbaa4f1-0612-49a7-98b8-109a231293ac/testoutput/test-support/jtreg_open_test_jdk_jdk_desktop/java/awt/FileDialog/FilenameFilterTest/FilenameFilterTest && \\
HOME=/var/folders/sn/x0nwt8v50rq9_nvgrzvfvw880000gp/T/sparky-temp-home-2399025967506163079/user_home \\
JDK8_HOME=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk/15/36/bundles/osx-x64/jdk-15_osx-x64_bin.tar.gz/jdk-15.jdk/Contents/Home \\
JIB_DATA_DIR=/System/Volumes/Data/mesos/work_dir/jib-master \\
JIB_HOME=/System/Volumes/Data/mesos/work_dir/jib-master/install/com/oracle/java/jib/jib/3.0-SNAPSHOT/jib-3.0-SNAPSHOT-distribution.zip-1603984877/jib-3.0-SNAPSHOT-distribution \\
JTREG_JOBS=1 \\
JTREG_KEYWORDS='"headful & !printer"' \\
JTREG_RETRY_COUNT=3 \\
JTREG_STATUS=-status:error,fail \\
JTREG_TIMEOUT_FACTOR=2 \\
JTREG_VERBOSE=fail,error,time \\
LC_ALL=C \\
PATH=/bin:/usr/bin:/usr/sbin \\
TEST_IMAGE_DIR=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-16+23-1432/macosx-x64.test \\
TEST_IMAGE_GRAAL_DIR=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-16+23-1432/macosx-x64.test/hotspot/jtreg/graal \\
CLASSPATH=/System/Volumes/Data/mesos/work_dir/slaves/4076d11c-c6ed-4d07-84c1-4ab8d55cd975-S405868/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/fff3a4aa-1535-4da9-aba5-5f8bd0cd7f2e/runs/5bbaa4f1-0612-49a7-98b8-109a231293ac/testoutput/test-support/jtreg_open_test_jdk_jdk_desktop/classes/java/awt/FileDialog/FilenameFilterTest/FilenameFilterTest.d:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-16+23-1432/src.full/open/test/jdk/java/awt/FileDialog/FilenameFilterTest:/System/Volumes/Data/mesos/work_dir/slaves/4076d11c-c6ed-4d07-84c1-4ab8d55cd975-S405868/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/fff3a4aa-1535-4da9-aba5-5f8bd0cd7f2e/runs/5bbaa4f1-0612-49a7-98b8-109a231293ac/testoutput/test-support/jtreg_open_test_jdk_jdk_desktop/classes/java/awt/regtesthelpers:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-16+23-1432/src.full/open/test/jdk/java/awt/regtesthelpers:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/5.1/b01/bundles/jtreg_bin-5.1.zip/jtreg/lib/javatest.jar:/System/Volumes/Data/mesos/work_dir/jib-master/install/jtreg/5.1/b01/bundles/jtreg_bin-5.1.zip/jtreg/lib/jtreg.jar \\
    /System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-16+23-1432/macosx-x64.jdk/jdk-16.jdk/Contents/Home/bin/java \\
        -Dtest.vm.opts='-Xmx512m -XX:MaxRAMPercentage=25 -Djava.io.tmpdir=/System/Volumes/Data/mesos/work_dir/slaves/4076d11c-c6ed-4d07-84c1-4ab8d55cd975-S405868/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/fff3a4aa-1535-4da9-aba5-5f8bd0cd7f2e/runs/5bbaa4f1-0612-49a7-98b8-109a231293ac/testoutput/test-support/jtreg_open_test_jdk_jdk_desktop/tmp -ea -esa' \\
        -Dtest.tool.vm.opts='-J-Xmx512m -J-XX:MaxRAMPercentage=25 -J-Djava.io.tmpdir=/System/Volumes/Data/mesos/work_dir/slaves/4076d11c-c6ed-4d07-84c1-4ab8d55cd975-S405868/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/fff3a4aa-1535-4da9-aba5-5f8bd0cd7f2e/runs/5bbaa4f1-0612-49a7-98b8-109a231293ac/testoutput/test-support/jtreg_open_test_jdk_jdk_desktop/tmp -J-ea -J-esa' \\
        -Dtest.compiler.opts= \\
        -Dtest.java.opts= \\
        -Dtest.jdk=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-16+23-1432/macosx-x64.jdk/jdk-16.jdk/Contents/Home \\
        -Dcompile.jdk=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-16+23-1432/macosx-x64.jdk/jdk-16.jdk/Contents/Home \\
        -Dtest.timeout.factor=2.0 \\
        -Dtest.nativepath=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-16+23-1432/macosx-x64.test/jdk/jtreg/native \\
        -Dtest.root=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-16+23-1432/src.full/open/test/jdk \\
        -Dtest.name=java/awt/FileDialog/FilenameFilterTest/FilenameFilterTest.java \\
        -Dtest.file=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-16+23-1432/src.full/open/test/jdk/java/awt/FileDialog/FilenameFilterTest/FilenameFilterTest.java \\
        -Dtest.src=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-16+23-1432/src.full/open/test/jdk/java/awt/FileDialog/FilenameFilterTest \\
        -Dtest.src.path=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-16+23-1432/src.full/open/test/jdk/java/awt/FileDialog/FilenameFilterTest:/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-16+23-1432/src.full/open/test/jdk/java/awt/regtesthelpers \\
        -Dtest.classes=/System/Volumes/Data/mesos/work_dir/slaves/4076d11c-c6ed-4d07-84c1-4ab8d55cd975-S405868/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/fff3a4aa-1535-4da9-aba5-5f8bd0cd7f2e/runs/5bbaa4f1-0612-49a7-98b8-109a231293ac/testoutput/test-support/jtreg_open_test_jdk_jdk_desktop/classes/java/awt/FileDialog/FilenameFilterTest/FilenameFilterTest.d \\
        -Dtest.class.path=/System/Volumes/Data/mesos/work_dir/slaves/4076d11c-c6ed-4d07-84c1-4ab8d55cd975-S405868/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/fff3a4aa-1535-4da9-aba5-5f8bd0cd7f2e/runs/5bbaa4f1-0612-49a7-98b8-109a231293ac/testoutput/test-support/jtreg_open_test_jdk_jdk_desktop/classes/java/awt/FileDialog/FilenameFilterTest/FilenameFilterTest.d:/System/Volumes/Data/mesos/work_dir/slaves/4076d11c-c6ed-4d07-84c1-4ab8d55cd975-S405868/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/fff3a4aa-1535-4da9-aba5-5f8bd0cd7f2e/runs/5bbaa4f1-0612-49a7-98b8-109a231293ac/testoutput/test-support/jtreg_open_test_jdk_jdk_desktop/classes/java/awt/regtesthelpers \\
        -Dtest.modules=java.desktop \\
        --add-modules java.desktop \\
        -Xmx512m \\
        -XX:MaxRAMPercentage=25 \\
        -Djava.io.tmpdir=/System/Volumes/Data/mesos/work_dir/slaves/4076d11c-c6ed-4d07-84c1-4ab8d55cd975-S405868/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/fff3a4aa-1535-4da9-aba5-5f8bd0cd7f2e/runs/5bbaa4f1-0612-49a7-98b8-109a231293ac/testoutput/test-support/jtreg_open_test_jdk_jdk_desktop/tmp \\
        -ea \\
        -esa \\
        -Djava.library.path=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-16+23-1432/macosx-x64.test/jdk/jtreg/native \\
        com.sun.javatest.regtest.agent.MainWrapper /System/Volumes/Data/mesos/work_dir/slaves/4076d11c-c6ed-4d07-84c1-4ab8d55cd975-S405868/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/fff3a4aa-1535-4da9-aba5-5f8bd0cd7f2e/runs/5bbaa4f1-0612-49a7-98b8-109a231293ac/testoutput/test-support/jtreg_open_test_jdk_jdk_desktop/java/awt/FileDialog/FilenameFilterTest/FilenameFilterTest.d/main.0.jta
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Filter was not called


test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Filter was not called
Comments
Fix request [11u] I backport this for parity with 11.0.25-oracle. No risk, only tests change. Clean backport. Test pass. SAP nightly testing passed.
10-07-2024

Fix request [17u] I backport this for parity with 17.0.13-oracle. No risk, only tests change. Clean backport. Test pass. SAP nightly testing passed.
10-07-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk11u-dev/pull/2841 Date: 2024-07-09 06:37:36 +0000
09-07-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk17u-dev/pull/2696 Date: 2024-07-09 06:37:18 +0000
09-07-2024

Changeset: 947d52c4 Author: Jayathirth D V <jdv@openjdk.org> Date: 2021-10-19 04:04:25 +0000 URL: https://git.openjdk.java.net/jdk/commit/947d52c4c3deec1bdea43959c200201c614ae114
19-10-2021

This failure looks to be specific macOS issue in particular Catalina version. And it was reported at many places : https://discussions.apple.com/thread/252357508 https://stackoverflow.com/questions/63612331/nssavepanel-and-nsopenpanel-does-not-work-on-catalina-10-15-as-its-out-of-proces https://stackoverflow.com/questions/56985343/java-swing-cannot-show-filedialog-on-mac-os-10-15 https://obsproject.com/forum/threads/unable-to-browse-files-macos-catalina.107386/ Most of them mention that this was regression in Catalina and it was fixed in subsequent Catalina release. We have product issues also regarding the same: AWT product issue : https://bugs.openjdk.java.net/browse/JDK-8227836 JavaFX product issue : https://bugs.openjdk.java.net/browse/JDK-8228457 Looks like this issue is already fixed in subsequent release of Catalina as captured in https://bugs.openjdk.java.net/browse/JDK-8228457?focusedCommentId=14287053&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14287053 .
18-10-2021

I have created the pull request https://bugs.openjdk.java.net/browse/JDK-8258427 https://github.com/openjdk/jdk16/pull/28
15-12-2020

Yes Phil, I am about to send the pull request for this.
15-12-2020

So are we disabling this test ?
15-12-2020

time to request to disable that host
11-12-2020

Here's a snippet from the log file for the jdk-16+26-1673-tier4 sighting: #section:main ----------messages:(5/198)---------- command: main FilenameFilterTest reason: User specified action: run main FilenameFilterTest Mode: othervm Additional options from @modules: --add-modules java.desktop elapsed time (seconds): 5.791 ----------configuration:(3/40)---------- Boot Layer add modules: java.desktop ----------System.out:(0/0)---------- ----------System.err:(14/1034)---------- 2020-11-20 10:06:42.116 java[25843:25453112] +[NSXPCSharedListener endpointForReply:withListenerName:]: an error occurred while attempting to obtain endpoint for listener 'com.apple.view-bridge': Connection interrupted java.lang.RuntimeException: Filter was not called at FilenameFilterTest.main(FilenameFilterTest.java:73) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127) at java.base/java.lang.Thread.run(Thread.java:831) JavaTest Message: Test threw exception: java.lang.RuntimeException: Filter was not called JavaTest Message: shutting down test STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Filter was not called ----------rerun:(41/6751)*----------
20-11-2020

Looks a lot like this https://bugs.openjdk.java.net/browse/JDK-8255470 and this https://bugs.openjdk.java.net/browse/JDK-8227836 I think they are all related to some kind of IPC breakdown now that these dialogs run out of process.
04-11-2020