MP crash when updating xml file (1 Viewer)

bwg

Portal Pro
December 25, 2007
145
38
Home Country
Hi guys, just wondering if this is normal; if I am in MyFilms plugin browsing or watching movie, and I try any edits to the movie database xml file (e.g. running AMCUpdater or editing and saving list in ANT catalog) I get a MP has stopped working error message on screen, and after aknowledging exit to desktop.

I thought that I used to be able to do this with previous versions. Am I wrong? Does MyFilms open a shadow copy of the xml file when in use?
 

Guzzi

Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,159
    750
    Hi guys, just wondering if this is normal; if I am in MyFilms plugin browsing or watching movie, and I try any edits to the movie database xml file (e.g. running AMCUpdater or editing and saving list in ANT catalog) I get a MP has stopped working error message on screen, and after aknowledging exit to desktop.

    I thought that I used to be able to do this with previous versions. Am I wrong? Does MyFilms open a shadow copy of the xml file when in use?
    Yes, MyFilms opens and caches the XML file and watches the original one for changes. Please post logs and info about the crash, so I can fix it.
     

    bwg

    Portal Pro
    December 25, 2007
    145
    38
    Home Country
    Thanks Guzzi, I have finally got around to posting the log. This error is reproducible every time. MP sitting idle on home menu screen, not playing anything. Running AMCUpdater from another pc on the network (i.e. AMCU is run on the other pc and accesses the xml file - which is on the pc running MP - from network share). The fault is produced for each new item added to the xml file (i.e. I got a crash after processing the 1st entry in AMCU, then the 2nd entry waited for manual confirmation. Before confirming the 2nd entry, I restarted MP from watchdog (to get clean logs) and once I confirmed the 2nd entry and it processed, MP crashed again.

    Hope this makes some sense! I have attached the error log only, please let me know what other logs you require if any.
     

    Guzzi

    Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,159
    750
    .... can you please post config and complete logs (at least myfilms and MP logs) of the machine getting the exception and the central DB XML file.
     

    bwg

    Portal Pro
    December 25, 2007
    145
    38
    Home Country
    OK, here are the logs (didn't attach complete logs as they are >20MB). My Ant xml file is attached also, note that the covers are links to folder.jpg files in each movie folder.

    I note in the myfilms.log that the error relates to the file being locked?:
    "error : The process cannot access the file '\\HTPC\Documents\amc data file new\ben.xml' because it is being used by another process."
     

    Attachments

    • ben.xml
      3.8 MB

    bwg

    Portal Pro
    December 25, 2007
    145
    38
    Home Country
    one more discovery... if I launch MP without entering the myfilms gui and run AMCUpdater from the other pc, the error / crash does not occur. If I have entered myfilms at some stage (even if I am back on the home menu when I run AMCUpdater from the other pc), the fault will occur. What events happen once the myfilms gui has been entered that would lock the file? I am running Trakt integration for myfilms, don't know if that would be playing a part?
     

    Guzzi

    Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,159
    750
    ... that is expected, as MyFilms only starts watching the DB file once the config was opened (and cached). I am a bit busy currently, but will fix this issue for 5.2 ...
     

    Guzzi

    Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,159
    750
    OK, here are the logs (didn't attach complete logs as they are >20MB). My Ant xml file is attached also, note that the covers are links to folder.jpg files in each movie folder.

    I note in the myfilms.log that the error relates to the file being locked?:
    "error : The process cannot access the file '\\HTPC\Documents\amc data file new\ben.xml' because it is being used by another process."
    Hi, I tried to reproduce your setup, but couldn't reproduce the "file locked" problem - everything worked as expected here, chnges were synced into MyFilms cache, MP GUI updated (if MF was active window) and now crash.
    Regardless of that, I did some optimizations in the AMCU code, that might help in certain situations.
    Did you have the DB opened in any other app than MyFilms/MP and AMCupdater?
     

    bwg

    Portal Pro
    December 25, 2007
    145
    38
    Home Country
    OK, took the jump and installed the test version of 5.2 - bingo! everything works fine, no crash and changes are updated in the gui as AMCUpdater runs. Must have been a bug in 5.1?
     

    Guzzi

    Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,159
    750
    That is possible - there had been a lot of changes (and fixes) since 5.1 ...
     

    Users who are viewing this thread

    Top Bottom