Media Portal freezes on wake (2 Viewers)

Sebastiii

Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    You could try to fake some resume / suspend code with this tools too :
    SendMessage-1.1.4.exe
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,418
    2,336
    Home Country
    Germany Germany
    We then may need more test results:

    1. PS inactive: User-triggered wake-up
    2. PS inactive: WOL-triggered wake-up
    3. PS active: WOL-triggered wake-up

    3 is inherently contained in the previous logs, the only thing missing is the information if the user can the interact with it. Given the fact that the time on the MP screen did not change, I believe that we can assume this is not the case. I will provide logs for case 1 and 2 later.[DOUBLEPOST=1448004884][/DOUBLEPOST]
    You could try to fake some resume / suspend code with this tools too :
    SendMessage-1.1.4.exe
    Ah yes, I vaguely remember you explanations from last year. I would need exact instructions what to do. Again, the behavior of the machine used to be different, depending on the time it was in standby. However, after all these changes I cannot be 100% certain that this is still the case, yet any test is subject to a 2 hour waiting time.
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,578
    8,227
    Home Country
    New Zealand New Zealand
    @HTPCSourcer
    In general these log files look much better than the last set. No more exceptions! :)
    I see what Sebastiii is referring to. To me it looks like there may be some deadlocks. For example...

    [2015-11-19 22:48:58,659] [Log ] [MPMain ] [INFO ] - SQLiteClient: Closing database: FanartHandler.db3
    [2015-11-19 22:48:58,804] [Log ] [MPMain ] [DEBUG] - Main: WM_DEVICECHANGE (Event: DBT_DEVICEREMOVECOMPLETE)
    ***** DEADLOCK HERE - expecting "Main: Device type is..." *****
    [2015-11-20 03:29:31,333] [Log ] [31 ] [DEBUG] - WindowsController: ExitWindows performed, result: True

    The above deadlock could be due to removable device handling:
    https://github.com/MediaPortal/Medi.../MediaPortal.Application/MediaPortal.cs#L2058

    [2015-11-20 03:32:45,821] [Log ] [MPMain ] [DEBUG] - PS: SUSPEND
    [2015-11-20 03:32:45,826] [Log ] [MPMain ] [DEBUG] - PS: System is going to suspend
    ***** DEADLOCK HERE - expecting "PS: Signal "Suspend" to StandbyWakeupThread" *****
    [2015-11-20 04:06:29,697] [Log ] [18 ] [DEBUG] - WindowsController: ExitWindows performed, result: True

    The above deadlock is bizarre. There is nothing complex here:
    https://github.com/MediaPortal/Medi...SchedulerClientPlugin/PowerScheduler.cs#L1303

    I don't think this is the fault of PowerScheduler. The fact that the "ExitWindows..." message is in both of these situations (and after a long delay!) seems very suspicious to me. ;)
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,418
    2,336
    Home Country
    Germany Germany
    I just heard the machine powering up on its own. Something went wrong as it ran out of memory with the log containing hundred thousands of this message:
    [2015-11-20 08:31:17,791] [Error ] [DirectoryWorker] [ERROR] - SQLiteClient: cmd:sqlite3_prepare16:pvm=null err:NOMEM detailed:eek:ut of memory query:select online_series.ID, online_series.Pretty_Name, online_series.SortName, online_series.origName, online_series.Status, online_series.Genre, online_series.BannerFileNames, online_series.CurrentBannerFileName, online_series.PosterFileNames, online_series.PosterBannerFileName, online_series.Summary, online_series.OnlineDataImported, online_series.AirsDay, online_series.AirsTime, online_series.Actors, online_series.EpisodeOrders, online_series.choosenOrder, online_series.EpisodeSortOrder, online_series.BannersDownloaded, online_series.HasLocalFiles, online_series.HasLocalFiles_Temp, online_series.GetEpisodesTimeStamp, online_series.UpdateBannersTimeStamp, online_series.WatchedFileTimeStamp, online_series.UnwatchedItems, online_series.EpisodeCount, online_series.EpisodesUnWatched, online_series.ViewTags, online_series.TraktIgnore, online_series.language, online_series.banner, online_series.FirstAired, online_series.IMDB_ID, online_series.zap2it_id, online_series.ContentRating, online_series.Network, online_series.NetworkID, online_series.Rating, online_series.RatingCount, online_series.Runtime, online_series.SeriesID, online_series.added, online_series.addedBy, online_series.fanart, online_series.lastupdated, online_series.poster, online_series.AliasNames, online_series.tms_wanted, online_series.tms_priority, online_series.tms_wanted_old, online_series.HasNewEpisodes, online_series.TraktID, local_series.Parsed_Name, local_series.ID, local_series.ScanIgnore, local_series.DuplicateLocalName, local_series.Hidden from online_series left join local_series on local_series.ID==online_series.ID where local_series.ID = -24 and local_series.DuplicateLocalName = 0 and local_series.Hidden = 0 order by upper(online_series.Pretty_Name)

    Interestingly,while TVSeries is deactivated under plugins, it continues to run (and crash in this case): 17 MB of MP-TVSeries.log with just this single repeated message:
    2015-11-20 08:30:20.609 [INFO][23]: SQL Execution Failed, Reason = 'SQLiteClient: cmd:sqlite3_step err:ERROR detailed:bind or column index out of range query:select online_series.ID, online_series.Pretty_Name, online_series.SortName, online_series.origName, online_series.Status, online_series.Genre, online_series.BannerFileNames, online_series.CurrentBannerFileName, online_series.PosterFileNames, online_series.PosterBannerFileName, online_series.Summary, online_series.OnlineDataImported, online_series.AirsDay, online_series.AirsTime, online_series.Actors, online_series.EpisodeOrders, online_series.choosenOrder, online_series.EpisodeSortOrder, online_series.BannersDownloaded, online_series.HasLocalFiles, online_series.HasLocalFiles_Temp, online_series.GetEpisodesTimeStamp, online_series.UpdateBannersTimeStamp, online_series.WatchedFileTimeStamp, online_series.UnwatchedItems, online_series.EpisodeCount, online_series.EpisodesUnWatched, online_series.ViewTags,
    online_series.TraktIgnore, online_series.language, online_series.banner, online_series.FirstAired, online_series.IMDB_ID, online_series.zap2it_id, online_series.ContentRating, online_series.Network, online_series.NetworkID, online_series.Rating, online_series.RatingCount, online_series.Runtime, online_series.SeriesID, online_series.added, online_series.addedBy, online_series.fanart, online_series.lastupdated, online_series.poster, online_series.AliasNames, online_series.tms_wanted, online_series.tms_priority, online_series.tms_wanted_old, online_series.HasNewEpisodes, online_series.TraktID, local_series.Parsed_Name, local_series.ID, local_series.ScanIgnore, local_series.DuplicateLocalName, local_series.Hidden from online_series left join local_series on local_series.ID==online_series.ID where local_series.ID = -1 and local_series.DuplicateLocalName = 0 and local_series.Hidden = 0 order by upper(online_series.Pretty_Name)', SQL = 'select online_series.ID, online_series.Pretty_Name, online_series.SortName, online_series.origName, online_series.Status, online_series.Genre, online_series.BannerFileNames, online_series.CurrentBannerFileName, online_series.PosterFileNames, online_series.PosterBannerFileName, online_series.Summary, online_series.OnlineDataImported, online_series.AirsDay, online_series.AirsTime, online_series.Actors, online_series.EpisodeOrders, online_series.choosenOrder, online_series.EpisodeSortOrder,
    online_series.BannersDownloaded, online_series.HasLocalFiles, online_series.HasLocalFiles_Temp, online_series.GetEpisodesTimeStamp, online_series.UpdateBannersTimeStamp, online_series.WatchedFileTimeStamp, online_series.UnwatchedItems, online_series.EpisodeCount, online_series.EpisodesUnWatched, online_series.ViewTags, online_series.TraktIgnore, online_series.language, online_series.banner, online_series.FirstAired, online_series.IMDB_ID, online_series.zap2it_id, online_series.ContentRating, online_series.Network, online_series.NetworkID, online_series.Rating, online_series.RatingCount, online_series.Runtime, online_series.SeriesID, online_series.added, online_series.addedBy, online_series.fanart, online_series.lastupdated, online_series.poster, online_series.AliasNames, online_series.tms_wanted, online_series.tms_priority, online_series.tms_wanted_old, online_series.HasNewEpisodes, online_series.TraktID, local_series.Parsed_Name, local_series.ID, local_series.ScanIgnore, local_series.DuplicateLocalName, local_series.Hidden from online_series left join local_series on local_series.ID==online_series.ID where local_series.ID = -1 and local_series.DuplicateLocalName = 0 and local_series.Hidden = 0 order by upper(online_series.Pretty_Name)'

    I'll go for another round.
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,418
    2,336
    Home Country
    Germany Germany
    I'll go for another round.
    I wished I could. :cry:

    I opened Configuration and deactivated als Trakt, then rebootet. MP then hangs on the splash screen when "Initialize input devices" is displayed.
    MP Config cannot be opened - nothing happens.
    I restored the previous mediaportal.xml - doesn't help.

    Any hints what to do?
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,578
    8,227
    Home Country
    New Zealand New Zealand
    I have no idea what's going on without log files.
    Can you export and attach using the watchdog with option3?
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,418
    2,336
    Home Country
    Germany Germany
    Wiping the sweat from my forehead here:censored: :

    Somehow the server PC and the connection to it got impacted and MP was just waiting. I rebooted the server and we are back in business.
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,418
    2,336
    Home Country
    Germany Germany
    Weird! At 11.54 I heard the PC fan again...

    I had started MP at around 11:02, then sent it into standby, then woke it up again manually at 11:04, which worked flawlessly. I then found the PC running at 11:54 with a FanArt Handler error message on the screen that the database could not be created. This time I had to kill MP from the Task Manager.

    MediaPortal shows logging for actitivities, which IMHO should not be happenig with the PC being in standby.
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,578
    8,227
    Home Country
    New Zealand New Zealand
    Okay, something is seriously seriously wrong on that PC. Threads in MP are apparently randomly pausing for no apparent reason... and when they resume, random problems are occurring.

    What security software do you run on the PC?
    Is there any possibility that you could temporarily disable it and see if the problems go away?
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,418
    2,336
    Home Country
    Germany Germany
    It's a Windows 10/1511 Pro x64 installation. Security is the "on-board" Windows Defender of Win10 and MediaPortal elements are excluded. Nothing else installed other than MediaPortal.

    I could do the following:
    1. Uninstall (instead of deactivating) TVSeries, Trakt and FanArt Handler
    2. Delete MediaPortal from disk and reinstall without any plugins
    3. Clean install of Windows 10/1511 and start from scratch
    4. Run Watch/Debug mode without plugins

    The issue is that this is the main client in the living - and I have to leave shortly. The good news is that my wife will not be back until tomorrow afternoon, which would give me time to reinstall everything from the beginning, including Windows.

    Option 1 is quick, option 2 is not that a big deal either. 3 will occupy me for hours...
     
    Last edited:

    Users who are viewing this thread

    Top Bottom