[Usability] Restart on resume (2 Viewers)

Requiem

MP Donator
  • Premium Supporter
  • January 1, 2012
    588
    216
    Home Country
    Germany Germany
    Country flag
    Hi,

    I'd like to re-initiate a discussion about a feature/workaround which has been discarded with the release of MP1.4: The option to automatically restart MediaPortal on Resume from Standby.

    The functionality always has been a workaround for existing bugs, and of course, it's still a valid argument that it would be better to eleminate any Bugs in MP that prevent a clean startup after resume than to use a workaround. Yes, I understand that.

    Well, my reality is as follows: I have a multiseat-setup (one server, one main HTPC, AmpDroid and two notebooks...). I always try to use the latest mediaportal version (1.8pre right now) for more than 2 years now.
    When everything goes wrong and I have a f*cked up configuration or irreproducible errors, I'll just go back to a clean Windows7-Image with all updates of my HTPC and reinstall MP from scratch with all its plugins.
    Right now, some very essential plugins lack official releases, like Fanart Handler.
    So, I install MP, I install my favorite skin with its plugins (StreamedMP), I configure everything, I start with newly built databases for fanart, series, music etc.
    At the moment, I need to find time again to reinstall from scratch once again, as with 1.7.0/1.7.1hotfix/1.8pre I have issues with resume again - this time EVERY time when I resume, I have to kill MP as it's frozen or just hit the HTPCs reset button.

    I keep reading several posts in several threads here, where the technically advanced users are sharing their problems with MP and resume from standby. Just search the forums yourselves.

    As I said, I fully understand that the goal is to eleminate bugs and not to implement workarounds.

    But please, reimplement this functionality or implement it as an addon. It would save me (and I am sure, lots of others) hours of frustration. There still seem to be a lot of circumstances not obvious to the standard end-user who just wants to use his HTPC which lead to a state of not responding/crashing MP after resume from standby.

    So, a pledge to the devs: Please rethink your arguments for and against the restart on resume functionality. I still think that MP would be better with this workaround feature.
     

    Requiem

    MP Donator
  • Premium Supporter
  • January 1, 2012
    588
    216
    Home Country
    Germany Germany
    Country flag
    Maybe there's something wrong with my system, but I cannot figure it out. I have reset my Windows PC to a fresh installation start and made a client-only-installation of 1.8pre with StreamedMP, configured everything and everything works - except a clean resume from standby.
    Day 1: MP hangs after resuming from standby (black screen, no reaction)
    Day 2: Corrupted database after resume from standby, needed to copy it back from my incremental backup after clean installation
    Day 3: MP manages it to come back properly after standby (I didn't change anything)
    Day 4: MP hangs again after resume from standby.

    I'd write a plugin to restart after resume if I knew how...
     

    Luca Brasi

    MP Donator
  • Premium Supporter
  • November 14, 2007
    1,026
    119
    Home Country
    Germany Germany
    Country flag
    Back in the day when I had problems with this as well I used Eventghost to close MP before going to sleep and start it after resume. Be aware that Eventghost has it's flaws as well and that you will have to dig into this one also. When you have it running as it should it is a mighty tool though.

    Edit: I just realize this is in the development section so my hint might not fit in here. If so, please just ignore it.
     

    mm1352000

    Development Group
  • Team MediaPortal
  • September 1, 2008
    21,577
    8,222
    Home Country
    New Zealand New Zealand
    Country flag
    Hello Requiem :)

    I remember several discussions on this subject in which you've strongly advocated for us to bring back this function. Your points and logic have always been well thought out, and I think you've also fully understood the main response from us about avoiding workarounds.

    Here's the thing that is troubling me: I've gone through your post history and I can't find a single set of logs from you to enable us to try to solve the standby/resume problems you're experiencing. Maybe I missed a post somewhere, I don't know... but how about giving us [another] chance to look at your problem with fresh eyes? While I understand and even agree that having the function back could be useful for more people that just you, I also think that solving your problem could solve the problem for more people than just you... and solving the problem would be a better solution because no configuration would be required. :)

    Regards,
    mm
     

    Requiem

    MP Donator
  • Premium Supporter
  • January 1, 2012
    588
    216
    Home Country
    Germany Germany
    Country flag
    @mm1352000 Thanks for your interest in this topic. Well, yes, I think both of us understand the other one. I am gladly willing to help to participate to solve any problems where I can. I think I have posted logs about this before, but don't nail me down on this. Anyhow, I'm not at home right now, but I will collect a set of logs in the next days and will gladly provide them.

    One thing beside hangs is a problem with database corruption, I am not sure why this is happening; I've had corrupted databases where MePo wont start anymore a bunch of times and was able to solve this problem by restoring the last backup of the database folder (I do automatic incremental daily backups).

    But would it be difficult to take the old code and "export" it to an addon to be able to restart on resume until there are no more issues?

    @Luca Brasi: Thank you, I'll loook into this eventually, but seems to be quite complicated. I dont need EventGhost for other purposes right now.
     

    HomeY

    Test Group
  • Team MediaPortal
  • February 23, 2008
    6,475
    4,645
    46
    ::1
    Home Country
    Netherlands Netherlands
    Country flag
    One thing beside hangs is a problem with database corruption, I am not sure why this is happening;
    Do you happen to use the Central database option and modified your MediaPortalDirs.xml?

    and was able to solve this problem by restoring the last backup of the database folder
    This would mean it's plugin related, since you're talking about the SQLite databases, and not the TV database (which uses MySQL by default). Correct?
     

    Requiem

    MP Donator
  • Premium Supporter
  • January 1, 2012
    588
    216
    Home Country
    Germany Germany
    Country flag
    @HomeY No, I don't use a central database modification as I sometimes have more than one client accessing. I use MPSync's current version to synchronize from my HTPC to the server (TV-Server and media storage) to have an up-to-date MPExtended database fpr use withe WebMediaPortal and aMPdroid.

    As I have a multiseat setup, it's only the clients databse folder which has seen corruption so far (for the server, everything goes well with resume from standby using LightsOut-Software, the HTPC will wake the server after resume through the lightsout-client software, MePo client is configured to wait a few seconds after resume to give the server time to come online). I have seen corruption with plugindatabases as Moving Pictures or MP-TV-Series, but as well with the music database.
     

    HomeY

    Test Group
  • Team MediaPortal
  • February 23, 2008
    6,475
    4,645
    46
    ::1
    Home Country
    Netherlands Netherlands
    Country flag
    I'm interested in the following test:
    Disable the MPSync plugin before going to bed tonight, then start MediaPortal with the WatchDog option #2, let (or put) the system (to) sleep and see how your databases are doing tomorrow morning (or after resume).

    But let's wait for logs first before i keep guessing ;)
     

    Requiem

    MP Donator
  • Premium Supporter
  • January 1, 2012
    588
    216
    Home Country
    Germany Germany
    Country flag
    I'll do so. But though database corruptions happens from time to time, this is not my daily problem with resuming, just to be sure. :)
     

    HomeY

    Test Group
  • Team MediaPortal
  • February 23, 2008
    6,475
    4,645
    46
    ::1
    Home Country
    Netherlands Netherlands
    Country flag
    But though database corruptions happens from time to time, this is not my daily problem with resuming, just to be sure.
    Yeps, got that. But since you stated in your OP that you can reproduce it every day, the logs should tell us more.
    For us it's important to know if it's MP Core or Plugin related, because that's about the first step to narrow the issue down to it's source. ;)
     

    Users who are viewing this thread

    Similar threads

    Thanks for that but it does seem to me that Madvr is the issue here, I guess it is not as robust as the EVR or does not get shut down as elegantly, I also suspect, though I have not tried it, that the result would be the same for playback of any video, i.e. not just TV. Given that German TV is now all transmitted as full HD, the need...
    Thanks for that but it does seem to me that Madvr is the issue here, I guess it is not as robust as the EVR or does not get shut...
    When I finish watching TV I always stop the playback and exit to the home gui before putting the HTPC to sleep and have no...
    Replies
    2
    Views
    3K
    For me not ;) -- Tapatalk | WBR, ajs
    For me not ;) -- Tapatalk | WBR, ajs
    Description: After a resume from sleep the Radio Time plugin will no longer play any radio stations and gives the error shown in...
    Replies
    10
    Views
    1K
    The new 2020 AMD graphics control app. "Radeon Settings" (Driver package ver. 19.12.2 &3) fails to start after a resume from hibernation but only if MP (1.23 final) was also running when the HTPC was put in standby. Nothing happens at all if the icon on the taskbar is double clicked and when I attempt to run the app from win10 start...
    The new 2020 AMD graphics control app. "Radeon Settings" (Driver package ver. 19.12.2 &3) fails to start after a resume from...
    The new 2020 AMD graphics control app. "Radeon Settings" (Driver package ver. 19.12.2 &3) fails to start after a resume from...
    Replies
    0
    Views
    684
    MP1 MP2 MP2 DLNA status? DE
    What I meant is that we have a MP2 plugin called UPnP Render that can play media from DLNA servers if I remember correctly. I don't know the current state of the plugin though. That's why MP2 probably never will be certified. ;) Yes, that was also the idea, but it is a big job as all TV's, software etc. seems to not do everything...
    What I meant is that we have a MP2 plugin called UPnP Render that can play media from DLNA servers if I remember correctly. I don't...
    So I'm wondering what the state of play is with MP2 and DLNA functionality? When I started this post, I did see some posts...
    Replies
    10
    Views
    564
    Ok, the importer also remembers the queue of items that are still needed to be processed in settings file. If there is something stuck, it will try again on next server start and probably stuck again. But removing the media source also removes the associated queue. The server's TV plugin automatically creates the media sources for...
    Ok, the importer also remembers the queue of items that are still needed to be processed in settings file. If there is something...
    Hi, I’ve been struggling with MP 2 now for several weeks. Initially all was fine. Then in the client, the listings of recorded TV...
    Replies
    8
    Views
    761
    Top Bottom