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

exceptions during drawing processes are discarded #49

Open
masuhar opened this issue Sep 26, 2024 · 1 comment
Open

exceptions during drawing processes are discarded #49

masuhar opened this issue Sep 26, 2024 · 1 comment

Comments

@masuhar
Copy link
Contributor

masuhar commented Sep 26, 2024

The exception handler in update.js:152

  • catches exceptions not only the ones raised in eval, but also the ones raised in the subsequent processes, such as graph drawing, but
  • only reports 'infinite loop' cases; i.e., silently discards other exceptions.

This makes it very difficult to spot bugs in the Kanon runtime. For example, an attempt to modify a visjs' graph mistakenly creates 'undefined' entry in a graph.edges, which causes an exception in the subsequent process. However, Kanon simply displays a graph before modifying the graph.

This should also be bad for exceptions in the user program.

@masuhar
Copy link
Contributor Author

masuhar commented Sep 26, 2024

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