research icon indicating copy to clipboard operation
research copied to clipboard

segmentation fault

Open tsangsea opened this issue 9 years ago • 4 comments

when type ./view_generative_model.py ./outputs/steering_model/steering_angle.json or (tensorflow) root@dl126:/data/zeng/research-master# ./train_generative_model.py Using TensorFlow backend. I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcublas.so locally I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcudnn.so locally I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcufft.so locally I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcuda.so locally I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcurand.so locally Segmentation fault (core dumped)


i get this: Segmentation fault (core dumped)

can anyone explain how to run the code? thx

tsangsea avatar Sep 01 '16 00:09 tsangsea

this is a TF problem, what is your GPU memory?

EderSantana avatar Sep 13 '16 00:09 EderSantana

I also have the same problem while trying to run selfsteering.md. Here is my error log.

`Using TensorFlow backend. 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 Fatal Python error: (pygame parachute) Segmentation Fault

Current thread 0x00007fc273c5b700 (most recent call first): File "", line 321 in _call_with_frames_removed File "", line 1715 in load_module File "", line 539 in _check_name_wrapper File "", line 1161 in _load_backward_compatible File "", line 1191 in _load_unlocked File "", line 2226 in _find_and_load_unlocked File "", line 2237 in _find_and_load File "", line 321 in _call_with_frames_removed File "", line 2284 in _handle_fromlist File "/home/raja/anaconda3/envs/python3.4_sdc/lib/python3.4/site-packages/scipy/special/basic.py", line 18 in File "", line 321 in _call_with_frames_removed File "", line 1471 in exec_module File "", line 1129 in _exec File "", line 1200 in _load_unlocked File "", line 2226 in _find_and_load_unlocked File "", line 2237 in _find_and_load File "/home/raja/anaconda3/envs/python3.4_sdc/lib/python3.4/site-packages/scipy/special/init.py", line 638 in File "", line 321 in _call_with_frames_removed File "", line 1471 in exec_module File "", line 1129 in _exec File "", line 1200 in _load_unlocked File "", line 2226 in _find_and_load_unlocked File "", line 2237 in _find_and_load File "/home/raja/anaconda3/envs/python3.4_sdc/lib/python3.4/site-packages/scipy/misc/init.py", line 51 in File "", line 321 in _call_with_frames_removed File "", line 1471 in exec_module File "", line 1129 in _exec File "", line 1200 in _load_unlocked File "", line 2226 in _find_and_load_unlocked File "", line 2237 in _find_and_load File "/home/raja/anaconda3/envs/python3.4_sdc/lib/python3.4/site-packages/scipy/ndimage/filters.py", line 37 in File "", line 321 in _call_with_frames_removed File "", line 1471 in exec_module File "", line 1129 in _exec File "", line 1200 in _load_unlocked File "", line 2226 in _find_and_load_unlocked File "", line 2237 in _find_and_load File "/home/raja/anaconda3/envs/python3.4_sdc/lib/python3.4/site-packages/scipy/ndimage/init.py", line 161 in File "", line 321 in _call_with_frames_removed File "", line 1471 in exec_module File "", line 1129 in _exec File "", line 1200 in _load_unlocked File "", line 2226 in _find_and_load_unlocked File "", line 2237 in _find_and_load File "", line 321 in _call_with_frames_removed File "", line 2284 in _handle_fromlist File "/home/raja/anaconda3/envs/python3.4_sdc/lib/python3.4/site-packages/skimage/transform/hough_transform.py", line 2 in File "", line 321 in _call_with_frames_removed File "", line 1471 in exec_module File "", line 1129 in _exec File "", line 1200 in _load_unlocked File "", line 2226 in _find_and_load_unlocked File "", line 2237 in _find_and_load File "/home/raja/anaconda3/envs/python3.4_sdc/lib/python3.4/site-packages/skimage/transform/init.py", line 1 in File "", line 321 in _call_with_frames_removed File "", line 1471 in exec_module File "", line 1129 in _exec File "", line 1200 in _load_unlocked File "", line 2226 in _find_and_load_unlocked File "", line 2237 in _find_and_load File "", line 321 in _call_with_frames_removed File "", line 2284 in _handle_fromlist File "./view_steering_model.py", line 18 in Aborted (core dumped) ` I have a 4 nvidea GeForce GTX 690 cards each with 2 GB memory. So a total of 8GB.

mechanic3122 avatar Nov 15 '16 09:11 mechanic3122

not sure if that will be enough… maybe a single model needs to fit entirely in a GPU. I only tested this with TitanX and 1080

EderSantana avatar Nov 15 '16 18:11 EderSantana

in the view steering model.py file I found his error (ValueError: bad marshal data (unknown type code)) result when trying to execute the view steering model.py here is the result from the cmd prompt

Traceback (most recent call last): File "C:\Users\lenovo\Anaconda3\lib\site-packages\keras\utils\generic_utils.py ", line 229, in func_load raw_code = codecs.decode(code.encode('ascii'), 'base64') UnicodeEncodeError: 'ascii' codec can't encode character '\xe0' in position 46: ordinal not in range(128)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "view_steering_model.py", line 94, in model = model_from_json(json.load(jfile)) File "C:\Users\lenovo\Anaconda3\lib\site-packages\keras\models.py", line 349, in model_from_json return layer_module.deserialize(config, custom_objects=custom_objects) File "C:\Users\lenovo\Anaconda3\lib\site-packages\keras\layers_init_.py", l ine 55, in deserialize printable_module_name='layer') File "C:\Users\lenovo\Anaconda3\lib\site-packages\keras\utils\generic_utils.py ", line 144, in deserialize_keras_object list(custom_objects.items()))) File "C:\Users\lenovo\Anaconda3\lib\site-packages\keras\models.py", line 1349, in from_config layer = layer_module.deserialize(conf, custom_objects=custom_objects) File "C:\Users\lenovo\Anaconda3\lib\site-packages\keras\layers_init_.py", l ine 55, in deserialize printable_module_name='layer') File "C:\Users\lenovo\Anaconda3\lib\site-packages\keras\utils\generic_utils.py ", line 144, in deserialize_keras_object list(custom_objects.items()))) File "C:\Users\lenovo\Anaconda3\lib\site-packages\keras\layers\core.py", line 711, in from_config function = func_load(config['function'], globs=globs) File "C:\Users\lenovo\Anaconda3\lib\site-packages\keras\utils\generic_utils.py ", line 234, in func_load code = marshal.loads(raw_code) ValueError: bad marshal data (unknown type code)

ahmedyahia3393 avatar Apr 19 '18 22:04 ahmedyahia3393