NSSavePanel problem on 10.15

Issue #282 wontfix
Ronald Oussoren repo owner created an issue

As reported on pythonmac-sig by user Ben Byram-Wigfield:

The following two lines work in Mojave, but flag an error in Catalina:

from AppKit import NSSavePanel
panel = NSSavePanel.savePanel()

The error is:

2019-10-29 18:24:22.275 Python[6577:255233] *** Assertion failure in +[NSServiceViewController currentAppIsViewService], /BuildRoot/Library/Caches/com.apple.xbs/Sources/ViewBridge/ViewBridge-462/NSViewService.m:140
2019-10-29 18:24:22.275 Python[6577:255233] *** Assertion failure in +[NSServiceViewController currentAppIsViewService], /BuildRoot/Library/Caches/com.apple.xbs/Sources/ViewBridge/ViewBridge-462/NSViewService.m:140
2019-10-29 18:24:22.342 Python[6577:255347] +[NSXPCSharedListener endpointForReply:withListenerName:]: an error occurred while attempting to obtain endpoint for listener 'com.apple.view-bridge': Connection interrupted

This is with PyObjC 5.2. I get the same error (or not) in python 2.7 and python 3.7.

Comments (2)

  1. Ronald Oussoren reporter

    This happens both with “venv” and “virtualenv”. It does not happen with /usr/bin/python (and an ancient version of pyobjc)

  2. Ronald Oussoren reporter

    Creating an instance of NSApplication fixes this issue. There’s nothing we can do in PyObjC about this change of behaviour in macOS.

  3. Log in to comment