(I don't know how to produce the fancy System Spec in the posting, so please see my User Profile for my system)
Hi folks,
after I had to change the Motherboard and do a reinstall on my HTPC, the TVService crahes every time the PC wakes up from Standby. I tried complete reinstall of MySQL/Mediaportal more than once but it still keeps throwing a "[PowerEventThread(9)]: Tvservice stopped due to an unhandled app domain exception Error: DatabaseUnavailableUnclassified" in the logs, see below, and can only be resurrected via task manager.
When I shut down the TVService via task manager and start it up again, everything is fine. The CableStar HD2 TV-card is working perfectly with Mediaportal and it is also working after Wakeup with DVBViewer (even though Windows 8 is not officially supported).
I also tried the following without any result:
- disable PowerScheduler
- "reinit service on wakeup"
Thanks for any help!
LosWochos
Here is the passage from error.log:
Hi folks,
after I had to change the Motherboard and do a reinstall on my HTPC, the TVService crahes every time the PC wakes up from Standby. I tried complete reinstall of MySQL/Mediaportal more than once but it still keeps throwing a "[PowerEventThread(9)]: Tvservice stopped due to an unhandled app domain exception Error: DatabaseUnavailableUnclassified" in the logs, see below, and can only be resurrected via task manager.
When I shut down the TVService via task manager and start it up again, everything is fine. The CableStar HD2 TV-card is working perfectly with Mediaportal and it is also working after Wakeup with DVBViewer (even though Windows 8 is not officially supported).
I also tried the following without any result:
- disable PowerScheduler
- "reinit service on wakeup"
Thanks for any help!
LosWochos
Here is the passage from error.log:
2013-05-12 12:45:02.846410 [TVService(6)]: TvService OnStart failed : System.Threading.ThreadAbortException: Der Thread wurde abgebrochen.
bei System.Threading.Thread.SleepInternal(Int32 millisecondsTimeout)
bei TvService.TvServiceThread.OnStart()
And this is in tv.log:2013-05-12 12:25:13.897485 [PowerEventThread(9)]: OnPowerEvent: PowerStatus: Suspend
2013-05-12 12:25:13.897485 [PowerEventThread(9)]: OnPowerEventHandler: PowerStatus: Suspend
2013-05-12 12:25:13.899485 [PowerEventThread(9)]: TvController.OnSuspend()
2013-05-12 12:25:13.909488 [PowerEventThread(9)]: Scheduler: stopped
2013-05-12 12:25:13.913488 [PowerEventThread(9)]: Scheduler: thread stopped.
2013-05-12 12:25:13.917487 [PowerEventThread(9)]: Stopcard
2013-05-12 12:25:13.918489 [PowerEventThread(9)]: Stopcard
2013-05-12 12:25:13.920488 [PowerEventThread(9)]: dvb
topGraph called
2013-05-12 12:25:13.921489 [PowerEventThread(9)]: tvcard:FreeAllSubChannels
2013-05-12 12:25:13.921489 [PowerEventThread(9)]: Stopcard
2013-05-12 12:25:13.922488 [PowerEventThread(9)]: dvb
topGraph called
2013-05-12 12:25:13.922488 [PowerEventThread(9)]: tvcard:FreeAllSubChannels
2013-05-12 12:44:39.499899 [PowerEventThread(9)]: TV service PowerEventThread 30
2013-05-12 12:44:39.758136 [PowerEventThread(9)]: OnPowerEvent: PowerStatus: ResumeSuspend
2013-05-12 12:44:39.758136 [PowerEventThread(9)]: OnPowerEventHandler: PowerStatus: ResumeSuspend
2013-05-12 12:44:39.758136 [PowerEventThread(9)]: TvController.OnResume()
2013-05-12 12:44:39.758136 [PowerEventThread(9)]: Controller: setup HeartBeat Monitor
2013-05-12 12:44:39.758136 [HeartBeatMonitor(5)]: Controller: Heartbeat Monitor initiated, max timeout allowed is 30 sec.
2013-05-12 12:44:39.758136 [PowerEventThread(9)]: Scheduler: started
2013-05-12 12:45:00.787165 [PowerEventThread(9)]: Tvservice stopped due to an unhandled app domain exception Error: DatabaseUnavailableUnclassified
Gentle.Common.GentleException: The database backend (provider MySQL) could not be reached.
Check the connection string: Server=192.168.99.1;Database=MpTvDb;User ID=root;Password=mysql;charset=utf8;Connection Timeout=30; ---> MySql.Data.MySqlClient.MySqlException: Unable to connect to any of the specified MySQL hosts. ---> System.Exception: Eine Ausnahme vom Typ "System.Exception" wurde ausgelöst.
bei MySql.Data.MySqlClient.NativeDriver.Open()
--- Ende der internen Ausnahmestapelüberwachung ---
bei MySql.Data.MySqlClient.NativeDriver.Open()
bei MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
bei MySql.Data.MySqlClient.MySqlPool.CheckoutConnection()
bei MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
bei MySql.Data.MySqlClient.MySqlPool.GetConnection()
bei MySql.Data.MySqlClient.MySqlConnection.Open()
bei Gentle.Provider.MySQL.MySQLProvider.GetConnection()
--- Ende der internen Ausnahmestapelüberwachung ---
bei Gentle.Common.Check.FailWith(Severity severity, Error error, Exception e, String msg)
bei Gentle.Common.Check.Fail(Exception e, Error error, Object[] args)
bei Gentle.Provider.MySQL.MySQLProvider.GetConnection()
bei Gentle.Framework.PersistenceBroker.Execute(SqlStatement stmt, IDbConnection dbConnection, IDbTransaction dbTransaction)
bei Gentle.Framework.SqlStatement.Execute()
bei TvDatabase.Recording.ListAllActive()
bei TvDatabase.Recording.ResetActiveRecordings()
bei TvService.Scheduler.Start()
bei TvService.TVController.OnResume()
bei TvService.TvServiceThread.OnPowerEventHandler(PowerEventType powerStatus)
bei TvService.TvServiceThread.OnPowerEvent(PowerEventType powerStatus)
bei TvService.TvServiceThread.PowerEventThreadWndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam)MySql.Data.MySqlClient.MySqlException: Unable to connect to any of the specified MySQL hosts. ---> System.Exception: Eine Ausnahme vom Typ "System.Exception" wurde ausgelöst.
bei MySql.Data.MySqlClient.NativeDriver.Open()
--- Ende der internen Ausnahmestapelüberwachung ---
bei MySql.Data.MySqlClient.NativeDriver.Open()
bei MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
bei MySql.Data.MySqlClient.MySqlPool.CheckoutConnection()
bei MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
bei MySql.Data.MySqlClient.MySqlPool.GetConnection()
bei MySql.Data.MySqlClient.MySqlConnection.Open()
bei Gentle.Provider.MySQL.MySQLProvider.GetConnection()System.Exception: Eine Ausnahme vom Typ "System.Exception" wurde ausgelöst.
bei MySql.Data.MySqlClient.NativeDriver.Open()
2013-05-12 12:45:02.846410 [TVService(6)]: TV Service: stopping
2013-05-12 12:45:02.846410 [TVService(6)]: TV service StopRemoting
2013-05-12 12:45:02.846410 [TVService(6)]: Remoting stopped
2013-05-12 12:45:02.846410 [TVService(6)]: Controller: DeInit.
2013-05-12 12:45:02.846410 [TVService(6)]: Controller: HeartBeat monitor stopped...
2013-05-12 12:45:02.862026 [TVService(6)]: Controller: stop streamer...
2013-05-12 12:45:02.862026 [TVService(6)]: RTSP: stop streamer
2013-05-12 12:45:02.862026 [TVService(6)]: RTSP: stop all streams (0)
2013-05-12 12:45:02.862026 [TVService(6)]: Controller: streamer stopped...
2013-05-12 12:45:02.862026 [TVService(6)]: Controller: stop scheduler...
2013-05-12 12:45:02.862026 [TVService(6)]: Scheduler: stopped
2013-05-12 12:45:02.877585 [TVService(6)]: Controller: scheduler stopped...
2013-05-12 12:45:02.877585 [TVService(6)]: Controller: epg stop
2013-05-12 12:45:02.877585 [TVService(6)]: Controller: dispose card:RadioWebStream Card (builtin)
2013-05-12 12:45:02.893184 [TVService(6)]: RadioWebStream
ispose()
2013-05-12 12:45:02.893184 [TVService(6)]: Controller: dispose card:TechniSat Mantis DVBC BDA Receiver
2013-05-12 12:45:03.018028 [TVService(6)]: Controller: dispose card:MediaPortal IPTV Source Filter
2013-05-12 12:45:03.033612 [TVService(6)]: TV Service: Stop plugins
2013-05-12 12:45:03.033612 [TVService(6)]: TV Service: Plugins stopped
2013-05-12 12:45:03.033612 [TVService(6)]: TV Service: OnStop asking PowerEventThread to exit
2013-05-12 12:47:45.698949 [SetupTv(1)]: ---- SetupTv v1.3.0.0 is starting up on Windows 8 [6.2.9200.0]
2013-05-12 12:47:45.704950 [SetupTv(1)]: ---- check connection with database ----
2013-05-12 12:47:45.905013 [SetupTv(1)]: SetupDatabaseForm: Added dependency for TvService - MySQL56
2013-05-12 12:47:45.906987 [SetupTv(1)]: ---- check if database needs to be updated/created ----
2013-05-12 12:47:45.916988 [SetupTv(1)]: ---- upgrade database schema ----
2013-05-12 12:47:45.918989 [SetupTv(1)]: ---- check if tvservice is running ----
2013-05-12 12:47:56.100332 [SetupTv(1)]: RemoteControl: RegisterChannel first called in Domain SetupTv.exe for thread SetupTv with id 1
2013-05-12 12:47:58.289508 [SetupTv(1)]: ---- restart tvservice----
2013-05-12 12:48:33.315484 [(4)]: Setting up EventWaitHandle with name: Global\MPTVServiceInitializedEvent
2013-05-12 12:48:33.634526 [(6)]: TV service: Starting
2013-05-12 12:48:33.637553 [TVService(6)]: TVService v1.3.0.0 is starting up on Windows 8 [6.2.9200.0]
2013-05-12 12:48:33.641525 [PowerEventThread(9)]: TV service PowerEventThread message loop is running
2013-05-12 12:48:33.642525 [TVService(6)]: Controller: Initializing TVServer
2013-05-12 12:48:33.643529 [TVService(6)]: Controller: 1 init attempt
2013-05-12 12:48:33.658529 [TVService(6)]: C:\ProgramData\Team MediaPortal\MediaPortal TV Server\gentle.config
2013-05-12 12:48:33.660529 [TVService(6)]: Controller: using MySQL database connection: Server=192.168.99.1;Database=MpTvDb;User ID=root;Password
2013-05-12 12:48:33.661529 [TVService(6)]: ----------------------------
2013-05-12 12:48:33.663528 [TVService(6)]: Detecting Cards
2013-05-12 12:48:33.697533 [TVService(6)]: Detected IP TV Card 0
2013-05-12 12:48:33.962567 [TVService(6)]: Found card:technisat mantis dvbc bda receiver
2013-05-12 12:48:33.996572 [TVService(6)]: Detected DVB card:technisat mantis dvbc bda receiver
2013-05-12 12:48:33.997572 [TVService(6)]: Detecting type by MSNP 0: 143827ab-f77b-498d-81ca-5a007aec28bf
2013-05-12 12:48:33.997572 [TVService(6)]: Detecting type by MSNP 1: dc0c0fe7-0485-4266-b93f-68fbf80ed834
2013-05-12 12:48:33.998573 [TVService(6)]: Detected DVB-C* card:technisat mantis dvbc bda receiver
2013-05-12 12:48:34.010573 [TVService(6)]: Remove filter from graph: DVBC Network Provider
2013-05-12 12:48:34.016572 [TVService(6)]: Remove filter from graph: ATSC Network Provider
2013-05-12 12:48:34.016572 [TVService(6)]: Remove filter from graph: DVBS Network Provider
2013-05-12 12:48:34.017575 [TVService(6)]: Remove filter from graph: DVBT Network Provider
2013-05-12 12:48:34.020574 [TVService(6)]: Controller: started at Wohnzimmer
2013-05-12 12:48:34.021574 [TVService(6)]: Controller: local ip address:192.168.99.1
2013-05-12 12:48:34.021574 [TVService(6)]: Controller: local ip address:192.168.1.125
2013-05-12 12:48:34.080583 [TVService(6)]: Controller: server running on Wohnzimmer
2013-05-12 12:48:34.098585 [TVService(6)]: Controller: NOT preloading card :MediaPortal IPTV Source Filter
2013-05-12 12:48:34.099585 [TVService(6)]: Controller: NOT preloading card :TechniSat Mantis DVBC BDA Receiver
2013-05-12 12:48:34.100585 [TVService(6)]: Controller: NOT preloading card :RadioWebStream Card (builtin)
2013-05-12 12:48:34.101585 [TVService(6)]: Controller: setup hybrid cards
2013-05-12 12:48:34.147590 [TVService(6)]: Controller: card MediaPortal IPTV Source Filter: current timeshiftpath = C:\ProgramData\Team MediaPortal\MediaPortal TV Server\timeshiftbuffer
2013-05-12 12:48:34.153592 [TVService(6)]: Controller: card TechniSat Mantis DVBC BDA Receiver: current timeshiftpath = C:\ProgramData\Team MediaPortal\MediaPortal TV Server\timeshiftbuffer
2013-05-12 12:48:34.158593 [TVService(6)]: Controller: card RadioWebStream Card (builtin): current timeshiftpath = C:\ProgramData\Team MediaPortal\MediaPortal TV Server\timeshiftbuffer
2013-05-12 12:48:34.159593 [TVService(6)]: Controller: setup streaming
2013-05-12 12:48:34.293465 [TVService(6)]: Scheduler: started
2013-05-12 12:48:34.716521 [TVService(6)]: Scheduler: loaded 0 schedules
2013-05-12 12:48:34.717520 [TVService(6)]: Scheduler: thread started.
2013-05-12 12:48:34.718519 [TVService(6)]: DiskManagement: started
2013-05-12 12:48:34.720522 [TVService(6)]: Controller: setup HeartBeat Monitor
2013-05-12 12:48:34.722520 [HeartBeatMonitor(11)]: Controller: Heartbeat Monitor initiated, max timeout allowed is 30 sec.
2013-05-12 12:48:34.759525 [TVService(6)]: ExecutePendingDeletions: number of pending deletions : 0
2013-05-12 12:48:34.760526 [TVService(6)]: Controller: recalculating program states
2013-05-12 12:48:34.772528 [TVService(6)]: schedule.SynchProgramStatesForAll
2013-05-12 12:48:34.774528 [TVService(6)]: Controller: initalized
2013-05-12 12:48:34.774528 [TVService(6)]: Controller: TVServer initialized okay
2013-05-12 12:48:34.777529 [TVService(6)]: TV Service: Load plugins
2013-05-12 12:48:34.795530 [TVService(6)]: PluginManager: Loaded ComSkipLauncher version:1.0.2.0 author:and-81
2013-05-12 12:48:34.801530 [TVService(6)]: PluginManager: Loaded ConflictsManager version:1.0.0.1 author:Broceliande
2013-05-12 12:48:34.808531 [TVService(6)]: PluginManager: Loaded Power Scheduler version:0.1.0.0 author:micheloe
2013-05-12 12:48:34.828533 [TVService(6)]: PluginManager: Loaded ServerBlaster version:1.1.1.0 author:joboehl with ralphy mods
2013-05-12 12:48:34.832534 [TVService(6)]: PluginManager: Loaded TV Movie EPG import version:1.0.3.0 author:rtv
2013-05-12 12:48:34.841535 [TVService(6)]: PluginManager: Loaded WebEPG version:1.0.0.0 author:Arion_p - James
2013-05-12 12:48:34.846537 [TVService(6)]: PluginManager: Loaded XmlTv version:1.0.0.0 author:Frodo
2013-05-12 12:48:34.846537 [TVService(6)]: TV Service: Plugins loaded
2013-05-12 12:48:34.848536 [TVService(6)]: TV Service: Plugin: ComSkipLauncher disabled
2013-05-12 12:48:34.850538 [TVService(6)]: TV Service: Plugin: ConflictsManager disabled
2013-05-12 12:48:34.852537 [TVService(6)]: TV Service: Plugin: Power Scheduler started
2013-05-12 12:48:34.855537 [TVService(6)]: PowerScheduler: Registered PowerScheduler service to GlobalServiceProvider
2013-05-12 12:48:34.859538 [TVService(6)]: PowerScheduler: Registered PowerScheduler as PowerEventHandler to tvservice
2013-05-12 12:48:34.859538 [TVService(6)]: PowerScheduler: Registered default set of standby/resume handlers to PowerScheduler
2013-05-12 12:48:34.863538 [TVService(6)]: PowerScheduler: Registered PowerScheduler as "PowerControl" remoting service
2013-05-12 12:48:34.921547 [TVService(6)]: PowerScheduler: extensive logging enabled: True
2013-05-12 12:48:34.940549 [TVService(6)]: PowerScheduler: Run external command before standby / after resume:
2013-05-12 12:48:34.944550 [TVService(6)]: PowerScheduler: idle timeout set to: 5 minutes
2013-05-12 12:48:34.948549 [TVService(6)]: PowerScheduler: pre-wakeup time set to: 60 seconds
2013-05-12 12:48:34.951550 [TVService(6)]: PowerScheduler: pre-no-shutdown time set to: 300 seconds
2013-05-12 12:48:34.954550 [TVService(6)]: PowerScheduler: Check interval set to 60 seconds
2013-05-12 12:48:34.957554 [TVService(6)]: PowerScheduler: Standby allowed until 24 o' clock
2013-05-12 12:48:34.964552 [TVService(6)]: PowerSchedulerFactory CTOR
2013-05-12 12:48:34.979553 [TVService(6)]: PowerScheduler: preventing standby for process: SetupTv
2013-05-12 12:48:34.979553 [TVService(6)]: PowerScheduler: preventing standby for process: Configuration
2013-05-12 12:48:34.986553 [TVService(6)]: ActiveSharesHandler: Share monitoring is enabled.
2013-05-12 12:48:34.999555 [TVService(6)]: PowerScheduler: wakeup system for EPG at time: 0:0
2013-05-12 12:48:34.999555 [TVService(6)]: PowerScheduler: EPG last run: 01.01.0001 00:00:00
2013-05-12 12:48:35.003556 [TVService(6)]: PowerScheduler: Starting poll thread
2013-05-12 12:48:35.004555 [TVService(6)]: Powerscheduler: started
2013-05-12 12:48:35.008557 [PowerScheduler poll thread(14)]: PowerScheduler: lastUserTime: 12:48:34.8545 , False
2013-05-12 12:48:35.009557 [TVService(6)]: TV Service: Plugin: ServerBlaster disabled
2013-05-12 12:48:35.011557 [TVService(6)]: TV Service: Plugin: TV Movie EPG import disabled
2013-05-12 12:48:35.012557 [PowerScheduler poll thread(14)]: PowerScheduler.DisAllowShutdown: inspecting handler:GenericStandbyHandler DisAllowShutdown:False
2013-05-12 12:48:35.013557 [TVService(6)]: TV Service: Plugin: WebEPG disabled
2013-05-12 12:48:35.015557 [PowerScheduler poll thread(14)]: PowerScheduler.DisAllowShutdown: inspecting handler:ActiveStreamsHandler DisAllowShutdown:False
2013-05-12 12:48:35.016558 [TVService(6)]: TV Service: Plugin: XmlTv disabled
2013-05-12 12:48:35.016558 [TVService(6)]: TV Service: Plugins started
2013-05-12 12:48:35.018559 [TVService(6)]: TV service: Started
Last edited: