Skip to content
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

Multiple instances don't show thumbnail #40

Closed
jneilliii opened this issue May 22, 2020 · 9 comments
Closed

Multiple instances don't show thumbnail #40

jneilliii opened this issue May 22, 2020 · 9 comments
Labels
bug Something isn't working solved workaround documented or fix applied

Comments

@jneilliii
Copy link
Owner

Im having the same issue. After updating to 0.1.1 - newly sliced gcodes dont show a thumbnail.
The gcode file still contains "; thumbnail begin 16x16 832".

Now to the strange part:
Im running multiple instances of OP on one Pi. On the first printer (Prusa) it doesnt show the thumbnail, but on the second printer (Anycubic) it does. I sliced them with different printer profiles (both have thumbs enabled).

If i upload the "Anycubic gcode" to the Prusa - the thumb is showing.
Maybe this helps finding the issue.

gcode.zip

Originally posted by @Lanovar in #34 (comment)

@jneilliii
Copy link
Owner Author

@Lanovar, I've split this away as it's a separate issue. Do you share the same base folder on your multi instance setup?

@Lanovar
Copy link

Lanovar commented May 22, 2020

@jneilliii Sorry to ask, but where can i check this? Im not very good at this linuxstuff and followed a tutorial.

@jneilliii
Copy link
Owner Author

The easiest way to know is if you upload a gcode file to one instance, does the file also show up in the other?

@Lanovar
Copy link

Lanovar commented May 22, 2020

Ah ok, makes sense. No it doesnt. But plugins are shared. If i install it on one instance, the other one has it too.

@jneilliii
Copy link
Owner Author

Now I'm confused. Can you share the link to the video you followed for setting this up so I can test locally?

@Lanovar
Copy link

Lanovar commented May 22, 2020

Sure, here you go: https://www.youtube.com/watch?v=7Saa1HpLRoM

@jneilliii
Copy link
Owner Author

This is weird. For some reason your prusa file is not able to be processed. It's giving the following error for me in octoprint.log. Check in the logging section of OctoPrint's settings and see if you see the same thing.

2020-05-22 21:53:43,660 - octoprint.plugin - ERROR - Error while calling plugin prusaslicerthumbnails
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/plugin/__init__.py", line 224, in call_plugin
    result = getattr(plugin, method)(*args, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_prusaslicerthumbnails/__init__.py", line 92, in on_event
    self._extract_thumbnail(gcode_filename, thumbnail_filename)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_prusaslicerthumbnails/__init__.py", line 67, in _extract_thumbnail
    if line.startswith(";") or line.startswith("\n"):
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 36: ordinal not in range(128)

@jneilliii
Copy link
Owner Author

Try this version @Lanovar, just install using the browse button in Plugin Manager and then after restarting octoprint and reloading the page go into the plugin's settings and run the file scan.

OctoPrint-PrusaSlicerThumbnails.zip

@jneilliii jneilliii added bug Something isn't working solved workaround documented or fix applied labels May 22, 2020
@Lanovar
Copy link

Lanovar commented May 23, 2020

@jneilliii I sliced some stl's and it seems like its working again. Thx :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working solved workaround documented or fix applied
Projects
None yet
Development

No branches or pull requests

2 participants