Genesis
Genesis copied to clipboard
ext/pyrender/viewer: NSException when save image
System Information
Genesis version: 0.2.0
Operating System / Platform: MacOS Sequoia 15.2
Python version: 3.10
Tk version: 8.6.14
Hint: check Tk version by python -c "from tkinter import Tk; print(Tk().eval('info patchlevel'))"
How to reproduce
python examples/render_on_macos.py -v
When Viewer created, press "s" to save image. Then program crashed with:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSApplication macOSVersion]: unrecognized selector sent to instance 0x3661c4ab0'
...
libc++abi: terminating due to uncaught exception of type NSException
zsh: abort python examples/render_on_macos.py -v
Detailed description
Based on information from internet, it seems to be caused by Tkinter. Few bugs were reported from Python 2.7 to 3.9, which should be fixed in Python 3.10 w/ Tk 8.6.11, according to this announcement. No similar bug reports have been noted for Tk 8.6.14.
Ref: https://core.tcl-lang.org/tk/tktview/85f316beb15108ac43b03fa6c8608e31f3ae5f92 https://bugs.python.org/issue35209