当我在PyCharm
中运行脚本时,它会退出:
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcublas.so locally
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcudnn.so locally
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcufft.so locally
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcurand.so locally
DEBUG:tm._add: /joy, sensor_msgs/Joy, sub
Fatal Python error: (pygame parachute) Segmentation Fault
Process finished with exit code 134 (interrupted by signal 6: SIGABRT)
但是当我在PyCharm
中调试它时,程序运行没有任何问题。
另外,如果我在ubuntu终端中运行脚本,也不会出现问题。为什么会发生这种情况,或者我该如何调试此问题?
答案 0 :(得分:1)
我遇到了在pycharm上运行caffe的类似错误。我认为这是因为Python的版本。当我安装Python 2.7.13时,它工作正常!