Moving Pictures config & MP crashing

Discussion in 'Moving Pictures' started by Dark Eyes, November 18, 2017.

  1. Dark Eyes

    Dark Eyes Portal Pro

    Joined:
    February 27, 2011
    Messages:
    51
    Likes Received:
    4
    Ratings:
    +4 / 0
    Show System Specs
    Hello folks,

    I have been trying to tidy up my movies & Moving Pictures, so i have been going through getting rid of double entries and removing old movie files. Unfortunately, Moving Pictures config is now crashing soon after it runs - usually when it is retrieving possible matches. I can see a few errors in the MPC log that seem to indicate the connection to various webservices and apis are failing, but I don't know what could be causing this as my connection to the internet has remained the same all day.
    Unfortunately it is now causing MediaPortal to crash soon after it launches, which is worrying.



    If somebody has a moment to have a look in the logs, and see if they can see an obvious cause for the crashing, I would be very grateful.
     
    • Like Like x 1
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Edalex
    • Premium Supporter

    Edalex Community Plugin Dev

    Joined:
    January 3, 2008
    Messages:
    2,901
    Likes Received:
    709
    Gender:
    Male
    Location:
    Saratov
    Ratings:
    +1,223 / 9
    Home Country:
    Russian Federation Russian Federation
    Show System Specs
    Hello, I can see a crash during PathScanner run. So something wrong with your files or paths you've set in MovPics.Probably access problem. ALso you have corrupted Logomanager.config file but it's another story so please post it to Logomanager thread.
    P.s. Fun thing that fisrt similar thread at the bottom of the page is yours too :p
     
  4. Dark Eyes

    Dark Eyes Portal Pro

    Joined:
    February 27, 2011
    Messages:
    51
    Likes Received:
    4
    Ratings:
    +4 / 0
    Show System Specs
    Hello Edalex - thank for your response. Unfortunately, I'm still struggling to work out how to solve this problem. I had, earlier today, deleted a couple of locations from Media Sources, but they hadn't existed for over a year. When it is scanning local media sources, it seems to be scanning 5 locations, but there are only 4 now in my source list - could this be the problem?
    Looking in the Windows crash xml, I can see;
    <ProblemSignatures>
    <EventType>CLR20r3</EventType>
    <Parameter0>Moving Pictures Config.exe</Parameter0>
    <Parameter1>1.0.0.1</Parameter1>
    <Parameter2>52d3c777</Parameter2>
    <Parameter3>MovingPictures</Parameter3>
    <Parameter4>1.8.1.0</Parameter4>
    <Parameter5>55d83406</Parameter5>
    <Parameter6>40d</Parameter6>
    <Parameter7>200</Parameter7>
    <Parameter8>System.NullReferenceException</Parameter8>
    which I presume indicates the point at which it crashes, but I don't think it is of much help - not to me anyway.

    Any more suggestions, gratefully received.
     
  5. RoChess
    • Premium Supporter

    RoChess Extension Developer

    Joined:
    March 10, 2006
    Messages:
    4,182
    Likes Received:
    1,304
    Ratings:
    +1,683 / 2
    Looks like a few try/catch error handling entries are missing, but you can always look at the Moving-Pictures database in an SQL program and verify that all the import locations exist, or run an SQL query to cleanup the ones you want to properly remove.

    If you do not have SQL knowledge, then either share your database with somebody that does, or delete it and do a fresh import.
     
  6. Dark Eyes

    Dark Eyes Portal Pro

    Joined:
    February 27, 2011
    Messages:
    51
    Likes Received:
    4
    Ratings:
    +4 / 0
    Show System Specs
    Thanks RoChess - I have no experience of SQL databases, so I suspect I will have to bite the bullet, delete it and start again :(
     
  7. RoChess
    • Premium Supporter

    RoChess Extension Developer

    Joined:
    March 10, 2006
    Messages:
    4,182
    Likes Received:
    1,304
    Ratings:
    +1,683 / 2
    SQL sounds scary, but browsing the data manually is pretty simple.

    Download SQLite Expert Personal 5.x from: SQLite administration | SQLite Expert

    Then open up movingpictures.db3 from the database folder, and browse through the different tables. I'd be able to tell you exactly which ones if my HTPC power supply didn't decide to die when the fuse popped a few days ago (waiting for a BlackFriday or CyberMonday deal to buy a new one), but the naming is pretty obvious.

    Now don't just go around and delete things you think look bad, because there is more than likely SQL table references going on with the ID of one cell being referenced elsewhere.

    What you can however do is examine the paths/drives for import locations, and verify those are active and that MovPic has read/write access to those. If you notice a mistake, say you removed a physical drive, but paths are still referencing to it, then you could otherwise `edit` it to a temporary path you can create.

    And if you reply on here in detail the mistake you manually found, then somebody can reply with an SQL query update to fix it.

    For example to mass update values, you do: UPDATE `table_name` SET column_name = REPLACE(column_name, 'string_old', 'string_new');

    This can be used to update any media locations from "E:\" to "D:\" or whatever you find is wrong.

    NOTE: Be sure to first run an SQL integrity scan though, as the database might have simply become corrupted (you might be lucky in having an auto-backup available in the database subfolder that gets created each time you `update` MovPic plugin). SQLite Expert has pragma integrity and vacuum commands in the menu options.
     
  8. Dark Eyes

    Dark Eyes Portal Pro

    Joined:
    February 27, 2011
    Messages:
    51
    Likes Received:
    4
    Ratings:
    +4 / 0
    Show System Specs
    Hello RoChess

    I'm still struggling to resolve this issue. Looking in the database, the import paths are correct, and it passes the Check and Vacuum tests. It crashes when about 30 files into the 'retrieving possible matches' operation, but not always on the same file. I have tried a backup database from earlier in the year, but that crashes in the same way.

    Any suggestions you have for what to check next, would be most welcome.
     
  9. RoChess
    • Premium Supporter

    RoChess Extension Developer

    Joined:
    March 10, 2006
    Messages:
    4,182
    Likes Received:
    1,304
    Ratings:
    +1,683 / 2
    @Dark Eyes, possible matches would indicate it found 'new' movies not yet in your database, and it crashes trying to process them for import.

    You can compare the database content with the movies on your folders, and locate the `new` ones, and put them in a separate folder for now. See if MovPic then works as it should, and then move one movie back at a time, until you've found the one causing a conflict.

    Tends to be like a corrupted header causing unexpected crashes.

    An update to MediaInfo.DLL can also help as it is used during import to get details on media file, and can lead to unexpected crashes easy.
     
  10. Dark Eyes

    Dark Eyes Portal Pro

    Joined:
    February 27, 2011
    Messages:
    51
    Likes Received:
    4
    Ratings:
    +4 / 0
    Show System Specs
    Hello RoChess

    I have tried updating MediaInfo.DLL, to a slightly newer version from the MediaPortal TV Server folder; I tried the newest one from the MediaInfro program files folder, but that caused MPConfig to crash almost immediately.
    Looking in the database, in the movie_info section, the movie with the highest rowid, which i presume is the last one added to the database, is not the last one added to the folders, there are others with lower rowids that were added more recently.
    Unfortunately, there are about 3500 entries, so I'm not sure this is going to be that easy to solve, by removing files from the folders.
    I have also noticed that every time I run it, the logs show a different file, as the last successfully processed - which would suggest that it isn't always crashing on the same file.
    I presume that if I uninstall MovPic and do a clean install, i will hit the same problem eventually.

    If you have any other suggestions, as to what I can try, I would love to hear them.
     
  11. RoChess
    • Premium Supporter

    RoChess Extension Developer

    Joined:
    March 10, 2006
    Messages:
    4,182
    Likes Received:
    1,304
    Ratings:
    +1,683 / 2
    @Dark Eyes, unfortunately you might be forced to debug it with the n^2-1 method, and take your 3500 entries, and import just half of them on a fresh new install. If those work, the issue is in the other 1750 files, then you split those in half and start over. Eventually you find the bad file.

    Another option is to run a script that will verify each file individually and verify that it is a valid media file. I wrote such a script for myself after I had to recover from outdated disParity recovery information and media files were corrupt at binary level (so mine would mostly import fine, but playback would fail on some). It took like 12 days (not a typo) to run the script though, because it would parse each mediafile by decoding it as fast as it could, but was on a slow CPU (each movie took like 10 minutes to verify).

    I planned to clean the script up after making it more generic for others to use and publish it on the MePo forum, but I can give you an early beta version of sorts if you want.
     
    • Like Like x 1
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!