paukstelis / Octoprint-Cancelobject

104 stars 11 forks source link

Objects are not canceled #72

Open Revilote opened 2 years ago

Revilote commented 2 years ago

Hello, When i click "cancel" the button disappears for a moment, then apperas below the objects name and then appears at the normal position again. The object is not deleted and will still be printed.. What do i do wrong?

I am using Prusaslicer with a clone MK3S. Rasperry Pi 3B with newest Octoprint.

The Picture is when the button is pushed. Button pushed

paukstelis commented 2 years ago

Do you get a confirmation window when you click cancel?

Revilote commented 2 years ago

No. Nothing happens except the short buttons position change.

paukstelis commented 2 years ago

Perhaps it is an incompatible plugin. What version of OctoPrint do you have installed and what plugins are you using?

Revilote commented 2 years ago

I'm using version 1.7.3. Plugins are those in the picture: plugins

paukstelis commented 2 years ago

Please post contents of plugin_cancelobject_cancelobject.log, octoprint.log (after you attempt to cancel), and any errors that appear in your web browser console after trying to cancel.

Revilote commented 2 years ago

Okay. I found it. Log Cancel objects

paukstelis commented 2 years ago

Just based on this, it looks like it is being caused by extra/unicode characters in object names.

Revilote commented 2 years ago

So what can i do to solve this problem? It´s not just this file, but all my files. The names are given by prusaslicer.

Aron3DP commented 2 years ago

I have the same issue. Tried to do it two different times and no confirmation ever pops up. The cancel button moves below the name of the object and then back to the side.

paukstelis commented 2 years ago

Provide your gcode file and a list of plugins you are using.

Aron3DP commented 2 years ago

Here is the gcode file and a screen of all the plugins used. electronics-set_0.2mm_240C_PETG_MINI_5h49m.zip

paukstelis commented 2 years ago

It works fine for me, even with all the plugins installed (with the exception of OctoLapse). Perhaps there is some incompatibility with the display properties in the browser.

When you click the cancel button, can you open up the development tools/inspectr in the browser (typically ctrl+shift+I) and see if there is anything that looks like this? Or if there are errors in the console? image

paukstelis commented 2 years ago

What theme are you using for UI customizer?

Aron3DP commented 2 years ago

I'll check the other when I am home later and can test. But Theme is the Prusa Tribute theme or what ever it's called.

paukstelis commented 2 years ago

That theme is the problem. As soon as I switched to that I see the same behavior.

Aron3DP commented 2 years ago

I would have never thought to check that. It did seem like a UI issue with how the cancel button would move under the object name and back.

paukstelis commented 2 years ago

The theme overwrites the CSS for the button padding, which moves the button. A work-around to still use the theme is to to click and hold, then move the cursor to the button position and release. I will see if there is anything that I can do on my side, but I think it might have to be adjusted in the theme.

Aron3DP commented 2 years ago

Alright thank you. I could use another theme as well in the mean time. What theme for sure works? I am not really tied to the theme.

paukstelis commented 2 years ago

That's the only one that I have seen that has a problem, though I did not go through and try them all. An additional alternative is that you can cancel objects in the gcode viewer as well. Just click refresh objects after each has done a bit of printing and you will see orange dots corresponding to each object.

Aron3DP commented 2 years ago

Ok, will do. Thanks for the fast replies.