-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scanning for channels gets stuck on "_open_file" #59
Comments
@grkblood13 What device did you use for the ATSC capture? Also, do you know the exact kernel version? Is there any relevant info in the corresponding dmesg logs? |
device: kernel info: dmesg: |
So, no errors in the logs that correspond to the freeze? Is this a new problem introduced by this kernel version or does it happen with older kernels? I will see if i can reproduce it. Have you tried enabling debug on |
When running in debug mode the command returns as expected. When I remove the debug flag it returns to hanging. Do you want the debug log? Not sure how much it'll help since it runs properly when setting the flag. |
I just received the RPI4, so I have no insight on how it ran on older kernels on the pi. |
I think I've seen this before, but I thought I had fixed it at the kernel level. I will try to repro, but I don't (yet) have an rpi4 -- thanks for the reminder, I will order one. It sounds like either a race condition or a deadlock .... or a deadlock caused by a race condition. Does anything else get you past it other than enabling debug? |
I was able to run twice successfully without debug mode and then another hang on the third attempt. Perhaps the hang is related to these libdvbpsi errors that seem to be unpredictable as we're dealing with a live environment. This is probably a similar situation to the last bug I opened and subsequently closed after having problems reproducing: #57 Error: libdvbpsi error (PSI decoder): TS discontinuity (received 14, expected 4) for PID 128 |
seems to be related to the errors listed above. seeing same behavior on multiple runs after further testing. good run -> https://gist.github.com/grkblood13/425d2d2ad2d8282b5c2d420e83a21a4c |
I notice the hang is on a different frequency from what you posted previously. Is this the only tuner stick you have? It looks like a driver issue, but it still could be the app. I can try to repro over the weekend using my desktop. |
Built on raspberry pi 4 running nodejs v14.
Build instructions:
git clone https://github.com/mkrufky/libdvbtee.git
cd libdvbtee
./build-auto.sh
sudo cp -rp dvbtee /opt/
sudo ln -s /opt/dvbtee/dvbtee /usr/local/bin
Command to scan:
dvbtee -s -a0 > out.tmp
Results:
scan appears to run but gets stuck on the following line, resulting in a file with only "# dvbtee v0.6.7 - http://github.com/mkrufky/libdvbtee" written at the top.
...
store PMT: v14, service_id 3, pcr_pid 49
es_pid | type
31 | 0x02 (Video MPEG-2) |
34 | 0x81 (Audio AC3 (ATSC)) | eng
35 | 0x81 (Audio AC3 (ATSC)) | spa
store PMT: v14, service_id 5, pcr_pid 81
es_pid | type
51 | 0x02 (Video MPEG-2) |
54 | 0x81 (Audio AC3 (ATSC)) | eng
scan channel 26...
tuned to 545000000
scan channel 27...
tuned to 551000000
SCVYL start_feed: using /dev/dvb/adapter0/demux0
_open_file: using /dev/dvb/adapter0/dvr0
The text was updated successfully, but these errors were encountered: