Pre-processing will cause firmware restart

After a hiatus of a couple of months I updated to latest 2.1 & fluid and re-calibrated my printer. All of that is working just fine and the printer worked before without issues as well. However, when trying to start a printer I get the following error Error: !! Post-processing failed: Unexpected error Error: G-code could not be processed Valid slicer identification was not found. Tried old version of Orca and Super Slicer - as well as an updated version of both. Even a clean install of the latest prusa slicer is throwing the error. The shape is just a simple 1 layer 150x30mm block Did something change in the latest RatOS 2.1 versions that I need to configure or include in my printer.cfg? Couldn't find anything in the file or in the github config documentation but maybe I missed something.
34 Replies
TheTik
TheTik2w ago
How are you trying to start the print? What have you put in your Start G-code in the slicers? https://os.ratrig.com/docs/slicers/
Heretic_Infidel
Heretic_InfidelOP2w ago
I've tried a couple of different Start G-Code and the result is always the same failure state. Print started either as a direct upload from the slicer or a manual export & upload For PS and SS I've tried the defautl profile, as well as what is on the os.ratrig.com website. This used to work for SS: G90 G21 SET_GCODE_VARIABLE MACRO="RatOS" variable="relative_extrusion" VALUE="True" START_PRINT EXTRUDER_TEMP={first_layer_temperature[0]} EXTRUDER_OTHER_LAYER_TEMP={temperature[0]} BED_TEMP=[first_layer_bed_temperature] CHAMBER_TEMP=[chamber_temperature] TOTAL_LAYER_COUNT={total_layer_count} X0={first_layer_print_min[0]} Y0={first_layer_print_min[1]} X1={first_layer_print_max[0]} Y1={first_layer_print_max[1]} As did this for Orca: START_PRINT EXTRUDER_TEMP={first_layer_temperature[0]},{first_layer_temperature[1]} EXTRUDER_OTHER_LAYER_TEMP={nozzle_temperature[0]},{nozzle_temperature[1]} BED_TEMP=[bed_temperature_initial_layer_single] INITIAL_TOOL={initial_tool} TOTAL_LAYER_COUNT={total_layer_count} X0={adaptive_bed_mesh_min[0]} Y0={adaptive_bed_mesh_min[1]} X1={adaptive_bed_mesh_max[0]} Y1={adaptive_bed_mesh_max[1]} Just tried some old files that printed succesfully in the past and same problem.
Helge Keck
Helge Keck2w ago
can you try with a small gcode file and report back
Heretic_Infidel
Heretic_InfidelOP2w ago
Smallest I could think of - 30x30x0.2 box created in latest version of super slicer. Logs attached.
Helge Keck
Helge Keck2w ago
and it didnt worked?
Heretic_Infidel
Heretic_InfidelOP2w ago
Nope - instantly crashed It goes into 'pre-processing' and then the crash
Helge Keck
Helge Keck2w ago
please enable debug mode with ENABLE_DEBUG, then reproduce the error and share the console output also, please configure your slicer according to this documentation https://github.com/HelgeKeck/RatOS/blob/documentation_v2.1/site/docs/slicers.md make sure all the gcode fields are correct and then try again
Heretic_Infidel
Heretic_InfidelOP2w ago
Did a clean install of Prusaslicer, double checked the config from the documentation. Result is still a crash 10:20:28 $ ENABLE_DEBUG 10:20:28 RatOS | DEBUG: Debugging enabled. 10:21:18 Post-processing started Processing Shape-Box_PLA_QUALITY_0.20mm_Nozzle_0.4_VC3_54s.gcode (0.05 mb)... 10:21:20 // Klipper state: Shutdown 10:21:21 File opened:Shape-Box_PLA_QUALITY_0.20mm_Nozzle_0.4_VC3_54s.gcode Size:0 10:21:21 File selected 10:21:21 // Unhandled exception during run // Once the underlying issue is corrected, use the // "FIRMWARE_RESTART" command to reset the firmware, reload the // config, and restart the host software. // Printer is shutdown 10:21:21 !! Unhandled exception during run 10:21:21 // Unhandled exception during run // Once the underlying issue is corrected, use the // "FIRMWARE_RESTART" command to reset the firmware, reload the // config, and restart the host software. // Printer is shutdown 10:21:21 !! Unhandled exception during run 10:21:21 Done printing file
Helge Keck
Helge Keck2w ago
ahh, is the new processore already online @tg73? please have a look @miklschmidt
tg73
tg732w ago
Should only be in dev afaik.
Helge Keck
Helge Keck2w ago
but hsi error message suggests he is on the new code
Helge Keck
Helge Keck2w ago
No description
Helge Keck
Helge Keck2w ago
@Heretic_Infidel are you on the development branch?
Heretic_Infidel
Heretic_InfidelOP2w ago
Could be - This install is still from the release of RC1. Software update is of the opinion that I am ratos-configurator v0.0.0-349-gfdaac5e6-inferred Repo not on offical remote/branch, expected: origin/v2.1.x-deployment, detected: origin/dev-deployment
Helge Keck
Helge Keck2w ago
yes then you are using our internal development branch,we are working on the post processor atm with a big update try to update everthing and try again
Heretic_Infidel
Heretic_InfidelOP2w ago
Ah - thought that might have been the case. Let me try and update. Otherwise I can always roll back to the official branch
tg73
tg732w ago
The specific issue you are seeing was fixed yesterday. We break things in the dev branch, do not use for production machines. If you go back to the regular branch you should delete all gcode files from the printer to avoid potential problems. Normally only devs and beta testers use the dev branch.
Helge Keck
Helge Keck2w ago
actually there are a handfull of users in the wild that are on dev branches as you can see
tg73
tg732w ago
It's unfortunate when they don't realise, eg if they switched months ago for some temporary reason, and didn't switch back.
Helge Keck
Helge Keck2w ago
i know a slution, we can add a warning message to the ratrig welcome message
Heretic_Infidel
Heretic_InfidelOP2w ago
It's a hobby machine and was onthe dev for the 2.1 before the summer. THen moved house and never had any problems before. But it works now. When I have some time i\ll do the rollback to the normal Thank you for the help either way. A warning message might indeed be good reminder for those who don't print daily 😄
miklschmidt
miklschmidt2w ago
You cannot be on the development branch without explicitly checking it out yourself (it's quite a few steps, not something you do automatically/accidentally), there is no official image with development branches already set. Did you do this yourself, and if so why? If not, who did?
It's a hobby machine and was onthe dev for the 2.1 before the summer.
Ah. The problem is the development branch moved to a monorepo structure, so you can't roll back without a significant song and dance, since the configuration no longer exists on your pi as a separate repository. Reflashing is most likely the easiest way forward.
Heretic_Infidel
Heretic_InfidelOP2w ago
Tried looking up what I did but couldn't find it anymore in the ratos-development pinned posts. At the time what I did was follow the guide to move to the branch that allowed for th use of 2.1 - RC1 and have been following that branch since.
miklschmidt
miklschmidt2w ago
RC1 never required running the dev branch so i assume it was even earlier than that. All good though, explains how you got there 👍
Heretic_Infidel
Heretic_InfidelOP2w ago
That was my thinking as well - just start from a blank slate. Have had to rebuild my printer anyway so already happy it is up and running and calibrated. Reflashing and copy-pasting my config back and re-doing some calibration work is easy enough
miklschmidt
miklschmidt2w ago
Instructions for moving to dev always come with big fat warnings that stuff will break and that you should never run it permanently
Heretic_Infidel
Heretic_InfidelOP2w ago
are there any major problems or backwards compatibility issues that I should keep in mind?
Helge Keck
Helge Keck2w ago
we could need another eye on the new branch though
miklschmidt
miklschmidt2w ago
No should be good. The dev branch are mostly infrastructure things and the new post processor. yeah we need more testers
Heretic_Infidel
Heretic_InfidelOP2w ago
I'm fine sticking to the current branch - nothing time critical if something breaks happy to test
miklschmidt
miklschmidt2w ago
then by all means, stick with it at least until we've merged the new post processor 🙂
Heretic_Infidel
Heretic_InfidelOP2w ago
Cool - will do that. Saves me some time ˆˆ
miklschmidt
miklschmidt2w ago
Thanks for helping out! 🙂
Heretic_Infidel
Heretic_InfidelOP2w ago
no worries - happy to. Something to give back to the amazing stuff you all develop.
Want results from more Discord servers?
Add your server