- August 30, 2006
- 408
- 36
- Home Country
-
Afghanistan
I've been trying for 3 days to get a brand new htpc set up with MediaPortal 1.2b, specifically Moving Pictures. I currently have an intermittent and very slow Internet connection so I've been assuming that to be the cause of the problem, but after looking at the MP logs, I'm not so sure. Also, my net connection's been up for 9 hours solidly over night and MP is still hanging/crashing.
The import process goes through my 1600 movie collection and always uses the Internet to find the best match. Then, once all 1600 movies are matched, it proceeds to start downloading all the info about it. Only after this happens does it add the movie to the collection.
At some point, usually during this first pass but sometimes later on when it actually starts storing info about each movie (what I call the 2nd pass), it hangs. By "hang", I mean that the status line shows that it's "Retrieving details for: <movie>", and never changes, even several hours later.
When it hangs, which I had assumed was because it gets a network glitch, there's no way to resume it. When it's hung, or rather - stuck on a movie and never moves on to the next one - I can go through the movie list and do a manual search, and it will retrieve the info for that one movie. So MP isn't actually hung, only the main retreival thread, stuck on whatever movie it was on when the network glitched or it internally crashed. There's no timeout to move on to the next movie, and no way to prod the process into continuing.
I've just woken up after leaving it running again from scratch, only to find that it was on movie 5 out of 1600 - so again, it got through the entire 1600 movies for the first pass and was only just starting to do any actual work when it hung. The relevent part of the log file shows a strange error that doesn't seem to be network related:
I checked, and the file in question exists, but it's not in use by anything. This PC is sitting unused. I don't even have antivirus software installed yet (apart from Microsoft's), and there are no other processes that could be using this file. Heck, it's a virgin set-up with Windows 7 Pro installed, all necessary drivers, SAF 5.0, and then MP1.2beta.
Update: It's happened again.
I've completely removed all traces of MP after deleting all paths. I watched it delete all the movies in the database. I deleted all the images in the thumbs directory and then deleted the actual database file itself. I restarted it and it again has done the same thing. MP got all the way through 1600 movies in the first pass and has hung (on a different movie) in the 2nd pass. The messaage is "Retrieving details for: Godzilla, Mothra and King Ghidorah: Giant Monsters All-Out Attack".
My net connection has been up the entire time.
The log file shows:
I used Process Explorer about 40 minutes after it had been sitting there not progressing. The only .jpg file open by any process is opened by Configuration.exe and is "C:\ProgramData\Team MP etc....\MovingPictures\Covers\Thumbs\{Yes.Man} [-2080981462].jpg. There's no mention of this file or movie in the log file.
I guess if there really is something else keeping this file open, then the app really needs to simply skip that movie entry and continue on. I don't know what's opening the file - there are no networked PCs accessing that machine, it's a virgin machine with no anti-virus or any other apps installed.
I'll zip up both log files and attach them.
The import process goes through my 1600 movie collection and always uses the Internet to find the best match. Then, once all 1600 movies are matched, it proceeds to start downloading all the info about it. Only after this happens does it add the movie to the collection.
At some point, usually during this first pass but sometimes later on when it actually starts storing info about each movie (what I call the 2nd pass), it hangs. By "hang", I mean that the status line shows that it's "Retrieving details for: <movie>", and never changes, even several hours later.
When it hangs, which I had assumed was because it gets a network glitch, there's no way to resume it. When it's hung, or rather - stuck on a movie and never moves on to the next one - I can go through the movie list and do a manual search, and it will retrieve the info for that one movie. So MP isn't actually hung, only the main retreival thread, stuck on whatever movie it was on when the network glitched or it internally crashed. There's no timeout to move on to the next movie, and no way to prod the process into continuing.
I've just woken up after leaving it running again from scratch, only to find that it was on movie 5 out of 1600 - so again, it got through the entire 1600 movies for the first pass and was only just starting to do any actual work when it hung. The relevent part of the log file shows a strange error that doesn't seem to be network related:
24-May-2011 04:14:53 Info [ MovieImporter]: Retrieving details for "White Christmas"
24-May-2011 04:14:53 Debug [ DatabaseManager]: INSERTING: Irving Berlin's White Christmas (1954).avi
24-May-2011 04:14:54 Debug [ FollwitConnector]: Response received from follw.it: <?xml version="1.0" encoding="UTF-8"?> <methodResponse> <params> <param> <value> <array> <data> <value> <struct> <member> <name>InternalId</name> <value> <string>13</string> </value> </member> <member> <name>MovieId</name> <value> <string>881</string> </value> </member> <member> <name>UserRating</name> <value> <string>4</string> </value> </member> <member> <name>Watched</name> <value> <string></string> </value> </member> </struct></value> </data> </array> </value> </param> </params> </methodResponse>
24-May-2011 04:14:55 Debug [ DatabaseManager]: UPDATING: Bad Santa
24-May-2011 04:14:55 Debug [ DatabaseManager]: UPDATING: DBUserMovieSettings (413)
24-May-2011 04:15:01 Debug [ DataProviderManager]: UPDATE: Title='Irving Berlin's White Christmas', Provider='imdb.com', Version=2.1.3, Result=SUCCESS
24-May-2011 04:15:05 Debug [ DataProviderManager]: UPDATE: Title='Irving Berlin's White Christmas', Provider='themoviedb.org', Version=Internal, Result=SUCCESS
24-May-2011 04:15:05 Debug [ DataProviderManager]: UPDATE: Title='Irving Berlin's White Christmas', Provider='Ember Media Manager (Local)', Version=1.0.2, Result=FAILED_NEED_ID
24-May-2011 04:15:05 Info [ DBMovieInfo]: Added cover art for 'Irving Berlin's White Christmas' from: \\MOFO\Audio Video Media\Christmas Movies\Irving Berlin's White Christmas (1954)\folder.jpg
24-May-2011 04:15:09 Fatal [ MovieImporter]: Unhandled error in MediaScanner. System.IO.IOException: The process cannot access the file 'C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\MovingPictures\Covers\FullSize\{Irving.Berlin's.White.Christmas} [1687307958].jpg' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.Delete(String path)
at MediaPortal.Plugins.MovingPictures.LocalMediaManagement.MovieResources.ImageResource.VerifyAndResize(ImageSize minSize, ImageSize maxSize)
at MediaPortal.Plugins.MovingPictures.LocalMediaManagement.MovieResources.ImageResource.FromUrl(String url, Boolean ignoreRestrictions, ImageSize minSize, ImageSize maxSize, Boolean redownload)
at MediaPortal.Plugins.MovingPictures.LocalMediaManagement.MovieResources.Cover.FromUrl(DBMovieInfo movie, String url, Boolean ignoreRestrictions, ImageLoadResults& status)
at MediaPortal.Plugins.MovingPictures.Database.DBMovieInfo.AddCoverFromURL(String url, Boolean ignoreRestrictions)
at MediaPortal.Plugins.MovingPictures.DataProviders.TheMovieDbProvider.GetArtwork(DBMovieInfo movie)
at MediaPortal.Plugins.MovingPictures.DataProviders.DataProviderManager.GetArtwork(DBMovieInfo movie)
at MediaPortal.Plugins.MovingPictures.LocalMediaManagement.MovieImporter.AssignFileToMovie(IList`1 localMedia, DBMovieInfo movie, Boolean update)
at MediaPortal.Plugins.MovingPictures.LocalMediaManagement.MovieImporter.AssignAndCommit(MovieMatch match, Boolean update)
at MediaPortal.Plugins.MovingPictures.LocalMediaManagement.MovieImporter.ProcessNextApprovedMatches()
at MediaPortal.Plugins.MovingPictures.LocalMediaManagement.MovieImporter.ScanMedia()
I checked, and the file in question exists, but it's not in use by anything. This PC is sitting unused. I don't even have antivirus software installed yet (apart from Microsoft's), and there are no other processes that could be using this file. Heck, it's a virgin set-up with Windows 7 Pro installed, all necessary drivers, SAF 5.0, and then MP1.2beta.
Update: It's happened again.
I've completely removed all traces of MP after deleting all paths. I watched it delete all the movies in the database. I deleted all the images in the thumbs directory and then deleted the actual database file itself. I restarted it and it again has done the same thing. MP got all the way through 1600 movies in the first pass and has hung (on a different movie) in the 2nd pass. The messaage is "Retrieving details for: Godzilla, Mothra and King Ghidorah: Giant Monsters All-Out Attack".
My net connection has been up the entire time.
The log file shows:
24-May-2011 11:13:48 Debug [ DatabaseManager]: INSERTING: Godzilla, Mothra and King Ghidorah; Giant Monsters All-Out Attack (2001).avi
24-May-2011 11:13:49 Debug [ DataProviderManager]: UPDATE: Title='Godzilla, Mothra and King Ghidorah: Giant Monsters All-Out Attack', Provider='themoviedb.org', Version=Internal, Result=SUCCESS
24-May-2011 11:14:02 Debug [ DataProviderManager]: UPDATE: Title='Godzilla, Mothra and King Ghidorah: Giant Monsters All-Out Attack', Provider='imdb.com', Version=2.1.3, Result=SUCCESS
24-May-2011 11:14:02 Debug [ DataProviderManager]: UPDATE: Title='Godzilla, Mothra and King Ghidorah: Giant Monsters All-Out Attack', Provider='Ember Media Manager (Local)', Version=1.0.2, Result=FAILED_NEED_ID
24-May-2011 11:14:02 Info [ DBMovieInfo]: Added cover art for 'Godzilla, Mothra and King Ghidorah: Giant Monsters All-Out Attack' from: \\MOFO\Audio Video Media\Movies\Godzilla, Mothra and King Ghidorah; Giant Monsters All-Out Attack (2001)\folder.jpg
24-May-2011 11:14:08 Fatal [ MovieImporter]: Unhandled error in MediaScanner. System.IO.IOException: The process cannot access the file 'C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\MovingPictures\Covers\FullSize\{Godzilla,.Mothra.and.King.Ghidorah_.Giant.Monsters.All-Out.Attack} [-205799697].jpg' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.Delete(String path)
at MediaPortal.Plugins.MovingPictures.LocalMediaManagement.MovieResources.ImageResource.VerifyAndResize(ImageSize minSize, ImageSize maxSize)
at MediaPortal.Plugins.MovingPictures.LocalMediaManagement.MovieResources.ImageResource.FromUrl(String url, Boolean ignoreRestrictions, ImageSize minSize, ImageSize maxSize, Boolean redownload)
at MediaPortal.Plugins.MovingPictures.LocalMediaManagement.MovieResources.Cover.FromUrl(DBMovieInfo movie, String url, Boolean ignoreRestrictions, ImageLoadResults& status)
at MediaPortal.Plugins.MovingPictures.Database.DBMovieInfo.AddCoverFromURL(String url, Boolean ignoreRestrictions)
at MediaPortal.Plugins.MovingPictures.DataProviders.TheMovieDbProvider.GetArtwork(DBMovieInfo movie)
at MediaPortal.Plugins.MovingPictures.DataProviders.DataProviderManager.GetArtwork(DBMovieInfo movie)
at MediaPortal.Plugins.MovingPictures.LocalMediaManagement.MovieImporter.AssignFileToMovie(IList`1 localMedia, DBMovieInfo movie, Boolean update)
at MediaPortal.Plugins.MovingPictures.LocalMediaManagement.MovieImporter.AssignAndCommit(MovieMatch match, Boolean update)
at MediaPortal.Plugins.MovingPictures.LocalMediaManagement.MovieImporter.ProcessNextApprovedMatches()
at MediaPortal.Plugins.MovingPictures.LocalMediaManagement.MovieImporter.ScanMedia()
I used Process Explorer about 40 minutes after it had been sitting there not progressing. The only .jpg file open by any process is opened by Configuration.exe and is "C:\ProgramData\Team MP etc....\MovingPictures\Covers\Thumbs\{Yes.Man} [-2080981462].jpg. There's no mention of this file or movie in the log file.
I guess if there really is something else keeping this file open, then the app really needs to simply skip that movie entry and continue on. I don't know what's opening the file - there are no networked PCs accessing that machine, it's a virgin machine with no anti-virus or any other apps installed.
I'll zip up both log files and attach them.