Menu

#613 Invisible Wires

Babbage
closed
None
1Fatal
2024-07-17
2024-07-14
Steve Keen
No

Great timing for a novel bug: suddenly the wires went invisible in the attached Ravel!

Also, none of the widgets work: click on them and they don't get attached to the mouse cursor.

The one positive I can take from this is that at least the problem persists, so there may be a clue for you as to the cause stored in the RVL file.

2 Attachments

Discussion

  • High Performance Coder

    Wires disappear because an exception is thrown drawing one of the widgets. Wires are drawn after widgets, and groups after that. If an exception occurs, then the remaining drawing is aborted.

    But just what widget is causing grief here I won't know until I get a chance to run this under a debugger.

     
  • High Performance Coder

    • status: open --> closed
    • assigned_to: High Performance Coder
     
  • High Performance Coder

    The error was caused the axis not being specified on the difference operator.
    I have added try/catch blocks around each individual widget's rendering to make the remaining items rendered properly. I've checked that an error message is posted when pressing "reset"/"recalc". I think that is an adequate solution, and the extra overhead due to try/catch blocks should be minimal.

     
  • High Performance Coder

    Actually - there was slightly more to it - rendering the variable attached to the difference operator was also throwing, so I've reorganised the try/catch blocks in VariableBase::draw as well.

     

Log in to post a comment.