Git Product home page Git Product logo

Comments (5)

sandwichmaker avatar sandwichmaker commented on May 24, 2024

Comment #1 originally posted by sandwichmaker on 2012-05-14T20:02:48.000Z:

Thanks for the bug report. This does look like a problem. Keir and I are looking into this.

from ceres-solver.

sandwichmaker avatar sandwichmaker commented on May 24, 2024

Comment #2 originally posted by sandwichmaker on 2012-05-14T20:04:54.000Z:

Here is the crash report for reproduction.

diff --git a/examples/simple_bundle_adjuster.cc b/examples/simple_bundle_adjuster.cc
index 16c2dde..de675cd 100644
--- a/examples/simple_bundle_adjuster.cc
+++ b/examples/simple_bundle_adjuster.cc
@@ -196,6 +196,8 @@ int main(int argc, char** argv) {
bal_problem.mutable_point_for_observation(i));
}

  • problem.SetParameterBlockConstant(bal_problem.mutable_camera_for_observation(2));

// Make Ceres automatically detect the bundle structure. Note that the
// standard solver, SPARSE_NORMAL_CHOLESKY, also works fine but it is slower
// for standard bundle adjustment problems.
build: ./examples/simple_bundle_adjuster ../data/problem-16-22106-pre.txt
F0514 13:04:12.085523 1893997760 solver_impl.cc:629] Check failed: offsets.back() == residual_blocks->size() (76733 vs. 83718) Congratulations, you found a Ceres bug! Please report this error to the developers.
*** Check failure stack trace: ***
@ 0x10018abf4 google::LogMessage::SendToLog()
@ 0x100188014 google::LogMessage::Flush()
@ 0x10018812e google::LogMessageFatal::~LogMessageFatal()
@ 0x100188151 google::LogMessageFatal::~LogMessageFatal()
@ 0x1000586ba ceres::internal::SolverImpl::MaybeReorderResidualBlocks()
@ 0x10005924e ceres::internal::SolverImpl::Solve()
@ 0x100056039 ceres::Solve()
@ 0x100005b53 main
@ 0x1000031a8 start
@ 0x2 (unknown)
Abort trap

I think the reordering code is not accounting for constant parameter blocks correctly.

from ceres-solver.

sandwichmaker avatar sandwichmaker commented on May 24, 2024

Comment #3 originally posted by sandwichmaker on 2012-05-14T20:06:17.000Z:

Yes, this is definitely our bug.

from ceres-solver.

sandwichmaker avatar sandwichmaker commented on May 24, 2024

Comment #4 originally posted by sandwichmaker on 2012-05-14T20:47:49.000Z:

I have a fix; will have the fix and a test in a few minutes.

from ceres-solver.

sandwichmaker avatar sandwichmaker commented on May 24, 2024

Comment #5 originally posted by sandwichmaker on 2012-05-14T21:45:51.000Z:

Fixed in 32de18d.

from ceres-solver.

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.