Closed DougCoffland closed 4 years ago
Further testing shows that if the program starts with a comment. The traceback error still occurs. I loaded versions all the way back to 0.4.4 and those versions have the same problem although the error messages seem to be different.
I noticed that if the program starts with a % followed by a comment, it works.
The problem does not occur if the program starts with a G code.
When the traceback error occurs, the simulation fails, but the program will still run
That's not what's going on here. Somehow your simulation data for buildbotics.nc
got corrupted. Perhaps the controller was shut down in the middle of writing the file. I've improved the file handling.
Let me know when you have released the code with the improved file handling so I can test it out.
Try 0.4.7-rc3.
I loaded 0.4.7rc3.
After some previous testing, I learned that if I switched "Enable" off too soon, it would result in the simulation failing after rebooting. Now, it seems that if I switch "Enable" off right after the simulation completes. The g-code is gone after rebooting. That seems OK.
It still does not seem just right. Try these steps:
I get the following:
Should be fixed with 0.4.7-rc4.
I loaded 0.4.7rc4.
After loading, I deleted all programs. Then I loaded three programs letting each one complete simulation after loading it. About one or two seconds after the third program completed simulation, I switched the "Enable" switch off and then back on.
When the controller came back up. The third program was gone. This seemed OK. The first and second programs are still in the drop down list but when selected, they do not simulate and I get a error. It says "Error" in the Level column, "3" in the Location column, and "division by zero" in the Message column. I am not able to execute the programs and the g-code is not displayed.
So that error is there when it boots up. By the way, the boot time was fast. If I select another program, the error is still there. And, in either case, the g-code is not displayed.
Refreshing the browser does not help.
I am able to delete the programs and add them back. After that, everything seems fine.
Should be fixed with 0.4.7-rc5.
The test program "Buildbotics.nc" that comes with the build program results in a traceback error when the browser first connects or when it is refreshed Buildbotics.nc is the first g-code program on the pull-down menu.
I copied the test program and removed the comment on the second line. After that, the traceback error no longer occurs.
This is a problem, because recently, I have been leaving Buildbotics.nc on the controller when I send them out.
The log file and the g-code program are attached.
bbctrl.log
buildbotics.nc.txt