-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error - illegal memory access - ComputeVectorNorm in PBA #7
Comments
Probably during refinement that list become empty (points removed as bad), but if it is even uninitialized than is worse story. Also colmap should be more careful to not throw such bad points/pairs into the PBA, on other hand PBA have it's limits. |
thanks @cbalint13
I didn't manage to reproduce it there but now I'm getting an error in another function: (
So I've add these lines both in
But I'm not getting the assert before the crash and the crash continues to happen. |
I would expect to print
|
I've added this and I got:
|
I've restarted the machine and now I mostly get:
|
I think I solved it by removing the Line 2110 in 610a945
But I think now it's slower, any idea how to solve it in a different way? |
I could handle this if could help me:
|
A more easy poking around would be just to print: If not a full dump as described in earlier comment (one of two) would help to look at the problem. |
@cbalint13 Thank you very much for your help, very appreciated!
But still getting the crash.
But it cause the program to run very slowly and I didn't manage to reproduce the crash with these prints Tried also to add "1>output.txt" but the error didn't reproduce.
Update: Managed to reproduce it with: This is the output file (1000 lines before the crash): I don't see any odd values. Hi @cbalint13 |
|
@cbalint13 Thanks fro trying to help! I'm running it using GCP with two Tesla T4 GPUs |
Describe the bug
Crash due to: ComputeVectorNorm: an illegal memory access was encountered(700)
stack trace:
*** SIGABRT (@0x7d000004de5) received by PID 19941 (TID 0x7f13bf56a700) from PID 19941; stack trace: ***
@ 0x7f13ca8a3980 (unknown)
@ 0x7f13c7afcfb7 gsignal
@ 0x7f13c7afe921 abort
@ 0x7f13c84f1957 (unknown)
@ 0x7f13c84f7ae6 (unknown)
@ 0x7f13c84f7b21 std::terminate()
@ 0x7f13c84f7d54 __cxa_throw
@ 0x55fe5cea7bd1 pba::ProgramCU::CheckErrorCUDA()
@ 0x55fe5ceb2fc5 pba::ProgramCU::ComputeVectorNorm()
@ 0x55fe5cea28d0 pba::SparseBundleCU::SolveNormalEquationPCGB()
@ 0x55fe5cea6242 pba::SparseBundleCU::NonlinearOptimizeLM()
@ 0x55fe5cea6f3c pba::SparseBundleCU::BundleAdjustment()
@ 0x55fe5cea6fa6 pba::SparseBundleCU::RunBundleAdjustment()
@ 0x55fe5cb68256 colmap::ParallelBundleAdjuster::Solve()
@ 0x55fe5cbe8040 colmap::IncrementalMapper::AdjustParallelGlobalBundle()
@ 0x55fe5cac19cc colmap::(anonymous namespace)::AdjustGlobalBundle()
@ 0x55fe5cac1c1f colmap::(anonymous namespace)::IterativeGlobalRefinement()
@ 0x55fe5cac25d7 colmap::IncrementalMapperController::Reconstruct()
@ 0x55fe5cac47db colmap::IncrementalMapperController::Run()
@ 0x55fe5cc5dbbc colmap::Thread::RunFunc()
@ 0x7f13c85226df (unknown)
@ 0x7f13ca8986db start_thread
@ 0x7f13c7bdf71f clone
To Reproduce
Steps to reproduce the behavior:
Change kMaxNumResidualsFloat to 1000 * 1000 in bundle_adjustment.cc line 581 (increase runtime)
Run mapper using about 80 images.
The error will be reproduced in 1 of 5 executions.
Expected behavior
No crash
Desktop (please complete the following information):
OS: Linux
Version 3.6-dev.3
The text was updated successfully, but these errors were encountered: