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

Plugin tries to use a freed object in the documentation help #1

Open
AnidemDex opened this issue Mar 30, 2022 · 1 comment
Open

Plugin tries to use a freed object in the documentation help #1

AnidemDex opened this issue Mar 30, 2022 · 1 comment

Comments

@AnidemDex
Copy link

First of all: this is an underrated and amazing plugin.

That being said, let's get directly to the point:
image

That happens when the plugin tries to generate a TreeItem for the class but the tree item was freed by the editor. Why was freed? Because I used the search bar.

if doc_items.get(name + str(type)):
doc_items[name + str(type)].clear_custom_color(0)
doc_items[name + str(type)].clear_custom_color(1)
return doc_items[name + str(type)]

I solved it just doing:

...
if is_instance_valid(doc_items.get(name + str(type))):
...

I'll make a PR if I got a little time

@AnidemDex
Copy link
Author

This happens too when you close and open the help popup and try to use the cached tree item:
image

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

1 participant