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

filter particle by size slider crashes #152

Closed
chrishavlin opened this issue Nov 1, 2024 · 3 comments
Closed

filter particle by size slider crashes #152

chrishavlin opened this issue Nov 1, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@chrishavlin
Copy link
Contributor

Running either particle plot example, trying to use the "Filter Particle Max Size" slider causes a crash

yt-idv-crash.mp4
Traceback (most recent call last):
  File "/home/chavlin/src/yt_general/website_explore/data_structure_figures/discrete_particles_idv.py", line 19, in <module>
    rc.run()
  File "/home/chavlin/src/yt_general/yt_idv/yt_idv/rendering_contexts/pyglet_context.py", line 158, in run
    pyglet.app.run()
  File "/home/chavlin/.pyenv/versions/yt_idv/lib/python3.9/site-packages/pyglet/app/__init__.py", line 76, in run
    event_loop.run(interval)
  File "/home/chavlin/.pyenv/versions/yt_idv/lib/python3.9/site-packages/pyglet/app/base.py", line 151, in run
    timeout = self.idle()
  File "/home/chavlin/.pyenv/versions/yt_idv/lib/python3.9/site-packages/pyglet/app/base.py", line 212, in idle
    self.clock.call_scheduled_functions(dt)
  File "/home/chavlin/.pyenv/versions/yt_idv/lib/python3.9/site-packages/pyglet/clock.py", line 227, in call_scheduled_functions
    item.func(now - item.last_ts, *item.args, **item.kwargs)
  File "/home/chavlin/.pyenv/versions/yt_idv/lib/python3.9/site-packages/pyglet/app/base.py", line 118, in _redraw_windows
    window.dispatch_event('on_draw')
  File "/home/chavlin/.pyenv/versions/yt_idv/lib/python3.9/site-packages/pyglet/window/__init__.py", line 668, in dispatch_event
    super().dispatch_event(*args)
  File "/home/chavlin/.pyenv/versions/yt_idv/lib/python3.9/site-packages/pyglet/event.py", line 387, in dispatch_event
    if getattr(self, event_type)(*args):
  File "/home/chavlin/src/yt_general/yt_idv/yt_idv/rendering_contexts/pyglet_context.py", line 80, in on_draw
    self.gui.render(self.scene)
  File "/home/chavlin/src/yt_general/yt_idv/yt_idv/simple_gui.py", line 63, in render
    if imgui.tree_node(f"element {i + 1}: {element.display_name}"):
  File "imgui/core.pyx", line 5130, in imgui.core.tree_node
imgui.core.ImGuiError: ImGui assertion error (mouse_button >= 0 && mouse_button < ImGuiMouseButton_COUNT) at imgui-cpp/imgui_widgets.cpp:627

I actually think this is an imgui bug -- downgrading from imgui 2.0.0 to 1.4.1 fixes the error for me. but reporting here til I can figure out a more minimally reproducible example.

@chrishavlin chrishavlin added the bug Something isn't working label Nov 1, 2024
@matthewturk
Copy link
Member

Well isn't that strange! I wonder if this is just related to the specific UI element?

@chrishavlin
Copy link
Contributor Author

ya, i think it is just a bug with the UI element, most likely not really a yt_idv bug.

@chrishavlin
Copy link
Contributor Author

Fixed by #153

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

No branches or pull requests

2 participants