Skip to content
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

Got Segmentation Fault #11

Open
xieKKKi opened this issue Sep 10, 2024 · 2 comments
Open

Got Segmentation Fault #11

xieKKKi opened this issue Sep 10, 2024 · 2 comments

Comments

@xieKKKi
Copy link

xieKKKi commented Sep 10, 2024

Hi, when I run

./bin/demo_reg configs/hit_ms/gem_pagor.yaml examples/data/livox/source.pcd examples/data/livox/target.pcd

I get the following error:

Stack trace (most recent call last): 
#11   Object "[0xffffffffffffffff]", at 0xffffffffffffffff, in 
#10   Object "/home/xjp/G3Reg/bin/demo_reg", at 0x563100343e2d, in 
#9    Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7fa2c0726082, in __libc_start_main
#8    Object "/home/xjp/G3Reg/bin/demo_reg", at 0x5631003425f4, in 
#7    Object "/home/xjp/G3Reg/bin/demo_reg", at 0x5631003568a2, in 
#6    Object "/home/xjp/G3Reg/bin/demo_reg", at 0x56310043d695, in 
#5    Object "/home/xjp/G3Reg/bin/demo_reg", at 0x563100447d88, in 
#4    Object "/home/xjp/G3Reg/bin/demo_reg", at 0x563100441ebc, in 
#3    Object "/home/xjp/G3Reg/bin/demo_reg", at 0x5631004632ca, in 
#2    Object "/home/xjp/G3Reg/bin/demo_reg", at 0x563100475de9, in 
#1    Object "/home/xjp/G3Reg/bin/demo_reg", at 0x56310047409a, in 
#0    Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7fa2c079c6f0, in cfree
Segmentation fault (Address not mapped to object [0x49])

But running this command works fine:

./bin/demo_reg configs/hit_ms/gem_3dmac.yaml examples/data/livox/source.pcd examples/data/livox/target.pcd

It seems there is something wrong with pagor?

@xieKKKi
Copy link
Author

xieKKKi commented Sep 10, 2024

The program seems to go wrong here:

auto gnc = GncOptimizer<GncParams<LevenbergMarquardtParams>>(graph, initial, gncParams);

The GTSAM version I installed is the latest 4.2.

@qiaozhijian
Copy link
Member

Me too. Mine is 4.2a9.

The program seems to go wrong here:

auto gnc = GncOptimizer<GncParams<LevenbergMarquardtParams>>(graph, initial, gncParams);

The GTSAM version I installed is the latest 4.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants