pedohorse / lifeblood

task management system
https://pedohorse.github.io/lifeblood/
GNU General Public License v3.0
19 stars 1 forks source link

[viewer] Replacing backticks with expression #69

Closed alexwheezy closed 7 months ago

alexwheezy commented 7 months ago

When changing a parameter to use an expression enclosed in backticks, such as `node.name` the parameter window crashes and the entire interface stops responding with the following error:

imgui.core.ImGuiError: ImGui assertion error ((g.FrameCount == 0 || g.FrameCountEnded == g.FrameCount) && "Forgot to call Render() or EndFrame() at the end of the previous frame?") at imgui-cpp/imgui.cpp:7090
Traceback (most recent call last):
  File "/home/alex/Lib/houdini/lifeblood-dev/install/f5d82467e4903/lifeblood_viewer/nodeeditor.py", line 1168, in drawForeground
    imgui.new_frame()
  File "imgui/core.pyx", line 3901, in imgui.core.new_frame

Now we have to forcibly remove the backticks and then change the parameter to use the expression.

lifeblood build: v0.9.0 OS: Manjaro 23.1.3 Vulcan

alexwheezy commented 6 months ago

Still getting this error when I try to enable expression. For example, if the test node has the into parameter make enable expression.

lifeblood build: bef06ea5c0e19 OS: Manjaro 23.1.3 Vulcan

pedohorse commented 6 months ago

hmmm, cannot seem to reproduce it. what are exact set of actions? now i'm trying this:

result: i'm getting backtick-expandable string converted to a simple python expression, no errors

pedohorse commented 6 months ago

understood, the bug is now with non-string expressions, should be fixed with b8baef85058df63a6e7b08c2dcae77541e157de1 now