Python[676:3763] +[NSXPCSharedListener endpointForReply:withListenerName:replyErrorCode:]: an error occurred while attempting to obtain endpoint for listener 'ClientCallsAuxiliary': Connection interrupted

Zhi Feng via Pythonmac-SIG <[email protected]> Sat, 19 Oct 2024 00:47:42 +0800
Newsgroups gmane.comp.python.apple
Message-ID <[email protected]>
--===============7280322673076847827==
Content-type: multipart/alternative;
 boundary="Apple-Mail=_05C9F626-1011-4AB4-9C36-21A58840B52F"


--Apple-Mail=_05C9F626-1011-4AB4-9C36-21A58840B52F
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Dear experts,

We encountered below NSXPC issue that is similar with one in =
https://www.mail-archive.com/[email protected]/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/cla=
ssifiers/astro/SMCDataAnalyticsImportClassifier.py", line 578, in =
execute
[2024-10-17T01:42:14.146953+00:00]     have_param_fails |=3D =
analyze_a_record(
[2024-10-17T01:42:14.146959+00:00]   File =
"/Users/issuebot/.env/lib/python3.9/site-packages/issuebot_osd/plugins/cla=
ssifiers/astro/SMCDataAnalyticsImportClassifier.py", line 480, in =
analyze_a_record
[2024-10-17T01:42:14.146966+00:00]     have_param_fails =3D =
add_parametric_fail(
[2024-10-17T01:42:14.146971+00:00]   File =
"/Users/issuebot/.env/lib/python3.9/site-packages/issuebot_osd/plugins/cla=
ssifiers/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/cla=
ssifiers/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/cla=
ssifiers/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/cla=
ssifiers/astro/TestDataCharting.py", line 703, in =
build_plots_for_results
[2024-10-17T01:42:14.147013+00:00]     fig =3D plotting_function(
[2024-10-17T01:42:14.147018+00:00]   File =
"/Users/issuebot/.env/lib/python3.9/site-packages/issuebot_osd/plugins/cla=
ssifiers/astro/TestDataCharting.py", line 406, in make_multiple_plots
[2024-10-17T01:42:14.147024+00:00]     fig, axis_list_full =3D =
make_figure_objects(dpi, subplots_needed=3Dsubplots_needed)
[2024-10-17T01:42:14.147030+00:00]   File =
"/Users/issuebot/.env/lib/python3.9/site-packages/issuebot_osd/plugins/cla=
ssifiers/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 =3D figure(**fig_kw)
[2024-10-17T01:42:14.147053+00:00]   File =
"/Users/issuebot/.env/lib/python3.9/site-packages/matplotlib/_api/deprecat=
ion.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 =3D 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/_bac=
kend_tk.py", line 481, in create_with_canvas
[2024-10-17T01:42:14.147129+00:00]     manager =3D cls(canvas, num, =
window)
[2024-10-17T01:42:14.147135+00:00]   File =
"/Users/issuebot/.env/lib/python3.9/site-packages/matplotlib/backends/_bac=
kend_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 =3D =
self._toolbar2_class(self.canvas)
[2024-10-17T01:42:14.147158+00:00]   File =
"/Users/issuebot/.env/lib/python3.9/site-packages/matplotlib/backends/_bac=
kend_tk.py", line 590, in __init__
[2024-10-17T01:42:14.147163+00:00]     self._buttons[text] =3D button =3D =
self._Button(
[2024-10-17T01:42:14.147169+00:00]   File =
"/Users/issuebot/.env/lib/python3.9/site-packages/matplotlib/backends/_bac=
kend_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/_bac=
kend_tk.py", line 728, in _set_image_for_button
[2024-10-17T01:42:14.147186+00:00]     image =3D =
ImageTk.PhotoImage(im.resize((size, size)), master=3Dself)
[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 =3D 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/[email protected]/msg12027.html, do =
you have any suggestion on resolving above our issue? That is not 100% =
reproducible, only happen randomly. Thanks.=20

      This is a change in behaviour in macOS. The workaround is to =
create an=20
      NSApplication instance, for example by calling=20
      Cocoa.NSApplication.sharedApplication().


Thanks,
Zhi






--Apple-Mail=_05C9F626-1011-4AB4-9C36-21A58840B52F
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"content-type" content=3D"text/html; =
charset=3Dus-ascii"></head><body style=3D"overflow-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;"><div>Dear =
experts,</div><div><br></div><div>We encountered below NSXPC issue that =
is similar with one in&nbsp;<a =
href=3D"https://www.mail-archive.com/[email protected]/msg12027.htm=
l">https://www.mail-archive.com/[email protected]/msg12027.html</a>=
, below issue happened in python3.9 with MacOS Monterey and =
Sonoma.</div><div><br></div><blockquote style=3D"margin: 0 0 0 40px; =
border: none; padding: =
0px;"><div><br></div><div><div>[2024-10-17T01:42:00.390405+00:00] =
2024-10-16 18:42:00.389 Python[676:3763] XType: Using static font =
registry.</div></div><div><div>[2024-10-17T01:42:13.660839+00:00] =
2024-10-16 18:42:13.659 Python[676:3763] +<font =
color=3D"#ff2600">[NSXPCSharedListener =
endpointForReply:withListenerName:replyErrorCode:]: an error occurred =
while attempting to obtain endpoint for listener 'ClientCallsAuxiliary': =
Connection =
interrupted</font></div></div><div><div>[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</div></div><div><div>[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</div></div><div><div>[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)</div></div><div><div>[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</div></div><div><div>[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</div></div><div><div>[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</div></div><div><div>[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</div></div><div><div>[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)</div></div><div><div>[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</div></div><div><div>[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</div></div><div><div>[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</div></div><div><div>[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</div></div><div><div>[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)</div></div><div><div>[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</div></div><div><div>[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</div></div><div><div>[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):</div></div><div><div>[2024-10-17T01:42:14.146929+00:00] &nbsp; =
File =
"/Users/issuebot/.env/lib/python3.9/site-packages/issuebot/flows/Flow.py",=
 line 209, in =
_run_plugins</div></div><div><div>[2024-10-17T01:42:14.146938+00:00] =
&nbsp; &nbsp; =
plugin.execute(context)</div></div><div><div>[2024-10-17T01:42:14.146946+0=
0:00] &nbsp; File =
"/Users/issuebot/.env/lib/python3.9/site-packages/issuebot_osd/plugins/cla=
ssifiers/astro/SMCDataAnalyticsImportClassifier.py", line 578, in =
execute</div></div><div><div>[2024-10-17T01:42:14.146953+00:00] &nbsp; =
&nbsp; have_param_fails |=3D =
analyze_a_record(</div></div><div><div>[2024-10-17T01:42:14.146959+00:00] =
&nbsp; File =
"/Users/issuebot/.env/lib/python3.9/site-packages/issuebot_osd/plugins/cla=
ssifiers/astro/SMCDataAnalyticsImportClassifier.py", line 480, in =
analyze_a_record</div></div><div><div>[2024-10-17T01:42:14.146966+00:00] =
&nbsp; &nbsp; have_param_fails =3D =
add_parametric_fail(</div></div><div><div>[2024-10-17T01:42:14.146971+00:0=
0] &nbsp; File =
"/Users/issuebot/.env/lib/python3.9/site-packages/issuebot_osd/plugins/cla=
ssifiers/astro/SMCDataAnalyticsImportClassifier.py", line 464, in =
add_parametric_fail</div></div><div><div>[2024-10-17T01:42:14.146977+00:00=
] &nbsp; &nbsp; =
add_attachments_to_issue(</div></div><div><div>[2024-10-17T01:42:14.146983=
+00:00] &nbsp; File =
"/Users/issuebot/.env/lib/python3.9/site-packages/issuebot_osd/plugins/cla=
ssifiers/astro/SMCDataAnalyticsImportClassifier.py", line 410, in =
add_attachments_to_issue</div></div><div><div>[2024-10-17T01:42:14.146989+=
00:00] &nbsp; &nbsp; add_chart_to_issue(astro, context, all_found, =
tests, current_test, =
issue,</div></div><div><div>[2024-10-17T01:42:14.146995+00:00] &nbsp; =
File =
"/Users/issuebot/.env/lib/python3.9/site-packages/issuebot_osd/plugins/cla=
ssifiers/astro/SMCDataAnalyticsImportClassifier.py", line 369, in =
add_chart_to_issue</div></div><div><div>[2024-10-17T01:42:14.147000+00:00]=
 &nbsp; &nbsp; =
TestDataCharting.build_plots_for_results(</div></div><div><div>[2024-10-17=
T01:42:14.147007+00:00] &nbsp; File =
"/Users/issuebot/.env/lib/python3.9/site-packages/issuebot_osd/plugins/cla=
ssifiers/astro/TestDataCharting.py", line 703, in =
build_plots_for_results</div></div><div><div>[2024-10-17T01:42:14.147013+0=
0:00] &nbsp; &nbsp; fig =3D =
plotting_function(</div></div><div><div>[2024-10-17T01:42:14.147018+00:00]=
 &nbsp; File =
"/Users/issuebot/.env/lib/python3.9/site-packages/issuebot_osd/plugins/cla=
ssifiers/astro/TestDataCharting.py", line 406, in =
make_multiple_plots</div></div><div><div>[2024-10-17T01:42:14.147024+00:00=
] &nbsp; &nbsp; fig, axis_list_full =3D make_figure_objects(dpi, =
subplots_needed=3Dsubplots_needed)</div></div><div><div>[2024-10-17T01:42:=
14.147030+00:00] &nbsp; File =
"/Users/issuebot/.env/lib/python3.9/site-packages/issuebot_osd/plugins/cla=
ssifiers/astro/TestDataCharting.py", line 235, in =
make_figure_objects</div></div><div><div>[2024-10-17T01:42:14.147036+00:00=
] &nbsp; &nbsp; return plt.subplots(subplots_needed, =
1,</div></div><div><div>[2024-10-17T01:42:14.147042+00:00] &nbsp; File =
"/Users/issuebot/.env/lib/python3.9/site-packages/matplotlib/pyplot.py", =
line 1450, in =
subplots</div></div><div><div>[2024-10-17T01:42:14.147047+00:00] &nbsp; =
&nbsp; fig =3D =
figure(**fig_kw)</div></div><div><div>[2024-10-17T01:42:14.147053+00:00] =
&nbsp; File =
"/Users/issuebot/.env/lib/python3.9/site-packages/matplotlib/_api/deprecat=
ion.py", line 454, in =
wrapper</div></div><div><div>[2024-10-17T01:42:14.147059+00:00] &nbsp; =
&nbsp; return func(*args, =
**kwargs)</div></div><div><div>[2024-10-17T01:42:14.147065+00:00] &nbsp; =
File =
"/Users/issuebot/.env/lib/python3.9/site-packages/matplotlib/pyplot.py", =
line 783, in =
figure</div></div><div><div>[2024-10-17T01:42:14.147070+00:00] &nbsp; =
&nbsp; manager =3D =
new_figure_manager(</div></div><div><div>[2024-10-17T01:42:14.147076+00:00=
] &nbsp; File =
"/Users/issuebot/.env/lib/python3.9/site-packages/matplotlib/pyplot.py", =
line 359, in =
new_figure_manager</div></div><div><div>[2024-10-17T01:42:14.147082+00:00]=
 &nbsp; &nbsp; return _get_backend_mod().new_figure_manager(*args, =
**kwargs)</div></div><div><div>[2024-10-17T01:42:14.147088+00:00] &nbsp; =
File =
"/Users/issuebot/.env/lib/python3.9/site-packages/matplotlib/backend_bases=
.py", line 3513, in =
new_figure_manager</div></div><div><div>[2024-10-17T01:42:14.147094+00:00]=
 &nbsp; &nbsp; return cls.new_figure_manager_given_figure(num, =
fig)</div></div><div><div>[2024-10-17T01:42:14.147099+00:00] &nbsp; File =
"/Users/issuebot/.env/lib/python3.9/site-packages/matplotlib/backend_bases=
.py", line 3518, in =
new_figure_manager_given_figure</div></div><div><div>[2024-10-17T01:42:14.=
147105+00:00] &nbsp; &nbsp; return cls.FigureCanvas.new_manager(figure, =
num)</div></div><div><div>[2024-10-17T01:42:14.147111+00:00] &nbsp; File =
"/Users/issuebot/.env/lib/python3.9/site-packages/matplotlib/backend_bases=
.py", line 1703, in =
new_manager</div></div><div><div>[2024-10-17T01:42:14.147117+00:00] =
&nbsp; &nbsp; return cls.manager_class.create_with_canvas(cls, figure, =
num)</div></div><div><div>[2024-10-17T01:42:14.147123+00:00] &nbsp; File =
"/Users/issuebot/.env/lib/python3.9/site-packages/matplotlib/backends/_bac=
kend_tk.py", line 481, in =
create_with_canvas</div></div><div><div>[2024-10-17T01:42:14.147129+00:00]=
 &nbsp; &nbsp; manager =3D cls(canvas, num, =
window)</div></div><div><div>[2024-10-17T01:42:14.147135+00:00] &nbsp; =
File =
"/Users/issuebot/.env/lib/python3.9/site-packages/matplotlib/backends/_bac=
kend_tk.py", line 431, in =
__init__</div></div><div><div>[2024-10-17T01:42:14.147141+00:00] &nbsp; =
&nbsp; super().__init__(canvas, =
num)</div></div><div><div>[2024-10-17T01:42:14.147146+00:00] &nbsp; File =
"/Users/issuebot/.env/lib/python3.9/site-packages/matplotlib/backend_bases=
.py", line 2804, in =
__init__</div></div><div><div>[2024-10-17T01:42:14.147152+00:00] &nbsp; =
&nbsp; self.toolbar =3D =
self._toolbar2_class(self.canvas)</div></div><div><div>[2024-10-17T01:42:1=
4.147158+00:00] &nbsp; File =
"/Users/issuebot/.env/lib/python3.9/site-packages/matplotlib/backends/_bac=
kend_tk.py", line 590, in =
__init__</div></div><div><div>[2024-10-17T01:42:14.147163+00:00] &nbsp; =
&nbsp; self._buttons[text] =3D button =3D =
self._Button(</div></div><div><div>[2024-10-17T01:42:14.147169+00:00] =
&nbsp; File =
"/Users/issuebot/.env/lib/python3.9/site-packages/matplotlib/backends/_bac=
kend_tk.py", line 792, in =
_Button</div></div><div><div>[2024-10-17T01:42:14.147175+00:00] &nbsp; =
&nbsp; NavigationToolbar2Tk._set_image_for_button(self, =
b)</div></div><div><div>[2024-10-17T01:42:14.147180+00:00] &nbsp; File =
"/Users/issuebot/.env/lib/python3.9/site-packages/matplotlib/backends/_bac=
kend_tk.py", line 728, in =
_set_image_for_button</div></div><div><div>[2024-10-17T01:42:14.147186+00:=
00] &nbsp; &nbsp; image =3D ImageTk.PhotoImage(im.resize((size, size)), =
master=3Dself)</div></div><div><div>[2024-10-17T01:42:14.147191+00:00] =
&nbsp; File =
"/Users/issuebot/.env/lib/python3.9/site-packages/PIL/Image.py", line =
2342, in resize</div></div><div><div>[2024-10-17T01:42:14.147197+00:00] =
&nbsp; &nbsp; im =3D im.resize(size, resample, =
box)</div></div><div><div>[2024-10-17T01:42:14.147202+00:00] &nbsp; File =
"/Users/issuebot/.env/lib/python3.9/site-packages/PIL/Image.py", line =
2365, in resize</div></div><div><div>[2024-10-17T01:42:14.147208+00:00] =
&nbsp; &nbsp; return self._new(self.im.resize(size, resample, =
box))</div></div><div><div>[2024-10-17T01:42:14.147214+00:00] =
builtins.ValueError: height and width must be &gt; =
0</div></div></blockquote><div><br></div><div><br></div><div><div =
style=3D"display: block;">I also see below <font =
color=3D"#aa7942">workaround</font> in&nbsp;<a =
href=3D"https://www.mail-archive.com/[email protected]/msg12027.htm=
l">https://www.mail-archive.com/[email protected]/msg12027.html</a>=
, do you have any suggestion on resolving above our issue? That is not =
100% reproducible, only happen randomly. =
Thanks.&nbsp;</div></div><div><pre style=3D"font-family: courier, =
&quot;courier new&quot;, monospace; font-size: 14px; text-wrap-mode: =
wrap; overflow-wrap: break-word; margin-top: 0px; margin-bottom: 0px;">
<font color=3D"#aa7942">      This is a change in behaviour in macOS. =
The workaround is to create an=20
</font><span style=3D"color: rgb(170, 121, 66); text-wrap-mode: wrap;">  =
    </span><font color=3D"#aa7942">NSApplication instance, for example =
by calling=20
</font><span style=3D"color: rgb(170, 121, 66); text-wrap-mode: wrap;">  =
    </span><font =
color=3D"#aa7942">Cocoa.NSApplication.sharedApplication().</font></pre><pr=
e style=3D"font-family: courier, &quot;courier new&quot;, monospace; =
font-size: 14px; text-wrap-mode: wrap; overflow-wrap: break-word; =
margin-top: 0px; margin-bottom: 0px;"><br></pre></div><br><div>
<meta charset=3D"UTF-8"><div dir=3D"auto" style=3D"caret-color: rgb(0, =
0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: =
after-white-space;"><div>Thanks,</div><div>Zhi<br><br></div><div><br></div=
></div><br class=3D"Apple-interchange-newline"><br =
class=3D"Apple-interchange-newline">
</div>
<br></body></html>=

--Apple-Mail=_05C9F626-1011-4AB4-9C36-21A58840B52F--

--===============7280322673076847827==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Pythonmac-SIG maillist  -  [email protected]
https://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG

--===============7280322673076847827==--