-
Notifications
You must be signed in to change notification settings - Fork 87
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
Can not display thumbnail after add MMU_START_SETUP MMU_START_CHECK to start g_Code #263
Comments
Does this occur with every gcode file you upload? If you have a small gcode file that has the error, can you attach to this issue. Inspecting it might highlight the cause... |
Very strange. The file you sent has not been pre-processed by Happy Hare - I assume it is the original file. I loaded into my system with HH pre-processor enabled and it correctly parsed the placeholders and diff CUBE_PETG_1h1m.gcode /tmp/CUBE_PETG_1h1m.gcode
8d7
< ;
116c115
< MMU_START_SETUP INITIAL_TOOL=0 REFERENCED_TOOLS=0,1 TOOL_COLORS=80FFFF,000000,FFFFFF,FF0000,FF8040 TOOL_TEMPS=215,215,215,215,215 TOOL_MATERIALS=PETG,PETG,PETG,PETG,PETG PURGE_VOLUMES=0,118.75,225,250,150,750,0,750,406.25,150,118.75,75,0,256.25,106.25,556.25,87.5,581.25,0,118.75,543.75,56.25,550,331.25,0 ; Initialize MMU and save info from gcode file
---
> MMU_START_SETUP INITIAL_TOOL=0 REFERENCED_TOOLS=!referenced_tools! TOOL_COLORS=!colors! TOOL_TEMPS=!temperatures! TOOL_MATERIALS=!materials! PURGE_VOLUMES=!purge_volumes! ; Initialize MMU and save info from gcode file
135c134
< MMU_CHANGE_TOOL TOOL=0 NEXT_POS="103.736,113.736" ; T0
---
> T0
355c354
< MMU_CHANGE_TOOL TOOL=1 NEXT_POS="162.908,175.000" ; T1
---
> T1
869c868
< MMU_CHANGE_TOOL TOOL=0 NEXT_POS="147.092,168.140" ; T0
--- |
So I don't understand why the thumbnail is not displaying.. on my system it displays both before the HH pre-processing and afterwards. Also the |
Could be a browser caching issue....try clearing your cache and refreshing your mainsail window as your gcode thumbnail displays fine on my system with Fluidd |
Yes, I compared the two G-code files and the thumbnail part is exactly the same. So I do not know why. The printing state can not display too which is showing in the second picture. |
I clearing the cache and refreshing my fluid window ,it can not display too. |
It goes right when I enable pre-processed by Happy Hare. Is that necessary. enable_file_preprocessor: True |
if you are using placeholders like REFERENCED_TOOLS=!referenced_tools! then yes. However I'm not sure why having Happy Hare I just loaded your gcode with out preprocessing the placeholders and it was displayed fine even with double byte characters on Pi's setup for english users (e.g. LANG=en_GB.UTF-8) |
Thank you very much. |
I'll check with HH pre-processing turned off but I can't imagine this would make a difference... Edit. I've tried all sorts of cases with your gcode file including with pre-processing turned off. It works every time! |
The problem troubled again,even if I enabled file preprocessor.There is an error in moonraker log file .It take too long for preprocess.Is my machine underperforming:
|
That's interesting. The pre-processing that HH adds is much smaller (overhead) that the native "object" pre-processing that moonraker can add, but an error could cause the issue you describe. Do you have a fast SD-card? One thing that does occur during pre-processing is a lot of sd-card read/writes... |
Yes,It works very well without SD-card.I will test for more time.My SD-card is very old. |
I have this problem with very large files (30 mb or more). Such files are often obtained precisely because of multimaterial printing and do not allow not only to view the thumbnail, but also other valuable information is lost - for example, the layer number, and sometimes the preliminary check of the presence of the thread before printing does not work. Is there no way to increase the file processing time? |
I tried to transfer my system to a usb ssd drive and it didn't help, although the testing speed increased 20 times. I tried to disable enable_file_preprocessor and got a more distinct error -
I tried to delete the link to mmu_server.py in the moonraker catalog and metadata are scanned and everything works - both the thumbnail and other parameters. I am not well versed in python, but in the code earlier I see in the else condition the assignment of tools_used None, but there is no check before using lan(tools_used). Is it possible that adding a check to None will avoid this error? if insert_placeholders: |
I got this problem with a large file too. |
same problem and many "time too close " or "crash" |
I've done some research and even some debugging. As a result, it turned out that adding
to the moonraker.conf file solves the problem with processing large files. This is due to the fact that in moonraker, with this option set, the timeout is 30 times longer. The error I wrote about earlier - #263 (comment) it only occurs when the option |
after I add MMU_START_SETUP、 MMU_START_CHECK to start g_Code like this:
MMU_START_SETUP INITIAL_TOOL={initial_tool} REFERENCED_TOOLS=!referenced_tools! TOOL_COLORS=!colors! TOOL_TEMPS=!temperatures! TOOL_MATERIALS=!materials! PURGE_VOLUMES=!purge_volumes! ; Initialize MMU and save info from gcode file
MMU_START_CHECK ; Check MMU is setup for the slicer defined print
M115 U3.9.3 ; tell printer latest fw version
G90 ; use absolute coordinates
M83 ; extruder relative mode
G28 W ; home all without mesh bed level
G1 X0.1 Y10 Z40 F5000.0 ;Move to start position
M140 S[first_layer_bed_temperature] ; set bed temp
M190 S[first_layer_bed_temperature] ; wait for bed temp
M104 S[first_layer_temperature] ; set extruder temp
M109 S[first_layer_temperature] ; wait for extruder temp
MMU_START_LOAD_INITIAL_TOOL ; Load slicer defined initial tool into MMU
G92 E0.0
G1 Z0.28 F3000.0 ;Move to start position
G1 Y180.0 F1500.0 E15 ;Draw the first line
G1 X0.4 F5000.0 ;Move to side a little
G1 Y20 F1500.0 E30 ;Draw the second line
G92 E0.0
G1 Z2.0 F3000 ;Move Z Axis up
My thumbnail can not display.I use Orcaslicer and fluid.Refresh meta does not work:
CUBE_PETG_1h1m.gcode.txt
The text was updated successfully, but these errors were encountered: