Imagenet failing on 6.2 jetpack with double free error - see console output

root@avnisha-desktop:/opt/jetson-inference/build/aarch64/bin# !15
./imagenet images/dog_2.jpg images/test/dog_2.jpg
[video] created imageLoader from file:///opt/jetson-inference/build/aarch64/bin/images/dog_2.jpg

imageLoader video options:

– URI: file:///opt/jetson-inference/build/aarch64/bin/images/dog_2.jpg
- protocol: file
- location: images/dog_2.jpg
- extension: jpg
– deviceType: file
– ioType: input
– codec: unknown
– codecType: v4l2
– frameRate: 0
– numBuffers: 4
– zeroCopy: true
– flipMethod: none
– loop: 0

[video] created imageWriter from file:///opt/jetson-inference/build/aarch64/bin/images/test/dog_2.jpg

imageWriter video options:

– URI: file:///opt/jetson-inference/build/aarch64/bin/images/test/dog_2.jpg
- protocol: file
- location: images/test/dog_2.jpg
- extension: jpg
– deviceType: file
– ioType: output
– codec: unknown
– codecType: v4l2
– frameRate: 0
– bitRate: 0
– numBuffers: 4
– zeroCopy: true

[OpenGL] glDisplay – X screen 0 resolution: 1920x1200
[OpenGL] glDisplay – X window resolution: 1920x1200
[OpenGL] glDisplay – display device initialized (1920x1200)
[video] created glDisplay from display://0

glDisplay video options:

– URI: display://0
- protocol: display
- location: 0
– deviceType: display
– ioType: output
– width: 1920
– height: 1200
– frameRate: 0
– numBuffers: 4
– zeroCopy: true

double free or corruption (out)
Aborted (core dumped)

Hi,

Is this the whole console output?
Do you run the jetson-inference in a container or virtual environment?

Thanks.

Yup - it has to run in a container. See listing below where I invoke it at the top.

Similar problems with another video program. I will try non video and see if there is some pattern here that relates to video.

Thx

avnisha@avnisha-desktop:~/jetson-inference$ !295 -c dustynv/jetson-inference:r36.3.0
docker/run.sh -c dustynv/jetson-inference:r36.3.0
ARCH: aarch64
reading L4T version from /etc/nv_tegra_release
L4T BSP Version: L4T R36.4.3
localuser:root being added to access control list
CONTAINER_IMAGE: dustynv/jetson-inference:r36.3.0
DATA_VOLUME: --volume /home/avnisha/jetson-inference/data:/jetson-inference/data --volume /home/avnisha/jetson-inference/python/training/classification/data:/jetson-inference/python/training/classification/data --volume /home/avnisha/jetson-inference/python/training/classification/models:/jetson-inference/python/training/classification/models --volume /home/avnisha/jetson-inference/python/training/detection/ssd/data:/jetson-inference/python/training/detection/ssd/data --volume /home/avnisha/jetson-inference/python/training/detection/ssd/models:/jetson-inference/python/training/detection/ssd/models --volume /home/avnisha/jetson-inference/python/www/recognizer/data:/jetson-inference/python/www/recognizer/data
DISPLAY_DEVICE: -e DISPLAY=:1 -v /tmp/.X11-unix/:/tmp/.X11-unix
root@avnisha-desktop:/opt/jetson-inference# vi README
bash: vi: command not found
root@avnisha-desktop:/opt/jetson-inference# cd build/aarch64/bin
root@avnisha-desktop:/opt/jetson-inference/build/aarch64/bin# ./imagenet images/jellyfish.jpg images/test/jellyfish.jpg
[video] created imageLoader from file:///opt/jetson-inference/build/aarch64/bin/images/jellyfish.jpg

imageLoader video options:

– URI: file:///opt/jetson-inference/build/aarch64/bin/images/jellyfish.jpg
- protocol: file
- location: images/jellyfish.jpg
- extension: jpg
– deviceType: file
– ioType: input
– codec: unknown
– codecType: v4l2
– frameRate: 0
– numBuffers: 4
– zeroCopy: true
– flipMethod: none
– loop: 0

[video] created imageWriter from file:///opt/jetson-inference/build/aarch64/bin/images/test/jellyfish.jpg

imageWriter video options:

– URI: file:///opt/jetson-inference/build/aarch64/bin/images/test/jellyfish.jpg
- protocol: file
- location: images/test/jellyfish.jpg
- extension: jpg
– deviceType: file
– ioType: output
– codec: unknown
– codecType: v4l2
– frameRate: 0
– bitRate: 0
– numBuffers: 4
– zeroCopy: true

[OpenGL] glDisplay – X screen 0 resolution: 1920x1200
[OpenGL] glDisplay – X window resolution: 1920x1200
[OpenGL] glDisplay – display device initialized (1920x1200)
[video] created glDisplay from display://0

glDisplay video options:

– URI: display://0
- protocol: display
- location: 0
– deviceType: display
– ioType: output
– width: 1920
– height: 1200
– frameRate: 0
– numBuffers: 4
– zeroCopy: true

double free or corruption (out)

Hi,

Before you launch the container, please try the below commands:

$ export DISPLAY=:0
$ xhost +

Then launching the container with -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY to see if it helps.

Thanks.

Getting 2 errors - see below:
**1) xhost + fails **
2) running docker with add’l args fails

avnisha@avnisha-desktop:~/jetson-inference$ export DISPLAY=:0
avnisha@avnisha-desktop:~/jetson-inference$ xhost +
xhost: unable to open display “:0”

docker/run.sh -c dustynv/jetson-inference:r36.3.0 -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY
WARN: Unknown option (ignored): -e
ARCH: aarch64
reading L4T version from /etc/nv_tegra_release
L4T BSP Version: L4T R36.4.3
[sudo] password for avnisha:
xhost: unable to open display “:0”
CONTAINER_IMAGE: dustynv/jetson-inference:r36.3.0
DATA_VOLUME: --volume /home/avnisha/jetson-inference/data:/jetson-inference/data --volume /home/avnisha/jetson-inference/python/training/classification/data:/jetson-inference/python/training/classification/data --volume /home/avnisha/jetson-inference/python/training/classification/models:/jetson-inference/python/training/classification/models --volume /home/avnisha/jetson-inference/python/training/detection/ssd/data:/jetson-inference/python/training/detection/ssd/data --volume /home/avnisha/jetson-inference/python/training/detection/ssd/models:/jetson-inference/python/training/detection/ssd/models --volume /home/avnisha/jetson-inference/python/www/recognizer/data:/jetson-inference/python/www/recognizer/data
USER_VOLUME: --volume /tmp/.X11-unix:/tmp/.X11-unix
DISPLAY_DEVICE: -e DISPLAY=:0 -v /tmp/.X11-unix/:/tmp/.X11-unix
docker: Error response from daemon: Duplicate mount point: /tmp/.X11-unix.
See ‘docker run --help’.

Could you please reply to my reply to your suggestions. I got 2 failures as captured in the post. Thx.

Hi,

Could you try :1?

For example:

$ export DISPLAY=:1
$ xhost +

If the command works correctly, it’s expected to see the below log:

access control disabled, clients can connect from any host

Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.