Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jblanchardFLAD opened this issue Sep 24, 2024 · 3 comments
Labels
bug Something isn't working crash Orkestra crashes OkPy

Comments

@jblanchardFLAD
Copy link

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):

  • OS: Windows 11
  • Revit Version : 2023
  • Dynamo Version : 2.16.2
  • Orkestra Version : 1.9.0

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

@MostafaElAyoubi
Copy link
Member

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.

@MostafaElAyoubi MostafaElAyoubi added bug Something isn't working crash Orkestra crashes OkPy labels Sep 25, 2024
@jblanchardFLAD
Copy link
Author

jblanchardFLAD commented Sep 25, 2024 via email

@MostafaElAyoubi
Copy link
Member

Fixes in 1.9.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working crash Orkestra crashes OkPy
Projects
None yet
Development

No branches or pull requests

2 participants