jackyspeed / libmv

Automatically exported from code.google.com/p/libmv
MIT License
0 stars 0 forks source link

tvr 3d view assertion failure #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use images from issue #1
2. Do all matching and calibration steps in order
3. try to switch to 3d view

What is the expected output? What do you see instead?

Almost always I get following assertion failure, a couple of times the 3d
view has actually worked using these exact same steps.

tvr:
/.../libmv/libmv-read-only/src/third_party/eigen/Eigen/src/Core/MatrixStorage.h:
44:
Eigen::ei_matrix_array<T, Size, MatrixOptions, Align>::ei_matrix_array()
[with T = double, int Size = 16, int MatrixOptions = 2, bool Align = true]:
Assert-makro "(reinterpret_cast<size_t>(array) & 0xf) == 0 && "this
assertion is explained here:
http://eigen.tuxfamily.org/dox/UnalignedArrayAssert.html  **** READ THIS
WEB PAGE !!! ****"" ei pidä paikkaansa. (==assertion failed)

What version of the product are you using? On what operating system?
svn rev577, compiled using gcc version 4.3.3 (Debian 4.3.3-13), debian sid

Original issue reported on code.google.com by cg%jakor...@gtempaccount.com on 3 Jul 2009 at 8:13

GoogleCodeExporter commented 9 years ago
We need an Eigen guru for this one.  After reading the web page I still don't 
know
what's happening.

The problem disappears in release mode.

Original comment by pau.garg...@gmail.com on 3 Jul 2009 at 10:10

GoogleCodeExporter commented 9 years ago
Try to get a good backtrace first, to see where in your code it's falling. Do:

gdb ./your_app

> run

... (now reproduce the crash)...

> bt

After that, together with the web page, you should be able to understand and 
fix it ;)

Original comment by jacob.be...@gmail.com on 4 Jul 2009 at 1:45

GoogleCodeExporter commented 9 years ago
This patch seems to solve the issues.

Original comment by cg%jakor...@gtempaccount.com on 4 Jul 2009 at 5:53

Attachments:

GoogleCodeExporter commented 9 years ago
I applied the patch.  Many thanks cgv9999.

The web page was actually very clear.  I just failed to find the objects 
containing
Eigen fixed size members.  Merci Benoit.

Original comment by pau.garg...@gmail.com on 4 Jul 2009 at 10:25

GoogleCodeExporter commented 9 years ago
:)

I should update this page to tell people that they want to get a good backtrace 
first.

Next time you have trouble, don't hesitate to contact us using e.g. the eigen 
forum,
as I may not keep reading the libmv issues.

Original comment by jacob.be...@gmail.com on 4 Jul 2009 at 10:57