-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
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
[BUG] HAS_GCODE_PREVIEW
thumbnail preview not working
#26169
Comments
delete[] fileprop.thumbdata; Should clear all thumbnail data. Be sure that your thumbnail does not exceed 10kB with the current implementation. |
sorry, void onClickConfirmToPrint() {
dwinResetStatusLine();
if (hmiFlag.select_flag) { // Confirm
gotoMainMenu();
return card.openAndPrintFile(card.filename);
}
else {
delete[] fileprop.thumbdata; // added here
hmiReturnScreen();
}
} I tried here, yet doesn't help. i may have mentioned a quick temporary fix is to select another file without a thumbnail so it says another note to make is should |
unrelated: |
I also tried return delete[] fileprop.thumbdata,
hmiReturnScreen(); maybe I have it in the wrong spot? I would assume this is correct, it is where it selects to print or to cancel on the display. I will say removing HAS_GCODE_PREVIEW enabled still doesn't work within this Marlin fork. I have to test using the Ender3V2S1 fork. the files and code is the same mostly except for PROUI_EX. |
This issue has had no activity in the last 60 days. Please add a reply if you want to keep this issue active, otherwise it will be automatically closed within 10 days. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Did you test the latest
bugfix-2.1.x
code?Yes, and the problem still exists.
Bug Description
with
HAS_GCODE_PREVIEW
it doesn't popup to show the thumbnail of the model preview.also, this is the 2nd part to the issue, when it was working, it only allowed selecting 1 or 2 previews at a time before freezing/rebooting.
this is especially prevalent with 256K memory max. so im certain it has to do with the cache being stored and not cleared properly after going back to the menu.
Bug Timeline
No response
Expected behavior
suppose to show a popup with a 3D rendering image of the gcode image.
asking to confirm to print or cancel.
Actual behavior
just goes straight to print, no popup to preview and ask to confirm or cancel
Steps to Reproduce
DWIN_LCD_PROUI
HAS_GCODE_PREVIEW
is enabledVersion of Marlin Firmware
current bugfix
Printer model
No response
Electronics
No response
Add-ons
No response
Bed Leveling
None
Your Slicer
None
Host Software
None
Don't forget to include
Configuration.h
andConfiguration_adv.h
.Additional information & file uploads
Marlin-Configs.zip
when I was able to have this working, there was also an issue when selecting the thumbnail preview file again.
basically anytime you go to select another or the same gcode file with preview, it would freeze/crash then reboot automatically.
a way around this was to after seeing the thumbnail - go to another file that did not have one or simply go back to another folder directory. once there it basically refreshes itself and you can select another file to preview.
I noticed that files which had larger thumbnail "cache" or whatever you want to call it - whatever was being written to the FLASH memory - or wherever its store (SRAM?) - you could only select these files once or twice in a row before it freezes/reboots.
files with smaller image sizes (which also load the preview faster) can be loaded several times 3 or 4 in a row before the issue happens.
if there is a way to clear the cache or memory after you "Cancel"/ not confirm the file to print, inorder to view another file, that would fix that issue.
i've tried a few things like
ect... dont know where to go from there.
The text was updated successfully, but these errors were encountered: