j7126 / OctoPrint-Dashboard

A dashboard for Octoprint
GNU Affero General Public License v3.0
288 stars 39 forks source link

[Bug]: Old thumbnail shown #342

Open giano574 opened 2 years ago

giano574 commented 2 years ago

The problem

I haven't had time to figure out exactly how to reproduce it but my steps were:

  1. Upload and print a model through OctoPrint for Cura plugin. Confirm that the thumbnail is shown in the dashboard.
  2. Upload a new model and start printing by using OctoPrint for Cura plugin.
  3. Confirm that the dashboard has updated, but is showing the old thumbnail.

Version of OctoPrint

1.7.3

Platform

Raspberry Pi 3B+

Operating system running OctoPrint

OctoPi

Dashboard version

1.19.8

Python version

3.7.3

Printer model & used firmware incl. version

No response

Browser and version of browser, operating system running browser

Google Chrome

Logs and other files needed for analysis

File uploads & additional information

octoprint-systeminfo-20220518092850.zip

j7126 commented 2 years ago

Can you please check if the thumbnail is shown correctly or not when you view it using the button in the files menu? If it is not shown correctly there, can you please try and see if it is shown correctly there when Dashboard plugin is disabled?

DerMouse commented 2 years ago

Hello, I also have this very problem (Octoprint 1.8.2, Dashboard 1.19.8). The thumbnail is properly displayed when I click on it in the files menu (shown into a floating window), and when I load the gcode from the file menu (shown in the « state » sidebar zone).

sarf2k4 commented 1 year ago

Hi, I can confirm that this is still a bug that's been around for a while, I am on octoprint 1.8.6 and dashboard 1.19.9

The print thumbnail of this dashboard plugin will show the previously printed/loaded gcode with image on it.

e.g gcode 1 has an image of 2 cubes gcode 2 has an image of 4 pyramids

printing gcode 1 will not show any of the images printing gcode 2 after gcode 1 will show image of 2 cubes that's from gcode 1

In some 'perhaps rare' cases, like what I did to check if the layout were correct or not, I pressed the "preview" button multiple times, then reloaded the page via browser reload, the thumbnail is now gone. "slicer thumbnail" plugin works perfectly, maybe you want to try 'pull' the thumbnail data from this plugin?

Perhaps the logic of this dashboard plugin's thumbnail is that, it will be updated once a new gcode is loaded, not during reading the gcode like most should be (I guess)

emis-cz commented 1 year ago

Hi, I have the same Problem.

Here is a screenshot: image

Left is the right thumbnail and by dashboard the old.

emis-cz commented 12 months ago

Hi, it happen if I click on printing direct in the list left.