JDK-8259281 : [macos] tools/jpackage/share/MultiLauncherTwoPhaseTest.java failed with "execution error: An error of type -610 has occurred."
  • Type: Bug
  • Component: tools
  • Sub-Component: jpackage
  • Affected Version: 17
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: os_x
  • CPU: x86_64
  • Submitted: 2021-01-05
  • Updated: 2021-01-29
  • Resolved: 2021-01-29
Related Reports
Duplicate :  
Relates :  
Description
The following test failed in the JDK17 CI:

tools/jpackage/share/MultiLauncherTwoPhaseTest.java

Here's a snippet from the log file:

[22:52:58.837] Running /usr/bin/osascript
[22:53:04.795] Command:
    /usr/bin/osascript /var/folders/tr/29h2dxlj4ll87qgqz6v2ky6w0000mv/T/jdk.jpackage5578132244196970205/config/MultiLauncherTwoPhaseTest-dmg-setup.scpt
[22:53:04.795] Output:
    2021-01-05 22:53:03.635 osascript[24322:67867129] HIToolbox: received notification of WindowServer event port death.
    2021-01-05 22:53:03.635 osascript[24322:67867129] port matched the WindowServer port created in BindCGSToRunLoop
    /var/folders/tr/29h2dxlj4ll87qgqz6v2ky6w0000mv/T/jdk.jpackage5578132244196970205/config/MultiLauncherTwoPhaseTest-dmg-setup.scpt:1813:1819: execution error: An error of type -610 has occurred. (-610)
[22:53:04.795] Returned: 1

[22:53:04.796] java.io.IOException: Command [/usr/bin/osascript, /var/folders/tr/29h2dxlj4ll87qgqz6v2ky6w0000mv/T/jdk.jpackage5578132244196970205/config/MultiLauncherTwoPhaseTest-dmg-setup.scpt] exited with 1 code
	at jdk.jpackage/jdk.jpackage.internal.Executor.executeExpectSuccess(Executor.java:91)
	at jdk.jpackage/jdk.jpackage.internal.IOUtils.exec(IOUtils.java:191)
	at jdk.jpackage/jdk.jpackage.internal.IOUtils.exec(IOUtils.java:158)
	at jdk.jpackage/jdk.jpackage.internal.MacDmgBundler.buildDMG(MacDmgBundler.java:392)
	at jdk.jpackage/jdk.jpackage.internal.MacDmgBundler.bundle(MacDmgBundler.java:88)
	at jdk.jpackage/jdk.jpackage.internal.MacDmgBundler.execute(MacDmgBundler.java:540)
	at jdk.jpackage/jdk.jpackage.internal.Arguments.generateBundle(Arguments.java:664)
	at jdk.jpackage/jdk.jpackage.internal.Arguments.processArguments(Arguments.java:538)
	at jdk.jpackage/jdk.jpackage.main.Main.execute(Main.java:98)
	at jdk.jpackage/jdk.jpackage.main.Main.main(Main.java:52)
[22:53:04.875] Running /usr/bin/SetFile
[22:53:04.907] Command:
    /usr/bin/SetFile -c icnC /var/folders/tr/29h2dxlj4ll87qgqz6v2ky6w0000mv/T/jdk.jpackage5578132244196970205/images/MultiLauncherTwoPhaseTest/.VolumeIcon.icns
[22:53:04.908] Returned: 0

[22:53:04.908] Running /usr/bin/SetFile
[22:53:04.940] Command:
    /usr/bin/SetFile -a C /var/folders/tr/29h2dxlj4ll87qgqz6v2ky6w0000mv/T/jdk.jpackage5578132244196970205/images/MultiLauncherTwoPhaseTest
[22:53:04.940] Returned: 0

[22:53:04.942] Running /usr/bin/hdiutil
[22:53:04.983] Command:
    /usr/bin/hdiutil detach -force -verbose /var/folders/tr/29h2dxlj4ll87qgqz6v2ky6w0000mv/T/jdk.jpackage5578132244196970205/images/MultiLauncherTwoPhaseTest
[22:53:04.984] Output:
    hdiutil: detach: processing "/var/folders/tr/29h2dxlj4ll87qgqz6v2ky6w0000mv/T/jdk.jpackage5578132244196970205/images/MultiLauncherTwoPhaseTest"
    hdiutil: detach: result: 2
    hdiutil: detach failed - No such file or directory
[22:53:04.984] Returned: 1
Comments
After IOException running osascript (with new 3 minute timeout added in fix for JDK-8248248), which is a nonfatal error (Trying to set background image), we later get IOException trying to "hdiutil detach" the mounted root. The IOException running osascript is non-fatal because: // We will not consider setting background image and creating link // to install-dir in DMG as critical error, since it can fail in // headless enviroment. is this really failing due to running on a headless system, or is there another problem.
08-01-2021