Page MenuHomePhabricator

Application crashes if started via the .app bundle
Closed, ResolvedPublic

Description

On the application crashes, if it is started via the .app bundle.
Reason: Mac OS X gives each application that is started via the app bundle a so called "Process Serial Number". This number is passed as a commandline argument: "-psn_0_XXXXX".

Since this commandline option is unknown the following exception is thrown:

Poco::Util::UnknownOptionException: Unknown option specified

an the application crashes.

Event Timeline

User fetzer has pushed new remote branch:

bug-19080-application-crash-osx

[10b1da]: Merge branch 'bug-19080-application-crash-osx'

Merged commits:

2015-05-20 13:44:09 Andreas Fetzer [0c15e7]
Place previous fix into the c'tor

The psn option should be removed right where the assignment to the members
is done.
Also the argc is decremented and the option completely removed


2015-05-19 15:01:43 Andreas Fetzer [735a2d]
Workaround for crash during startup.

Manually remove -psn argument from commandline args.

[7113ea]: Merge branch 'bug-19080-application-crash-osx'

Merged commits:

2015-05-21 11:32:39 Andreas Fetzer [a3b7ea]
COMP Fixed parameter detection for qt5