Backend server segfaults when accessing DVBCard [Solved]

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

Post Reply
jalla
Newcomer
Posts: 9
Joined: Mon Jan 26, 2015 9:49 pm
Norway

Backend server segfaults when accessing DVBCard [Solved]

Post by jalla »

I have a system with mythtv-v30.0-76a78d844cf on Ubuntu-18.04.

For a long time I ran this server with 4 physical tuners. Then some time ago
I deleted all but 1 adapter from the mythtv config and have been using a
single tuner for a few months. Yesterday I decided to add back the other
tuners, starting with one first. After fiddling a bit with mythtv-setup, I
eventually got the configuration right as far as I can tell. However at some
point in this process the backend server started to crash with a segfault.
If I start the backend it seems to run normally until either
  • I start a frontend and try to watch live tv
  • The server tunes the dvbcard to a frequency to initiate a eit scan
In both cases the backend goes down with a segfault immediatly.

After a while I decided to roll back to a previous version of mythconverg
from before any mythtv config changes, only to find that the backend still
crashes in exactly the same way(!)

I Have not done any other changes to the system as far as I know.

Hopefully someone has some ideas on how to solve this as I'm hardly competent
to debug this on my own.

I've included the last few loglines below, the complete log is at https://pastebin.com/unZQ1wru
(I don't know what logging might be useful so i've run mythbackend with '-v most')

thanks,
-tom

Code: Select all

2020-09-14 19:44:02.904324 I [22704/22719] Expire autoexpire.cpp:372 (ExpireLiveTV) - AutoExpire: ExpireLiveTV(10000)
2020-09-14 19:44:02.904339 I [22704/22719] Expire autoexpire.cpp:981 (FillDBOrdered) - AutoExpire: FillDBOrdered: Adding Short LiveTV programs in starttime order
2020-09-14 19:44:02.906021 I [22704/22719] Expire autoexpire.cpp:627 (SendDeleteMessages) - AutoExpire: SendDeleteMessages. Nothing to expire.
2020-09-14 19:44:03.044573 I [22704/22715] TVRecEvent cardutil.cpp:1561 (GetConflictingInputs) - CardUtil: GetConflictingInputs() input 20
2020-09-14 19:44:03.046074 I [22704/22715] TVRecEvent cardutil.cpp:1592 (GetConflictingInputs) - CardUtil: GetConflictingInputs() got input 21
2020-09-14 19:44:03.048115 I [22704/22715] TVRecEvent eitscanner.cpp:278 (StartActiveScan) - EITScanner (20): StartActiveScan called with 18 multiplexes
2020-09-14 19:44:03.048140 I [22704/22715] TVRecEvent tv_rec.cpp:4444 (SetFlags) - TVRec[20]: SetFlags(EITScannerRunning,) -> RunMainLoop,EITScannerRunning, @ tv_rec.cpp:1483
2020-09-14 19:44:03.090002 I [22704/22716] EIT tv_rec.cpp:3160 (QueueEITChannelChange) - TVRec[20]: QueueEITChannelChange(7) -- begin
2020-09-14 19:44:03.090034 I [22704/22716] EIT tv_rec.cpp:3178 (QueueEITChannelChange) - TVRec[20]: QueueEITChannelChange(7) -- end --> 1
2020-09-14 19:44:03.094917 I [22704/22716] EIT eitscanner.cpp:147 (run) - EITScanner (20): Now looking for EIT data on multiplex of channel 7
2020-09-14 19:44:03.094994 I [22704/22716] EIT eitcache.cpp:432 (PruneOldEntries) - EITCache: Pruning all entries that ended before UTC 2020-09-13T17:49:03Z
2020-09-14 19:44:03.095002 I [22704/22716] EIT eitcache.cpp:108 (delete_in_db) - EITCache: Deleting old cache entries from the database
2020-09-14 19:44:04.048392 I [22704/22715] TVRecEvent tv_rec.cpp:3521 (HandleTuning) - TVRec[20]: HandleTuning Request: Program(NULL) channel(7) input() flags(EITScan,)
2020-09-14 19:44:04.048421 I [22704/22715] TVRecEvent tv_rec.cpp:3590 (TuningShutdowns) - TVRec[20]: TuningShutdowns(Program(NULL) channel(7) input() flags(EITScan,))
2020-09-14 19:44:04.048447 I [22704/22715] TVRecEvent tv_rec.cpp:4453 (ClearFlags) - TVRec[20]: ClearFlags(PENDINGACTIONS,) -> RunMainLoop,EITScannerRunning, @ tv_rec.cpp:3658
2020-09-14 19:44:04.048459 I [22704/22715] TVRecEvent tv_rec.cpp:3543 (HandleTuning) - TVRec[20]: No recorder yet, calling TuningFrequency
2020-09-14 19:44:04.048466 I [22704/22715] TVRecEvent tv_rec.cpp:3680 (TuningFrequency) - TVRec[20]: TuningFrequency
2020-09-14 19:44:04.048482 I [22704/22715] TVRecEvent recorders/dvbchannel.cpp:187 (Open) - DVBChan[20](/dev/dvb/adapter4/frontend0): Opening DVB channel
2020-09-14 19:44:04.048493 I [22704/22715] TVRecEvent recorders/dtvchannel.cpp:170 (SetChannelByString) - DTVChan[20](/dev/dvb/adapter4/frontend0): SetChannelByString(7): 
2020-09-14 19:44:04.048502 I [22704/22715] TVRecEvent cardutil.cpp:1561 (GetConflictingInputs) - CardUtil: GetConflictingInputs() input 20
2020-09-14 19:44:04.050166 I [22704/22715] TVRecEvent cardutil.cpp:1592 (GetConflictingInputs) - CardUtil: GetConflictingInputs() got input 21
2020-09-14 19:44:04.050242 I [22704/22715] TVRecEvent recorders/channelbase.cpp:258 (IsInputAvailable) - ChannelBase[20]: Input is free on 0/0
2020-09-14 19:44:04.056027 I [22704/22715] TVRecEvent recorders/dvbchannel.cpp:449 (CheckOptions) - DVBChan[20](/dev/dvb/adapter4/frontend0): 322000000 qam_256 a auto auto a a auto a v fec: none msys: UNDEFINED rolloff: 0.35
2020-09-14 19:44:04.057578 I [22704/22715] TVRecEvent recorders/dvbchannel.cpp:745 (Tune) - DVBChan[20](/dev/dvb/adapter4/frontend0): 
Old Params: 362000000 qam_256 a auto auto a a auto a v fec: none msys: UNDEFINED rolloff: 0.35
New Params: 322000000 qam_256 a auto auto a a auto a v fec: none msys: UNDEFINED rolloff: 0.35
2020-09-14 19:44:04.057593 I [22704/22715] TVRecEvent recorders/dvbchannel.cpp:757 (Tune) - DVBChan[20](/dev/dvb/adapter4/frontend0): Tune(): Tuning to 322000000Hz
2020-09-14 19:44:04.157658 I [22704/22715] TVRecEvent recorders/dvbchannel.cpp:1527 (wait_for_backend) - DVBChan: wait_for_backend: Status: Signal,Carrier,FEC Stable,Sync,Lock,
2020-09-14 19:44:04.157676 I [22704/22715] TVRecEvent recorders/dvbchannel.cpp:899 (Tune) - DVBChan[20](/dev/dvb/adapter4/frontend0): Tune(): Frequency tuning successful.
2020-09-14 19:44:04.157683 I [22704/22715] TVRecEvent recorders/dtvchannel.cpp:318 (SetChannelByString) - DTVChan[20](/dev/dvb/adapter4/frontend0): SetChannelByString(7): success
2020-09-14 19:44:04.157707 I [22704/22715] TVRecEvent tv_rec.cpp:3817 (TuningFrequency) - TVRec[20]: Starting Signal Monitor
2020-09-14 19:44:04.157720 I [22704/22715] TVRecEvent tv_rec.cpp:2068 (SetupSignalMonitor) - TVRec[20]: SetupSignalMonitor(1, 0)
2020-09-14 19:44:04.157769 I [22704/22715] TVRecEvent recorders/dvbchannel.cpp:187 (Open) - DVBChan[20](/dev/dvb/adapter4/frontend0): Opening DVB channel
2020-09-14 19:44:04.189115 C [22704/22704] CoreContext signalhandling.cpp:305 (handleSignal) - Received Segmentation fault: Code 1, PID 1855523104, UID -26689, Value 0x7f61b521b19
Last edited by jalla on Tue Sep 15, 2020 5:55 pm, edited 1 time in total.
User avatar
kmdewaal
Developer
Posts: 645
Joined: Wed Dec 07, 2016 8:01 pm
Netherlands

Re: Backend server segfaults when accessing DVBCard

Post by kmdewaal »

I cannot see anything obviously wrong in the log.
Your tuner card can do both DVB-C and DVB-T and that is only supported properly in mythtv-v31. However, the DVB-C is the first of the two supported modulation systems and in a mythtv-v30 system that is used. I assume that is what you want.
You could try the following:
- run mythtv-setup
- create a new Video Source
- make an Input Connection from your capture card to the new Video Source
- do a "Full Scan (tuned)"
When the scan is OK then mythbackend should also run OK.
Documentation on how to do this is in the Wiki in https://www.mythtv.org/wiki/Channel_Scanning ; this is for v31 but v30 is roughly the same but there are less options.
Upgrading to v31 is also a good idea.
jalla
Newcomer
Posts: 9
Joined: Mon Jan 26, 2015 9:49 pm
Norway

Re: Backend server segfaults when accessing DVBCard

Post by jalla »

Thanks for looking into this. Your advice didn't bring me any further though.

Before going into that, let me give a couple of general comments
The DVBCard in question has been used without problems in mythtv for at least 6 years (at least since v.27)
Upgrading to v31 isn't an option as my main workstation -and mythtv-frontend- is running FreeBSD where .30 is the latest supported version.

Following your steps in creating a new source etc eventually leads to a segfault in mythtv-setup when I try so start a scan.

Log of mythtv-setup looks like this

Code: Select all

2020-09-14 23:46:10.376522 I  signalhandling.cpp:194:SetHandlerPrivate  Setup Interrupt handler
2020-09-14 23:46:10.376566 I  signalhandling.cpp:194:SetHandlerPrivate  Setup Terminated handler
2020-09-14 23:46:10.376585 I  signalhandling.cpp:194:SetHandlerPrivate  Setup Segmentation fault handler
2020-09-14 23:46:10.376598 I  signalhandling.cpp:194:SetHandlerPrivate  Setup Aborted handler
2020-09-14 23:46:10.376609 I  signalhandling.cpp:194:SetHandlerPrivate  Setup Bus error handler
2020-09-14 23:46:10.376622 I  signalhandling.cpp:194:SetHandlerPrivate  Setup Floating point exception handler
2020-09-14 23:46:10.376638 I  signalhandling.cpp:194:SetHandlerPrivate  Setup Illegal instruction handler
2020-09-14 23:46:10.376653 I  signalhandling.cpp:194:SetHandlerPrivate  Setup Real-time signal 0 handler
2020-09-14 23:46:10.376669 I  signalhandling.cpp:194:SetHandlerPrivate  Setup Hangup handler
2020-09-14 23:46:10.376819 C  mythcommandlineparser.cpp:2607:ConfigureLogging  mythtv-setup version: tag: v30.0 [v30.0-76a78d844cf] www.mythtv.org
2020-09-14 23:46:10.376838 C  mythcommandlineparser.cpp:2609:ConfigureLogging  Qt version: compile: 5.9.5, runtime: 5.9.5
2020-09-14 23:46:10.376855 N  mythcommandlineparser.cpp:2611:ConfigureLogging  Enabled verbose msgs:  general
2020-09-14 23:46:10.376879 N  logging.cpp:702:logStart  Setting Log Level to LOG_INFO
2020-09-14 23:46:10.388049 I  logging.cpp:296:run  Added logging to the console
2020-09-14 23:46:10.539941 N  mythdirs.cpp:203:InitializeMythDirs  Using runtime prefix = /usr/local
2020-09-14 23:46:10.539951 N  mythdirs.cpp:205:InitializeMythDirs  Using configuration directory = /home/tl/.mythtv
2020-09-14 23:46:10.540073 I  mythcorecontext.cpp:272:Init  Assumed character encoding: en_US.UTF-8
2020-09-14 23:46:10.540730 I  mythtranslation.cpp:64:load  Loading en_us translation for module mythfrontend
2020-09-14 23:46:10.541155 I  mythcontext.cpp:641:LoadDatabaseSettings  Empty LocalHostName. This is typical.
2020-09-14 23:46:10.541174 I  mythcontext.cpp:650:LoadDatabaseSettings  Using a profile name of: 'teapot' (Usually the same as this host's name.)
2020-09-14 23:46:10.541304 I  mythcontext.cpp:900:TestDBconnection  Start up testing connections. DB gnome, BE , attempt 0, status dbAwake, Delay: 2000
2020-09-14 23:46:11.542348 I  mythcontext.cpp:900:TestDBconnection  Start up testing connections. DB gnome, BE , attempt 1, status dbAwake, Delay: 2000
2020-09-14 23:46:12.554578 N  mythcorecontext.cpp:1780:InitLocale  Setting QT default locale to en_NO
2020-09-14 23:46:12.554588 I  mythcorecontext.cpp:1813:SaveLocaleDefaults  Current locale en_NO
2020-09-14 23:46:12.554610 E  mythlocale.cpp:110:LoadDefaultsFromXML  No locale defaults file for en_NO, skipping
2020-09-14 23:46:12.558210 I  mythsystemunix.cpp:276:run  Starting process manager
2020-09-14 23:46:12.558889 I  mythsystemunix.cpp:92:run  Starting IO manager (read)
2020-09-14 23:46:12.558905 I  mythsystemunix.cpp:509:run  Starting process signal handler
2020-09-14 23:46:12.558947 I  mythsystemunix.cpp:92:run  Starting IO manager (write)
2020-09-14 23:46:13.117238 I  screensaver-x11.cpp:82:ScreenSaverX11Private  ScreenSaverX11Private: DPMS is disabled.
2020-09-14 23:46:13.255990 I  mythtranslation.cpp:64:load  Loading en_us translation for module mythfrontend
2020-09-14 23:46:13.257977 E  lirc.cpp:207:Init  LIRC: Failed to connect to Unix socket '/var/run/lirc/lircd'
eno: No such file or directory (2)
2020-09-14 23:46:13.258030 I  jsmenu.cpp:153:ReadConfig  No joystick configuration found, not enabling joystick control
2020-09-14 23:46:13.258039 I  mythudplistener.cpp:32:Enable  UDPListener: Enabling
2020-09-14 23:46:13.265453 I  serverpool.cpp:539:bind  Binding to UDP 0.0.0.0:6948
2020-09-14 23:46:13.268616 I  serverpool.cpp:539:bind  Binding to UDP [::]:6948
2020-09-14 23:46:13.387797 I  mythmainwindow.cpp:987:Init  Using Frameless Window
2020-09-14 23:46:13.387804 I  mythmainwindow.cpp:998:Init  Using Full Screen Window
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
2020-09-14 23:46:13.484117 I  mythmainwindow.cpp:1025:Init  UI Screen Resolution: 1920 x 1080
2020-09-14 23:46:13.499255 I  mythmainwindow.cpp:1119:Init  Using the Qt painter
2020-09-14 23:46:13.506858 I  mythuihelper.cpp:933:PruneCacheDir  MythUIHelper: Pruning cache directory: /home/tl/.mythtv/cache/remotecache
2020-09-14 23:46:13.506939 I  mythuihelper.cpp:989:PruneCacheDir  MythUIHelper: Kept 9 files, deleted 0 files, stat error on 0 files
2020-09-14 23:46:13.506946 I  mythuihelper.cpp:933:PruneCacheDir  MythUIHelper: Pruning cache directory: /home/tl/.mythtv/cache/thumbnails
2020-09-14 23:46:13.510834 I  mythuihelper.cpp:989:PruneCacheDir  MythUIHelper: Kept 843 files, deleted 0 files, stat error on 0 files
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
2020-09-14 23:46:13.968005 E  mythuitextedit.cpp:192:SetInitialStates  MythUITextEdit: active state doesn't exist
2020-09-14 23:46:14.133454 I  mythuiwebbrowser.cpp:1082:LoadUserStyleSheet  MythUIWebBrowser: Loading css from - file:///home/tl/.mythtv/themes/MythAeon/htmls/mythbrowser.css
2020-09-14 23:46:14.142325 I  mythuiwebbrowser.cpp:989:Init  MythUIWebBrowser: enabling plugins
2020-09-14 23:46:14.243331 I  mythuiwebbrowser.cpp:1082:LoadUserStyleSheet  MythUIWebBrowser: Loading css from - file:///home/tl/.mythtv/themes/MythAeon/htmls/mythbrowser.css
2020-09-14 23:46:14.244854 I  mythuiwebbrowser.cpp:989:Init  MythUIWebBrowser: enabling plugins
2020-09-14 23:46:14.266444 E  xmlparsebase.cpp:921:CopyWindowFromBase  XMLParseBase: Unable to load window 'backgroundwindow' from base
2020-09-14 23:46:14.282861 I  schemawizard.cpp:120:Compare  Current MythTV Schema Version (DBSchemaVer): 1350
2020-09-14 23:46:21.375443 I  videosource.cpp:273:Load  XMLTVGrabber::Load: Running 'tv_find_grabbers baseline'.
2020-09-14 23:46:21.885241 E  videosource.cpp:294:Load  XMLTVGrabber::Load: Failed to run tv_find_grabbers
2020-09-14 23:46:21.902579 I  videosource.cpp:273:Load  XMLTVGrabber::Load: Running 'tv_find_grabbers baseline'.
2020-09-14 23:46:22.436101 E  videosource.cpp:294:Load  XMLTVGrabber::Load: Failed to run tv_find_grabbers
2020-09-14 23:46:27.942515 W  diseqc.cpp:391:Load  DiSEqCDevTree: No device tree for cardid 20
Handling Segmentation fault
User avatar
kmdewaal
Developer
Posts: 645
Joined: Wed Dec 07, 2016 8:01 pm
Netherlands

Re: Backend server segfaults when accessing DVBCard

Post by kmdewaal »

Last thing to try, with mythtv-setup, is:
- delete all capture cards
- create a new capture card
- connect the capture card to the video source
- do a channel scan
If it fails then a complete log could be useful.
Please use the following logging options: "-v channel,chanscan,record,siparser --loglevel=debug"
jalla
Newcomer
Posts: 9
Joined: Mon Jan 26, 2015 9:49 pm
Norway

Re: Backend server segfaults when accessing DVBCard

Post by jalla »

Tried to delete and recreate the card but I get the same result as before.

I wasn't sure if you meant to run mythtv-setup or the backend with the given logging option so I did both. Below is output from setup, a full log from mythbackend is at https://pastebin.com/AEvG4zMX

Code: Select all

teapot% mythtv-setup -v channel,chanscan,record,siparser --loglevel=debug                                                                                          ~
2020-09-15 11:57:32.096711 I  signalhandling.cpp:194:SetHandlerPrivate  Setup Interrupt handler
2020-09-15 11:57:32.096755 I  signalhandling.cpp:194:SetHandlerPrivate  Setup Terminated handler
2020-09-15 11:57:32.096775 I  signalhandling.cpp:194:SetHandlerPrivate  Setup Segmentation fault handler
2020-09-15 11:57:32.096787 I  signalhandling.cpp:194:SetHandlerPrivate  Setup Aborted handler
2020-09-15 11:57:32.096798 I  signalhandling.cpp:194:SetHandlerPrivate  Setup Bus error handler
2020-09-15 11:57:32.096810 I  signalhandling.cpp:194:SetHandlerPrivate  Setup Floating point exception handler
2020-09-15 11:57:32.096826 I  signalhandling.cpp:194:SetHandlerPrivate  Setup Illegal instruction handler
2020-09-15 11:57:32.096841 I  signalhandling.cpp:194:SetHandlerPrivate  Setup Real-time signal 0 handler
2020-09-15 11:57:32.096857 I  signalhandling.cpp:194:SetHandlerPrivate  Setup Hangup handler
2020-09-15 11:57:32.097068 C  mythcommandlineparser.cpp:2607:ConfigureLogging  mythtv-setup version: tag: v30.0 [v30.0-76a78d844cf] www.mythtv.org
2020-09-15 11:57:32.097078 C  mythcommandlineparser.cpp:2609:ConfigureLogging  Qt version: compile: 5.9.5, runtime: 5.9.5
2020-09-15 11:57:32.097098 N  mythcommandlineparser.cpp:2611:ConfigureLogging  Enabled verbose msgs:  general channel chanscan record siparser
2020-09-15 11:57:32.097121 N  logging.cpp:702:logStart  Setting Log Level to LOG_DEBUG
2020-09-15 11:57:32.108090 I  logging.cpp:296:run  Added logging to the console
2020-09-15 11:57:32.108530 D  mmulticastsocketdevice.cpp:113:writeBlock  MMulticastSocketDevice(:9): setsockopt - IP_MULTICAST_IF 
			eno: Cannot assign requested address (99)
2020-09-15 11:57:32.110438 D  portchecker.cpp:81:checkPort  PortChecker::checkPort(): host 172.16.0.16 port 8895 timeLimit 5000 linkLocalOnly 0
2020-09-15 11:57:32.252954 D  mmulticastsocketdevice.cpp:113:writeBlock  MMulticastSocketDevice(:9): setsockopt - IP_MULTICAST_IF 
			eno: Cannot assign requested address (99)
2020-09-15 11:57:32.260179 N  mythdirs.cpp:203:InitializeMythDirs  Using runtime prefix = /usr/local
2020-09-15 11:57:32.260188 N  mythdirs.cpp:205:InitializeMythDirs  Using configuration directory = /home/tl/.mythtv
2020-09-15 11:57:32.260193 D  mythdirs.cpp:207:InitializeMythDirs  appbindir         = /usr/local/bin/
2020-09-15 11:57:32.260197 D  mythdirs.cpp:208:InitializeMythDirs  sharedir          = /usr/local/share/mythtv/
2020-09-15 11:57:32.260201 D  mythdirs.cpp:209:InitializeMythDirs  libdir            = /usr/local/lib/mythtv/
2020-09-15 11:57:32.260205 D  mythdirs.cpp:210:InitializeMythDirs  themedir          = /usr/local/share/mythtv/themes/
2020-09-15 11:57:32.260209 D  mythdirs.cpp:211:InitializeMythDirs  pluginsdir        = /usr/local/lib/mythtv/plugins/
2020-09-15 11:57:32.260213 D  mythdirs.cpp:212:InitializeMythDirs  translationsdir   = /usr/local/share/mythtv/i18n/
2020-09-15 11:57:32.260218 D  mythdirs.cpp:213:InitializeMythDirs  filtersdir        = /usr/local/lib/mythtv/filters/
2020-09-15 11:57:32.260222 D  mythdirs.cpp:214:InitializeMythDirs  cachedir          = /home/tl/.mythtv/cache
2020-09-15 11:57:32.260227 D  mythdirs.cpp:215:InitializeMythDirs  remotecachedir    = /home/tl/.mythtv/cache/remotecache
2020-09-15 11:57:32.260243 D  mythdirs.cpp:216:InitializeMythDirs  themebasecachedir = /home/tl/.mythtv/cache/themecache
2020-09-15 11:57:32.260251 D  mythdirs.cpp:217:InitializeMythDirs  thumbnaildir      = /home/tl/.mythtv/cache/thumbnails
2020-09-15 11:57:32.260381 I  mythcorecontext.cpp:272:Init  Assumed character encoding: en_US.UTF-8
2020-09-15 11:57:32.261049 I  mythtranslation.cpp:64:load  Loading en_us translation for module mythfrontend
2020-09-15 11:57:32.261466 I  mythcontext.cpp:641:LoadDatabaseSettings  Empty LocalHostName. This is typical.
2020-09-15 11:57:32.261479 I  mythcontext.cpp:650:LoadDatabaseSettings  Using a profile name of: 'teapot' (Usually the same as this host's name.)
2020-09-15 11:57:32.261617 I  mythcontext.cpp:900:TestDBconnection  Start up testing connections. DB gnome, BE , attempt 0, status dbAwake, Delay: 2000
2020-09-15 11:57:32.261638 D  portchecker.cpp:81:checkPort  PortChecker::checkPort(): host gnome port 3306 timeLimit 1000 linkLocalOnly 0
2020-09-15 11:57:32.611730 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 2
2020-09-15 11:57:32.762270 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 1
2020-09-15 11:57:33.112042 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 3
2020-09-15 11:57:33.112986 D  portchecker.cpp:81:checkPort  PortChecker::checkPort(): host 172.16.0.1 port 1990 timeLimit 5000 linkLocalOnly 0
2020-09-15 11:57:33.262599 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 2
2020-09-15 11:57:33.262758 I  mythcontext.cpp:900:TestDBconnection  Start up testing connections. DB gnome, BE , attempt 1, status dbAwake, Delay: 2000
2020-09-15 11:57:33.262775 D  portchecker.cpp:81:checkPort  PortChecker::checkPort(): host gnome port 3306 timeLimit 5000 linkLocalOnly 0
2020-09-15 11:57:33.613521 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 2
2020-09-15 11:57:33.763293 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 2
2020-09-15 11:57:34.113879 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 0
2020-09-15 11:57:34.263589 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 3
2020-09-15 11:57:34.270056 D  portchecker.cpp:81:checkPort  PortChecker::checkPort(): host gnome port 3306 timeLimit 30000 linkLocalOnly 1
2020-09-15 11:57:34.275017 D  mythcontext.cpp:525:FindDatabase  FindDatabase() - Success!
2020-09-15 11:57:34.275058 N  mythcorecontext.cpp:1780:InitLocale  Setting QT default locale to en_NO
2020-09-15 11:57:34.275063 I  mythcorecontext.cpp:1813:SaveLocaleDefaults  Current locale en_NO
2020-09-15 11:57:34.275088 E  mythlocale.cpp:110:LoadDefaultsFromXML  No locale defaults file for en_NO, skipping
2020-09-15 11:57:34.276746 D  screensaver-dbus.cpp:59:ScreenSaverDBusPrivate  ScreenSaverDBus: Could not connect to dbus: The name org.freedesktop.ScreenSaver was not provided by any .service files
2020-09-15 11:57:34.277230 D  screensaver-dbus.cpp:59:ScreenSaverDBusPrivate  ScreenSaverDBus: Could not connect to dbus: The name org.freedesktop.PowerManagement.Inhibit was not provided by any .service files
2020-09-15 11:57:34.277684 D  screensaver-dbus.cpp:59:ScreenSaverDBusPrivate  ScreenSaverDBus: Could not connect to dbus: The name org.mate.SessionManager was not provided by any .service files
2020-09-15 11:57:34.278139 D  screensaver-dbus.cpp:59:ScreenSaverDBusPrivate  ScreenSaverDBus: Could not connect to dbus: The name org.gnome.SessionManager was not provided by any .service files
2020-09-15 11:57:34.278292 I  mythsystemunix.cpp:509:run  Starting process signal handler
2020-09-15 11:57:34.279030 I  mythsystemunix.cpp:92:run  Starting IO manager (read)
2020-09-15 11:57:34.279049 I  mythsystemunix.cpp:92:run  Starting IO manager (write)
2020-09-15 11:57:34.279090 I  mythsystemunix.cpp:276:run  Starting process manager
2020-09-15 11:57:34.614149 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 2
2020-09-15 11:57:34.836831 I  screensaver-x11.cpp:82:ScreenSaverX11Private  ScreenSaverX11Private: DPMS is disabled.
2020-09-15 11:57:34.837294 D  portchecker.cpp:81:checkPort  PortChecker::checkPort(): host gnome port 3306 timeLimit 30000 linkLocalOnly 1
2020-09-15 11:57:34.954159 I  mythtranslation.cpp:64:load  Loading en_us translation for module mythfrontend
2020-09-15 11:57:34.955917 E  lirc.cpp:207:Init  LIRC: Failed to connect to Unix socket '/var/run/lirc/lircd'
			eno: No such file or directory (2)
2020-09-15 11:57:34.955973 I  jsmenu.cpp:153:ReadConfig  No joystick configuration found, not enabling joystick control
2020-09-15 11:57:34.955981 I  mythudplistener.cpp:32:Enable  UDPListener: Enabling
2020-09-15 11:57:34.963401 I  serverpool.cpp:539:bind  Binding to UDP 0.0.0.0:6948
2020-09-15 11:57:34.966601 I  serverpool.cpp:539:bind  Binding to UDP [::]:6948
2020-09-15 11:57:35.084855 I  mythmainwindow.cpp:987:Init  Using Frameless Window
2020-09-15 11:57:35.084862 I  mythmainwindow.cpp:998:Init  Using Full Screen Window
2020-09-15 11:57:35.114379 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 0
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
2020-09-15 11:57:35.181690 I  mythmainwindow.cpp:1025:Init  UI Screen Resolution: 1920 x 1080
2020-09-15 11:57:35.221873 I  mythmainwindow.cpp:1119:Init  Using the Qt painter
2020-09-15 11:57:35.229994 I  mythuihelper.cpp:933:PruneCacheDir  MythUIHelper: Pruning cache directory: /home/tl/.mythtv/cache/remotecache
2020-09-15 11:57:35.230222 I  mythuihelper.cpp:989:PruneCacheDir  MythUIHelper: Kept 9 files, deleted 0 files, stat error on 0 files
2020-09-15 11:57:35.230244 I  mythuihelper.cpp:933:PruneCacheDir  MythUIHelper: Pruning cache directory: /home/tl/.mythtv/cache/thumbnails
2020-09-15 11:57:35.240749 I  mythuihelper.cpp:989:PruneCacheDir  MythUIHelper: Kept 844 files, deleted 0 files, stat error on 0 files
2020-09-15 11:57:35.614683 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 2
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
2020-09-15 11:57:35.707519 E  mythuitextedit.cpp:192:SetInitialStates  MythUITextEdit: active state doesn't exist
2020-09-15 11:57:35.774786 D  mythuiwebbrowser.cpp:110:GetNetworkAccessManager  Copying DLManager's Cookie Jar
2020-09-15 11:57:35.835639 D  mythdownloadmanager.cpp:1786:load  MythCookieJar: loading cookies from: /home/tl/.mythtv/MythBrowser/cookiejar.txt
2020-09-15 11:57:35.877418 I  mythuiwebbrowser.cpp:1082:LoadUserStyleSheet  MythUIWebBrowser: Loading css from - file:///home/tl/.mythtv/themes/MythAeon/htmls/mythbrowser.css
2020-09-15 11:57:35.885143 I  mythuiwebbrowser.cpp:989:Init  MythUIWebBrowser: enabling plugins
2020-09-15 11:57:35.964300 I  mythuiwebbrowser.cpp:1082:LoadUserStyleSheet  MythUIWebBrowser: Loading css from - file:///home/tl/.mythtv/themes/MythAeon/htmls/mythbrowser.css
2020-09-15 11:57:35.965990 I  mythuiwebbrowser.cpp:989:Init  MythUIWebBrowser: enabling plugins
2020-09-15 11:57:35.987531 E  xmlparsebase.cpp:921:CopyWindowFromBase  XMLParseBase: Unable to load window 'backgroundwindow' from base
2020-09-15 11:57:35.995776 I  schemawizard.cpp:120:Compare  Current MythTV Schema Version (DBSchemaVer): 1350
2020-09-15 11:57:36.003509 D  portchecker.cpp:81:checkPort  PortChecker::checkPort(): host gnome port 3306 timeLimit 30000 linkLocalOnly 1
2020-09-15 11:57:36.003559 D  portchecker.cpp:81:checkPort  PortChecker::checkPort(): host gnome port 3306 timeLimit 30000 linkLocalOnly 1
2020-09-15 11:57:36.114862 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 0
2020-09-15 11:57:36.615071 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 2
2020-09-15 11:57:37.115232 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 0
2020-09-15 11:57:37.615483 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 2
2020-09-15 11:57:38.115732 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 0
2020-09-15 11:57:38.115987 D  portchecker.cpp:81:checkPort  PortChecker::checkPort(): host 172.16.0.1 port 1990 timeLimit 5000 linkLocalOnly 0
2020-09-15 11:57:38.616546 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 2
2020-09-15 11:57:39.116873 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 0
2020-09-15 11:57:39.617190 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 2
2020-09-15 11:57:40.117540 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 0
2020-09-15 11:57:40.617878 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 2
2020-09-15 11:57:41.118225 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 0
2020-09-15 11:57:41.618552 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 2
2020-09-15 11:57:42.118801 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 0
2020-09-15 11:57:42.618969 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 2
2020-09-15 11:57:43.119149 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 0
2020-09-15 11:57:43.119230 D  portchecker.cpp:81:checkPort  PortChecker::checkPort(): host 172.16.0.1 port 1990 timeLimit 5000 linkLocalOnly 0
2020-09-15 11:57:43.619559 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 2
2020-09-15 11:57:44.119906 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 0
2020-09-15 11:57:44.620252 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 2
2020-09-15 11:57:45.120600 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 0
2020-09-15 11:57:45.620943 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 2
2020-09-15 11:57:46.121284 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 0
2020-09-15 11:57:46.621623 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 2
2020-09-15 11:57:47.121976 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 0
2020-09-15 11:57:47.150426 D  standardsettings.cpp:194:haveChanged  Setting  changed to 1
2020-09-15 11:57:47.150432 D  standardsettings.cpp:194:haveChanged  Setting  changed to 0
2020-09-15 11:57:47.157088 D  portchecker.cpp:81:checkPort  PortChecker::checkPort(): host gnome port 3306 timeLimit 30000 linkLocalOnly 1
2020-09-15 11:57:47.622320 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 2
2020-09-15 11:57:48.122678 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 0
2020-09-15 11:57:48.123004 D  portchecker.cpp:81:checkPort  PortChecker::checkPort(): host 172.16.0.1 port 53274 timeLimit 5000 linkLocalOnly 0
2020-09-15 11:57:48.623570 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 2
2020-09-15 11:57:49.123852 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 3
2020-09-15 11:57:49.126866 D  portchecker.cpp:81:checkPort  PortChecker::checkPort(): host 172.16.0.51 port 8080 timeLimit 5000 linkLocalOnly 0
2020-09-15 11:57:49.627403 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 2
2020-09-15 11:57:50.127663 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 3
2020-09-15 11:57:50.129548 D  portchecker.cpp:81:checkPort  PortChecker::checkPort(): host 172.16.0.2 port 80 timeLimit 5000 linkLocalOnly 0
2020-09-15 11:57:50.422467 D  standardsettings.cpp:194:haveChanged  Setting Unencrypted Only changed to 0
2020-09-15 11:57:50.630131 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 2
2020-09-15 11:57:51.130409 D  portchecker.cpp:197:checkPort  PortChecker::checkPort(): socket state 3
2020-09-15 11:57:56.654651 I  scanwizard.cpp:70:Scan  SWiz: Scan(): type(4) cardid(1) inputname(DVBInput)
2020-09-15 11:57:56.661199 I  recorders/dvbchannel.cpp:187:Open  DVBChan[1](/dev/dvb/adapter4/frontend0): Opening DVB channel
2020-09-15 11:57:56.661801 I  recorders/dvbchannel.cpp:297:Open  DVBChan[1](/dev/dvb/adapter4/frontend0): dvb api version 5.10
2020-09-15 11:57:56.661901 D  recorders/dvbchannel.cpp:308:Open  DVBChan[1](/dev/dvb/adapter4/frontend0): num props 2
2020-09-15 11:57:56.661914 I  recorders/dvbchannel.cpp:314:Open  DVBChan[1](/dev/dvb/adapter4/frontend0): delsys 0: 1 DVBCAC
2020-09-15 11:57:56.661923 I  recorders/dvbchannel.cpp:314:Open  DVBChan[1](/dev/dvb/adapter4/frontend0): delsys 1: 3 DVB-T
2020-09-15 11:57:56.661932 I  recorders/dvbchannel.cpp:334:Open  DVBChan[1](/dev/dvb/adapter4/frontend0): Using DVB card /dev/dvb/adapter4/frontend0, with frontend 'ST STV0367 DDB DVB-C/T'.
2020-09-15 11:57:56.669421 I  recorders/channelbase.cpp:609:InitializeInput  ChannelBase[1]: Input #1: 'DVBInput' schan(1) sourceid(1)
Handling Segmentation fault
[2]    26525 segmentation fault (core dumped)  mythtv-setup -v channel,chanscan,record,siparser --loglevel=debug
teapot%                                                                                                              
jalla
Newcomer
Posts: 9
Joined: Mon Jan 26, 2015 9:49 pm
Norway

Re: Backend server segfaults when accessing DVBCard

Post by jalla »

A new development - I now have a working mythtv config :D

Before going into detail let me explain my setup a bit more thoroughly.

My first tvcard is a dual-tuner card from Digital Devices (recognized as
adapter0/1), and then 2 Terratec's (adapter2/3). I use the dvbloopback
module with ffdecsawrapper to present the decrypted signals as adapters 4-7.

What I did this afternoon was to remove the dualtuner card from the server,
leaving two physical adapters, 0 and 1, and let ffdecsawrapper setup adapter2/3
After deleting/recreating the adapters I scanned all channels without problem in
mythtv-setup. Also, mythbackend now runs, programinfo is updating, livetv and
scheduled recordings work.

By all logic, the fact that removal of the DD-card fixed the problem would hint
at a hardware problem with this particular card - except for the extremely
unlikely coincidence that the card experienced a hardware failure almost
immediately after I started fiddling with the card-config (?)

Anyway, I'm happy with the setup as is so I won't test further on the DD-card for
the time being. I might get back to it at some point, but I'll mark this thread
solved for now.
User avatar
kmdewaal
Developer
Posts: 645
Joined: Wed Dec 07, 2016 8:01 pm
Netherlands

Re: Backend server segfaults when accessing DVBCard [Solved]

Post by kmdewaal »

Good that it works for you! There was recently an issue with the dvbloopback driver giving a similar problem. This has been fixed in git repo of dvbloopback but that may not yet be present in your system. So I think it is the dvbloopback driver that gives the problems and not the DD card.
Post Reply