OrkestraOnline / Orkestra_Online

Orkestra Online is a cloud based platform for deploying, documenting and securing DynamoBIM and Grasshopper content.
https://www.orkestra.online
39 stars 2 forks source link

OkPy 1.9.0 Error Dialogues Appearing When Script Does Not Have Inputs, Opening and Saving OkPy 1.8.3 Scripts Causes Revit Crash #253

Open jblanchardFLAD opened 1 month ago

jblanchardFLAD commented 1 month ago

Unexpected Error Dialogues Upon running a script without inputs, two dialogue windows will appear. In one instance where the script will not run, the dialogue will state "at buildmodel - Could not find file 'C:\Users[username]\AppData\Local\Temp[random string][script name].okpy'." followed by another Error window that states "Cannot perform runtime binding on a null reference" followed by another window that states "at open online OkPy - Cannot perform runtime binding on a null reference"

If the script can run, the dialogue windows only show "Object reference not set to an instance of an object." followed by the script running and then a second dialogue window saying "at open online OkPy - Object reference not set to an instance of an object."

Revit Crashing For the second bug, I found it occurs when saving over a script that was published in 1.8.3 to save over it with 1.9.0 installed. There is no dialogue window, it just states that Revit has experienced a fatal error and must close. I can "Save As" the edited script and push it elsewhere and run that just fine but I am unsure if other users on 1.8.3 are able to use that version saved from 1.9.0.

Screenshots image image image

Desktop (please complete the following information):

In Which context did it happen (please select from the following list) : Orkestra Revit Addin

MostafaElAyoubi commented 1 month ago

Thanks so much for reporting this @jblanchardFLAD and for being so quick to give 1.9 a spin!! All these issues are happening with tools built in OkPy 1.8.3 and opened / modified in 1.9.0 is this correct? This is not supposed to be the case at all so we need to identify where it breaks and fix this.

jblanchardFLAD commented 1 month ago

Correct, the tool was built in 1.8.3 and opened / modified in 1.9.0. Let me know if there's any additional clarity I can provide!