Giter Site home page Giter Site logo

Comments (14)

 avatar commented on May 29, 2024 1

@GuillaumeGomez Did you solve this issue? I have the same problem with the example as well. And the optimization seems weird as well. It only run one iteration and then exit.

from rust-gsl.

hombit avatar hombit commented on May 29, 2024 1

@SebastianSchafer see #82, we have UB here because of inconsistent binding with GSL 2.x

from rust-gsl.

SuperFluffy avatar SuperFluffy commented on May 29, 2024

This is what happens when printing covar and s.J() right before the call to rgsl::multifit::covar(&s.J(), 0f64, &mut covar):

covar: [0, 0, 0]
[0, 0, 0]
[0, 0, 0]
s.J(): [0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000015]
zsh: segmentation fault (core dumped)  cargo run --example multifit_solver

Segfault on J.

from rust-gsl.

GuillaumeGomez avatar GuillaumeGomez commented on May 29, 2024

That's surprising... I'll have to take a look and see what's failing.

from rust-gsl.

SuperFluffy avatar SuperFluffy commented on May 29, 2024

In case it's relevant, I am on Arch Linux using gsl 2.5.

I also encountered an error with integration:

./integration
=== integration::qng ===
Result 1.8390715290764525 +/- 0.000000000009921183292055902 from 21 evaluations

=== IntegrationWorkspace.qag ===
gsl: src/types/integration.rs:3430: ERROR: a maximum of one iteration was insufficient
Default GSL error handler invoked.
zsh: abort (core dumped)  ./integration

from rust-gsl.

GuillaumeGomez avatar GuillaumeGomez commented on May 29, 2024

That's getting weirder and weirder...

from rust-gsl.

GuillaumeGomez avatar GuillaumeGomez commented on May 29, 2024

I can't reproduce the error so I can't solve it... :-/

from rust-gsl.

 avatar commented on May 29, 2024

@GuillaumeGomez What is the version of gsl are you using? I am using gsl 2.4. Is that old? I saw the newest version is 2.6.

from rust-gsl.

GuillaumeGomez avatar GuillaumeGomez commented on May 29, 2024

I removed GSL libs last time so I can't tell. Maybe it changed in the meantime in the repositories... If I have time and motivation, I'll try to take a look.

from rust-gsl.

 avatar commented on May 29, 2024

cool, thank you for your response

from rust-gsl.

GuillaumeGomez avatar GuillaumeGomez commented on May 29, 2024

Don't hesitate to ping me in a month or so if you see no changes here. :)

from rust-gsl.

hombit avatar hombit commented on May 29, 2024

Same problem here. The first, it makes only one iteration, because s.dx() is all zeros (but s.x() changes during the only iteration). The second, I see the same error about covariant matrix.

I use macOS and GSL 2.6.

from rust-gsl.

hombit avatar hombit commented on May 29, 2024

Also I can reproduce it in rust Docker container (GSL 2.5) both on AMD64 and ARM64:

docker run --rm -ti rust:buster
apt update && apt install -y libgsl-dev
git clone https://github.com/GuillaumeGomez/rust-GSL && cd rust-GSL
cargo run --example multifit_solver

from rust-gsl.

SebastianSchafer avatar SebastianSchafer commented on May 29, 2024

Can reproduce this also on Ubuntu 20.04 & GSL 2.5. That is, the s.iterate() loop stops after first iteration and dimensitons mismatch. I don't see any segfault error as described by SuperFluffy. For this example, J turns out to be 3x1 but GSL expects 1x3 I guess. While finishing during the first iteration as others described seems suspect, that shouldn't affect the shape of J, so we might be looking at more than one issue?

from rust-gsl.

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.