GithubHelp home page GithubHelp logo

Comments (12)

pedrolamas avatar pedrolamas commented on June 22, 2024

Enter the folder %AppData%\Roaming\cura\5.2, there should be a cura.log there, please check it or upload it here so I can take a look.

from klipper-preprocessor.

BigWampa1989 avatar BigWampa1989 commented on June 22, 2024

cura.log

See attached log. Everything else I did right though? One thing I wasn't sure is if I needed to create the estimator file manually or if it would generate automatically the first time it runs.

from klipper-preprocessor.

pedrolamas avatar pedrolamas commented on June 22, 2024

Ok, so the issue is your "Path to config file", that is a local file path where to store the backup of the config, not a web path!

Try setting it to "C:\Users\Louis\AppData\Roaming\cura\5.2\Klipper_Estimator\klipper_estimator.json" and I believe it should work fine.

from klipper-preprocessor.

BigWampa1989 avatar BigWampa1989 commented on June 22, 2024

So that did fix it. Thank you. However, for some reason running the plugin causes massive delays, not when I slice the file, but when I go to save it to disk or upload it to moonraker. I tried disabling each portion one by one, but even when only Time-lapse is enabled it still causes the massive delay. This delay will eventually load a small model but anything is significance delays for what seems like indefinitely. Even with everything unchecked the delay still exists. Only when I remove it completely from post-processing or break it with the incorrect config path for the estimator does the delay disappear. I have attached the Cura log and a screen shot of what I was trying to upload. I let the fule in the screen shot rub and it took about 20 minutes to load the final upload confirmation. bit sure if this is just due to my laptops limitations or not.

cura.log
Capture

from klipper-preprocessor.

pedrolamas avatar pedrolamas commented on June 22, 2024

I let the fule in the screen shot rub and it took about 20 minutes to load the final upload confirmation. bit sure if this is just due to my laptops limitations or not.

What was the size of the gcode file? can you zip it and upload it here?

There's nothing on the log to indicate a single long operation, however klipper_estimator might take a bit of time... not much I can do about that, this is just a script that runs the app.

from klipper-preprocessor.

BigWampa1989 avatar BigWampa1989 commented on June 22, 2024

cura.log
CE3E3V2_screw_driver8.zip

here is a new log with the actual upload after 20 minutes or so and the gcode file itself

from klipper-preprocessor.

pedrolamas avatar pedrolamas commented on June 22, 2024

I've checked the logs and do see some weird long operations, however these are not related to this script as all it does is run a few apps.

I've just released a new version 1.2.2 of the script that will add more logging so it will enable you to more easily see if any of the external apps called by the script is causing this issue; if it is, I suggest you check with the respective app maintainer.

from klipper-preprocessor.

BigWampa1989 avatar BigWampa1989 commented on June 22, 2024

I downloaded the update and ran it again. The log is attached. I think I put to many of the files in the folder for the estimator and cancel object. My earlier post has a screen shot of what I put in the app folders. Maybe that's why it is slow? Which files are needed for the apps to run on Windows? Sorry for the newb question. Thanks again for your help.

cura.log

from klipper-preprocessor.

pedrolamas avatar pedrolamas commented on June 22, 2024

Can you confirm that you see "Klipper Preprocessor v1.2.2" on the "Post Processing Scripts" window?

The log you attached does not show the added logging I put on 1.2.2, so I believe you probably did some mistake with the update.

from klipper-preprocessor.

BigWampa1989 avatar BigWampa1989 commented on June 22, 2024

I forgot to restart Cura. It updated now. See correct log.

Should i delete any of the files in the App folders for cancel object and estimator?

cura.log

from klipper-preprocessor.

pedrolamas avatar pedrolamas commented on June 22, 2024

Well, I now know that this is not a problem with this script or any of the apps invoked by it!

Here's a partial of the new log entries:

2023-06-20 10:04:07,129 - DEBUG - [MainThread] CuraEngineBackend.CuraEngineBackend._onBackendQuit [969]: Backend finished slicing. Resetting process and socket.
2023-06-20 10:04:09,429 - DEBUG - [MainThread] PostProcessingPlugin.PostProcessingPlugin.KlipperPreprocessor.execute [115]: Initial run...
2023-06-20 10:04:09,640 - DEBUG - [MainThread] PostProcessingPlugin.PostProcessingPlugin.KlipperPreprocessor.execute_preprocess_cancellation [143]: Running preprocess_cancellation...
2023-06-20 10:04:11,637 - DEBUG - [MainThread] PostProcessingPlugin.PostProcessingPlugin.KlipperPreprocessor.execute_klipper_estimator [164]: Running klipper_estimator to get config from Moonraker...
2023-06-20 10:04:11,862 - DEBUG - [MainThread] PostProcessingPlugin.PostProcessingPlugin.KlipperPreprocessor.execute_klipper_estimator [184]: Running klipper_estimator...
2023-06-20 10:04:12,087 - DEBUG - [MainThread] PostProcessingPlugin.PostProcessingPlugin.KlipperPreprocessor.execute [136]: Return output...
2023-06-20 10:04:12,120 - DEBUG - [MainThread] PostProcessingPlugin.PostProcessingPlugin.CreateThumbnail._createSnapshot [15]: Creating thumbnail image...

I can see the plugin work started at 10:04:09 and finished by 10:04:12, so a total of 3 seconds!

So whatever you are experiencing, it has to be something else...

Unrelated to this script, but I did notice that "Encoding thumbnail image..." entries seem to take a long time (2 minutes and above) so that might be your best bet to find the problem!

from klipper-preprocessor.

BigWampa1989 avatar BigWampa1989 commented on June 22, 2024

So I figured it out. when the thumbnails are listed after the Klipper script it causes the delay but when the thumbnails are listed before the Klipper script no delay. I attached a log showing both scenarios with the last entry showing them listed first.

cura.log

from klipper-preprocessor.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.