Graphviz.app: File->Export does nothing
Steps to reproduce
In Graphviz.app 8.0.2, after opening a graph, choosing Export… from the File menu does nothing.
Expected Behaviour
A file selection dialog box should appear to allow one to specify what format to export as and what filename to save it as.
Actual Behaviour
The following appears in Console.app:
error 19:04:32.145814-0500 Graphviz An uncaught exception was raised
error 19:04:32.145947-0500 Graphviz *** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]
error 19:04:32.148948-0500 Graphviz (
0 CoreFoundation 0x00007ff8164abe8b __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007ff816209e48 objc_exception_throw + 48
2 CoreFoundation 0x00007ff81656768b _CFThrowFormattedException + 194
3 CoreFoundation 0x00007ff816565611 -[__NSPlaceholderArray initWithCapacity:].cold.1 + 0
4 CoreFoundation 0x00007ff8163b57f0 -[__NSPlaceholderArray initWithObjects:count:] + 154
5 CoreFoundation 0x00007ff8164184a0 __createArray + 47
6 CoreFoundation 0x00007ff816418463 +[NSArray arrayWithObject:] + 25
7 Graphviz 0x000000010bbd9445 Graphviz + 21573
8 AppKit 0x00007ff818fa408e -[NSApplication(NSResponder) sendAction:to:from:] + 288
9 AppKit 0x00007ff819098c10 -[NSMenuItem _corePerformAction] + 413
10 AppKit 0x00007ff819098932 -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 95
11 AppKit 0x00007ff8190e327f -[NSMenu performActionForItemAtIndex:] + 113
12 AppKit 0x00007ff8190e3205 -[NSMenu _internalPerformActionForItemAtIndex:] + 82
13 AppKit 0x00007ff8190e304c -[NSCarbonMenuImpl _carbonCommandProcessEvent:handlerCallRef:] + 101
14 AppKit 0x00007ff81907d1e2 NSSLMMenuEventHandler + 1074
15 HIToolbox 0x00007ff81f52634d _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1365
16 HIToolbox 0x00007ff81f52579c _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 333
17 HIToolbox 0x00007ff81f53a3a9 SendEventToEventTarget + 39
18 HIToolbox 0x00007ff81f5982e5 _ZL18SendHICommandEventjPK9HICommandjjhPKvP20OpaqueEventTargetRefS5_PP14OpaqueEventRef + 361
19 HIToolbox 0x00007ff81f5bd457 SendMenuCommandWithContextAndModifiers + 46
20 HIToolbox 0x00007ff81f5bd405 SendMenuItemSelectedEvent + 344
21 HIToolbox 0x00007ff81f5bd250 _ZL19FinishMenuSelectionP13SelectionDataP10MenuResultS2_ + 96
22 HIToolbox 0x00007ff81f5bdc48 _ZL14MenuSelectCoreP8MenuData5PointdjPP13OpaqueMenuRefPt + 625
23 HIToolbox 0x00007ff81f5bd93e _HandleMenuSelection2 + 456
24 AppKit 0x00007ff818f3e6d9 _NSHandleCarbonMenuEvent + 215
25 AppKit 0x00007ff818f3e546 _DPSEventHandledByCarbon + 54
26 AppKit 0x00007ff818d9ede0 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3368
27 AppKit 0x00007ff818d90cd9 -[NSApplication run] + 586
28 AppKit 0x00007ff818d64c57 NSApplicationMain + 817
29 dyld 0x00000001135f752e start + 462
)
OS Version
macOS 12.6.4
Graphviz Version
dot - graphviz version 8.0.2 (20230410.1723)
Additional info
This was reported to MacPorts at https://trac.macports.org/ticket/67226.