Segmentation fault on MacOS 14.5 / Apple Silicon with Python 3.12.5 and FreeSimpleGUI 5.1.1
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
调研方向
Start with the reported stack trace, especially the GUI path through pfi/tools/fplot.py at lines 414, 123, and 570, and reproduce it on macOS 14.5 with Python 3.12.5, FreeSimpleGUI 5.1.1, and the reported matplotlib versions. Compare the GUI and command-line paths around closing show(); done means the GUI path closes the plot without a segmentation fault.
由索引模型根据 Issue 内容生成。
描述
I have a FreeSimpleGUI front end for a plotting utility; there is a button on the FreeSimpleGUI window that renders a plot with matplotlib show(). After closing the plot window (when show() exits), I'm getting a segmentation fault.
I can invoke the same plot via command line switches and bypass any FreeSimpleGUI rendering. In that case, after I close the show() window, no segmentation fault.
I add a faulthandler.enable() before the show(), and got this stack trace for the segmentation fault:
Fatal Python error: Segmentation fault
Current thread 0x00000001f3454c00 (most recent call first):
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/tkinter/__init__.py", line 1505 in mainloop
File "/Users/elw/Development/brewmonitor-python-toolkit/.venv/lib/python3.12/site-packages/PySimpleGUI.py", line 11263 in _read
File "/Users/elw/Development/brewmonitor-python-toolkit/.venv/lib/python3.12/site-packages/PySimpleGUI.py", line 11134 in read
File "/Users/elw/Development/brewmonitor-python-toolkit/pfi/tools/fplot.py", line 414 in fplot_ui
File "/Users/elw/Development/brewmonitor-python-toolkit/pfi/tools/fplot.py", line 123 in fplot_cli
File "/Users/elw/Development/brewmonitor-python-toolkit/pfi/tools/fplot.py", line 570 in <module>
File "<frozen runpy>", line 88 in _run_code
File "<frozen runpy>", line 198 in _run_module_as_main
I tried PySimpleGUI-4-foss, and had the same behavior, if that helps. Matplotlib version is the most current (3.9.1.post1), but it occurred with Matplotlib 3.8.3 and 3.8.4 as well.
- 主要语言
- Python
- 星标
- 867
- 派生
- 106
- 平均合并
- 1 分钟
- 30 天内合并 PR
- 2
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
spyoungtech/FreeSimpleGUI 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 90/100
spyoungtech/FreeSimpleGUI#109 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
spyoungtech/FreeSimpleGUI#86 · 1 条评论 · 2 个 reaction ·
-
难度 1/5 1 小时以内 新手友好度 58/100
spyoungtech/FreeSimpleGUI#101 · 8 个 reaction ·
-
难度 5/5 一周以上 新手友好度 35/100
spyoungtech/FreeSimpleGUI#99 · 1 个 reaction ·
-
难度 5/5 一周以上 新手友好度 20/100
spyoungtech/FreeSimpleGUI#95 ·
查看 spyoungtech/FreeSimpleGUI 的全部 Issue
相似的 Issue
-
area: harness bug status: needs-triage
难度 2/5 1-3 小时 新手友好度 75/100
Human-Agent-Society/reef#625 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 1/5 1 小时以内 新手友好度 80/100
learningequality/kolibri#15351 · 2 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
-
Name consistency 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
eellak/triplestore#65 · 1 条评论 ·