Rhino 6 SR 12 - many crashes with display conduits

Hi @stevebaer, @jeff

i have some python scripts initially developed under Rhino 5 which just show objects (points, clouds, lines, arrows) in a display conduit (using PostDrawObjects and DrawForeground) and do get frequent crashes in Rhino 6 SR 12 ((6.12.19029.6381, 29.01.2019). When Rhino crashes, all i do is toggling the visibility of objects in the display conduit from the commandline. I do not get a dialog to report the crashes nor do i get the text file on the desktop which could help to pinpoint the source. The dll listed in the crash dialog, which pops up is always clr.dll.

I have all my conduit related code in try / except blocks but do not get any exceptions fired at all. The crashes do not appear under Rhino 5. Below is what is shown in the dialog when Rhino 6 goes down:

Problemsignatur:
Problemereignisname: APPCRASH
Anwendungsname: Rhino.exe
Anwendungsversion: 6.12.19029.6381
Anwendungszeitstempel: 5c506ac5
Fehlermodulname: clr.dll
Fehlermodulversion: 4.0.30319.18063
Fehlermodulzeitstempel: 526767d0
Ausnahmecode: c0000005
Ausnahmeoffset: 0000000000232cea
Betriebsystemversion: 6.1.7601.2.1.0.256.48
Gebietsschema-ID: 1031
Zusatzinformation 1: 57d1
Zusatzinformation 2: 57d1b217b3631ca7a6013087c8f7eca7
Zusatzinformation 3: bef5
Zusatzinformation 4: bef5a7f105bada7413ab4710ca9b211a

One source of a possible crash has been probably the method:

args.Display.DrawLines(lines, Color.Magenta, 1)

i’ve found that if an empty list of lines was passed, it crashed reliably. But even after removing above from my code, i still get random crashes. How can i track down why and where Rhino 6 crashes ?

I can provide code and example files via PM, but it is a lot of code.

thanks,
c.

A PM with the code is probably best. If we can reproduce the crash, we should be able to fix it

1 Like

Hi @stevebaer, thank you for the quick response. I will prepare something and reply via PM.

_
c.