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

[laserMapping-2] process has died #143

Open
Cureser opened this issue Nov 5, 2024 · 9 comments
Open

[laserMapping-2] process has died #143

Cureser opened this issue Nov 5, 2024 · 9 comments

Comments

@Cureser
Copy link

Cureser commented Nov 5, 2024

Linux version:Ubuntu20.04
Opencv4.10.0

commond:roslaunch fast_livo mapping_avia_old.launch

download

I don't want to install opencv3, how can i fix this problem?

@Cureser
Copy link
Author

Cureser commented Nov 5, 2024

download (1)
Here are my gdb information

@xuankuzcr
Copy link
Member

The error you encountered looks quite strange, as the function cv::initUndistortRectifyMap is not actually used in the code, and OpenCV 3 is not required; OpenCV 4 can be used instead. With the limited information available, I can't determine the exact issue.

@Cureser
Copy link
Author

Cureser commented Nov 6, 2024

cgi-bin_mmwebwx-bin_webwxgetmsgimg_ MsgID=6542660401183095065 skey=@crypt_dd39521_99e976b00fd1423926f3437b9d3e425f mmweb_appid=wx_webfilehelper

This funcion appears when constructing the PinholeCamera object.

It seem that it can be found on line 1196 in the file laserMapping.cpp

@xuankuzcr
Copy link
Member

You can directly comment out this part.

@Cureser
Copy link
Author

Cureser commented Nov 6, 2024

Thanks!

image

I've commented out that part, but another process died come up.

@xuankuzcr
Copy link
Member

Could you pull the latest code? If it's already up-to-date, could you provide some GDB information?

@Cureser
Copy link
Author

Cureser commented Nov 7, 2024

image
I‘ve commented out this part.
image
Here are the gdb information.
It seems that the process died during initialization.

@Cureser
Copy link
Author

Cureser commented Nov 7, 2024

fast-livo

Thanks, I successfully ran the test program by linking opencv4.2.0, but the first problem still exists, I only commented out the cv::initUndistortRectifyMap function so that the program would not crash.

@haoming-Yu
Copy link

haoming-Yu commented Nov 21, 2024

Yes, I've encountered the same problem several times. Strange as it is, using opencv >= 4.0 would probably trigger this problem. I think it might have something to do with rpg_vikit's compilation and problematic dependency. Just comment out the line and then catkin_make the project again will make the program runnable and git rid of this error.
If you would like to debug this problem, just add launch-prefix="xterm -e gdb -ex run --args" to launch file's node definition, and you can find the problem of initUndistortRectifyMap function. Anyway, thanks for author's contribution and the solution for this problem. It really saved me a lot of time! :)

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

3 participants