Sensor driver working properly in v4l2 but not in argus_camera

Hi Shane,

Do you have the alternative commands for TX1? I am unable to test this yet in TX2 until next week.

Thanks!

Did aware it’s TX1, then there’s no need to boost the clock for TX1.
Did you use 28.2.1? Could you try set discontinuous_clk = “yes” in DT.
Any timeout kernel message?

Hi Shane,

Sorry for the confusion. I was testing for both TX1 and TX2. I did not realize I haven’t mentioned it and now I only have TX1.

I have been using R28.1. I have tried the discontinuous_clk = “yes” but haven’t encountered any timeout messages in the kernel log.

the argus_camera only outputs a single frame and then it hangs. Attached are the logs from gst-launch and argus_camera.

@luis
Does your sensor initial take long time for the initial reg setting for the stream on?
Could you try below command

gst-launch-1.0 nvcamerasrc sensor-id=0 ! 'video/x-raw(memory:NVMM) ! nvoverlaysink

Hi Shane,

I went back to using TX2 today and tried the command. It works properly. I am getting good stream using this gstreamer pipeline.

However, I still don’t have a good argus_camera stream.

Is it better to debug using TX1 or TX2?

Please have a check lib from below link for TX2.
https://devtalk.nvidia.com/default/topic/1039183/jetson-tx2/argus-syncing-multiple-capture-sessions/post/5287248/#5287248

Hi Shane,

I’m still encountering the error even after changing the binary files in the link.

Here is the argus_daemon log:

SCF: Error Timeout:  (propagating from src/api/Session.cpp, function capture(), line 831)
FiberScheduler: fiber 0x7f580102d0 exiting
(Argus) Error Timeout:  (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Thread 12 getting next capture
disposing CC 341 Session 0
Thread 5 is waiting
Thread 8 is waiting
(Argus) Error InvalidState: MetadataResult callback for unknown capture. (in src/api/CaptureSessionImpl.cpp, function metadataResult(), line 705)
FiberScheduler: fiber 0x7f5800ea10 exiting
Thread 3 getting next capture
disposing CC 342 Session 0
Thread 6 is waiting
Thread 4 is waiting
Thread 3 is waiting
launchCC abort cc 343 session 0
Thread 12 is waiting
Thread 2 is working on CC 343 session 0 globalID 343 step 0
Fiber 0x7f5800fdc0 is aborting in CC 343 Session 0
FiberScheduler: cc 343 session 0, fiber 0x7f5800fdc0 aborted

FiberScheduler: fiber 0x7f5800fdc0 exiting
Thread 2 getting next capture
Thread 7 is waiting
Thread 11 is waiting
Thread 2 is waiting
Created fiber 0x7f5800fdc0 for CC 343 globalID 343 session 0
SCF: Error Timeout:  (propagating from src/api/Session.cpp, function capture(), line 831)
(Argus) Error Timeout:  (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
(Argus) Error InvalidState: MetadataResult callback for unknown capture. (in src/api/CaptureSessionImpl.cpp, function metadataResult(), line 705)
disposing CC 343 Session 0
launchCC abort cc 344 session 0
Thread 9 is working on CC 344 session 0 globalID 344 step 0
Fiber 0x7f5800d900 is aborting in CC 344 Session 0
FiberScheduler: cc 344 session 0, fiber 0x7f5800d900 aborted

FiberScheduler: fiber 0x7f5800d900 exiting
Thread 9 getting next capture
Thread 10 is waiting
Thread 1 is waiting
Thread 9 is waiting
Created fiber 0x7f5800d900 for CC 344 globalID 344 session 0
SCF: Error Timeout:  (propagating from src/api/Session.cpp, function capture(), line 831)
(Argus) Error Timeout:  (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
(Argus) Error InvalidState: MetadataResult callback for unknown capture. (in src/api/CaptureSessionImpl.cpp, function metadataResult(), line 705)
disposing CC 344 Session 0
launchCC abort cc 345 session 0
Created fiber 0x7f5800c2e0 for CC 345 globalID 345 session 0
Thread 5 is working on CC 345 session 0 globalID 345 step 0
SCF: Error Timeout:  (propagating from src/api/Session.cpp, function capture(), line 831)
Fiber 0x7f5800c2e0 is aborting in CC 345 Session 0
(Argus) Error Timeout:  (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
FiberScheduler: cc 345 session 0, fiber 0x7f5800c2e0 aborted

launchCC abort cc 346 session 0
Thread 8 is working on CC 346 session 0 globalID 346 step 0
(Argus) Error InvalidState: MetadataResult callback for unknown capture. (in src/api/CaptureSessionImpl.cpp, function metadataResult(), line 705)
Fiber 0x7f5800fde0 is aborting in CC 346 Session 0
FiberScheduler: cc 346 session 0, fiber 0x7f5800fde0 aborted

FiberScheduler: fiber 0x7f5800fde0 exiting
Thread 8 getting next captureThread 6 is waiting
Created fiber 0x7f5800fde0 for CC 346 globalID 346 session 0Thread 4 is waiting

FiberScheduler: fiber 0x7f5800c2e0 exiting
SCF: Error Timeout:  (propagating from src/api/Session.cpp, function capture(), line 831)
(Argus) Error Timeout:  (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Thread 5 getting next capture
disposing CC 345 Session 0
(Argus) Error InvalidState: MetadataResult callback for unknown capture. (in src/api/CaptureSessionImpl.cpp, function metadataResult(), line 705)
Thread 3 is waiting
Thread 12 is waiting
Thread 5 is waiting

Thread 8 is waiting
disposing CC 346 Session 0
launchCC abort cc 347 session 0
Thread 7 is working on CC 347 session 0 globalID 347 step 0
Fiber 0x7f5800d900 is aborting in CC 347 Session 0
FiberScheduler: cc 347 session 0, fiber 0x7f5800d900 aborted

FiberScheduler: fiber 0x7f5800d900 exiting
Thread 7 getting next capture
Thread 11 is waiting
Thread 2 is waiting
Thread 7 is waiting
Created fiber 0x7f5800d900 for CC 347 globalID 347 session 0
SCF: Error Timeout:  (propagating from src/api/Session.cpp, function capture(), line 831)
(Argus) Error Timeout:  (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
(Argus) Error InvalidState: MetadataResult callback for unknown capture. (in src/api/CaptureSessionImpl.cpp, function metadataResult(), line 705)
disposing CC 347 Session 0
launchCC abort cc 348 session 0
Thread 10 is working on CC 348 session 0 globalID 348 step 0
Fiber 0x7f5800c5c0 is aborting in CC 348 Session 0
FiberScheduler: cc 348 session 0, fiber 0x7f5800c5c0 aborted

FiberScheduler: fiber 0x7f5800c5c0 exiting
Thread 10 getting next capture
Thread 1 is waiting
Thread 9 is waiting
Thread 10 is waiting
Created fiber 0x7f5800c5c0 for CC 348 globalID 348 session 0
SCF: Error Timeout:  (propagating from src/api/Session.cpp, function capture(), line 831)
(Argus) Error Timeout:  (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
(Argus) Error InvalidState: MetadataResult callback for unknown capture. (in src/api/CaptureSessionImpl.cpp, function metadataResult(), line 705)
disposing CC 348 Session 0
launchCC abort cc 349 session 0
Created fiber 0x7f5800d900 for CC 349 globalID 349 session 0
Thread 6 is working on CC 349 session 0 globalID 349 step 0
SCF: Error Timeout:  (propagating from src/api/Session.cpp, function capture(), line 831)
Fiber 0x7f5800d900 is aborting in CC 349 Session 0
(Argus) Error Timeout:  (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
FiberScheduler: cc 349 session 0, fiber 0x7f5800d900 aborted

launchCC abort cc 350 session 0
Thread 4 is working on CC 350 session 0 globalID 350 step 0
(Argus) Error InvalidState: MetadataResult callback for unknown capture. (in src/api/CaptureSessionImpl.cpp, function metadataResult(), line 705)
Created fiber 0x7f5800fde0 for CC 350 globalID 350 session 0Fiber 0x7f5800fde0 is aborting in CC 350 Session 0

FiberScheduler: cc 350 session 0, fiber 0x7f5800fde0 aborted

SCF: Error Timeout:  (propagating from src/api/Session.cpp, function capture(), line 831)
(Argus) Error Timeout:  (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
launchCC abort cc 351 session 0
FiberScheduler: fiber 0x7f5800d900 exiting
Created fiber 0x7f5800e5e0 for CC 351 globalID 351 session 0
(Argus) Error InvalidState: MetadataResult callback for unknown capture. (in src/api/CaptureSessionImpl.cpp, function metadataResult(), line 705)
Thread 3 is working on CC 351 session 0 globalID 351 step 0
SCF: Error Timeout:  (propagating from src/api/Session.cpp, function capture(), line 831)
Thread 12 is waiting
(Argus) Error Timeout:  (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Thread 6 getting next capture
disposing CC 349 Session 0
Thread 6 is waiting
Thread 5 is waiting
Fiber 0x7f5800e5e0 is aborting in CC 351 Session 0
FiberScheduler: cc 351 session 0, fiber 0x7f5800e5e0 aborted

launchCC abort cc 352 session 0
Created fiber 0x7f58010160 for CC 352 globalID 352 session 0
SCF: Error Timeout:  (propagating from src/api/Session.cpp, function capture(), line 831)
Thread 8 is working on CC 352 session 0 globalID 352 step 0
(Argus) Error Timeout:  (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
FiberScheduler: fiber 0x7f5800fde0 exiting
Thread 4 getting next capture
disposing CC 350 Session 0
Thread 11 is waiting
Thread 4 is waiting
Fiber 0x7f58010160 is aborting in CC 352 Session 0
FiberScheduler: cc 352 session 0, fiber 0x7f58010160 aborted

Thread 2 is waiting
(Argus) Error InvalidState: MetadataResult callback for unknown capture. (in src/api/CaptureSessionImpl.cpp, function metadataResult(), line 705)
FiberScheduler: fiber 0x7f5800e5e0 exiting
Thread 3 getting next capture
disposing CC 351 Session 0
Thread 3 is waiting
Thread 7 is waiting
Thread 1 is waitinglaunchCC abort cc 353 session 0
(Argus) Error InvalidState: MetadataResult callback for unknown capture. (in src/api/CaptureSessionImpl.cpp, function metadataResult(), line 705)

FiberScheduler: fiber 0x7f58010160 exiting
Thread 8 getting next capture
disposing CC 352 Session 0
Thread 9 is waiting
Thread 10 is waiting
Thread 8 is waiting
Created fiber 0x7f58010160 for CC 353 globalID 353 session 0
Thread 12 is working on CC 353 session 0 globalID 353 step 0
SCF: Error Timeout:  (propagating from src/api/Session.cpp, function capture(), line 831)
Fiber 0x7f58010160 is aborting in CC 353 Session 0
(Argus) Error Timeout:  (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
FiberScheduler: cc 353 session 0, fiber 0x7f58010160 aborted

launchCC abort cc 354 session 0
Created fiber 0x7f5800fda0 for CC 354 globalID 354 session 0
Thread 6 is working on CC 354 session 0 globalID 354 step 0
SCF: Error Timeout:  (propagating from src/api/Session.cpp, function capture(), line 831)
Fiber 0x7f5800fda0 is aborting in CC 354 Session 0
FiberScheduler: cc 354 session 0, fiber 0x7f5800fda0 aborted

(Argus) Error InvalidState: MetadataResult callback for unknown capture. (in src/api/CaptureSessionImpl.cpp, function metadataResult(), line 705)
(Argus) Error Timeout:  (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
FiberScheduler: fiber 0x7f58010160 exiting
Thread 12 getting next capture
disposing CC 353 Session 0
Thread 11 is waiting
Thread 5 is waiting
(Argus) Error InvalidState: MetadataResult callback for unknown capture. (in src/api/CaptureSessionImpl.cpp, function metadataResult(), line 705)
Thread 12 is waiting
FiberScheduler: fiber 0x7f5800fda0 exiting
Thread 6 getting next capture
Thread 4 is waiting
Thread 2 is waiting
Thread 6 is waiting
disposing CC 354 Session 0
launchCC abort cc 355 session 0
Created fiber 0x7f5800d490 for CC 355 globalID 355 session 0
SCF: Error Timeout:  (propagating from src/api/Session.cpp, function capture(), line 831)
Thread 3 is working on CC 355 session 0 globalID 355 step 0
(Argus) Error Timeout:  (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Fiber 0x7f5800d490 is aborting in CC 355 Session 0
FiberScheduler: cc 355 session 0, fiber 0x7f5800d490 aborted

launchCC abort cc 356 session 0
Created fiber 0x7f5800ea60 for CC 356 globalID 356 session 0
SCF: Error Timeout:  (propagating from src/api/Session.cpp, function capture(), line 831)
Thread 7 is working on CC 356 session 0 globalID 356 step 0
(Argus) Error Timeout:  (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Fiber 0x7f5800ea60 is aborting in CC 356 Session 0
FiberScheduler: cc 356 session 0, fiber 0x7f5800ea60 aborted

Could you confirm the gstreamer pipeline still working after replace the lib.

Hi Shane,

The gstreamer pipeline is no longer displaying any stream after replacing the lib. But there is no indication of errors in the terminal or in the kernel log.

@luis
The lib is for 28.2.1 could you check your version.

Hi Shane,

Our TX2 L4T version is R28.2.1.

Did you reboot after replace them at /usr/lib/aarch64-xxxx/tegra/

Yes, I did reboot after replacing the files.

Hi

I’m also facing a similar issue when I’m trying to run a pipeline with a v4l2 camera source after running Nvargus src I;m getting error stating that select timeout , How can we run v4l2 src after nvargus without doing reboot

If I start v4l2 for 1st time then it works fine , but when I run after argus then it fails

Hi yashrajs,

This is an old topic, please help to open a new one if still an issue. Thanks