home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
General Support
TVSERVER service crashing constantly
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="mm1352000" data-source="post: 1177994" data-attributes="member: 82144"><p>Hi</p><p></p><p>First, thanks for reporting the problem.</p><p></p><p>Windows is reporting a crash, but the log files show that TV Server is not actually starting successfully. The reason that TV Server fails to start comes from this exception/error:</p><p>[collapse]</p><p>[2016-03-10 00:48:51,913] [Log ] [scheduler thread] [INFO ] - scheduler: SchedulerWorker inner exception System.NullReferenceException: Object reference not set to an instance of an object.</p><p> at TvDatabase.Schedule.GetProgramsForSchedule(Schedule schedule)</p><p> at TvDatabase.Schedule.ResetProgramStates(Int32 idSchedule)</p><p> at TvDatabase.Schedule.Delete()</p><p> at TvService.Scheduler.CheckAndDeleteOrphanedOnceSchedules()</p><p> at TvService.Scheduler.DoScheduleWork()</p><p> at TvService.Scheduler.SchedulerWorker()</p><p>[2016-03-10 00:48:51,913] [Log ] [TVService] [INFO ] - TvControllerException: System.NullReferenceException: Object reference not set to an instance of an object.</p><p> at TvDatabase.Schedule.GetProgramsForSchedule(Schedule schedule)</p><p> at TvDatabase.Schedule.SynchProgramStates(Int32 idSchedule)</p><p> at TvDatabase.Schedule.SynchProgramStatesForAll()</p><p> at TvService.TVController.InitController()</p><p> at TvDatabase.Schedule.GetProgramsForSchedule(Schedule schedule)</p><p> at TvDatabase.Schedule.SynchProgramStates(Int32 idSchedule)</p><p> at TvDatabase.Schedule.SynchProgramStatesForAll()</p><p> at TvService.TVController.InitController()[/collapse]</p><p></p><p>I think the cause of the error is that you've somehow managed to get into a situation where you have a schedule that references a channel that no longer exists.</p><p></p><p>To fix:</p><ol> <li data-xf-list-type="ol">Open a command prompt with admin privileges (click start button, type <strong>cmd</strong>, hold down the ctrl and shift keys and press enter).</li> <li data-xf-list-type="ol">To stop the TV service type <strong>net stop TVService</strong> then press enter.<br /> </li> <li data-xf-list-type="ol">Type <strong>cd "c:\Program Files\MySQL\MySQL Server 5.6\bin"</strong> then press enter.</li> <li data-xf-list-type="ol">Type <strong>mysql -h localhost -u root -p</strong> then press enter.</li> <li data-xf-list-type="ol">You should now be prompted to enter the root (admin) user password for your MySQL database. In your case it is <strong>MediaPortal</strong> (case sensitive!). Type the password then press enter.</li> <li data-xf-list-type="ol">Type <strong>use MpTvDb;</strong> then press enter.</li> <li data-xf-list-type="ol">Type <strong>DELETE FROM Schedule WHERE NOT EXISTS (SELECT * FROM Channel WHERE Channel.idChannel = Schedule.idChannel); </strong>then press enter.</li> <li data-xf-list-type="ol">Type <strong>commit;</strong> then press enter.</li> <li data-xf-list-type="ol">Type <strong>\q</strong> then press enter.</li> <li data-xf-list-type="ol">To start the TV service type <strong>net start TVService</strong> then press enter.</li> </ol><p>If you've followed the above instructions properly, the problem should now be solved... I hope!</p></blockquote><p></p>
[QUOTE="mm1352000, post: 1177994, member: 82144"] Hi First, thanks for reporting the problem. Windows is reporting a crash, but the log files show that TV Server is not actually starting successfully. The reason that TV Server fails to start comes from this exception/error: [collapse] [2016-03-10 00:48:51,913] [Log ] [scheduler thread] [INFO ] - scheduler: SchedulerWorker inner exception System.NullReferenceException: Object reference not set to an instance of an object. at TvDatabase.Schedule.GetProgramsForSchedule(Schedule schedule) at TvDatabase.Schedule.ResetProgramStates(Int32 idSchedule) at TvDatabase.Schedule.Delete() at TvService.Scheduler.CheckAndDeleteOrphanedOnceSchedules() at TvService.Scheduler.DoScheduleWork() at TvService.Scheduler.SchedulerWorker() [2016-03-10 00:48:51,913] [Log ] [TVService] [INFO ] - TvControllerException: System.NullReferenceException: Object reference not set to an instance of an object. at TvDatabase.Schedule.GetProgramsForSchedule(Schedule schedule) at TvDatabase.Schedule.SynchProgramStates(Int32 idSchedule) at TvDatabase.Schedule.SynchProgramStatesForAll() at TvService.TVController.InitController() at TvDatabase.Schedule.GetProgramsForSchedule(Schedule schedule) at TvDatabase.Schedule.SynchProgramStates(Int32 idSchedule) at TvDatabase.Schedule.SynchProgramStatesForAll() at TvService.TVController.InitController()[/collapse] I think the cause of the error is that you've somehow managed to get into a situation where you have a schedule that references a channel that no longer exists. To fix: [LIST=1] [*]Open a command prompt with admin privileges (click start button, type [B]cmd[/B], hold down the ctrl and shift keys and press enter). [*]To stop the TV service type [B]net stop TVService[/B] then press enter. [*]Type [B]cd "c:\Program Files\MySQL\MySQL Server 5.6\bin"[/B] then press enter. [*]Type [B]mysql -h localhost -u root -p[/B] then press enter. [*]You should now be prompted to enter the root (admin) user password for your MySQL database. In your case it is [B]MediaPortal[/B] (case sensitive!). Type the password then press enter. [*]Type [B]use MpTvDb;[/B] then press enter. [*]Type [B]DELETE FROM Schedule WHERE NOT EXISTS (SELECT * FROM Channel WHERE Channel.idChannel = Schedule.idChannel); [/B]then press enter. [*]Type [B]commit;[/B] then press enter. [*]Type [B]\q[/B] then press enter. [*]To start the TV service type [B]net start TVService[/B] then press enter. [/LIST] If you've followed the above instructions properly, the problem should now be solved... I hope! [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
TVSERVER service crashing constantly
Contact us
RSS
Top
Bottom