Skip to content

Running on Docker #9

@omartin2010

Description

@omartin2010

Has anyone tried to run this on a docker image? I'm starting this with this command :

docker run -it --rm --privileged \
-v ~/includes:/usr/include/k4a \
-v /usr/lib/aarch64-linux-gnu/libk4arecord.so:/usr/lib/aarch64-linux-gnu/libk4arecord.so \
-v /usr/lib/aarch64-linux-gnu/libk4arecord.so.1.4:/usr/lib/aarch64-linux-gnu/libk4arecord.so.1.4 \
-v /usr/lib/aarch64-linux-gnu/libk4arecord.so.1.4.0:/usr/lib/aarch64-linux-gnu/libk4arecord.so.1.4.0 \
-v /usr/lib/aarch64-linux-gnu/libk4a.so:/usr/lib/aarch64-linux-gnu/libk4a.so \
-v /usr/lib/aarch64-linux-gnu/libk4a.so.1.4:/usr/lib/aarch64-linux-gnu/libk4a.so.1.4 \
-v /usr/lib/aarch64-linux-gnu/libk4a.so.1.4.0:/usr/lib/aarch64-linux-gnu/libk4a.so.1.4.0 \
-v /usr/lib/aarch64-linux-gnu/libdepthengine.so.2.0:/usr/lib/aarch64-linux-gnu/libdepthengine.so.2.0 \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-e DISPLAY=:0 \
tf113opencv:latest /bin/bash

and tf113opencv:latest... works for many other things in my case. Point is that when running example.py, I get this output :

root@df76993e312f:~/py-k4a# python3 example.py
Opened device 000211394812 (('rgb', (1, 6, 107)), ('depth', (1, 6, 78)), ('audio', (1, 6, 14)), ('depth_sensor', (6109, 7, 0)))

Fatal Python error: Segmentation fault

Thread 0x0000007f8a297010 (most recent call first):
  File "example.py", line 19 in <module>
Segmentation fault (core dumped)

This runs on ubnutu on ARM64. The example runs well outside of Docker, but I would like to containerize this. Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions