Mailing List Archive

Ticket #13062: Backend does not schedule new recordings unless restarted
#13062: Backend does not schedule new recordings unless restarted
--------------------------------------+---------------------
Reporter: hobbes1069@… | Owner: gigem
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Scheduling | Version: 0.28.1
Severity: medium | Keywords:
Ticket locked: 0 |
--------------------------------------+---------------------
For several months now (I'm not sure exactly how long) my combined FE/BE
system does not schedule new shows to be recorded unless the backend is
restarted.

Both the reschedule attempt from running mythfilldatabase and manually
running mythutil --resched have no effect.

The restart (via systemctl) takes much longer than it used to as well.

System is Fedora 25 x86_64 and I am the current package maintainer for RPM
Fusion.

# mythbackend --version
Please attach all output as a file in bug reports.
MythTV Version : v0.28.1-23-gaf98262
MythTV Branch : fixes/0.28
Network Protocol : 88
Library API : 0.28.20161120-1
QT Version : 5.7.1
Options compiled in:
linux release use_hidesyms using_alsa using_oss using_pulse
using_pulseoutput using_backend using_bindings_perl using_bindings_python
using_bindings_php using_crystalhd using_dvb using_firewire using_frontend
using_hdhomerun using_vbox using_ceton using_hdpvr using_ivtv
using_joystick_menu using_libcec using_libcrypto using_libdns_sd
using_libfftw3 using_libxml2 using_lirc using_mheg using_opengl
using_opengl_video using_opengl_themepainter using_qtwebkit using_qtscript
using_qtdbus using_taglib using_v4l2 using_x11 using_xrandr using_xv
using_systemd_notify using_bindings_perl using_bindings_python
using_bindings_php using_freetype2 using_mythtranscode using_opengl
using_vaapi using_vdpau using_ffmpeg_threads using_mheg using_libass
using_libxml2

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13062>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #13062: Backend does not schedule new recordings unless restarted [ In reply to ]
#13062: Backend does not schedule new recordings unless restarted
----------------------------------+-------------------------
Reporter: hobbes1069@… | Owner: gigem
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Scheduling | Version: 0.28.1
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+-------------------------

Comment (by pbennett):

I recommend running mythutil --resched at a time when it is not working,
and capture the backend log at that time to see whether there is any error
and whether it performed the reschedule. Please post that part of the log
here.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13062#comment:1>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #13062: Backend does not schedule new recordings unless restarted [ In reply to ]
#13062: Backend does not schedule new recordings unless restarted
----------------------------------+-------------------------
Reporter: hobbes1069@… | Owner: gigem
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Scheduling | Version: 0.28.1
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+-------------------------

Comment (by Richard Shaw <hobbes1069@…>):

{{{
# mythutil --resched
2017-07-07 09:20:25.143961 C mythutil version: fixes/0.28
[v0.28.1-23-gaf98262] www.mythtv.org
2017-07-07 09:20:25.144014 C Qt version: compile: 5.7.1, runtime: 5.7.1
2017-07-07 09:20:25.144018 N Enabled verbose msgs: general
2017-07-07 09:20:25.144043 N Setting Log Level to LOG_INFO
2017-07-07 09:20:25.155989 I Added logging to the console
2017-07-07 09:20:25.157232 I Setup Interrupt handler
2017-07-07 09:20:25.157253 I Setup Terminated handler
2017-07-07 09:20:25.157290 I Setup Segmentation fault handler
2017-07-07 09:20:25.157308 I Setup Aborted handler
2017-07-07 09:20:25.157336 I Setup Bus error handler
2017-07-07 09:20:25.157352 I Setup Floating point exception handler
2017-07-07 09:20:25.157374 I Setup Illegal instruction handler
2017-07-07 09:20:25.157393 I Setup Real-time signal 0 handler
2017-07-07 09:20:25.157420 I Setup Hangup handler
2017-07-07 09:20:25.157687 N Using runtime prefix = /usr
2017-07-07 09:20:25.157706 N Using configuration directory =
/root/.mythtv
2017-07-07 09:20:25.157978 I Assumed character encoding: en_US.UTF-8
2017-07-07 09:20:25.175958 N Empty LocalHostName.
2017-07-07 09:20:25.175988 I Using localhost value of calvin.localdomain
2017-07-07 09:20:25.261983 N Setting QT default locale to EN_US
2017-07-07 09:20:25.262003 I Current locale EN_US
2017-07-07 09:20:25.262112 N Reading locale defaults from
/usr/share/mythtv//locales/en_us.xml
2017-07-07 09:20:25.300031 I MythCoreContext::ConnectCommandSocket():
Connecting to backend server: 192.168.0.4:6543 (try 1 of 1)
2017-07-07 09:20:25.301997 I MythCoreContext::CheckProtoVersion(): Using
protocol version 88 XmasGift
2017-07-07 09:20:25.303381 I Reschedule command sent to master
}}}

mythbackend log snippet:

{{{
2017-07-07 09:20:25.302329 I [14668/27395] ProcessRequest
mainserver.cpp:1730 (HandleAnnounce) - MainServer: MainServer::ANN Monitor
2017-07-07 09:20:25.302340 I [14668/27395] ProcessRequest
mainserver.cpp:1735 (HandleAnnounce) - MainServer: adding:
calvin.localdomain(122afd0) as a client (events: 0)
2017-07-07 09:20:25.395278 I [14668/27394] MythSocketThread(85)
mainserver.cpp:7656 (connectionClosed) - Monitor sock(122afd0)
'calvin.localdomain' disconnected
}}}

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13062#comment:2>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #13062: Backend does not schedule new recordings unless restarted [ In reply to ]
#13062: Backend does not schedule new recordings unless restarted
----------------------------------+-------------------------
Reporter: hobbes1069@… | Owner: gigem
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Scheduling | Version: 0.28.1
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+-------------------------

Comment (by pbennett):

It seems to not be doing the reschedule. Here is my backend log for the
same operation. It includes lines confirming the reschedule and showing
the result of the reschedule. Something is preventing the reschedule in
your backend.

{{{
Jul 7 11:40:46 serenity mythbackend: mythbackend[1465]: I ProcessRequest
mainserver.cpp:1730 (HandleAnnounce) MainServer: MainServer::ANN Monitor
Jul 7 11:40:46 serenity mythbackend: mythbackend[1465]: I ProcessRequest
mainserver.cpp:1735 (HandleAnnounce) MainServer: adding: serenity(28ec2d0)
as a client (events: 0)
Jul 7 11:40:46 serenity mythbackend: mythbackend[1465]: I Scheduler
scheduler.cpp:2264 (HandleReschedule) Reschedule requested for MATCH 0 0 0
- HandleRescheduleRecordings
Jul 7 11:40:46 serenity mythbackend: mythbackend[1465]: I
MythSocketThread(64) mainserver.cpp:7656 (connectionClosed) Monitor
sock(28ec2d0) 'serenity' disconnected
Jul 7 11:40:48 serenity mythbackend: mythbackend[1465]: I Scheduler
scheduler.cpp:2377 (HandleReschedule) Scheduled 1188 items in 2.4 = 1.00
match + 0.85 check + 0.51 place
}}}

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13062#comment:3>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #13062: Backend does not schedule new recordings unless restarted [ In reply to ]
#13062: Backend does not schedule new recordings unless restarted
----------------------------------+-------------------------
Reporter: hobbes1069@… | Owner: gigem
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Scheduling | Version: 0.28.1
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+-------------------------

Comment (by Richard Shaw <hobbes1069@…>):

I'm only about 12 commits behind current fixes/0.28 and nothing from the
log appears to address this so I'm at a loss on where to look.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13062#comment:4>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #13062: Backend does not schedule new recordings unless restarted [ In reply to ]
#13062: Backend does not schedule new recordings unless restarted
----------------------------------+-------------------------
Reporter: hobbes1069@… | Owner: gigem
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Scheduling | Version: 0.28.1
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+-------------------------

Comment (by gigem):

You'll need to enable more backend logging. Add -v schedule at a minimum
and possibly --loglevel debug. The scheduler is likely getting stuck.
Several deadlock scenarios were fixed long ago, but perhaps there's
another one. If that's the case, you'll probably need to use gdb and get
a stack trace to see where it's stuck.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13062#comment:5>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #13062: Backend does not schedule new recordings unless restarted [ In reply to ]
#13062: Backend does not schedule new recordings unless restarted
----------------------------------+-------------------------
Reporter: hobbes1069@… | Owner: gigem
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Scheduling | Version: 0.28.1
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+-------------------------

Comment (by Richard Shaw <hobbes1069@…>):

Interesting, mythutil --resched seemed to work right after restarting the
backend... I'll have to give it a few days and try again.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13062#comment:6>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #13062: Backend does not schedule new recordings unless restarted [ In reply to ]
#13062: Backend does not schedule new recordings unless restarted
----------------------------------+-------------------------
Reporter: hobbes1069@… | Owner: gigem
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Scheduling | Version: 0.28.1
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+-------------------------

Comment (by Richard Shaw <hobbes1069@…>):

Just tried mythutil --resched after adding -v schedule and --loglevel
debug and no new information.

Changing to -v all and restarting.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13062#comment:7>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #13062: Backend does not schedule new recordings unless restarted [ In reply to ]
#13062: Backend does not schedule new recordings unless restarted
----------------------------------+-------------------------
Reporter: hobbes1069@… | Owner: gigem
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Scheduling | Version: 0.28.1
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+-------------------------

Comment (by Richard Shaw <hobbes1069@…>):

Ok, this is with everything turned on so I guess it's full debugging next
unless you see something useful.


{{{
2017-07-09 14:14:07.331717 I [4240/4240] CoreContext mythsocket.cpp:97
(MythSocket) - MythSocket(28bebe0:-1): MythSocket(63, 0x28a9790) ctor
2017-07-09 14:14:07.331783 D [4240/4240] CoreContext mythsocket.cpp:230
(ConnectHandler) - MythSocket(28bebe0:63): calling m_callback->connected()
2017-07-09 14:14:07.332195 D [4240/12585] MythSocketThread(63)
mythsocket.cpp:291 (CallReadyReadHandler) - MythSocket(28bebe0:63):
calling m_callback->readyRead()
2017-07-09 14:14:07.332214 I [4240/12585] MythSocketThread(63)
referencecounter.cpp:114 (IncrRef) - (0x28bebf0)::IncrRef() -> 2
2017-07-09 14:14:07.332777 I [4240/12585] MythSocketThread(63)
mythsocket.cpp:990 (ReadStringListReal) - MythSocket(28bebe0:63): read <-
63 30 MYTH_PROTO_VERSION 88 XmasGift
2017-07-09 14:14:07.332916 I [4240/12585] MythSocketThread(63)
mythsocket.cpp:789 (WriteStringListReal) - MythSocket(28bebe0:63): write
-> 63 13 ACCEPT[]:[]88
2017-07-09 14:14:07.333044 I [4240/12586] ProcessRequest
referencecounter.cpp:145 (DecrRef) - (0x28bebf0)::DecrRef() -> 1
2017-07-09 14:14:07.333976 D [4240/12585] MythSocketThread(63)
mythsocket.cpp:291 (CallReadyReadHandler) - MythSocket(28bebe0:63):
calling m_callback->readyRead()
2017-07-09 14:14:07.333986 I [4240/12585] MythSocketThread(63)
referencecounter.cpp:114 (IncrRef) - (0x28bebf0)::IncrRef() -> 2
2017-07-09 14:14:07.334158 I [4240/12585] MythSocketThread(63)
mythsocket.cpp:990 (ReadStringListReal) - MythSocket(28bebe0:63): read <-
63 32 ANN Monitor hobbes.localdomain 0
2017-07-09 14:14:07.334197 I [4240/12586] ProcessRequest
mainserver.cpp:1730 (HandleAnnounce) - MainServer: MainServer::ANN Monitor
2017-07-09 14:14:07.334212 I [4240/12586] ProcessRequest
mainserver.cpp:1735 (HandleAnnounce) - MainServer: adding:
hobbes.localdomain(28bebe0) as a client (events: 0)
2017-07-09 14:14:07.334267 I [4240/12585] MythSocketThread(63)
mythsocket.cpp:789 (WriteStringListReal) - MythSocket(28bebe0:63): write
-> 63 2 OK
2017-07-09 14:14:07.334379 I [4240/12586] ProcessRequest
referencecounter.cpp:145 (DecrRef) - (0x28bebf0)::DecrRef() -> 1
2017-07-09 14:14:07.335371 D [4240/12585] MythSocketThread(63)
mythsocket.cpp:291 (CallReadyReadHandler) - MythSocket(28bebe0:63):
calling m_callback->readyRead()
2017-07-09 14:14:07.335379 I [4240/12585] MythSocketThread(63)
referencecounter.cpp:114 (IncrRef) - (0x28bebf0)::IncrRef() -> 2
2017-07-09 14:14:07.335624 I [4240/12586] ProcessRequest
referencecounter.cpp:114 (IncrRef) - (0x7f12e81b5350)::IncrRef() -> 2
2017-07-09 14:14:07.335634 I [4240/12586] ProcessRequest
referencecounter.cpp:114 (IncrRef) - (0x28bebf0)::IncrRef() -> 3
2017-07-09 14:14:07.335694 I [4240/12585] MythSocketThread(63)
mythsocket.cpp:990 (ReadStringListReal) - MythSocket(28bebe0:63): read <-
63 55 RESCHEDULE_RECORDINGS[]:[]MATCH 0 0 0 - MythUtilCommand
2017-07-09 14:14:07.335714 I [4240/12586] ProcessRequest
referencecounter.cpp:145 (DecrRef) - (0x28bebf0)::DecrRef() -> 2
2017-07-09 14:14:07.335719 I [4240/12586] ProcessRequest
referencecounter.cpp:145 (DecrRef) - (0x7f12e81b5350)::DecrRef() -> 1
2017-07-09 14:14:07.335732 I [4240/12586] ProcessRequest
referencecounter.cpp:114 (IncrRef) - (0x7f12e81b5350)::IncrRef() -> 2
2017-07-09 14:14:07.335889 I [4240/12586] ProcessRequest
mythcorecontext.cpp:1592 (dispatch) - MythCoreContext::dispatch():
MythEvent: RESCHEDULE_RECORDINGS
2017-07-09 14:14:07.336076 I [4240/12585] MythSocketThread(63)
mythsocket.cpp:789 (WriteStringListReal) - MythSocket(28bebe0:63): write
-> 63 1 1
2017-07-09 14:14:07.336191 I [4240/12586] ProcessRequest
referencecounter.cpp:145 (DecrRef) - (0x7f12e81b5350)::DecrRef() -> 1
2017-07-09 14:14:07.336203 I [4240/12586] ProcessRequest
referencecounter.cpp:145 (DecrRef) - (0x28bebf0)::DecrRef() -> 1
2017-07-09 14:14:07.428723 D [4240/12585] MythSocketThread(63)
mythsocket.cpp:245 (ErrorHandler) - MythSocket(28bebe0:63): calling
m_callback->error() err: The remote host closed the connection
2017-07-09 14:14:07.428759 D [4240/12585] MythSocketThread(63)
mythsocket.cpp:263 (DisconnectHandler) - MythSocket(28bebe0:-1): calling
m_callback->connectionClosed()
2017-07-09 14:14:07.428774 I [4240/12585] MythSocketThread(63)
referencecounter.cpp:114 (IncrRef) - (0x28bebf0)::IncrRef() -> 2
2017-07-09 14:14:07.428794 I [4240/12585] MythSocketThread(63)
mainserver.cpp:7656 (connectionClosed) - Monitor sock(28bebe0)
'hobbes.localdomain' disconnected
2017-07-09 14:14:07.428806 I [4240/12585] MythSocketThread(63)
referencecounter.cpp:145 (DecrRef) - (0x7f12e81b5350)::DecrRef() -> 0
2017-07-09 14:14:07.428816 I [4240/12585] MythSocketThread(63)
referencecounter.cpp:145 (DecrRef) - (0x28bebf0)::DecrRef() -> 1
}}}

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13062#comment:8>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #13062: Backend does not schedule new recordings unless restarted [ In reply to ]
#13062: Backend does not schedule new recordings unless restarted
----------------------------------+-------------------------
Reporter: hobbes1069@… | Owner: gigem
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Scheduling | Version: 0.28.1
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+-------------------------

Comment (by gigem):

Unfortunately, those logs don't help. You will need to get a backtrace
using gdb so we can try to see where things are stuck.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13062#comment:9>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #13062: Backend does not schedule new recordings unless restarted [ In reply to ]
#13062: Backend does not schedule new recordings unless restarted
----------------------------------+-------------------------
Reporter: hobbes1069@… | Owner: gigem
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Scheduling | Version: 0.28.1
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+-------------------------

Comment (by Richard Shaw <hobbes1069@…>):

Any hints on the procedure? I've figured out how to attach to the running
process and can install the debuginfo packages. Since it pauses the
process once I attach to it, do I just use "next" and "bt" until I find
something interesting?

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13062#comment:10>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #13062: Backend does not schedule new recordings unless restarted [ In reply to ]
#13062: Backend does not schedule new recordings unless restarted
----------------------------------+-------------------------
Reporter: hobbes1069@… | Owner: gigem
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Scheduling | Version: 0.28.1
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+-------------------------

Comment (by stuarta):

Luckily we have documented this :)

https://www.mythtv.org/wiki/Debugging#Getting_a_Backtrace

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13062#comment:11>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #13062: Backend does not schedule new recordings unless restarted [ In reply to ]
#13062: Backend does not schedule new recordings unless restarted
----------------------------------+-------------------------
Reporter: hobbes1069@… | Owner: gigem
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Scheduling | Version: 0.28.1
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+-------------------------

Comment (by Richard Shaw <hobbes1069@…>):

Ok, trying... I installed the mythtv-debuginfo package, attached to it,
did a continue, a mythutil --resched and "thread apply be full whatever"
and it never came back to a prompt after more than an hour. Now I've
installed 4.2GB of debuginfo packages for all the dependencies and have
waited 20 minutes to get a prompt after entering "continue" and
mythbackend is stuck at 100% cpu...

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13062#comment:12>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #13062: Backend does not schedule new recordings unless restarted [ In reply to ]
#13062: Backend does not schedule new recordings unless restarted
----------------------------------+-------------------------
Reporter: hobbes1069@… | Owner: gigem
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Scheduling | Version: 0.28.1
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+-------------------------

Comment (by Richard Shaw <hobbes1069@…>):

Another data point, although not particularly helpful. It wasn't GDB that
was causing 100% cpu usage. Apparently whatever the issue is, is causing
the problem. Restarting mythbackend and CPU uses drops to near 0% while
idle.

I wonder if I can use something like vmstat to track it over time and see
when it starts consuming 100% cpu...

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13062#comment:13>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #13062: Backend does not schedule new recordings unless restarted [ In reply to ]
#13062: Backend does not schedule new recordings unless restarted
----------------------------------+-------------------------
Reporter: hobbes1069@… | Owner: gigem
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Scheduling | Version: 0.28.1
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+-------------------------

Comment (by gigem):

You can tone the logging back down since it wasn't helpful. I doubt
vmstat will help, but it shouldn't hurt either. Once you are at the gdb
prompt, the backtrace shouldn't take very long at all.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13062#comment:14>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #13062: Backend does not schedule new recordings unless restarted [ In reply to ]
#13062: Backend does not schedule new recordings unless restarted
----------------------------------+-------------------------
Reporter: hobbes1069@… | Owner: gigem
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Scheduling | Version: 0.28.1
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+-------------------------
Changes (by Richard Shaw <hobbes1069@…>):

Attachment "gdb.txt" added

https://code.mythtv.org/trac/raw-attachment/ticket/13062/gdb.txt

gdb output

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13062>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #13062: Backend does not schedule new recordings unless restarted [ In reply to ]
#13062: Backend does not schedule new recordings unless restarted
----------------------------------+-------------------------
Reporter: hobbes1069@… | Owner: gigem
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Scheduling | Version: 0.28.1
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+-------------------------

Comment (by gigem):

Richard, I apologize for going quiet on this. I haven't forgotten about
it. I've been out of town and am catching up on things as quickly as I
can.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13062#comment:15>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #13062: Backend does not schedule new recordings unless restarted [ In reply to ]
#13062: Backend does not schedule new recordings unless restarted
----------------------------------+--------------------------------
Reporter: hobbes1069@… | Owner: gigem
Type: Bug Report - General | Status: infoneeded_new
Priority: minor | Milestone: unknown
Component: MythTV - Scheduling | Version: 0.28.1
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+--------------------------------
Changes (by gigem):

* status: new => infoneeded_new


Comment:

I finally got around to reviewing your gdb log. Unfortunately, it doesn't
appear to include mythtv debugging information, so I can't tell where it's
stuck. Do you compile mythtv yourself or use packages? If the former,
you'll need to recomple with compile-type set to either debug or profile.
If the latter, you'll need to look for a "debug" package version or
compile mythtv yourself.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13062#comment:16>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #13062: Backend does not schedule new recordings unless restarted [ In reply to ]
#13062: Backend does not schedule new recordings unless restarted
----------------------------------+--------------------------------
Reporter: hobbes1069@… | Owner: gigem
Type: Bug Report - General | Status: infoneeded_new
Priority: minor | Milestone: unknown
Component: MythTV - Scheduling | Version: 0.28.1
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+--------------------------------

Comment (by Richard Shaw <hobbes1069@…>):

I actually make the RPM Fusion packages and the debuginfo packages were
installed. I'm not sure why it didn't work...

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13062#comment:17>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #13062: Backend does not schedule new recordings unless restarted [ In reply to ]
#13062: Backend does not schedule new recordings unless restarted
----------------------------------+--------------------------------
Reporter: hobbes1069@… | Owner: gigem
Type: Bug Report - General | Status: infoneeded_new
Priority: minor | Milestone: unknown
Component: MythTV - Scheduling | Version: 0.28.1
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+--------------------------------

Comment (by gigem):

Okay. Did you attach gdb to an already running mythbackend? If so, maybe
you need to be in the mythtv source directory, or tell gdb where to find
the source, in order for it to include the line numbers when in the mythtv
code.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13062#comment:18>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #13062: Backend does not schedule new recordings unless restarted [ In reply to ]
#13062: Backend does not schedule new recordings unless restarted
----------------------------------+--------------------------------
Reporter: hobbes1069@… | Owner: gigem
Type: Bug Report - General | Status: closed
Priority: minor | Milestone: unknown
Component: MythTV - Scheduling | Version: 0.28.1
Severity: medium | Resolution: Need more Info
Keywords: | Ticket locked: 0
----------------------------------+--------------------------------
Changes (by gigem):

* status: infoneeded_new => closed
* resolution: => Need more Info


Comment:

I'm closing this due to inactivity. Richard, please reopen it if you have
new information.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13062#comment:19>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #13062: Backend does not schedule new recordings unless restarted [ In reply to ]
#13062: Backend does not schedule new recordings unless restarted
----------------------------------+-------------------------
Reporter: hobbes1069@… | Owner: gigem
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Scheduling | Version: 0.28.1
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+-------------------------
Changes (by hobbes1069@…):

* status: closed => new
* resolution: Need more Info =>


Comment:

Ok, unfortunately is started happening again... going to try to get a good
debug info...

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13062#comment:20>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #13062: Backend does not schedule new recordings unless restarted [ In reply to ]
#13062: Backend does not schedule new recordings unless restarted
----------------------------------+-------------------------
Reporter: hobbes1069@… | Owner: gigem
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Scheduling | Version: 0.28.1
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+-------------------------
Changes (by hobbes1069@…):

Attachment "gdb.2.txt" added

https://code.mythtv.org/trac/raw-attachment/ticket/13062/gdb.2.txt

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13062>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #13062: Backend does not schedule new recordings unless restarted [ In reply to ]
#13062: Backend does not schedule new recordings unless restarted
----------------------------------+-------------------------
Reporter: hobbes1069@… | Owner: gigem
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Scheduling | Version: 0.28.1
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+-------------------------

Comment (by hobbes1069@…):

Hopefully this has more helpful information in it.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13062#comment:21>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits
Re: Ticket #13062: Backend does not schedule new recordings unless restarted [ In reply to ]
#13062: Backend does not schedule new recordings unless restarted
----------------------------------+-------------------------
Reporter: hobbes1069@… | Owner: gigem
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Scheduling | Version: 0.28.1
Severity: medium | Resolution:
Keywords: | Ticket locked: 0
----------------------------------+-------------------------

Comment (by gigem):

What is the exact MythTV version you are using? The line numbers don't
match up with the latest fixes-0.28.

Anyway, it doesn't appear to be the traditional Scheduler deadlock. This
appears to be a deadlock in one of the recorders.

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13062#comment:22>
MythTV <http://www.mythtv.org>
MythTV Media Center
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits

1 2  View All