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

Can not forward events without a current renderer on the interactor #154

Closed
1 task
Brandon-Xu opened this issue Nov 22, 2022 · 5 comments
Closed
1 task

Comments

@Brandon-Xu
Copy link

Brandon-Xu commented Nov 22, 2022

Describe the bug
Hi, I found a bug, but it doesn't have to happen on every machine any times,
Sometimes it works, sometimes throw this: Can not forward events without a current renderer on the interactor.
I has test many times many way by variable of control, but still can not find a pattern.
As I know, one colleagues of mine run the program in terminal, never throw this bug.
But another colleague of mine need run the program by java thread, this bug happend by this way, but sometimes it works.
So we try to run the program in the same machine in terminal, as my first colleagues, he never got this bug, but it still throw in our machine!

I google this message, found this.
fa7141a1db04347c33a97ac57b08c58

But I can not imagine why getCurrentRenderer() dont work well.
So, I came here, hoping for some possible leads, maybe can help.

sorry for my english, I come from china. I hope I've described it correctly

Code

# just same as examples

Screenshots
e0e42c575f19fb9f465e1e3359bab77

Platform:
Windows 10

Trame:

  • [*] Version 2.x

Device:

  • [*] Desktop
  • Mobile

OS:

  • [*] Windows

Browsers Affected:

  • [*] Chrome
@jourdain
Copy link
Collaborator

This issue was introduced on trame-vtk==2.0.9 as its shared state now is an incremental one. I still have to figure out what is the best way to handle that part. But if you are not affected by the add/remove actor, you should stick to trame-vtk==2.0.8.

@Brandon-Xu
Copy link
Author

What do you mean by "its shared state now is an incremental one"? Will it cause some times the model cannot be loaded? So the only solution by far is to use trame-vtk=2.0.8, right?
I'm new to vtk and not familiar with some terminologies. What do you mean by "if you are not affected by the add/remove actor". It seems that if I use version 2.0.8, some functionality I cannot use, right?

@Brandon-Xu
Copy link
Author

Brandon-Xu commented Nov 23, 2022

By the way, thanks for the tip, our script works well when we install trame-vtk@2.0.8

@Jimmy-KL
Copy link

@jourdain I met a similar problem but I think I was affected by the add/remove actor problem. I'm using pyvista and it has a method to wrap the pyvista actor to vtk actor. At first, I thought it's a bug of pyvista (issue reported here). Now I think it's the problem you mentioned here. Then I update the trame-vtk to version 2.0.9, unfortunately, I got the same problem in this issue that the model is not loaded.

@jourdain
Copy link
Collaborator

The issue is related to a double update which make the delta state "nothing".

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

3 participants