Kangaroo

THIS FORUM IS NO LONGER ACTIVE. PLEASE POST ANY NEW QUESTIONS OR DISCUSSION ON:

https://discourse.mcneel.com/c/grasshopper/kangaroo

The discussions here are preserved for reference, but new questions posted here are likely to go unanswered.

Kangaroo is a Live Physics engine for interactive simulation, optimization and form-finding directly within Grasshopper.

Weird kangaroo1 control mini window crash

Hello,

the last two days the pop up control window of kangaroo 1 crashes rhino.

popup comes normally after double click, but even for simple simulations, when play is pressed everything becomes unresponsive, no canvas, sliders etc access. Rhino either has to be right click close program or crashes with the following log file.

System::Windows::Forms::Application::ThreadException event occured

SENDER: System.Threading.Thread

EXCEPTION: System.ComponentModel.Win32Exception
MESSAGE: Error creating window handle.
SOURCE: System.Windows.Forms
CALL STACK
   at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
   at System.Windows.Forms.Control.CreateHandle()
   at System.Windows.Forms.Control.get_Handle()
   at System.Windows.Forms.VisualStyles.VisualStyleRenderer.DrawParentBackground(IDeviceContext dc, Rectangle bounds, Control childControl)
   at System.Windows.Forms.ButtonRenderer.DrawParentBackground(Graphics g, Rectangle bounds, Control childControl)
   at System.Windows.Forms.ButtonInternal.ButtonStandardAdapter.PaintThemedButtonBackground(PaintEventArgs e, Rectangle bounds, Boolean up)
   at System.Windows.Forms.ButtonInternal.ButtonStandardAdapter.PaintWorker(PaintEventArgs e, Boolean up, CheckState state)
   at System.Windows.Forms.ButtonBase.OnPaint(PaintEventArgs pevent)
   at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
   at System.Windows.Forms.Control.WmPaint(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

more or less i think this error describes what happens with the controls pop up window. 

but why it happens? i cant recall any recent changes to my system.

Does anyone have any ideas what is happening, or have come across the same problem?

thank you.

best

alex

  • up

    ng5 Alex

    oh i installed visual studio 2015 ten days ago. i hope this is not it.

    • up

      ng5 Alex

      I went component by component through the offending definition.

      the problem was caused by a multiple curves intersection component, which was after kangaroo mesh output. Weird thing is that it was disabled. Even so turned rhino unclickable after pressing the kangaroo play button. Once deleted everything is back to normal.

      Every time this weird bug-crash happens, if rhino is not shut down, most, but not all, kangaroo definitions carry on with the same play button problem. If rhino is restarted everything comes back to normal.

      • up

        ng5 Alex

        it started happening again. i cant pinpoint the cause.

        if anyone has any idea, i would appreciate to share thoughts.

        best

        alex