I am experiencing consistently-repeatable crashes with 5.14.522.8390, specifically when interpolating strings within _-RunPythonScript. That seems crazy, but I’ve completely reinstalled Rhino, and the issue persists, even in safe mode with only RhinoScript and RhinoDLR_Python being allowed to load. So I’m wondering if anyone would be willing to paste the following into the Macro Editor or a toobar button command, and see if it crashes for you as well:
-_RunPythonScript (
print('the answer is %s' % 42)
)
I’m on win10 pro x64, and find that this issue does not occur when using the Rhino 6 beta. I sent in an error report with more details than this but didn’t hear anything back yet, so will appreciate if someone can please try running this, so I can tell whether it seems machine-specific.
Thanks guys, at least it’s good to know this seems localized to my machine. For what it’s worth Mostapha, it is fine to use %s with any object in python (see the conversion types table in section 5.6.2 here), and all of your examples crash similarly on my machine (incidentally, the %d one is a worse crash, even exiting out of the debugger completely). Interestingly, I’m unable to get the format() method to crash, but then I guess that would involve a very different code path.
This type of behavior is what I might expect to see when strings are passed between different C runtimes, but since this appears to be localized to my machine (and this morning, I’ve done another complete reinstall, using a freshly-downloaded installer, with the crashes persisting, on both x86 and x64 rhino), I am thinking there must be something wrong with the runtimes on my machine.