PMS possibly crashing Ubuntu system

Server Version#: 1.21.1.3876 and previous version
Player Version#: Web 4.49.2, WIN 1.25.0.1511, others

Server O/S: Ubuntu 18.04
Tuner: WinTV-quadHD PCI

PLEX Server on Ubuntu 18.04 appears to randomly crash the computer system (instant shutdown and restart). It seems to be related to using LIVETV-DVR, i.e. Live TV is streaming to a player, but I cannot be sure this is generally the case or if DVR recording can also reproduce. This is a very intermittent problem, but it seems to be getting worse overall. Sometime it crashes within minutes of the last system crash, sometime it can take an hour or two to reproduce. It seems to come in waves.

I’ve rolled back to previous PMS versions and it still happens, so it seems to be independent of the latest Public or Beta PMS version. Unfortunately, I didn’t have my Timeshift setup to backup before the problem started.

One thought was that my tuner card is going bad. I have stopped PMS and used Kaffeine and VLC for many hours of TV watching with the same tuner and there have been no issues at all. It makes me fairly convinced the crashes are related to PLEX <=> LIVETV-DVR.

I have the setting Send crash reports to Plex = ON. Hopefully these are getting sent to the Plex team. I did some poking around, and the only thing I noticed in the logs is in the Plex Tuner Service logs. When the system crashes (opposed to a graceful shutdown), I notice something like this at the end of the log file. It also looks the same after each crash. The next line with the gobbledygook should be INFO - [I] web_service_t::process_device_status


Jan 12, 2021 12:23:47.021 [0x7f0a9b7fe700] INFO - [I] device_reactor_t::get_device_list (dvb#v4l#/sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/0000:04:02.0/0000:06:00.0:14f1:8880)
Jan 12, 2021 12:23:47.021 [0x7f0a9b7fe700] INFO - [I] dvb_device_factory_t::get_device_list (dvb#v4l#/sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/0000:04:02.0/0000:06:00.0:14f1:8880)
Jan 12, 2021 12:23:47.021 [0x7f0a9b7fe700] INFO - [I] v4l::DeviceGetList_impl. getting v4l device list
Jan 12, 2021 12:23:47.021 [0x7f0a9b7fe700] INFO - [I] v4l::DeviceGetList_impl. Successfully opened frontend /dev/dvb/adapter0/frontend0
Jan 12, 2021 12:23:47.023 [0x7f0a9b7fe700] INFO - [I] v4l::DeviceGetList_impl. Successfully opened frontend /dev/dvb/adapter1/frontend0
Jan 12, 2021 12:23:47.026 [0x7f0a9b7fe700] INFO - [I] v4l::DeviceGetList_impl. Successfully opened frontend /dev/dvb/adapter2/frontend0
Jan 12, 2021 12:23:47.028 [0x7f0a9b7fe700] INFO - [I] v4l::DeviceGetList_impl. Successfully opened frontend /dev/dvb/adapter3/frontend0
Jan 12, 2021 12:23:47.033 [0x7f0a9b7fe700] INFO - [I] dvb_device_factory_t::get_device_list. Id dvb#v4l#0#/sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/0000:04:02.0/0000:06:00.0:0, Name LG Electronics LGDT3306A VSB/QAM Frontend, Standards 24
Jan 12, 2021 12:23:47.033 [0x7f0a9b7fe700] INFO - [I] dvb_device_factory_t::get_device_list. Id dvb#v4l#0#/sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/0000:04:02.0/0000:06:00.0:1, Name LG Electronics LGDT3306A VSB/QAM Frontend, Standards 24
Jan 12, 2021 12:23:47.036 [0x7f0a9b7fe700] INFO - [I] device_manager_t::get_device_list. Device LG Electronics LGDT3306A VSB/QAM Frontend, id dvb#v4l#0#/sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/0000:04:02.0/0000:06:00.0:0, tuners 1, state 2, standards 24
Jan 12, 2021 12:23:47.036 [0x7f0a9b7fe700] INFO - [I] device_manager_t::get_device_list. Device LG Electronics LGDT3306A VSB/QAM Frontend, id dvb#v4l#0#/sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/0000:04:02.0/0000:06:00.0:1, tuners 1, state 0, standards 24
Jan 12, 2021 12:23:47.188 [0x7f0a73fff700] DEBUG - [I] DTV_STAT_SIGNAL_STRENGTH: 1, -44000, 18446744073709507616, 1
Jan 12, 2021 12:23:47.188 [0x7f0a73fff700] DEBUG - [I] DTV_STAT_CNR has failed for tuner 2, frontend 0
Jan 12, 2021 12:23:47.191 [0x7f0a73fff700] DEBUG - [I] quality: 294
\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00

I should mention, system resources are fine when the crashes happen. I ran a series of memtest86 on RAM–No errors. The HD and SSD health reports look good. Should I install a kernal crash dump tool? Any other logs I should inspect? If Plex is triggering the crashes, I suspect a hardware or driver error in something like the tuner card, vid, nic, etc. Any advice on how to proceed?

Your log excerpt shows what looks like a stereotypical driver bug.

The PCI device driver faults the kernel under certain conditions ; taking the whole host with it.
I’ve seen this type behavior with other things like ethernet adapters. They are tough as heck to isolate.

This upgrade happened about the time the system crashes started. What do you think–a likely culprit, perhaps?

2021-01-05 15:22:30 startup archives unpack
2021-01-05 15:22:30 install linux-modules-4.15.0-126202012221313-generic:amd64 <none> 4.15.0-126202012221313.0+mediatree+hauppauge
2021-01-05 15:22:30 status half-installed linux-modules-4.15.0-126202012221313-generic:amd64 4.15.0-126202012221313.0+mediatree+hauppauge
2021-01-05 15:22:31 status unpacked linux-modules-4.15.0-126202012221313-generic:amd64 4.15.0-126202012221313.0+mediatree+hauppauge
2021-01-05 15:22:31 status unpacked linux-modules-4.15.0-126202012221313-generic:amd64 4.15.0-126202012221313.0+mediatree+hauppauge
2021-01-05 15:22:31 install linux-image-4.15.0-126202012221313-generic:amd64 <none> 4.15.0-126202012221313.0+mediatree+hauppauge
2021-01-05 15:22:31 status half-installed linux-image-4.15.0-126202012221313-generic:amd64 4.15.0-126202012221313.0+mediatree+hauppauge
2021-01-05 15:22:32 status unpacked linux-image-4.15.0-126202012221313-generic:amd64 4.15.0-126202012221313.0+mediatree+hauppauge
2021-01-05 15:22:32 status unpacked linux-image-4.15.0-126202012221313-generic:amd64 4.15.0-126202012221313.0+mediatree+hauppauge
2021-01-05 15:22:32 install linux-modules-extra-4.15.0-126202012221313-generic:amd64 <none> 4.15.0-126202012221313.0+mediatree+hauppauge
2021-01-05 15:22:32 status half-installed linux-modules-extra-4.15.0-126202012221313-generic:amd64 4.15.0-126202012221313.0+mediatree+hauppauge
2021-01-05 15:22:35 status unpacked linux-modules-extra-4.15.0-126202012221313-generic:amd64 4.15.0-126202012221313.0+mediatree+hauppauge
2021-01-05 15:22:35 status unpacked linux-modules-extra-4.15.0-126202012221313-generic:amd64 4.15.0-126202012221313.0+mediatree+hauppauge
2021-01-05 15:22:35 install linux-headers-4.15.0-126202012221313:all <none> 4.15.0-126202012221313.0+mediatree+hauppauge
2021-01-05 15:22:35 status half-installed linux-headers-4.15.0-126202012221313:all 4.15.0-126202012221313.0+mediatree+hauppauge
2021-01-05 15:22:38 status unpacked linux-headers-4.15.0-126202012221313:all 4.15.0-126202012221313.0+mediatree+hauppauge
2021-01-05 15:22:38 status unpacked linux-headers-4.15.0-126202012221313:all 4.15.0-126202012221313.0+mediatree+hauppauge
2021-01-05 15:22:38 install linux-headers-4.15.0-126202012221313-generic:amd64 <none> 4.15.0-126202012221313.0+mediatree+hauppauge
2021-01-05 15:22:38 status half-installed linux-headers-4.15.0-126202012221313-generic:amd64 4.15.0-126202012221313.0+mediatree+hauppauge
2021-01-05 15:22:39 status unpacked linux-headers-4.15.0-126202012221313-generic:amd64 4.15.0-126202012221313.0+mediatree+hauppauge
2021-01-05 15:22:39 status unpacked linux-headers-4.15.0-126202012221313-generic:amd64 4.15.0-126202012221313.0+mediatree+hauppauge
2021-01-05 15:22:39 upgrade linux-mediatree:all 0.1.2+bionic 0.1.3+bionic
2021-01-05 15:22:39 status half-configured linux-mediatree:all 0.1.2+bionic
2021-01-05 15:22:39 status unpacked linux-mediatree:all 0.1.2+bionic
2021-01-05 15:22:39 status half-installed linux-mediatree:all 0.1.2+bionic
2021-01-05 15:22:39 status half-installed linux-mediatree:all 0.1.2+bionic
2021-01-05 15:22:39 status unpacked linux-mediatree:all 0.1.3+bionic
2021-01-05 15:22:39 status unpacked linux-mediatree:all 0.1.3+bionic
2021-01-05 15:22:39 startup packages remove
2021-01-05 15:22:39 status installed linux-headers-4.15.0-121202010201020-generic:amd64 4.15.0-121202010201020.0+mediatree+hauppauge

That makes me very suspicious indeed.

Given modules can be unloaded and reloaded, the kernel must be reloaded (reboot) to get everything in line.

If one is dependent on the other, Wacky Stuff can happen. :face_with_monocle:

Looks like low hanging fruit, at least. I’ve reached out to author of the Hauppauge PPA and GitHub. The description is as such:

Ubuntu + LinuxTV.org media tree custom kernel builder

The kernel that ships with Ubuntu is typically locked to a specific version, such as 4.4. When this happens support for new media devices and fixes to drivers are not usually backported by distro maintainers.

This system remedies that problem by taking the Ubuntu kernel and slip streams in the latest linuxtv.org media tree. The media tree contains all the latest drivers, so this delivers the most up to date mainline media drivers seamlessly to Ubuntu users.

The script is designed to patch and build installable Ubuntu kernel packages. This script is used to develop and maintain the following Launchpad PPA:

The above ppa provides installable and upgradeable debs, so end users do not have to recompile the kernel and/or modules themselves.

A quick update on this problem:

  1. I haven’t contacted the mediatree+hauppauge developer yet, as I’m trying to collect more information on these very intermittent system crashes…frustrating.

  2. The host system crash is still only reproducible using PMS accessing the tuner card WinTV-quadHD PCI.

  3. The problem seems more infrequent since updating to 5.4.0-62-generic (from 5.4.0-56-generic and 5.4.0-58-generic), but I can’t be sure it’s related.

  4. I installed kcrash, but as expected, the sudden system crash doesn’t allow capture of memory dump since host compter goes down instantly.

  5. Sometimes the Tuner becomes unreachable from PMS without a system crash. Restarting PMS corrects the problem. Not sure if this could be related, but note the warnings below: http_streamer_t: http write error, http_streamer_t::handle_read: read_error: Connection reset by peer (104), Error. Received SIGSEGV: Segmentation Violation.

Jan 20, 2021 16:47:36.289 [0x7fcf9e7fc700] INFO - [I] web_service_t::process_device_status
Jan 20, 2021 16:47:36.289 [0x7fcf9e7fc700] INFO - [I] device_reactor_t::get_device_list (dvb#v4l#/sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/0000:04:02.0/0000:06:00.0:14f1:8880)
Jan 20, 2021 16:47:36.289 [0x7fcf9e7fc700] INFO - [I] dvb_device_factory_t::get_device_list (dvb#v4l#/sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/0000:04:02.0/0000:06:00.0:14f1:8880)
Jan 20, 2021 16:47:36.289 [0x7fcf9e7fc700] INFO - [I] v4l::DeviceGetList_impl. getting v4l device list
Jan 20, 2021 16:47:36.292 [0x7fcf9e7fc700] INFO - [I] v4l::DeviceGetList_impl. Successfully opened frontend /dev/dvb/adapter0/frontend0
Jan 20, 2021 16:47:36.297 [0x7fcf9e7fc700] INFO - [I] v4l::DeviceGetList_impl. Successfully opened frontend /dev/dvb/adapter1/frontend0
Jan 20, 2021 16:47:36.299 [0x7fcf9e7fc700] INFO - [I] v4l::DeviceGetList_impl. Successfully opened frontend /dev/dvb/adapter2/frontend0
Jan 20, 2021 16:47:36.304 [0x7fcf9e7fc700] INFO - [I] v4l::DeviceGetList_impl. Successfully opened frontend /dev/dvb/adapter3/frontend0
Jan 20, 2021 16:47:36.306 [0x7fcf9d7fa700] WARN - [E] http_streamer_t: http write error
Jan 20, 2021 16:47:36.306 [0x7fcf99ff3700] INFO - [I] http_streamer_t::send_thread_func: removing http client
Jan 20, 2021 16:47:36.306 [0x7fcf99ff3700] INFO - [I] http_streamer_t::send_thread_func: all clients are deleted. Setting exit flag
Jan 20, 2021 16:47:36.308 [0x7fcf9b7f6700] INFO - [I] streamer_container_t::control_thread. Removed disconnected streamer 85d0f972-e8c3-472e-9b83-ca338dcdb522
Jan 20, 2021 16:47:36.308 [0x7fcf9b7f6700] INFO - [I] streamer_container_t::delete_streamer. Last streamer was deleted. Stop program streamer
Jan 20, 2021 16:47:36.309 [0x7fcf9e7fc700] INFO - [I] dvb_device_factory_t::get_device_list. Id dvb#v4l#0#/sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/0000:04:02.0/0000:06:00.0:0, Name LG Electronics LGDT3306A VSB/QAM Frontend, Standards 24
Jan 20, 2021 16:47:36.309 [0x7fcf9e7fc700] INFO - [I] dvb_device_factory_t::get_device_list. Id dvb#v4l#0#/sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/0000:04:02.0/0000:06:00.0:1, Name LG Electronics LGDT3306A VSB/QAM Frontend, Standards 24
Jan 20, 2021 16:47:36.313 [0x7fcf9b7f6700] INFO - [I] dvb_program_streamer_t::stop. Stoping program streamer for channel triplet://0:955:3
Jan 20, 2021 16:47:36.313 [0x7fcf9b7f6700] INFO - [I] transponder_streamer::stop_channel. Stop request for channel triplet://0:955:3
Jan 20, 2021 16:47:36.324 [0x7fcf997f2700] INFO - [I] CTVSStreamSource::RemoveAllPids. Removing PIDs for client triplet://0:955:3
Jan 20, 2021 16:47:36.325 [0x7fcf9b7f6700] INFO - [I] transponder_streamer::start_idle_timer
Jan 20, 2021 16:47:36.326 [0x7fcf9e7fc700] INFO - [I] device_manager_t::get_device_list. Device LG Electronics LGDT3306A VSB/QAM Frontend, id dvb#v4l#0#/sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/0000:04:02.0/0000:06:00.0:0, tuners 1, state 1, standards 24
Jan 20, 2021 16:47:36.326 [0x7fcf9e7fc700] INFO - [I] device_manager_t::get_device_list. Device LG Electronics LGDT3306A VSB/QAM Frontend, id dvb#v4l#0#/sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/0000:04:02.0/0000:06:00.0:1, tuners 1, state 0, standards 24
Jan 20, 2021 16:47:36.330 [0x7fcf9aff5700] INFO - [I] tuner 2, demux 0. Deleting PID 0
Jan 20, 2021 16:47:36.341 [0x7fcf9aff5700] INFO - [I] tuner 2, demux 0. Deleting PID 1
Jan 20, 2021 16:47:36.346 [0x7fcf9bff7700] WARN - [E] http_streamer_t::handle_read: read_error: Connection reset by peer (104)
Jan 20, 2021 16:47:36.346 [0x7fcf9bff7700] WARN - [E] Error. Received SIGSEGV: Segmentation Violation.
Jan 20, 2021 16:47:36.350 [0x7fcf9aff5700] INFO - [I] tuner 2, demux 0. Deleting PID 16
Jan 20, 2021 16:47:36.350 [0x7fcf9aff5700] INFO - [I] tuner 2, demux 0. Deleting PID 17
Jan 20, 2021 16:47:36.360 [0x7fcf9aff5700] INFO - [I] tuner 2, demux 0. Deleting PID 18

Those records you point out (I wish they are DEBUG logging and not INFO / ERROR only,

Shows the device / device driver is hanging and then getting a SEGV trying to put data / reply in the Plex address space (normal system call return).

Are you opening 4 tuners ?

How would I do DEBUG logging? There is a verbose option I can turn on again if that helps.

I have two pairs of turners assigned in PMS, but generally, we are only accessing one or two tuners at a time, i.e. one live stream and maybe one dvr recording simultaneously.

Perhaps you mean the tuner driver in DEBUG mode. I think it’s time to contact the Hauppauge Linux guy.

I was referring to Plex’s Settings - Server - General - Show Advanced

That DEBUG - ON.
and
That VERBOSE - OFF.

That’s the default, and best, level of info for us unless we’re deep into packet inspection.

I do concur with you. It’s time to call the driver / kernel guy.

Okay, it was on then. Enable Plex Media Server debug logging = ON

Sorry, that was the tuner log. The server log doesn’t record that SIGSEGV error the best I can tell, but this is what happened around it according to timestamp:

Jan 20, 2021 16:47:36.342 [0x7f3eec7f8700] DEBUG - [Now] User is oidarnam (ID: 1)
Jan 20, 2021 16:47:36.342 [0x7f3eec7f8700] DEBUG - [Now] Device is Chrome (Chrome).
Jan 20, 2021 16:47:36.342 [0x7f3eec7f8700] DEBUG - [Now] Profile is Web
Jan 20, 2021 16:47:36.342 [0x7f3eec7f8700] DEBUG - [Now] Updated play state for /livetv/sessions/bf59a1ef-2ff1-4704-932a-717e70198225.
Jan 20, 2021 16:47:36.342 [0x7f3eec7f8700] DEBUG - Statistics: (i390cuylxenagcdeg1ukcsxv) Reporting active playback in state 3 of type 4 (scrobble: 0) for account 1
Jan 20, 2021 16:47:36.344 [0x7f3eec7f8700] DEBUG - Streaming Resource: Terminating session 0x7f3f78146b60:iw0b6a2zkbhskue5o867t9zq which is using transcoder slot.  Used slots is now 0
Jan 20, 2021 16:47:36.344 [0x7f3f76ffd700] DEBUG - Killing job.
Jan 20, 2021 16:47:36.344 [0x7f3f76ffd700] DEBUG - Signalling job ID 30411 with 9
Jan 20, 2021 16:47:36.344 [0x7f3f76ffd700] DEBUG - Job was already killed, not killing again.
Jan 20, 2021 16:47:36.344 [0x7f3f76ffd700] DEBUG - Stopping transcode session dpm8zwgljm7j62ndl5pr5s0l
Jan 20, 2021 16:47:36.345 [0x7f3eec7f8700] DEBUG - Streaming Resource: Terminated session 0x7f3f78146b60:iw0b6a2zkbhskue5o867t9zq with reason Client stopped playback.
Jan 20, 2021 16:47:36.345 [0x7f3eec7f8700] DEBUG - Streaming Resource: Removing session 0x7f3f78146b60:iw0b6a2zkbhskue5o867t9zq
Jan 20, 2021 16:47:36.351 [0x7f3f37fff700] DEBUG - Cleaning directory for session dpm8zwgljm7j62ndl5pr5s0l (/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/Transcode/Sessions/plex-transcode-dpm8zwgljm7j62ndl5pr5s0l-70881a5d-8c44-40f6-8593-d9448704acac)
Jan 20, 2021 16:47:36.429 [0x7f3f7e2ac700] DEBUG - Completed: [192.168.0.3:49068] 200 GET /:/timeline?ratingKey=8900&key=%2Flivetv%2Fsessions%2Fbf59a1ef-2ff1-4704-932a-717e70198225&playbackTime=1038977&state=stopped&hasMDE=1&airingID=675&time=29463000&duration=29463000 (9 live) TLS GZIP 117ms 914 bytes (pipelined: 2)

there isn’t really any point shredding this apart any further.

This needs work done outside what we can do from here.

This turned out to be a faulty PSU. Swapped out the new (12-14 months old) Seasonic S12III 500w. PSU with the old HP OEM 300w PSU and problem solved.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.