bug: DEV branch; basalt.debug crashes when called inside a thread #37
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What happened?
Attempt to debug a thread by displaying a value using
basalt.debugcrashes the program.Computercraft client
CraftOSPC
Relevant log output
Latest Basalt Version
Hm, it is hard for me to reproduce the error. When i use basalt.debug inside a running thread it works fine. Also using error or "text"..nil errors as expected.
The log output you showed here tells me that the currently running thread trys to resume the thread. Can you show me the code? Full code or important code part. On pastebin/devbin or whatever.
Also a sidenote you could use basalt.logging = true this should start to log errors into a file named basaltLogs.txt - but keep an eye on file size :P
Hi, here's a recreation of the crash setup,
this actually doesn't crash how I expected it to. I was expecting a crash upon clicking the button, but with this setup it crashes the first time the thread is ran.Edited to fix this, it now crashes upon clicking the button.Oh it doesn't crash how I was expecting it to because I didn't wrap the queueEvent call in a function
Hey, thank you! This example helped me alot. It should be fixed 5cf5347
The problem was because of dynamic value also queues a event. This is now disabled by default.