Modify

Opened 2 months ago

Closed 2 months ago

#20033 closed defect (othersoftware)

MacOS app doesn't launch on first run

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).

Attachments (0)

Change History (7)

comment:1 Changed 2 months ago by Stereo

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 Changed 2 months ago by Stereo

Owner: changed from team to Stereo
Status: assignednew

comment:3 Changed 2 months ago by Stereo

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

comment:4 Changed 2 months ago by Stereo

Description: modified (diff)

comment:6 Changed 2 months ago by Stereo

Description: modified (diff)

comment:7 Changed 2 months ago by Don-vip

Resolution: othersoftware
Status: newclosed

We just have to wait for Java 16 then.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Stereo.
as The resolution will be set.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.