Giter Site home page Giter Site logo

Comments (4)

jimklimov avatar jimklimov commented on May 27, 2024

That rings a bell a bit, at least the driver was recently discussed. Not on PC now - can you please search issues for apcsmart?

Not sure if this driver was addressed by code changes after 2.8.0 release, but it's always worth trying a custom build of current NUT to know if the issue still needs solving :} Wiki has an article on "in-place" build configs to have a custom build configured similarly to your packaged one; a driver test run can be done from a build workspace without impacting the OS.

Also, can you try starting the driver binary with debug options (wiki suggests some ways) to help pinpoint where/why it gets that "bad" data.

from nut.

jimklimov avatar jimklimov commented on May 27, 2024

So, dug a bit into code history - the message originates from beb4b54

So before this fix, the code went:
https://github.com/networkupstools/nut/blame/cbfe9ab178183a85a216fd8f789895d786d3055c/drivers/apcsmart.c#L1019-L1023

...and might end up with negative nument and/or entlen. Which, looking a bit more at the rest of code, would make the rest of the cycle no-op. Probably bailing out was too harsh here, reporting and ignoring (going to next loop) may be the proper approach after all.

from nut.

jimklimov avatar jimklimov commented on May 27, 2024

CC @aquette as the initial committer (though I guess it is further shrouded in SVN history), and @msoltyspl.

from nut.

jimklimov avatar jimklimov commented on May 27, 2024

Posted a PR - if you have a chance to build and test that branch, would be great!

from nut.

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.