doc/troubleshooting.md
The following commands can be used to isolate and analyze issues:
$ uname -r
On Linux:
$ export LRS_LOG_LEVEL="<Log Level>"
On Windows:
$ set LRS_LOG_LEVEL="<Log Level>"
$ lsusb | grep 8086
$ dmesg -T
-To monitor the Linux Kernel log messages when there any change
$ dmesg -wH
$ sudo dmesg -c
/var/log folder.$ less /var/log/kern.log
You can get more verbose logs from the uvcvideo kernel-module.
These logs can be seen in dmesg
$ sudo echo 0xFFFF > /sys/module/uvcvideo/parameters/trace
For example, once enabled you will get the following line inside dmesg for each frame received from USB:
[619003.810541] uvcvideo: frame 1 stats: 0/0/1 packets, 0/0/1 pts (!early initial), 0/1 scr, last pts/stc/sof 25177741/25178007/81
[619003.810546] uvcvideo: Frame complete (FID bit toggled).
[619003.810556] uvcvideo: frame 2 stats: 0/0/1 packets, 0/0/1 pts (!early initial), 0/1 scr, last pts/stc/sof 25210903/25211168/346
[619003.810588] uvcvideo: uvc_v4l2_poll
[619003.811173] uvcvideo: uvc_v4l2_poll
[619003.843768] uvcvideo: frame 3 stats: 0/0/1 packets, 0/0/1 pts (!early initial), 0/1 scr, last pts/stc/sof 25210903/25211168/346
[619003.843774] uvcvideo: Frame complete (FID bit toggled).
[619003.843785] uvcvideo: frame 4 stats: 0/0/1 packets, 0/0/1 pts (!early initial), 0/1 scr, last pts/stc/sof 25244064/25244330/612
$ sudo udevadm monitor
strace:$ strace <Application Path>
In case of a crash (for example SEGFAULT), a snapshot of the crash can be created (Core Dump) and submitted for inspection.
$ ulimit -c unlimited
Run the application that causes the crash
Search for the core file in the current directory
Note: Auto-creation of the dump file will only work on the same Terminal that you ran the ulimit command.