scan stops while retrieving details (1 Viewer)

kiwi1342

Portal Member
May 27, 2010
31
0
Hi all,

I am trying to scan my movies folder but the scan stops after a while. There is the progress bar and it seems like it's still working but afetr more than 8 hours, the progress bar is still there retrieving the same details for the same movie.

I tried to stop and delete some folders from the scan list but the scan always stops nearly the end (not always on the same movie).

I have tried with different version (first the 1.2 and now with the 1.3) but the result is always the same.

How can I solve this issue? Is there any log where I see the problem?

Thanks
 

RoChess

Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    Try the following first:

    https://forum.team-mediaportal.com/836165-post4.html

    If that fails, you might have a media file that is corrupt or in otherways incompatible with the latest version of MediaInfo v0.7.53.0; In that case you can disable MediaInfo gathering during import or use the movingpictures.log file to find out exactly at what file things go wrong and examine that file manually in more detail and replace it with a file that works.
     

    kiwi1342

    Portal Member
    May 27, 2010
    31
    0
    Thanks,

    I tried it but no luck. I noticed that changing the language under the Importer Settings from italian to English everything works fine. Maybe there is a resource not valid? How can I know which is it?

    Thanks
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    I tried it but no luck. I noticed that changing the language under the Importer Settings from italian to English everything works fine. Maybe there is a resource not valid? How can I know which is it?

    The movingpictures.log file normally reveals everything that is happening under the hood. By default it runs in 'Info' mode, which does not give detailed info when things go wrong, in which case you adjust MediaPortal config settings to use 'debug' verbosity mode. Changing this setting in MePo also changes it for MovPic.

    Then if that fails there is a 'scraper debug-mode' option to investigate MovingPictures scraper-scripts in high detail, but this is normally not needed to figure out why things fail for your situation.

    If you are unable to 'read' the log files yourself, attach them to a reply (if they are very large, zip them up first) and somebody else will help you.
     

    jpichie

    Portal Pro
    May 12, 2011
    102
    8
    Home Country
    Canada Canada
    I am actually having the exact same issue.
    Running MP 1.2.2 with the latest moving pictures (1.3.x.x.x.)
    I also just updated to the latest mediaInfo.dll

    I attached my movingpictures log as well as a screencap of what is happening.
    Thanks in advance guys.
     

    Attachments

    • movingpictures.zip
      39.4 KB

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    I am actually having the exact same issue.

    Not sure if it's the exact same source for the problem as the OP, but your error seems to relate to other issues as well, possibly database corruption.

    It starts off with:

    Code:
    25-Feb-2012 20:28:46 Debug [DatabaseMaintenanceM]: Found scriptable provider with no attached scripts! Removing... 
    25-Feb-2012 20:28:46 Error [  MovingPicturesCore]: Error:  System.NotImplementedException: The method or operation is not implemented.
       at Cornerstone.Database.CustomTypes.RelationList`2.RemoveAll(Predicate`1 match)
       at MediaPortal.Plugins.MovingPictures.Database.DatabaseMaintenanceManager.VerifyDataSources()
       at MediaPortal.Plugins.MovingPictures.MovingPicturesCore.Initialize()
    25-Feb-2012 20:28:46  Info [ DataProviderManager]: DataProviderManager Starting 
    25-Feb-2012 20:28:46  Info [ DataProviderManager]: Loading existing data sources... 
    25-Feb-2012 20:28:46 Error [  MovingPicturesCore]: Error:  System.NullReferenceException: Object reference not set to an instance of an object.
       at MediaPortal.Plugins.MovingPictures.DataProviders.DataProviderManager.updateListsWith(DBSourceInfo newSource)
       at MediaPortal.Plugins.MovingPictures.DataProviders.DataProviderManager.loadProvidersFromDatabase()
       at MediaPortal.Plugins.MovingPictures.DataProviders.DataProviderManager..ctor()
       at MediaPortal.Plugins.MovingPictures.DataProviders.DataProviderManager.GetInstance()
       at MediaPortal.Plugins.MovingPictures.DataProviders.DataProviderManager.Initialize()
       at MediaPortal.Plugins.MovingPictures.MovingPicturesCore.Initialize()
    25-Feb-2012 20:28:46  Info [DatabaseMaintenanceM]: Updating Movie Information...

    Followed by a bunch of:

    Code:
    25-Feb-2012 20:28:48  Info [ DataProviderManager]: DataProviderManager Starting 
    25-Feb-2012 20:28:48  Info [ DataProviderManager]: Loading existing data sources... 
    25-Feb-2012 20:28:48 Error [UpdateArtworkProcess]: Error retrieving artwork for The Other Guys System.NullReferenceException: Object reference not set to an instance of an object.
       at MediaPortal.Plugins.MovingPictures.DataProviders.DataProviderManager.updateListsWith(DBSourceInfo newSource)
       at MediaPortal.Plugins.MovingPictures.DataProviders.DataProviderManager.loadProvidersFromDatabase()
       at MediaPortal.Plugins.MovingPictures.DataProviders.DataProviderManager..ctor()
       at MediaPortal.Plugins.MovingPictures.DataProviders.DataProviderManager.GetInstance()
       at MediaPortal.Plugins.MovingPictures.BackgroundProcesses.UpdateArtworkProcess.LookForMissingArtwork()

    And a bunch of:

    Code:
    25-Feb-2012 20:28:51  Info [ DataProviderManager]: Loading existing data sources... 
    25-Feb-2012 20:28:51  Info [ DataProviderManager]: DataProviderManager Starting 
    25-Feb-2012 20:28:51 Fatal [       MovieImporter]: Unhandled error in MediaScanner. System.NullReferenceException: Object reference not set to an instance of an object.
       at MediaPortal.Plugins.MovingPictures.DataProviders.DataProviderManager.updateListsWith(DBSourceInfo newSource)
       at MediaPortal.Plugins.MovingPictures.DataProviders.DataProviderManager.loadProvidersFromDatabase()
       at MediaPortal.Plugins.MovingPictures.DataProviders.DataProviderManager..ctor()
       at MediaPortal.Plugins.MovingPictures.DataProviders.DataProviderManager.GetInstance()
       at MediaPortal.Plugins.MovingPictures.LocalMediaManagement.MovieImporter.GetMatches(MovieMatch mediaMatch)
       at MediaPortal.Plugins.MovingPictures.LocalMediaManagement.MovieImporter.ProcessNextPendingMatch()
       at MediaPortal.Plugins.MovingPictures.LocalMediaManagement.MovieImporter.ScanMedia()

    Did you perhaps upgrade from an older MediaPortal v1.1.x or older setup? Quick test would be to rename your movingpictures.db3 to movingpictures_backup.db3 and then open up MovingPictures config and configure for example "N:\Example Parth With Just One Movie" as a quick import test path to see if things work fine then.

    If everything works fine, then your movingpicture_backup.db3 most likely has some corruption and it might be easiest/best to just redo everything then.

    PS: If you use IMDb+ plugin, and do the test, you will have to rerun the IMDb+ GUI plugin as well to get the IMDb+ scraper-script to reinstall into the new MovPic database,
     

    eeknz

    Portal Member
    February 19, 2009
    31
    8
    Home Country
    New Zealand New Zealand
    Running the risk of being flamed for thread hi-jacking, I also have a similar issue. Following the advice I've found, I have renamed the .db3 file. When the issue occurred I was running an older MovPic version. Upgrading to 1.3.1 has not helped.
    Everything was working fine, then I noticed that new movies were not appearing. Going to the plug-in config, I see the new movies are detected but the import stalls.
    Going to the logs, I don't believe this is right:
    23-Mar-2012 15:56:38 Fatal [ MovieImporter]: Unhandled error in MediaScanner. System.IO.IOException: The directory name is invalid.
    I have always used a UNC path, but changed it to a mapped drive just in case.
    I have always had the user account that connects to that drive denied write access to avoid accidental deletion of things.
    I can access the path just fine, and run files from the path just fine.
    The path points to a WHS2011 machine running StableBit for drive pooling - http://www.stablebit.com/
    There has been an update to this app as it came out of Beta recently. I cannot confirm that the failure to import occurred at the same time as this.
    I can copy a movie to different host and it can scan the folder and come back with a result, based on the share name rather than the file name.
    I can create a new share on the WHS that is not on a pooled drive, and it also comes back with a result, again based on the share name.
    We can see that being all wrong in here:
    23-Mar-2012 16:25:45 Info [ MovieImporter]: Started watching '\\AM-WHS\Test' (Network) - Path is now being monitored for changes.
    23-Mar-2012 16:25:46 Info [ FileSyncProcess]: File maintenance started in the background.
    23-Mar-2012 16:25:46 Info [DatabaseMaintenanceM]: Checking for invalid file entries in the database.
    23-Mar-2012 16:25:46 Info [DatabaseMaintenanceM]: 0 file entries were marked for removal by the importer.
    23-Mar-2012 16:25:46 Info [ FileSyncProcess]: File maintenance finished. (0 seconds)
    23-Mar-2012 16:25:57 Info [ MovieImporter]: Auto-approved 100 Girls.avi as "Test" (2000)
    23-Mar-2012 16:25:57 Info [ MovieImporter]: Retrieving details for "Test"
    23-Mar-2012 16:26:02 Info [ DatabaseManager]: Created user_movie_settings table.
    23-Mar-2012 16:26:02 Info [ DatabaseManager]: Created source_movie_info table.
    23-Mar-2012 16:26:02 Info [ MovieImporter]: Retrieving media information for: Test
    23-Mar-2012 16:26:02 Info [ MovieImporter]: Added "Test" (2000).

    So my conclusions:
    The pooled drive stalls on the first file, regardless of what random file that ends up being. Usually it's 110 Girls, or 11:14
    Non-pooled drives, and paths to standard Win7 PC's can be scanned, but they see the file name then ignore it in favor of the share name.
    Reinstating my original DB3 just me access to what was there just fine. I can't get any new ones in though.

    Apart from a full rebuild of the machine, what have I missed?
     

    eeknz

    Portal Member
    February 19, 2009
    31
    8
    Home Country
    New Zealand New Zealand
    Update:
    Removing IMDB+ makes the scans to non-pooled shares function normally.
    So now the problem is that the media scan to the pooled drive share is having some sort of IO failure. This does appear to be an issue with the M4 version of Stablebit, as M3 worked just fine.
    I'd love to hear from anyone else running any kind of drive pooling app...
     

    Users who are viewing this thread

    Top Bottom