MP 1.8, MyFilms 6.1, aMPed 3.6.2: MyFilms not updating data from movie catalog on resume (1 Viewer)

tano_grasa

Portal Pro
December 31, 2011
122
14
So, everything works fine now and I would like to thank Dadeo for his hints.
This is an overview of the present situation:
1. I created an AMCU configuration in which just the field "MediaLabel" is scanned and updated.
2. I set "Update when playback is stopped or finished" in MF configuration. As Field for watched status I set "MediaLabel" and as value "nuovi" (same field and same value used for my custom view for new movies).
And these are the results:
1. When I wake up my HTPC and see that a new movie is missing in the view "Nuovi", I run a DB update from within MP. This forces a database reload and the new movie pops up.
2. After watching the movie, no further action is needed: thanks to the settings in the Update tab of MF configuration, the value "true" is written in the field MediaLabel and the watched movie automatically disappears from the custom view for new movies.

Once more, thanks to Dadeo for helping me find a workaround for an issue which has been puzzling me for a long time.
 

Guzzi

Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,161
    747
    Good to hear that you found a workaround!
    However, I am still interested in the root cause - which seems, that MF is not getting or recognizing the resume event.
    Can you please (and any other user experiencing that issue) check the logs for an entry
    Code:
    "PowerModeChanged() - MyFilms is resuming from standby"
    After resuming from standby.
    THis is what triggers the reload of the DB - and thus the refresh of the data changed while MP/MF was sleeping.
     

    tano_grasa

    Portal Pro
    December 31, 2011
    122
    14
    Hi Guzzi, I couldn't find the entry "PowerModeChanged() - MyFilms is resuming from standby" in the logs. I attach them just to be sure.
     

    Guzzi

    Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,161
    747
    Strange that this doesn't get detected. Can anyone else please check their logs about it and post result including OS.
    @tano_grasa: Maybe worth to update OS - might help with updated OS drivers too?
    Code:
    [2014-07-27 19:25:53,155] [Log    ] [MPMain   ] [INFO ] - Main: Last install from WindowsUpdate is dated NEVER !!!
     

    Guzzi

    Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,161
    747
    Hi Guzzi, I couldn't find the entry "PowerModeChanged() - MyFilms is resuming from standby" in the logs. I attach them just to be sure.
    Ok, I found it - created an issue and fixed it.
    With next version, it should work as intended - and reload movie data cache after resume (and other stuff, that is handled there). Proof will be log entries like those:
    Code:
    2014-07-30 14:55:22,955 Debug [  1 |       MyFilms ]: MyFilms received power event Suspend
    2014-07-30 14:55:22,955 Debug [  1 |       MyFilms ]: PowerModeChanged() - stopping folders watchers ...
    2014-07-30 14:55:22,955  Info [  1 |       MyFilms ]: PowerModeChanged() - Checking for ongoing DB update ...
    2014-07-30 14:55:22,955 Debug [  1 |       MyFilms ]: PowerModeChanged() - stopping backgroundworker for trailer queue ...
    2014-07-30 14:55:22,955 Debug [  1 |       MyFilms ]: PowerModeChanged() - MyFilms is entering standby
    2014-07-30 14:55:23,272 Debug [ 23 |       MyFilms ]: MyFilms is disconnected from the network
    2014-07-30 14:55:46,773 Debug [  1 |       MyFilms ]: MyFilms received power event Resume
    2014-07-30 14:55:46,773  Info [  1 |       MyFilms ]: PowerModeChanged() - MyFilms is resuming from standby
    2014-07-30 14:55:47,045 Debug [  1 |       MyFilms ]: PowerModeChanged() - MyFilms is reloading movie data to memory cache.
    2014-07-30 14:55:47,045 Debug [  1 |  BaseMesFilms ]: LoadMyFilmsFromDisk() - Current Readlocks: '0'
    2014-07-30 14:55:47,660 Debug [  5 |       MyFilms ]: MyFilms is connected to the network
    2014-07-30 14:56:11,048 Debug [  1 |       MyFilms ]: PowerModeChanged() - MyFilms finished reloading movie data to memory cache.
    2014-07-30 14:56:11,048 Debug [  1 |       MyFilms ]: PowerModeChanged() - restarting backgroundworker for trailer queue...
    2014-07-30 14:56:11,048  Info [  1 |  BaseMesFilms ]: RestartBackgroundWorker() - restarted trailer background worker thread '0'
    2014-07-30 14:56:11,048  Info [  1 |  BaseMesFilms ]: RestartBackgroundWorker() - restarted trailer background worker thread '1'
    2014-07-30 14:56:11,048  Info [  1 |  BaseMesFilms ]: RestartBackgroundWorker() - restarted trailer background worker thread '2'
    2014-07-30 14:56:11,048  Info [  1 |  BaseMesFilms ]: RestartBackgroundWorker() - restarted trailer background worker thread '3'
    2014-07-30 14:56:11,048 Debug [  1 |       MyFilms ]: PowerModeChanged() - restarting DB file watcher to monitor for changes ...
    2014-07-30 14:56:11,195 Debug [  1 |       MyFilms ]: PowerModeChanged() - MyFilms finished Resuming.
     

    Guzzi

    Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,161
    747
    Hi Guzzi, I couldn't find the entry "PowerModeChanged() - MyFilms is resuming from standby" in the logs. I attach them just to be sure.
    Ok, I found it - created an issue and fixed it.
    With next version, it should work as intended - and reload movie data cache after resume (and other stuff, that is handled there).
    New testbuild
     

    tano_grasa

    Portal Pro
    December 31, 2011
    122
    14
    I did 12 tests in the last 4 days. In 11 out of 12 cases the new testbuild worked as intended, i.e. new movies were visible in the custom view on PC resume (that means the movie data cache was reloaded after resume). It didn't work in just one case, but I had an issue with my network card disconnecting on PC resume and other stuff, which I hope I solved now, and I'm not quite sure if this could have been the problem. I attach the logs related to this case. Maybe some of you guys could have a look at them, just to be sure.
     

    Attachments

    • Mýrin.zip
      156.3 KB
    Last edited:

    Guzzi

    Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,161
    747
    I did 12 tests in the last 4 days. In 11 out of 12 cases the new testbuild worked as intended, i.e. new movies were visible in the custom view on PC resume (that means the movie data cache was reloaded after resume). It didn't work in just one case, but I had an issue with my network card disconnecting on PC resume and other stuff, which I hope I solved now, and I'm not quite sure if this could have been the problem. I attach the logs related to this case. Maybe some of you guys could have a look at them, just to be sure.
    Thanks for the feedback - looking in your logs, I see, that MF has received the wakeup / resume - but did not reload the DB - but this seems to due to the fact, that there wasn't a config active yet - thus MF not reloading any data, as it doesn't know about which is the current one. When you entered MF plugin, it loads data and the data should be current. If that is not the case, I'd need to add more logging details - (e.g. it is possible the reload didn't happen due to network not available) - but as you said this was a special situation, I think that is ok. If you have repeated issues with the cache refresh, let me know - but to me seems the root cause is fixed.
     

    Users who are viewing this thread

    Top Bottom