Camera_jpeg_capture - Failed to get sensor modes

Hello,
I have successfully installed the Jetson Nano image. The examples are running besides the example 09_camera_jpeg_capture. Unfortunally this example is important for me because we have a 2 camera application which is runnning on 2 Raspi’s and we want to switch this application to the Jetson Nano. As I understood the log the application has a problem to get infos from the cameras. But the cameras are correct installed, because I can run the example 13_multi_camera. Can somebody explain we what the problem could be. Thanks in advance.

below is the error log

./camera_jpeg_capture
[INFO] (NvEglRenderer.cpp:110) Setting Screen width 640 height 480
PRODUCER: Creating output stream
PRODUCER: Launching consumer thread
CONSUMER: Waiting until producer is connected…
CONSUMER: Waiting until producer is connected…
Error generated. main.cpp, execute:390 Failed to get sensor modes
(Argus) Error InvalidState: (propagating from src/eglstream/FrameConsumerImpl.cpp, function streamEventThread(), line 135)
(Argus) Error InvalidState: (propagating from src/eglstream/FrameConsumerImpl.cpp, function streamEventThreadStatic(), line 177)
(Argus) Error Timeout: (propagating from src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 137)
(Argus) Error Timeout: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 87)
Error generated. main.cpp, threadExecute:123 Stream failed to connect.
Error generated. /usr/src/jetson_multimedia_api/argus/samples/utils/Thread.cpp, threadFunction:132 (propagating)
Bus error (core dumped)

Did you have any modify the source code?
Which version J4.4?

Hello ShaneCCC,
Jetpack 4.4-b144. The source code is not changed.

Could you try this binary also if can attached your binary.camera_jpeg_capture.txt (560.4 KB)

Hello ShaneCCC,
thanks for the binary. Works perfect. Can you please tell me what you did different and send me the source code if you changed it. Would be interested to understand the problem.

I didn’t modify any thing about this source, you may need to apply below patch.