Closed Simonm952 closed 1 year ago
can you please start your script in gdb and show the backtrace:
Thanks @thiesmoeller for the reply.
This is the backtrace:
from /home/simon/.local/lib/python3.7/site-packages/pypylon/libNodeMapData_gcc_v3_1_Basler_pylon.so
from /home/simon/.local/lib/python3.7/site-packages/pypylon/libGenApi_gcc_v3_1_Basler_pylon.so
from /home/simon/.local/lib/python3.7/site-packages/pypylon/libGenApi_gcc_v3_1_Basler_pylon.so
from /home/simon/.local/lib/python3.7/site-packages/pypylon/libGenApi_gcc_v3_1_Basler_pylon.so
from /home/simon/.local/lib/python3.7/site-packages/pypylon/libpylonbase-6.1.0.so
from /home/simon/.local/lib/python3.7/site-packages/pypylon/libpylonbase-6.1.0.so
from /home/simon/.local/lib/python3.7/site-packages/pypylon/_pylon.cpython-37m-aarch64-linux-gnu.so
func=<built-in method TlFactory_CreateFirstDevice of module object at remote 0x7fb7706d70>) at ../Objects/call.c:772
args=<optimized out>, kwargs=<optimized out>) at ../Objects/call.c:788
callargs=(<TlFactory(this=<SwigPyObject at remote 0x7fb791d2d0>) at remote 0x7fb782ef90>,),
func=<built-in method TlFactory_CreateFirstDevice of module object at remote 0x7fb7706d70>) at ../Python/ceval.c:4641
f=f@entry=Frame 0x7fb7817c90, for file /home/simon/.local/lib/python3.7/site-packages/pypylon/pylon.py, line 1582, in CreateFirstDevice (self=<TlFactory(this=<SwigPyObject at remote 0x7fb791d2d0>) at remote 0x7fb782ef90>, args=()), throwflag=throwflag@entry=0)
at ../Python/ceval.c:3191
f=Frame 0x7fb7817c90, for file /home/simon/.local/lib/python3.7/site-packages/pypylon/pylon.py, line 1582, in CreateFirstDevice (self=<TlFactory(this=<SwigPyObject at remote 0x7fb791d2d0>) at remote 0x7fb782ef90>, args=())) at ../Python/ceval.c:547
argcount=<optimized out>, kwnames=<optimized out>, kwargs=<optimized out>, kwcount=<optimized out>, kwstep=1, defs=0x0,
defcount=0, kwdefs=0x0, closure=0x0, name='CreateFirstDevice', qualname='TlFactory.CreateFirstDevice') at ../Python/ceval.c:3930
at ../Objects/call.c:425
f=f@entry=Frame 0x7fb78bd450, for file /home/simon/Documents/Jetson-OPCUA-Communication-master/Client_application/camera.py, line 8, in <module> (), throwflag=throwflag@entry=0) at ../Python/ceval.c:3110
f=Frame 0x7fb78bd450, for file /home/simon/Documents/Jetson-OPCUA-Communication-master/Client_application/camera.py, line 8, in <module> ()) at ../Python/ceval.c:547
argcount=<optimized out>, kwnames=<optimized out>, kwargs=<optimized out>, kwcount=<optimized out>, kwstep=2, defs=0x0,
---Type
args=0x0, locals=<optimized out>, globals=<optimized out>, _co=<optimized out>) at ../Python/ceval.c:3959
filename=filename@entry='/home/simon/Documents/Jetson-OPCUA-Communication-master/Client_application/camera.py',
globals=globals@entry={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/simon/Documents/Jetson-OPCUA-Communication-master/Client_application/camera.py') at remote 0x7fb78e7150>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7fb79a6d10>, '__file__': '/home/simon/Documents/Jetson-OPCUA-Communication-master/Client_application/camera.py', '__cached__': None, 'pylon': <module at remote 0x7fb78301d0>, 'cdll': <LibraryLoader(_dlltype=<type at remote 0xb5e5f0>) at remote 0x7fac34f0d0>, 'os': <module at remote 0x7fb78e6a70>, 'subprocess': <module at remote 0x7fac4b6d10>, 'time': <module at remote 0x7fac695710>},
locals=locals@entry={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/simon/Documents/Jetson-OPCUA-Communication-master/Client_application/camera.py') at remote 0x7fb78e7150>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7fb79a6d10>, '__file__': '/home/simon/Documents/Jetson-OPCUA-Communication-master/Client_application/camera.py', '__cached__': None, 'pylon': <module at remote 0x7fb78301d0>, 'cdll': <LibraryLoader(_dlltype=<type at remote 0xb5e5f0>) at remote 0x7fac34f0d0>, 'os': <module at remote 0x7fb78e6a70>, 'subprocess': <module at remote 0x7fac4b6d10>, 'time': <module at remote 0x7fac695710>}, flags=flags@entry=0x7ffffff118, arena=arena@entry=0x7fb793d770)
at ../Python/pythonrun.c:1035
filename_str=filename_str@entry=0x7fb789ddd0 "/home/simon/Documents/Jetson-OPCUA-Communication-master/Client_application/camera.py", start=start@entry=257,
globals=globals@entry={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/simon/Documents/Jetson-OPCUA-Communication-master/Client_application/camera.py') at remote 0x7fb78e7150>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7fb79a6d10>, '__file__': '/home/simon/Documents/Jetson-OPCUA-Communication-master/Client_application/camera.py', '__cached__': None, 'pylon': <module at remote 0x7fb78301d0>, 'cdll': <LibraryLoader(_dlltype=<type at remote 0xb5e5f0>) at remote 0x7fac34f0d0>, 'os': <module at remote 0x7fb78e6a70>, 'subprocess': <module at remote 0x7fac4b6d10>, 'time': <module at remote 0x7fac695710>},
locals=locals@entry={'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <SourceFileLoader(name='__main__', path='/home/simon/Documents/Jetson-OPCUA-Communication-master/Client_application/camera.py') at remote 0x7fb78e7150>, '__spec__': None, '__annotations__': {}, '__builtins__': <module at remote 0x7fb79a6d10>, '__file__': '/home/simon/Documents/Jetson-OPCUA-Communication-master/Client_application/camera.py', '__cached__': None, 'pylon': <module at remote 0x7fb78301d0>, 'cdll': <LibraryLoader(_dlltype=<type at remote 0xb5e5f0>) at remote 0x7fac34f0d0>, 'os': <module at remote 0x7fb78e6a70>, 'subprocess': <module at remote 0x7fac4b6d10>, 'time': <module at remote 0x7fac695710>}, closeit=closeit@entry=1, flags=flags@entry=0x7ffffff118)
at ../Python/pythonrun.c:988
filename=0x7fb789ddd0 "/home/simon/Documents/Jetson-OPCUA-Communication-master/Client_application/camera.py", closeit=1,
flags=0x7ffffff118) at ../Python/pythonrun.c:429
rtld_fini=<optimized out>, stack_end=<optimized out>) at ../csu/libc-start.c:310
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
One reason could be a somewhat corrupt binary cache file in the folder $HOME/genicam_xml_cache
can you please try a
rm -r $HOME/genicam_xml_cache
This solved the issue, thanks!
Hi,
I am using a Nvidia Xavier NX device with JetPack 4.6, L4T 32.6.1 OS flashed on an SSD, so it is getting booted from this external storage. I connect an USB Basler camera to this device.
I am using pylon version 6, pypylon 1.8.0 and python 3.7.
When running
pylon.InstantCamera(pylon.TlFactory.GetInstance().CreateFirstDevice())
I am getting an error:
NULL pointer dereferenced : RuntimeException thrown (file 'PylonPowerNodeMap.h', line 172).
Using the pylon viewer or the C++ code I am able to take images without any issues.
For another project I am using a Nvidia Xavier AGX without the OS flashed on an SSD and here the pypylon SDK is working.
I also tried installing different pylon, pypylon and python versions but it is always giving the same NULL pointer dereferenced error.
I am wondering if booting from the SSD is causing this issue and if there is a possible solution for this?
Thanks