Opened 5 years ago

Last modified 5 years ago

#20033 closed defect

MacOS app doesn't launch on first run — at Version 6

Reported by: Stereo Owned by: Stereo
Priority: normal Milestone:
Component: Installer MacOS Version: latest
Keywords: macos javabug othersoftware Cc:

Description (last modified by Stereo)

When opening a quarantined app for the first time, macOS 10.15 and earlier passes an extra -psn_0_XXX argument, where XXX is the process serial number. This is a legacy behaviour from the days of the Carbon framework and collaborative multitasking.

This means that with the new builds, JOSM.app will close on its first run, and run fine on every subsequent run.

This has been reported as a java bug (https://bugs.openjdk.java.net/browse/JDK-8240877). In the meanwhile, you might have to open JOSM twice after installing it.

A workaround could be to ignore the -p argument.

The problem doesn't happen in macOS Big Sur (11.0.1).

Change History (6)

comment:1 by Stereo, 5 years ago

An example argument is -psn_0_10615327. JOSM then dies with JOSM: unrecognised option '-p'

This was, as you can imagine, a lot of fun to debug :). Thomas Skowron and Vincent Privat helped me out a lot.

comment:2 by Stereo, 5 years ago

Owner: changed from team to Stereo
Status: assignednew

comment:3 by Stereo, 5 years ago

I've received a report that this doesn't happen in Big Sur anymore.

comment:4 by Stereo, 5 years ago

Description: modified (diff)

comment:6 by Stereo, 5 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.