Exiting installer on Catalina
Exiting installer on Catalina
- Subject: Exiting installer on Catalina
- From: Lora Lozano via Installer-dev <email@hidden>
- Date: Mon, 19 Aug 2019 15:40:58 -0700
Hi,
In my installer plugin code, I display an alert by using NSAlert. In this
alert, I have a button which, when clicked, should exit the installer. This
works fine on OSes prior to Catalina, but on Catalina, the installer hangs when
clicking on this button.
To exit the installer, I have tried the following six alternatives:
exit(EXIT_SUCCESS);
exit(EXIT_FAILURE);
[[NSApplication sharedApplication] terminate:nil];
[[NSApplication sharedApplication] terminate:self];
[NSApp terminate:self];
[NSApp terminate:nil];
However, they all result in a hang (again, only on Catalina). For example from
the console log when calling [NSApp terminate:nil]:
default 15:33:16.841249-0700 distnoted unregister token: f4260 pid:
11340
default 15:33:16.841301-0700 distnoted unregister token: f425f pid:
11340
error 15:33:16.843817-0700 WindowServer CGLayerKit called back to a
dead connection
default 15:33:16.843990-0700 hidd Connection removed:
IOHIDEventSystemConnection uuid:E9477186-1BC5-48C2-AC7E-F34BDEB7AFFD pid:11340
process:InstallerRemotePluginService type:Passive entitlements:0x0
caller:HIToolbox: ___GetIOHIDEventSystemClient_block_invoke + 26
attributes:(null) inactive:1 events:0 mask:0x0
error 15:33:16.844238-0700 WindowServer CGLayerKit called back to a
dead connection
default 15:33:16.847986-0700 runningboardd
[executable<InstallerRemotePluginService(501)>:11340] Death sentinel fired!
default 15:33:16.848452-0700 launchservicesd QUITTING: pid=11340
asn=0x-0x189189 foreground=0 wasFront=0
default 15:33:16.850220-0700 CommCenter #I handleLSNotitifcation_sync:
Application exited: <private>
default 15:33:16.851097-0700 loginwindow -[PersistentAppsSupport
applicationQuit:] | for app:InstallerRemotePluginService (Installer),
_appTrackingState = 2
default 15:33:16.850615-0700 runningboardd Invalidating assertion
324-133-1049 (target:executable<InstallerRemotePluginService(501)>) from
originator 133
default 15:33:16.952295-0700 runningboardd Removing process:
[executable<InstallerRemotePluginService(501)>:11340]
default 15:33:16.956649-0700 runningboardd Removing assertions for
terminated process: [executable<InstallerRemotePluginService(501)>:11340]
I can also provide a [lengthy] .hang file if that would help.
Anyone have any suggestions on how to fix this? Any help would be greatly
appreciated.
Thanks,
Lora
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden