csyben / PYRO-NN

Python Reconstruction Operators in Neural Networks. High level python API for PYRO-NN-Layers
Apache License 2.0
110 stars 34 forks source link

malloc assertion failed #9

Closed AlexandruMoraru310 closed 4 years ago

AlexandruMoraru310 commented 4 years ago

Hello,

I tried to run some scripts in the examples/ct_reconstruction folder. I tried example_parallel_2d.py, example_fan_2d.py and example_fan_2d_shortscan.py. All of them give runtime error at the line:

sinogram = parallel_projection2d(phantom, geometry)

The error is:

python: malloc.c:2385: sysmalloc: Assertion (old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0) failed.

Any idea for a workaround?

csyben commented 4 years ago

Could you check which Tensorflow version you have currently installed? I stumbled across a possible problem with TensorFlow 2.2 today. Could you check if the problem is solved when you use Tensorflow 2.1 instead of 2.2?

AlexandruMoraru310 commented 4 years ago

With TensorFlow version 2.1 everything works just fine. Thank you!