Giter VIP home page Giter VIP logo

Comments (16)

KevinOConnor avatar KevinOConnor commented on May 10, 2024

Please attach the full /tmp/klippy.log file containing the event and I'll take a look.

from klipper.

 avatar commented on May 10, 2024

Alright!, I'll dry run the same 2 hour print, hopefully it is not random.

from klipper.

KevinOConnor avatar KevinOConnor commented on May 10, 2024

from klipper.

 avatar commented on May 10, 2024

Wish I didn't reboot! That cleared the /tmp directory.
Anyways I just noticed that my ttl voltage converter (serial) is not working properly. Instead of disclosing this issue as user error only, hopefully the error code might be a hint for others for communication failure perhaps? Would be good to know.
Thanks.
Edit: sorry for my stupidity, closing until it happens with direct USB connection aswell. Thanks

from klipper.

 avatar commented on May 10, 2024

Hello,
After trying with USB, direct connection to my PC, printer shutdown after 5 hours print 😭 . (Move out of queue)
Here is my klippy log:
klippy.txt
(note: you might find in the log that the printer did shutdown before due to sensor error adc, diy heatbed here, tho firmware/soft restarted and no issues since then. Guess this is completely unrelated)
I hope its something like bad usb cable/software (no dmesg errors for usb), else reliability might be an issue for me.
Thanks.

from klipper.

KevinOConnor avatar KevinOConnor commented on May 10, 2024

from klipper.

 avatar commented on May 10, 2024

I simply downloaded the latest master commit as zip 2 days ago on a separate PC, and thus no git.
Here is the gcode:
mod.txt
Edit2: Firmware flashed from the same commit.

from klipper.

KevinOConnor avatar KevinOConnor commented on May 10, 2024

Upon further inspection of the log, the drift between the host and mcu clocks sometimes changes rapidly. I suspect this is what led to the above error. I need to further investigate to determine if this is due to some attribute of the AT90USB chip, a code error, or something else.

from klipper.

 avatar commented on May 10, 2024

I'll try replicating the issue on other computer dry run. Could it be host side stuttering due to kernel/hardware issue?

from klipper.

KevinOConnor avatar KevinOConnor commented on May 10, 2024

I'll try replicating the issue on other computer dry run. Could it be host side stuttering due to kernel/hardware issue?

Yes, that's certainly possible. If you have an RPi2 or RPi3 that would make an excellent test.

FYI, I've run some tests on my AT90USB1286 chip and I can confirm that the odd timing behavior is not inherent to that micro-controller. I've also identified a few areas in the Klipper clock synchronization code that could be improved. It will likely be sometime next week before that's ready for testing though.

from klipper.

KevinOConnor avatar KevinOConnor commented on May 10, 2024

Please try the testing branch work-clocksync-20170627 (git fetch ; git checkout work-clocksync-20170627). I've reworked the clock synchronization code - I think it should be more stable now. It would be great if you could run some prints with the new code and post the klippy.log file (I'd like to see the log even if there is no failures).

Thanks,
-Kevin

from klipper.

 avatar commented on May 10, 2024

Will do with the same setup and gcode uploaded above.
Edit: I have made a 3d printed delta kossel that I will use as main 3d printer with marlin temporarily (will switch to klipper later aswell). Ill keep this printrbot jr for dry run from now on (y axis is broken, sagging due to moisture (wood)), as a testing device for klipper., which is useful for testing stability of future commits/changes) If the following gcode passes, Ill print a 40+ hour job. (with logs and everything, ill also test high print speeds on long prints to see if its host resource issue with very complex prints)

from klipper.

 avatar commented on May 10, 2024

Hello,
I accidentally ran the same klippy branch (didnt remove /etc/default/klippy), same gcode as above, here is the log:
klippy.txt
Printer did not crash. Ill try the same with the latest commit and post the log.

from klipper.

 avatar commented on May 10, 2024

work-clocksync-20170627 branch:
klippy2.txt
No crash aswell. I'll stay on this branch as primary firmware.

from klipper.

KevinOConnor avatar KevinOConnor commented on May 10, 2024

Thanks. The log indicates the new code has detected the clock drift. The results should be more stable now. I've committed the changes on the test branch to the master branch.

from klipper.

 avatar commented on May 10, 2024

Thanks, I noticed that its quite repetitive, donno if this has to do with system latency, clock source set to TSC, I hear that its affected with cpu scaling, Ill try switching to HPET, anyways this is host specific now, closing.
Issue resolved.

from klipper.

Related Issues (20)

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.