ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Segmentation Fault (“Core dumped”) stopped my python script

asked 2021-01-08 14:52:19 -0600

Qilos gravatar image

Hello,

im currently trying to train a robot to navigate with deep reinforcement learning and wrote a python script that implements this. Today i started training and after about 250 episodes the script suddenly stopped and there was just this error message:

Segmentation Fault (“Core dumped”)

How does this error occur and how can i fix it and stop it from happening?

edit retag flag offensive close merge delete

Comments

Can you please update your question with a copy and paste of your code? It's difficult to help without it

jayess gravatar image jayess  ( 2021-01-08 19:30:17 -0600 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2021-01-08 15:40:26 -0600

The first thing you are going to need to do is to figure out how to reproduce this behavior in a much simpler environment. Then once you do that you'll need to run using some sort of debugger. Did your logs save what binary had this issue?

Here is the Wikipedia on what that error means: https://en.wikipedia.org/wiki/Segment...

Is there a chance you had core files turned on and now have a core file? If so you could start debugging with that. You can start gdb with a core file.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2021-01-08 14:52:19 -0600

Seen: 794 times

Last updated: Jan 08 '21