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

Null Reference Exception on GetNonControlledTemplateParameterIds #132

Closed
kraftwerk15 opened this issue Feb 18, 2022 · 5 comments
Closed

Comments

@kraftwerk15
Copy link

kraftwerk15 commented Feb 18, 2022

image

Clicking on GetNonControlledTemplateParametersIds in the UI throws this error:

image

Which after continuing in the debugger, immediately crashes Revit. :)

@kraftwerk15
Copy link
Author

This may be in relation to issue #35

@jeremytammik
Copy link
Owner

Immediately crashing Revit is bad. The API should never be able to do that. A minimal reproducible case for that would be handy to submit to the development team. I suppose a minimal BIM and detailed step-by-step instructions to reproduce using RevitLookup would be sufficient. However, I see no connection with #35... what connection do you see?

@kraftwerk15
Copy link
Author

I just briefly looked at #35 with the comment in there on some things may not be working. Which is how I thought this was related.

To be able to recreate this, you could open the rac_basic_sample_project.rvt, in RevitLookup > SnoopDB, scroll down to ViewPlan, click on anyone of the view plans, then scroll down and select GetTemplateParameterIds. It will display an UnhandledException dialog. Here is my output:

https://pastebin.com/SnM4wzng

Whenever I was debugging, it would crash Revit and the debugging session. Whenever I was not debugging, it would display the UnhandledException window and allow me to close the Exception and continue with Revit. It may be how I've set up my debugging session that crashes Revit.

@chuongmep
Copy link
Contributor

@kraftwerk15 I try checked, don't have any problem from me
image

@Nice3point
Copy link
Collaborator

@kraftwerk15 namespace RevitLookup.Snoop.Data.SnoopableObjectWrapper does not exist, do you have an outdated fork? I don't get this error

If you check this box, uncheck it. Debugger can kill the process when such an error occurs
изображение

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants