Camera data not proper after restart

I made a custom camera driver. it works properly when using the following command

gst-launch-1.0 nvarguscamerasrc ! nvvidconv ! xvimagesink

But after restart the stream is not proper, it is like the below image

Is there anyway to fix it?

Have reference to this link to check the trace log if any clue.

https://elinux.org/Jetson/l4t/Camera_BringUp

Hi @ShanceCCC,
I am not able to find anything odd in the trace logs.

Get the RAW data from v4l2-ctl to check.

Hi @ShaneCCC ,
after restart not able to get v4l2-frames but after using rmmod and isnmod its working properly.

Do you mean the problem fixed or v4l2-ctl get the normal frame?

Hi @ShaneCCC ,
V4l2 got normal frame after using rmmod and isnmod its working properly.
But during the 1st boot v4l2 not working after using rmmod and isnmod its working properly.

Does nvarguscamerasrc working normally after rmmod and insmod?

Hi @ShaneCCC ,
Yes Both nvarguscamerasrc and v4l2 working properly after rmmod and insmod.

Suppose it could be the sensor configure cause that.