Grasshopper

algorithmic modeling for Rhino

With the latest versions of GH and Rhino 5, I have come across a particularly annoying bug. Sometimes when I try to edit a C# script component, the changes I make don't save when I close the editor. It seems to only happen after Rhino has been left open for a while. Restarting rhino resolves the problem (Although GrasshopperUnloadPlugin does not.) Attached is a screen capture of the problem.

Views: 525

Attachments:

Replies to This Discussion

Hi Andrew,

you mean this starts happening on ALL script components after a while? 

The first thing that comes to mind would be that it's somehow related to Undo/Redo. I should have thought of this before but didn't. An undo or redo operation can replace an existing component with a spanking new one, in which case the script editor no longer knows where to put its code. But this would mean when you edit the script again it should work, provided there isn't another interfering undo event.

However if it stops working for all scripts after a while it must be a different problem. Very odd.

I'll keep looking into this, but I'm on a fast-track release now and trying to fix as many easy bugs as possible within the next few hours and I'm afraid this one does not qualify as "easy" yet...

--

David Rutten

david@mcneel.com

Poprad, Slovakia

I would only add from me that problems with scripting components occured when I used win7 64, but not when I work on different pc (win xp 32, same gh release). This may be some hint for you. Although replacing script components with new one helped. 

It doesn't seem to happen for all script components. When it does happen, it also seems to occasionally come along with a number of other weird problems in Rhino, such as the command line failing to accept "enter" or "escape," a problem I know has been around in some form for a while. I'm not certain the two are related, but I have noticed the two occurring together more than a few times. Also, I can't say I have had this happen since installing the new Script.gha, but I only did that a day or two ago so can't be sure that the problem is gone.

oh and like Mateusz, I am using win7 64 bit. 

"but I only did that a day or two ago so can't be sure that the problem is gone."


unlikely that the problem is gone. I didn't touch that particular code for a long time. You made me realise there are a bunch of problems with the way the code editor handles it's connection to the owner Script component, I'm going to add some code that will make this more reliable. Maybe then the problem with magically disappear.... fingers crossed.


--

David Rutten

david@mcneel.com

Poprad, Slovakia

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service