Code Monkey home page Code Monkey logo

Comments (6)

jsaul avatar jsaul commented on August 29, 2024

Hi Luca,
good catch! 200k * 3600 * 3 is very close to 2**31 so you are probably on the right track that some counter is the culprit.

find ~/seiscomp/include/seiscomp -name "*.h"|xargs grep sampleCount

Take your pick. :) Maybe

https://github.com/SeisComP/common/blob/master/libs/seiscomp/math/filter/stalta.cpp#L90
https://github.com/SeisComP/common/blob/master/libs/seiscomp/math/filter/stalta.cpp#L97

as a start... The developer on duty certainly did not have such large _sampleCount on his radar, let alone the possibility that it may become negative... I am pretty sure that changing the type of _sampleCount to int64_t will already fix the issue. Would you mind trying that out?

Thanks for the hint!
Joachim

from main.

gempa-jabe avatar gempa-jabe commented on August 29, 2024

I would just skip increasing the samplecount once it is not needed anymore, after it is >= numLta. If a lta time window for 1Mhz data of 30 minutes should be supported then we can use int64 anyway. Changing the count possibly breaks binary compatibility.

from main.

luca-s avatar luca-s commented on August 29, 2024

Thank you, I had the feeling that you knew something already :) I will test it and report back.

from main.

luca-s avatar luca-s commented on August 29, 2024

I confirm that is the bug

from main.

gempa-jabe avatar gempa-jabe commented on August 29, 2024

I have fixed it hopefully, please give it another try. The fix is in common repo.

from main.

luca-s avatar luca-s commented on August 29, 2024

Thank you!

from main.

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.