Std::bad_array_new_length Error when Running Sample Camera Replay

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 - 1.9.3.10904

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

Hi, we are trying to get the sample camera replay running and are running into an error (seen below). We generated the sample cross compilation files following the “Samples Cross-Compilation From Source” section from this link DriveWorks SDK Reference: Getting Started Using the NVIDIA SDK Manager

We moved the resulting bin files over to the Orin device and were able to run the sample_hello_world file successfully, but we are running into an error reporting “std::bad_array_new_length”.

nvidia-cam@tegra-ubuntu:/usr/local/driveworks/samples/bin$ sudo ./sample_camera_replay --video=/usr/local/driveworks/data/samples/recordings/highway0/video_first.h264
[sudo] password for nvidia-cam: 
ProgramArguments: Missing argument 'dwTracePath' requested
terminate called after throwing an instance of 'std::bad_array_new_length'
  what():  std::bad_array_new_length
Aborted

We are currently using nomachine to view the desktop of the device and to run this application. Thank you, please let me know if there’s anything we should try to fix.

Note we tried to run this with and without sudo and reported the same error.

It is unclear whether the issue is related to the use of nomachine. To troubleshoot, I recommend trying to run the sample camera replay with a physical monitor connected to the device. This will help determine if the error persists regardless of the remote desktop environment.

Sounds good, I can test this on a physical monitor early next week and I’ll report the findings, thanks!

I connected a monitor and it worked correctly, so it seems like there was a display issue. Thanks!

1 Like

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