Project

General

Profile

Bug #2273

Unable to install strongswan client helper on OSX El Capitan

Added by Peter Nijssen almost 4 years ago. Updated almost 4 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
Category:
osx
Target version:
-
Start date:
08.03.2017
Due date:
Estimated time:
Affected version:
5.5.1
Resolution:

Description

I am unable to install the OSX StrongSwan client on El Capitan. Probably Sierra has the same issue.
If you already installed the StrongSwan client before and upgraded to El Capitan or Sierra, the client keeps working and you can use the client as always.

The problem occurs when installing the helper. the following error can be found in system.log:


Mar  8 12:59:46 Martijns-MacBook-Pro strongSwan[1816]: *** Assertion failure in -[NSTextFieldCell _objectValue:forString:errorDescription:], /Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1404.47/AppKit.subproj/NSCell.m:1684
Mar  8 12:59:46 Martijns-MacBook-Pro strongSwan[1816]: An uncaught exception was raised
Mar  8 12:59:46 Martijns-MacBook-Pro strongSwan[1816]: Invalid parameter not satisfying: aString != nil
Mar  8 12:59:46 Martijns-MacBook-Pro strongSwan[1816]: (
        0   CoreFoundation                      0x00007fff81ca24f2 __exceptionPreprocess + 178
        1   libobjc.A.dylib                     0x00007fff8124af7e objc_exception_throw + 48
        2   CoreFoundation                      0x00007fff81ca71ca +[NSException raise:format:arguments:] + 106
        3   Foundation                          0x00007fff91d82856 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 198
        4   AppKit                              0x00007fff8efd9904 -[NSCell _objectValue:forString:errorDescription:] + 180
        5   AppKit                              0x00007fff8efd9720 -[NSCell setStringValue:] + 41
        6   AppKit                              0x00007fff8f08ca66 -[NSControl setStringValue:] + 135
        7   AppKit                              0x00007fff8f2957ea -[NSAlert setInformativeText:] + 77
        8   strongSwan                          0x000000010c30424d strongSwan + 8781
        9   strongSwan                          0x000000010c305ae3 strongSwan + 15075
        10  libsystem_trace.dylib               0x00007fff8ff6307a _os_activity_initiate + 75
        11  AppKit                              0x00007fff8f213dbd -[NSApplication sendAction:to:from:] + 460
        12  AppKit                              0x00007fff8f213b57 -[NSMenuItem _corePerformAction] + 336
        13  AppKit                              0x00007fff8f2138b7 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 114
        14  libsystem_trace.dylib               0x00007fff8ff6307a _os_activity_initiate + 75
        15  AppKit                              0x00007fff8f2a5e54 -[NSMenu performActionForItemAtIndex:] + 131
        16  AppKit                              0x00007fff8f2a5dc7 -[NSMenu _internalPerformActionForItemAtIndex:] + 35
        17  AppKit                              0x00007fff8f2a5c1f -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 107
        18  AppKit                              0x00007fff8f14afd9 NSSLMMenuEventHandler + 708
        19  HIToolbox                           0x00007fff8cee67be _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1231
        20  HIToolbox                           0x00007fff8cee5c48 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 404
        21  HIToolbox                           0x00007fff8cefb9e6 SendEventToEventTarget + 40
        22  HIToolbox                           0x00007fff8cf4599a _ZL18SendHICommandEventjPK9HICommandjjhPKvP20OpaqueEventTargetRefS5_PP14OpaqueEventRef + 411
        23  HIToolbox                           0x00007fff8cf70d5b SendMenuCommandWithContextAndModifiers + 59
        24  HIToolbox                           0x00007fff8cf70d0c SendMenuItemSelectedEvent + 188
        25  HIToolbox                           0x00007fff8cf70be8 _ZL19FinishMenuSelectionP13SelectionDataP10MenuResultS2_ + 96
        26  HIToolbox                           0x00007fff8cf4fb81 _ZL19PopUpMenuSelectCoreP8MenuData5PointdS1_tjPK4RecttjS4_S4_PK14__CFDictionaryPK10__CFStringPP13OpaqueMenuRefPt + 1794
        27  HIToolbox                           0x00007fff8cf4ec5c _ZL26_HandlePopUpMenuSelection8P13OpaqueMenuRefP14OpaqueEventRefj5PointtjPK4RecttS6_S6_PK14__CFDictionaryPK10__CFStringPS0_Pt + 610
        28  HIToolbox                           0x00007fff8cf4e853 _HandlePopUpMenuSelectionWithDictionary + 287
        29  AppKit                              0x00007fff8f29cc6c _NSSLMPopUpCarbonMenu3 + 6168
        30  AppKit                              0x00007fff8f29b442 _NSPopUpCarbonMenu3 + 153
        31  AppKit                              0x00007fff8f29b39a -[NSCarbonMenuImpl popUpMenu:atLocation:width:forView:withSelectedItem:withFont:withFlags:withOptions:] + 356
        32  AppKit                              0x00007fff8f682ef9 +[NSStatusBarButtonCell popupStatusBarMenu:inRect:ofView:withEvent:] + 705
        33  AppKit                              0x00007fff8f68232b -[NSStatusBarButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 159
        34  AppKit                              0x00007fff8f222ae8 -[NSControl mouseDown:] + 669
        35  AppKit                              0x00007fff8f7773c9 -[NSWindow _handleMouseDownEvent:isDelayedEvent:] + 6322
        36  AppKit                              0x00007fff8f7783ad -[NSWindow _reallySendEvent:isDelayedEvent:] + 212
        37  AppKit                              0x00007fff8f1b7539 -[NSWindow sendEvent:] + 517
        38  AppKit                              0x00007fff8f685849 -[NSStatusBarWindow sendEvent:] + 281
        39  AppKit                              0x00007fff8f137a38 -[NSApplication sendEvent:] + 2540
        40  AppKit                              0x00007fff8ef9edf2 -[NSApplication run] + 796
        41  AppKit                              0x00007fff8ef68368 NSApplicationMain + 1176
        42  strongSwan                          0x000000010c303f14 strongSwan + 7956
    )

History

#1 Updated by Tobias Brunner almost 4 years ago

  • Status changed from New to Feedback

This seems to happen in the exception handler of the AppDelegate (just a guess as that's the only place where setInformativeText is called). I suppose alert could be nil so maybe the following would fix it:

diff --git a/src/frontends/osx/strongSwan/AppDelegate.m b/src/frontends/osx/strongSwan/AppDelegate.m
index 8fe997e..967cfc9 100644
--- a/src/frontends/osx/strongSwan/AppDelegate.m
+++ b/src/frontends/osx/strongSwan/AppDelegate.m
@@ -82,7 +82,10 @@
             [conn objectForKey:@"name"]];
     popup = [[NSAlert alloc] init];
     [popup setMessageText:text];
-    [popup setInformativeText:alert];
+    if (alert)
+    {
+        [popup setInformativeText:alert];
+    }
     [popup runModal];
     [text release];
     [popup release];

We currently can't release signed versions of the app (see #2089-2) so you'd have to create your own build.

#2 Updated by Peter Nijssen almost 4 years ago

Thanks Tobias about the update. Is there some documentation about how to build the app yourself? The part in Github is everything?

I myself have some issues with the VPN connection in Sierra. It drops about every 8 minutes. It didn't happen in El Capitan though.
One of my colleagues didn't had this problem, so that's why I am falling back to strongswans own client.

#3 Updated by Tobias Brunner almost 4 years ago

Is there some documentation about how to build the app yourself? The part in Github is everything?

If you refer to the README file Martin linked, then yes, that's all the documentation there currently is.

It drops about every 8 minutes. It didn't happen in El Capitan though.

You might want to find out why that is (i.e. read the logs).

Also available in: Atom PDF