[Pythonmac-SIG] Python[676:3763] +[NSXPCSharedListener endpointForReply:withListenerName:replyErrorCode:]: an error occurred while attempting to obtain endpoint for listener 'ClientCallsAuxiliary': Connection interrupted
Zhi Feng
feng_zhi at apple.com
Fri Oct 18 13:48:05 EDT 2024
Dear experts,
We encountered below NSXPC issue that is similar with one in https://www.mail-archive.com/pythonmac-sig@python.org/msg12027.html, below issue happened in python3.9 with MacOS Monterey and Sonoma.
[2024-10-17T01:42:00.390405+00:00] 2024-10-16 18:42:00.389 Python[676:3763] XType: Using static font registry.
[2024-10-17T01:42:13.660839+00:00] 2024-10-16 18:42:13.659 Python[676:3763] +[NSXPCSharedListener endpointForReply:withListenerName:replyErrorCode:]: an error occurred while attempting to obtain endpoint for listener 'ClientCallsAuxiliary': Connection interrupted
[2024-10-17T01:42:13.986531+00:00] 2024-10-16 18:42:13 e1f776b1-60fc-4e36-97c5-dbaec20701b2.local PIL.PngImagePlugin[676] DEBUG STREAM b'IHDR' 16 13
[2024-10-17T01:42:13.986888+00:00] 2024-10-16 18:42:13 e1f776b1-60fc-4e36-97c5-dbaec20701b2.local PIL.PngImagePlugin[676] DEBUG STREAM b'sBIT' 41 4
[2024-10-17T01:42:13.987644+00:00] 2024-10-16 18:42:13 e1f776b1-60fc-4e36-97c5-dbaec20701b2.local PIL.PngImagePlugin[676] DEBUG b'sBIT' 41 4 (unknown)
[2024-10-17T01:42:13.988090+00:00] 2024-10-16 18:42:13 e1f776b1-60fc-4e36-97c5-dbaec20701b2.local PIL.PngImagePlugin[676] DEBUG STREAM b'pHYs' 57 9
[2024-10-17T01:42:13.988616+00:00] 2024-10-16 18:42:13 e1f776b1-60fc-4e36-97c5-dbaec20701b2.local PIL.PngImagePlugin[676] DEBUG STREAM b'IDAT' 78 1189
[2024-10-17T01:42:14.003123+00:00] 2024-10-16 18:42:14 e1f776b1-60fc-4e36-97c5-dbaec20701b2.local PIL.PngImagePlugin[676] DEBUG STREAM b'IHDR' 16 13
[2024-10-17T01:42:14.003719+00:00] 2024-10-16 18:42:14 e1f776b1-60fc-4e36-97c5-dbaec20701b2.local PIL.PngImagePlugin[676] DEBUG STREAM b'sBIT' 41 4
[2024-10-17T01:42:14.004236+00:00] 2024-10-16 18:42:14 e1f776b1-60fc-4e36-97c5-dbaec20701b2.local PIL.PngImagePlugin[676] DEBUG b'sBIT' 41 4 (unknown)
[2024-10-17T01:42:14.004939+00:00] 2024-10-16 18:42:14 e1f776b1-60fc-4e36-97c5-dbaec20701b2.local PIL.PngImagePlugin[676] DEBUG STREAM b'pHYs' 57 9
[2024-10-17T01:42:14.005671+00:00] 2024-10-16 18:42:14 e1f776b1-60fc-4e36-97c5-dbaec20701b2.local PIL.PngImagePlugin[676] DEBUG STREAM b'IDAT' 78 2994
[2024-10-17T01:42:14.131532+00:00] 2024-10-16 18:42:14 e1f776b1-60fc-4e36-97c5-dbaec20701b2.local PIL.PngImagePlugin[676] DEBUG STREAM b'IHDR' 16 13
[2024-10-17T01:42:14.131582+00:00] 2024-10-16 18:42:14 e1f776b1-60fc-4e36-97c5-dbaec20701b2.local PIL.PngImagePlugin[676] DEBUG STREAM b'sBIT' 41 4
[2024-10-17T01:42:14.131591+00:00] 2024-10-16 18:42:14 e1f776b1-60fc-4e36-97c5-dbaec20701b2.local PIL.PngImagePlugin[676] DEBUG b'sBIT' 41 4 (unknown)
[2024-10-17T01:42:14.131597+00:00] 2024-10-16 18:42:14 e1f776b1-60fc-4e36-97c5-dbaec20701b2.local PIL.PngImagePlugin[676] DEBUG STREAM b'pHYs' 57 9
[2024-10-17T01:42:14.131604+00:00] 2024-10-16 18:42:14 e1f776b1-60fc-4e36-97c5-dbaec20701b2.local PIL.PngImagePlugin[676] DEBUG STREAM b'IDAT' 78 374
[2024-10-17T01:42:14.146875+00:00] 2024-10-16 18:42:14 e1f776b1-60fc-4e36-97c5-dbaec20701b2.local issuebot.flows.Flow[676] ERROR Traceback (most recent call last):
[2024-10-17T01:42:14.146929+00:00] File "/Users/issuebot/.env/lib/python3.9/site-packages/issuebot/flows/Flow.py", line 209, in _run_plugins
[2024-10-17T01:42:14.146938+00:00] plugin.execute(context)
[2024-10-17T01:42:14.146946+00:00] File "/Users/issuebot/.env/lib/python3.9/site-packages/issuebot_osd/plugins/classifiers/astro/SMCDataAnalyticsImportClassifier.py", line 578, in execute
[2024-10-17T01:42:14.146953+00:00] have_param_fails |= analyze_a_record(
[2024-10-17T01:42:14.146959+00:00] File "/Users/issuebot/.env/lib/python3.9/site-packages/issuebot_osd/plugins/classifiers/astro/SMCDataAnalyticsImportClassifier.py", line 480, in analyze_a_record
[2024-10-17T01:42:14.146966+00:00] have_param_fails = add_parametric_fail(
[2024-10-17T01:42:14.146971+00:00] File "/Users/issuebot/.env/lib/python3.9/site-packages/issuebot_osd/plugins/classifiers/astro/SMCDataAnalyticsImportClassifier.py", line 464, in add_parametric_fail
[2024-10-17T01:42:14.146977+00:00] add_attachments_to_issue(
[2024-10-17T01:42:14.146983+00:00] File "/Users/issuebot/.env/lib/python3.9/site-packages/issuebot_osd/plugins/classifiers/astro/SMCDataAnalyticsImportClassifier.py", line 410, in add_attachments_to_issue
[2024-10-17T01:42:14.146989+00:00] add_chart_to_issue(astro, context, all_found, tests, current_test, issue,
[2024-10-17T01:42:14.146995+00:00] File "/Users/issuebot/.env/lib/python3.9/site-packages/issuebot_osd/plugins/classifiers/astro/SMCDataAnalyticsImportClassifier.py", line 369, in add_chart_to_issue
[2024-10-17T01:42:14.147000+00:00] TestDataCharting.build_plots_for_results(
[2024-10-17T01:42:14.147007+00:00] File "/Users/issuebot/.env/lib/python3.9/site-packages/issuebot_osd/plugins/classifiers/astro/TestDataCharting.py", line 703, in build_plots_for_results
[2024-10-17T01:42:14.147013+00:00] fig = plotting_function(
[2024-10-17T01:42:14.147018+00:00] File "/Users/issuebot/.env/lib/python3.9/site-packages/issuebot_osd/plugins/classifiers/astro/TestDataCharting.py", line 406, in make_multiple_plots
[2024-10-17T01:42:14.147024+00:00] fig, axis_list_full = make_figure_objects(dpi, subplots_needed=subplots_needed)
[2024-10-17T01:42:14.147030+00:00] File "/Users/issuebot/.env/lib/python3.9/site-packages/issuebot_osd/plugins/classifiers/astro/TestDataCharting.py", line 235, in make_figure_objects
[2024-10-17T01:42:14.147036+00:00] return plt.subplots(subplots_needed, 1,
[2024-10-17T01:42:14.147042+00:00] File "/Users/issuebot/.env/lib/python3.9/site-packages/matplotlib/pyplot.py", line 1450, in subplots
[2024-10-17T01:42:14.147047+00:00] fig = figure(**fig_kw)
[2024-10-17T01:42:14.147053+00:00] File "/Users/issuebot/.env/lib/python3.9/site-packages/matplotlib/_api/deprecation.py", line 454, in wrapper
[2024-10-17T01:42:14.147059+00:00] return func(*args, **kwargs)
[2024-10-17T01:42:14.147065+00:00] File "/Users/issuebot/.env/lib/python3.9/site-packages/matplotlib/pyplot.py", line 783, in figure
[2024-10-17T01:42:14.147070+00:00] manager = new_figure_manager(
[2024-10-17T01:42:14.147076+00:00] File "/Users/issuebot/.env/lib/python3.9/site-packages/matplotlib/pyplot.py", line 359, in new_figure_manager
[2024-10-17T01:42:14.147082+00:00] return _get_backend_mod().new_figure_manager(*args, **kwargs)
[2024-10-17T01:42:14.147088+00:00] File "/Users/issuebot/.env/lib/python3.9/site-packages/matplotlib/backend_bases.py", line 3513, in new_figure_manager
[2024-10-17T01:42:14.147094+00:00] return cls.new_figure_manager_given_figure(num, fig)
[2024-10-17T01:42:14.147099+00:00] File "/Users/issuebot/.env/lib/python3.9/site-packages/matplotlib/backend_bases.py", line 3518, in new_figure_manager_given_figure
[2024-10-17T01:42:14.147105+00:00] return cls.FigureCanvas.new_manager(figure, num)
[2024-10-17T01:42:14.147111+00:00] File "/Users/issuebot/.env/lib/python3.9/site-packages/matplotlib/backend_bases.py", line 1703, in new_manager
[2024-10-17T01:42:14.147117+00:00] return cls.manager_class.create_with_canvas(cls, figure, num)
[2024-10-17T01:42:14.147123+00:00] File "/Users/issuebot/.env/lib/python3.9/site-packages/matplotlib/backends/_backend_tk.py", line 481, in create_with_canvas
[2024-10-17T01:42:14.147129+00:00] manager = cls(canvas, num, window)
[2024-10-17T01:42:14.147135+00:00] File "/Users/issuebot/.env/lib/python3.9/site-packages/matplotlib/backends/_backend_tk.py", line 431, in __init__
[2024-10-17T01:42:14.147141+00:00] super().__init__(canvas, num)
[2024-10-17T01:42:14.147146+00:00] File "/Users/issuebot/.env/lib/python3.9/site-packages/matplotlib/backend_bases.py", line 2804, in __init__
[2024-10-17T01:42:14.147152+00:00] self.toolbar = self._toolbar2_class(self.canvas)
[2024-10-17T01:42:14.147158+00:00] File "/Users/issuebot/.env/lib/python3.9/site-packages/matplotlib/backends/_backend_tk.py", line 590, in __init__
[2024-10-17T01:42:14.147163+00:00] self._buttons[text] = button = self._Button(
[2024-10-17T01:42:14.147169+00:00] File "/Users/issuebot/.env/lib/python3.9/site-packages/matplotlib/backends/_backend_tk.py", line 792, in _Button
[2024-10-17T01:42:14.147175+00:00] NavigationToolbar2Tk._set_image_for_button(self, b)
[2024-10-17T01:42:14.147180+00:00] File "/Users/issuebot/.env/lib/python3.9/site-packages/matplotlib/backends/_backend_tk.py", line 728, in _set_image_for_button
[2024-10-17T01:42:14.147186+00:00] image = ImageTk.PhotoImage(im.resize((size, size)), master=self)
[2024-10-17T01:42:14.147191+00:00] File "/Users/issuebot/.env/lib/python3.9/site-packages/PIL/Image.py", line 2342, in resize
[2024-10-17T01:42:14.147197+00:00] im = im.resize(size, resample, box)
[2024-10-17T01:42:14.147202+00:00] File "/Users/issuebot/.env/lib/python3.9/site-packages/PIL/Image.py", line 2365, in resize
[2024-10-17T01:42:14.147208+00:00] return self._new(self.im.resize(size, resample, box))
[2024-10-17T01:42:14.147214+00:00] builtins.ValueError: height and width must be > 0
I also see below workaround in https://www.mail-archive.com/pythonmac-sig@python.org/msg12027.html, do you have any suggestion on resolving above our issue? That is not 100% reproducible, only happen randomly. Thanks.
This is a change in behaviour in macOS. The workaround is to create an
NSApplication instance, for example by calling
Cocoa.NSApplication.sharedApplication().
Thanks,
Zhi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/pythonmac-sig/attachments/20241018/421667ac/attachment.html>
More information about the Pythonmac-SIG
mailing list