Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

segmentation_fault while running test_tf_ops.py #79

Open
Roberto59f opened this issue May 23, 2022 · 0 comments
Open

segmentation_fault while running test_tf_ops.py #79

Roberto59f opened this issue May 23, 2022 · 0 comments

Comments

@Roberto59f
Copy link

I am trying to run the test file but i keep getting this error:

`Consolidate compiler generated dependencies of target tf_sampling
[ 40%] Built target tf_sampling
Consolidate compiler generated dependencies of target tf_interpolate
[ 60%] Built target tf_interpolate
Consolidate compiler generated dependencies of target tf_grouping
[100%] Built target tf_grouping
user@ubuntu:/Desktop/Open3D-PointNet2-Semantic3D/tf_ops/build$ cd ..
user@ubuntu:
/Desktop/Open3D-PointNet2-Semantic3D/tf_ops$ sudo python3.6 test_tf_ops.py
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:516: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:517: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:518: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:519: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:520: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:525: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
/usr/local/lib/python3.6/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py:541: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
/usr/local/lib/python3.6/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py:542: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/usr/local/lib/python3.6/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py:543: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
/usr/local/lib/python3.6/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py:544: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/usr/local/lib/python3.6/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py:545: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
/usr/local/lib/python3.6/dist-packages/tensorboard/compat/tensorflow_stub/dtypes.py:550: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
Running tests under Python 3.6.15: /usr/bin/python3.6
[ RUN ] TestGrouping.test
/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/tensor_util.py:538: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
tensor_proto.tensor_content = nparray.tostring()
32 512 3 128
Tensor("Const_1:0", shape=(32, 512, 3), dtype=float32, device=/device:GPU:0) (32, 1, 512, 3)
Tensor("Sum:0", shape=(32, 128, 512), dtype=float32, device=/device:GPU:0) 64
Fatal Python error: Segmentation fault

Current thread 0x00007f55b910c740 (most recent call first):
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/ops.py", line 1864 in _create_c_op
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/ops.py", line 2027 in init
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/ops.py", line 3616 in create_op
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/util/deprecation.py", line 507 in new_func
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/op_def_library.py", line 788 in _apply_op_helper
File "", line 183 in selection_sort
File "/home/user/Desktop/Open3D-PointNet2-Semantic3D/tf_ops/tf_grouping.py", line 40 in select_top_k
File "/home/user/Desktop/Open3D-PointNet2-Semantic3D/tf_ops/tf_grouping.py", line 84 in knn_point
File "test_tf_ops.py", line 23 in test
File "/usr/lib/python3.6/unittest/case.py", line 605 in run
File "/usr/lib/python3.6/unittest/case.py", line 653 in call
File "/usr/lib/python3.6/unittest/suite.py", line 122 in run
File "/usr/lib/python3.6/unittest/suite.py", line 84 in call
File "/usr/lib/python3.6/unittest/suite.py", line 122 in run
File "/usr/lib/python3.6/unittest/suite.py", line 84 in call
File "/usr/lib/python3.6/unittest/runner.py", line 176 in run
File "/usr/local/lib/python3.6/dist-packages/absl/testing/_pretty_print_reporter.py", line 86 in run
File "/usr/lib/python3.6/unittest/main.py", line 256 in runTests
File "/usr/lib/python3.6/unittest/main.py", line 95 in init
File "/usr/local/lib/python3.6/dist-packages/absl/testing/absltest.py", line 2537 in _run_and_get_tests_result
File "/usr/local/lib/python3.6/dist-packages/absl/testing/absltest.py", line 2569 in run_tests
File "/usr/local/lib/python3.6/dist-packages/absl/testing/absltest.py", line 2156 in _run_in_app
File "/usr/local/lib/python3.6/dist-packages/absl/testing/absltest.py", line 2049 in main
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/platform/googletest.py", line 55 in g_main
File "/usr/local/lib/python3.6/dist-packages/absl/app.py", line 258 in _run_main
File "/usr/local/lib/python3.6/dist-packages/absl/app.py", line 312 in run
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/platform/app.py", line 40 in run
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/platform/googletest.py", line 64 in main_wrapper
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/platform/benchmark.py", line 407 in benchmarks_main
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/platform/googletest.py", line 65 in main
File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/platform/test.py", line 64 in main
File "test_tf_ops.py", line 137 in
*** Received signal 11 ***
*** BEGIN MANGLED STACK TRACE ***
/usr/local/lib/python3.6/dist-packages/tensorflow/python/../libtensorflow_framework.so.1(+0xfd02db)[0x7f552825b2db]
/lib/x86_64-linux-gnu/libc.so.6(+0x43090)[0x7f55b931b090]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcb)[0x7f55b931b00b]
/lib/x86_64-linux-gnu/libc.so.6(+0x43090)[0x7f55b931b090]
/home/user/Desktop/Open3D-PointNet2-Semantic3D/tf_ops/build/libtf_grouping.so(+0x7c18)[0x7f5579227c18]
/home/user/Desktop/Open3D-PointNet2-Semantic3D/tf_ops/build/libtf_grouping.so(ZNSt17_Function_handlerIFN10tensorflow6StatusEPNS0_15shape_inference16InferenceContextEEPS5_E9_M_invokeERKSt9_Any_dataOS4+0x26)[0x7f5579228b56]
/usr/local/lib/python3.6/dist-packages/tensorflow/python/../libtensorflow_framework.so.1(_ZN10tensorflow15shape_inference16InferenceContext3RunERKSt8functionIFNS_6StatusEPS1_EE+0x4d)[0x7f5527f5ed1d]
/usr/local/lib/python3.6/dist-packages/tensorflow/python/_pywrap_tensorflow_internal.so(_ZN10tensorflow12ShapeRefiner10RunShapeFnEPKNS_4NodeEPKNS_18OpRegistrationDataEPNS_24ExtendedInferenceContextE+0x230)[0x7f552f62d720]
/usr/local/lib/python3.6/dist-packages/tensorflow/python/_pywrap_tensorflow_internal.so(_ZN10tensorflow12ShapeRefiner7AddNodeEPKNS_4NodeE+0xcb8)[0x7f552f62f248]
/usr/local/lib/python3.6/dist-packages/tensorflow/python/_pywrap_tensorflow_internal.so(TF_FinishOperation+0x44a)[0x7f552cfe7f1a]
/usr/local/lib/python3.6/dist-packages/tensorflow/python/_pywrap_tensorflow_internal.so(+0x241bdb6)[0x7f552b058db6]
python3.6[0x50e9f5]
python3.6(_PyEval_EvalFrameDefault+0x1bd)[0x5110dd]
python3.6[0x50df84]
python3.6[0x50ecb6]
python3.6(_PyEval_EvalFrameDefault+0x1bd)[0x5110dd]
python3.6[0x50fae2]
python3.6(_PyFunction_FastCallDict+0x780)[0x50d970]
python3.6[0x59f271]
python3.6[0x546424]
python3.6(_PyObject_FastCallKeywords+0x4ae)[0x5abf5e]
python3.6[0x50ede5]
python3.6(_PyEval_EvalFrameDefault+0x109c)[0x511fbc]
python3.6[0x593ee2]
python3.6(PyObject_Call+0x43)[0x5ad083]
python3.6(_PyEval_EvalFrameDefault+0x1fb8)[0x512ed8]
python3.6[0x50fae2]
python3.6[0x50e15d]
python3.6[0x50ecb6]
python3.6(_PyEval_EvalFrameDefault+0x109c)[0x511fbc]
python3.6[0x50fae2]
python3.6[0x50e15d]
python3.6[0x50ecb6]
python3.6(_PyEval_EvalFrameDefault+0x109c)[0x511fbc]
python3.6[0x50fae2]
python3.6[0x50e15d]
python3.6[0x50ecb6]
python3.6(_PyEval_EvalFrameDefault+0x1bd)[0x5110dd]
python3.6[0x50df84]
python3.6[0x50ecb6]
python3.6(_PyEval_EvalFrameDefault+0x1bd)[0x5110dd]
python3.6[0x50df84]
python3.6[0x50ecb6]
python3.6(_PyEval_EvalFrameDefault+0x1bd)[0x5110dd]
python3.6[0x50df84]
python3.6[0x50ecb6]
python3.6(_PyEval_EvalFrameDefault+0x1bd)[0x5110dd]
python3.6[0x50fae2]
python3.6(_PyFunction_FastCallDict+0x780)[0x50d970]
python3.6[0x59f271]
python3.6(PyObject_Call+0x43)[0x5ad083]
python3.6(_PyEval_EvalFrameDefault+0x1fb8)[0x512ed8]
python3.6[0x50fae2]
python3.6(_PyFunction_FastCallDict+0x3bd)[0x50d5ad]
python3.6[0x59f271]
python3.6(PyObject_Call+0x43)[0x5ad083]
python3.6[0x5444f3]
python3.6(_PyObject_FastCallKeywords+0x5bc)[0x5ac06c]
python3.6[0x50ede5]
python3.6(_PyEval_EvalFrameDefault+0x1bd)[0x5110dd]
python3.6[0x50fae2]
python3.6(_PyFunction_FastCallDict+0x780)[0x50d970]
python3.6[0x59f271]
python3.6(PyObject_Call+0x43)[0x5ad083]
python3.6(_PyEval_EvalFrameDefault+0x1fb8)[0x512ed8]
python3.6[0x50fae2]
python3.6(_PyFunction_FastCallDict+0x3bd)[0x50d5ad]
python3.6[0x59f271]
python3.6(PyObject_Call+0x43)[0x5ad083]
python3.6[0x5444f3]
python3.6(_PyObject_FastCallKeywords+0x5bc)[0x5ac06c]
python3.6[0x50ede5]
python3.6(_PyEval_EvalFrameDefault+0x1bd)[0x5110dd]
python3.6[0x50fae2]
python3.6(_PyFunction_FastCallDict+0x780)[0x50d970]
python3.6[0x59f271]
python3.6(PyObject_Call+0x43)[0x5ad083]
python3.6(_PyEval_EvalFrameDefault+0x1fb8)[0x512ed8]
python3.6[0x50fae2]
python3.6(_PyFunction_FastCallDict+0x3bd)[0x50d5ad]
python3.6[0x59f271]
python3.6(PyObject_Call+0x43)[0x5ad083]
python3.6[0x5444f3]
python3.6(_PyObject_FastCallKeywords+0x5bc)[0x5ac06c]
python3.6[0x50ede5]
python3.6(_PyEval_EvalFrameDefault+0x1bd)[0x5110dd]
python3.6[0x50df84]
python3.6[0x50ecb6]
python3.6(_PyEval_EvalFrameDefault+0x1bd)[0x5110dd]
python3.6[0x50fae2]
python3.6[0x50e15d]
python3.6[0x50ecb6]
python3.6(_PyEval_EvalFrameDefault+0x1bd)[0x5110dd]
python3.6[0x50df84]
python3.6[0x50ecb6]
python3.6(_PyEval_EvalFrameDefault+0x1bd)[0x5110dd]
python3.6[0x50fae2]
python3.6(_PyFunction_FastCallDict+0x780)[0x50d970]
python3.6[0x59f271]
python3.6[0x546424]
python3.6[0x554a17]
python3.6(PyObject_Call+0x43)[0x5ad083]
python3.6(_PyEval_EvalFrameDefault+0x1fb8)[0x512ed8]
python3.6[0x50df84]
python3.6[0x50ecb6]
python3.6(_PyEval_EvalFrameDefault+0x1bd)[0x5110dd]
python3.6[0x50df84]
python3.6[0x50ecb6]
python3.6(_PyEval_EvalFrameDefault+0x1bd)[0x5110dd]
python3.6[0x50fae2]
python3.6[0x50e15d]
python3.6[0x50ecb6]
python3.6(_PyEval_EvalFrameDefault+0x1bd)[0x5110dd]
python3.6[0x50fae2]
python3.6[0x50e15d]
python3.6[0x50ecb6]
python3.6(_PyEval_EvalFrameDefault+0x109c)[0x511fbc]
python3.6[0x50df84]
python3.6[0x50ecb6]
python3.6(_PyEval_EvalFrameDefault+0x1bd)[0x5110dd]
python3.6[0x50df84]
python3.6[0x50ecb6]
python3.6(_PyEval_EvalFrameDefault+0x1bd)[0x5110dd]
python3.6[0x50fae2]
python3.6[0x50e15d]
python3.6[0x50ecb6]
python3.6(_PyEval_EvalFrameDefault+0x109c)[0x511fbc]
python3.6[0x50fae2]
*** END MANGLED STACK TRACE ***

*** Begin stack trace ***
tensorflow::CurrentStackTrace()

gsignal


std::_Function_handler<tensorflow::Status (tensorflow::shape_inference::InferenceContext*), tensorflow::Status (*)(tensorflow::shape_inference::InferenceContext*)>::_M_invoke(std::_Any_data const&, tensorflow::shape_inference::InferenceContext*&&)
tensorflow::shape_inference::InferenceContext::Run(std::function<tensorflow::Status (tensorflow::shape_inference::InferenceContext*)> const&)
tensorflow::ShapeRefiner::RunShapeFn(tensorflow::Node const*, tensorflow::OpRegistrationData const*, tensorflow::ExtendedInferenceContext*)
tensorflow::ShapeRefiner::AddNode(tensorflow::Node const*)
TF_FinishOperation


_PyEval_EvalFrameDefault


_PyEval_EvalFrameDefault

_PyFunction_FastCallDict


_PyObject_FastCallKeywords

_PyEval_EvalFrameDefault

PyObject_Call
_PyEval_EvalFrameDefault



_PyEval_EvalFrameDefault



_PyEval_EvalFrameDefault



_PyEval_EvalFrameDefault


_PyEval_EvalFrameDefault


_PyEval_EvalFrameDefault


_PyEval_EvalFrameDefault

_PyFunction_FastCallDict

PyObject_Call
_PyEval_EvalFrameDefault

_PyFunction_FastCallDict

PyObject_Call

_PyObject_FastCallKeywords

_PyEval_EvalFrameDefault

_PyFunction_FastCallDict

PyObject_Call
_PyEval_EvalFrameDefault

_PyFunction_FastCallDict

PyObject_Call

_PyObject_FastCallKeywords

_PyEval_EvalFrameDefault

_PyFunction_FastCallDict

PyObject_Call
_PyEval_EvalFrameDefault

_PyFunction_FastCallDict

PyObject_Call

_PyObject_FastCallKeywords

_PyEval_EvalFrameDefault


_PyEval_EvalFrameDefault



_PyEval_EvalFrameDefault


_PyEval_EvalFrameDefault

_PyFunction_FastCallDict



PyObject_Call
_PyEval_EvalFrameDefault


_PyEval_EvalFrameDefault


_PyEval_EvalFrameDefault



_PyEval_EvalFrameDefault



_PyEval_EvalFrameDefault


_PyEval_EvalFrameDefault


_PyEval_EvalFrameDefault



_PyEval_EvalFrameDefault

*** End stack trace ***
Aborted`

I am using the following environment:
Ubuntu Desktop 20.04
python3.6
tensorflow 1.14.0
cuda v10.1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant