nvMedia Image Decode Processing samples gives free malloc is not allocated

Please provide the following info (tick the boxes after creating this topic):
Software Version
[*] DRIVE OS 6.0.6
DRIVE OS 6.0.5
DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
other

Target Operating System
Linux
[*] QNX
other

Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-300)
DRIVE AGX Orin Developer Kit (940-63710-0010-200)
DRIVE AGX Orin Developer Kit (940-63710-0010-100)
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)
[*] DRIVE AGX Orin Developer Kit (not sure its number)
other

SDK Manager Version
1.9.2.10884
[*] other

Host Machine Version
native Ubuntu Linux 20.04 Host installed with SDK Manager
native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers
[*] native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers
other

./nvm_ide_sci gives free malloc object that is not allocated:/builds/workspace/QOS222-SDP/build_aarch64/lib/c/alloc/dlist.c:1053
Abort (core dumped)

Dear @jingxin.cai,
Could you share steps to reproduce the issue?

command: ./nvm_ide_sci -c 7 -f cam_3840x2160.vp9 -s out.yuv
I cannot share the cam_3840x2160.vp9 with you cause the confidentiality agreement.

We can use the data h265_test_file.bin from Problems when used nvm_ide_sci sample - DRIVE AGX Orin / DRIVE AGX Orin General - NVIDIA Developer Forums for test.

Dear @jingxin.cai,
I could not test vp9 decoding with shared file

nvidia@tegra-ubuntu:~$ ./nvm_ide_sci -c 7 -f h265_test_file.bin -s out.yuv
Init: Opening Input file h265_test_file.bin
Init: Opening Output YUV file out.yuv
nvmedia: ERROR: StreamVP8: It is not a valid IVF file
nvmedia: ERROR: Decode failed

total failures: 1
nvidia@tegra-ubuntu:~$ ./nvm_ide_sci -c 6 -f h265_test_file.bin -s out.yuv
Init: Opening Input file h265_test_file.bin
Init: Opening Output YUV file out.yuv
BeginSequence: 1920x1088 (disp: 1920x1080) codec: H265 decode buffers: 4 aspect: 1920:1080 fps: 30.000000 chroma: 4:2:0
Total 1 frames decoded
YUV file is saved at out.yuv

*** Test Passed: DECODING PROCESS ENDED SUCCESSFULY***

total failures: 0

I got the below error:

# ./nvm_ide_sci -c 6 -f /opt/adaptive/h265_test_file.bin -s out.yuv
Init: Opening Input file /opt/adaptive/h265_test_file.bin
Init: Opening Output YUV file out.yuv
BeginSequence: 1920x1088 (disp: 1920x1080) codec: H265 decode buffers: 4 aspect: 1920:1080 fps: 30.000000 chroma: 4:2:0
free malloc object that is not allocated:/builds/workspace/QOS222-SDP/build_aarch64/lib/c/alloc/dlist.c:1053
Abort (core dumped)

I notice nvidia@tegra-ubuntu in your pasted code, your operation system is qnx?

Dear @jingxin.cai,
I have tested the issue on linux. Are you using QNX release?

Yes, I am using QNX release.

This forum is only for devzone releases (only Linux). As of QNX, it seems that you have another support channel. If you are unsure about the correct channel to report this issue, please contact your NVIDIA representative for guidance.

OK, thank you!

By the way, I wanna make sure if your Software Version is DRIVE OS 6.0.6 ?

Yes, the latest version on devzone is DRIVE OS 6.0.6 Linux SDK.

I change my OS to DRIVE OS 6.0.6 Linux, but get the below error:

nvidia@tegra-ubuntu:~$ ./nvm_ide_sci -c 6 -f h265_test_file.bin -s out.yuv -v 3
nvmedia: main: Initializing test context
Init: Opening Input file h265_test_file.bin
nvmedia: NVMEDIA_IDE_MAIN: NvMediaIDE Major version - 1
nvmedia: NVMEDIA_IDE_MAIN: NvMediaIDE Minor version - 0
nvmedia: Init: Creating parser
Init: Opening Output YUV file out.yuv
nvmedia: main: Starting decode process
nvmedia: Decode_orig: Starting 1 loops of decode
nvmedia: Decode_orig: loop 0 out of 1
nvmedia: Decode_orig: EOS 0 is sent…
nvmedia: Decode_orig: EOS 0 is sent…
nvmedia: Decode_orig: EOS 0 is sent…
nvmedia: Decode_orig: EOS 0 is sent…
nvmedia: Decode_orig: EOS 0 is sent…
nvmedia: Decode_orig: EOS 0 is sent…
nvmedia: Decode_orig: EOS 0 is sent…
nvmedia: Decode_orig: EOS 0 is sent…
nvmedia: Decode_orig: EOS 0 is sent…
nvmedia: Decode_orig: EOS 0 is sent…
nvmedia: Decode_orig: EOS 0 is sent…
nvmedia: Decode_orig: EOS 0 is sent…
nvmedia: Decode_orig: EOS 0 is sent…
nvmedia: Decode_orig: EOS 1 is sent…
BeginSequence: 1920x1088 (disp: 1920x1080) codec: H265 decode buffers: 4 aspect: 1920:1080 fps: 30.000000 chroma: 4:2:0
nvmedia: BeginSequence: Resolution changed: Old:0x0 New:1920x1088
nvmedia: Create decoder:
nvmedia: NVMEDIA_VIDEO_CODEC_HEVC
nvmedia: Size: 1920x1088 maxReferences: 3
NVDEC_COMMON: Host1x channel open failed
free(): double free detected in tcache 2
Aborted

Did you ever meet the similar error and how to solve it?

Dear @jingxin.cai,
As can be seen in nvMedia Image Decode Processing samples gives free malloc is not allocated - #7 by SivaRamaKrishnaNV I don’t see issue. Could you confirm if we are using same input?
Did you test it on DRIVE AGX Orin Devkit?

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