Carla: Seg faults after python scripts

Created on 27 Jan 2020  路  8Comments  路  Source: carla-simulator/carla


I've recently begun having issues when running Python scripts with CARLA. I'll boot up CARLA (make launch-only), and then if I run one of the example scripts (tm_spawn_npc.py for example), it will run fine but once it finishes there is always an error. Sometimes its a simple Segmentation fault (core dumped) but sometimes it's

Fatal Python error: PyEval_SaveThread: NULL tstate

Aborted (core dumped)

This happens with any script I try. All of the Python scripts definitely finish before the error occurs. I am running Ubuntu 18.04 and Python 3.6.9. Before posting this issue I pulled from the CARLA repo and ran ./Update.sh, and then rebuilt. To be clear - this isn't really affecting anything while I use CARLA, but as a result CARLA often freaks out that actors are missing.

stale

Most helpful comment

Sorry for not updating but yes, it is already fixed in 0.9.9. This error was happening every time you had to shut down a python script involving Traffic Manager.

Not so sure what is happening in your script, maybe you could open a separate issue and give us more info!

All 8 comments

Hello!

We are aware of this problem, and are working towards fixing it. We know what is causing it, luckily as you said it doesn't affect the script's execution, but we are definitely going to patch this error!

Thank you! Good to know it's not just me.

Hi @jackbart94!
Is there any update to this issue? Could you give me a hint what to modify to solve the problem?

Hi @jackbart94!
I also want to know what could be the problem with this issue. My running server sometimes crashed when seg faults happened.

I'm also seeing the same issue, please help. Thanks!

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Curious if this has been fixed. Also getting a segmentation fault after running a python script on version 0.9.9.

Stack trace points to ThreadPool.h:
carla::ThreadPool::Run (this=) at ../../LibCarla/cmake/../source/carla/ThreadPool.h:63

Is this related?

Sorry for not updating but yes, it is already fixed in 0.9.9. This error was happening every time you had to shut down a python script involving Traffic Manager.

Not so sure what is happening in your script, maybe you could open a separate issue and give us more info!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

phzeller picture phzeller  路  3Comments

UndeadBlow picture UndeadBlow  路  4Comments

syinari0123 picture syinari0123  路  3Comments

chankim picture chankim  路  3Comments

AftermathK picture AftermathK  路  3Comments