[fixed] - MP crashes when use Fanart download | Page 2

Discussion in 'MediaPortal 1.2.0 BETA' started by ShIvADeSt, May 7, 2011.

  1. ysmp
    • Team MediaPortal

    ysmp Design Group

    Joined:
    May 17, 2008
    Messages:
    1,861
    Likes Received:
    701
    Gender:
    Male
    Location:
    Seoul.
    Ratings:
    +790 / 1
    Home Country:
    South Korea South Korea
    hi guys !

    i dont see any problem with downlod fanart with fanart handler plugin with MP 1.2B , evry thing work fine out of the box...:)

    i got all movie info+actor info +actor picture+movie cover+ 3 fanart (as i set it)

    all work fine from the box of 1.2B ...


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. ShIvADeSt

    ShIvADeSt Portal Pro

    Joined:
    May 30, 2009
    Messages:
    71
    Likes Received:
    2
    Ratings:
    +2 / 0
    With latest core.dll no crash (but exceptions in log are present) and no fanart too :(
    Can it be a problem that moviename has russian letters? See no string in log that trying to download fanart
    Code (Text):
    1.  
    2. 2011-05-09 09:13:20.067802 [Debug][MPMain(1)]: DialogWindow: MediaPortal.Dialogs.GUIDialogSelect init
    3. 2011-05-09 09:13:22.559944 [Debug][MPMain(1)]: WindowManager: unroute to MediaPortal.Dialogs.GUIDialogSelect:2000->MediaPortal.GUI.Video.GUIVideoInfo:2003
    4. 2011-05-09 09:13:22.583945 [Debug][MPMain(1)]: WindowManager: route MediaPortal.GUI.Video.GUIVideoInfo:2003->MediaPortal.Dialogs.GUIDialogProgress:101
    5. 2011-05-09 09:13:22.585946 [Debug][MPMain(1)]: DialogWindow: MediaPortal.Dialogs.GUIDialogProgress init
    6. 2011-05-09 09:13:28.554287 [Info.][IMDBDetails(15)]: Picture URL: http://cf1.imgobject.com/posters/23d/4cb1277e5e73d65b8100023d/127-hours-original.jpg
    7. 2011-05-09 09:13:28.639292 [Info.][IMDBDetails(15)]: GETLocalFanart: Parameters E:\Фильмы\Новинки 127 Часов [2010]_D.BDRip.720p.mkv 127 часов   127 Hours unknown 0 True
    8. 2011-05-09 09:13:28.641292 [Debug][(9)]: fileSystemWatcher_Created file c:\programdata\team mediaportal\mediaportal\thumbs\Skin FanArt\Scraper\movies\127 часов   127 Hours{0}.jpg
    9. 2011-05-09 09:13:28.652293 [Info.][IMDBDetails(15)]: GetLocalFanart: line 152 Copy C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\Scraper\Movies\127 часов   127 Hours{0}.jpg -> C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\Scraper\Movies\127 Часов [2010]_D.BDRip.720p{0}.jpg
    10. 2011-05-09 09:13:28.653293 [Debug][(9)]: fileSystemWatcher_Deleted file c:\programdata\team mediaportal\mediaportal\thumbs\Skin FanArt\Scraper\movies\127 часов   127 Hours{0}.jpg
    11. 2011-05-09 09:13:28.674294 [Info.][IMDBDetails(15)]: Exception   :System.IO.FileNotFoundException: Файл "C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\Scraper\Movies\127 часов   127 Hours{0}.jpg" не найден.
    12. Имя файла: "C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\Scraper\Movies\127 часов   127 Hours{0}.jpg"
    13.    в System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    14.    в System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite)
    15.    в MediaPortal.Util.FanArt.GetLocalFanart(String path, String filename, String title, String localFile, Int32 index, Boolean share)
    16. 2011-05-09 09:13:28.675294 [Info.][IMDBDetails(15)]: Exception   :Файл "C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\Scraper\Movies\127 часов   127 Hours{0}.jpg" не найден.
    17. 2011-05-09 09:13:28.677294 [Info.][IMDBDetails(15)]:   site      :Void WinIOError(Int32, System.String)
    18. 2011-05-09 09:13:28.678294 [Info.][IMDBDetails(15)]:   source    :mscorlib
    19. 2011-05-09 09:13:28.680294 [Info.][IMDBDetails(15)]:   stacktrace:   в System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    20.    в System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite)
    21.    в MediaPortal.Util.FanArt.GetLocalFanart(String path, String filename, String title, String localFile, Int32 index, Boolean share)
    22. 2011-05-09 09:13:28.831303 [Debug][(9)]: fileSystemWatcher_Created file c:\programdata\team mediaportal\mediaportal\thumbs\Videos\Title\127 часов   127 Hours{1900}L.jpg
    23. 2011-05-09 09:13:28.845304 [Debug][IMDBDetails(15)]: CreateThumbnail : FileExistsInCache updated with new file: C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Videos\Title\127 часов   127 Hours{1900}L.jpg
    24. 2011-05-09 09:13:28.921308 [Debug][(9)]: fileSystemWatcher_Created file c:\programdata\team mediaportal\mediaportal\thumbs\Videos\Title\127 часов   127 Hours{1900}.jpg
    25. 2011-05-09 09:13:28.925308 [Debug][IMDBDetails(15)]: CreateThumbnail : FileExistsInCache updated with new file: C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Videos\Title\127 часов   127 Hours{1900}.jpg
    26. 2011-05-09 09:13:29.083317 [Debug][IMDBDetails(15)]: WindowManager: unroute to MediaPortal.Dialogs.GUIDialogProgress:101->MediaPortal.GUI.Video.GUIVideoInfo:2003
    27. 2011-05-09 09:13:29.097318 [Info.][MPMain(1)]: RefreshIMDB() - Found movie and added info for: 127 часов   127 Hours (Year: 2010)
    28. 2011-05-09 09:13:32.751527 [Debug][MPMain(1)]: Windowmanager: Goto previous window
    29.  
    30.  
     
  4. Deda
    • Team MediaPortal

    Deda Lead Dev MP1 Videos

    Joined:
    March 18, 2009
    Messages:
    2,423
    Likes Received:
    2,098
    Gender:
    Male
    Occupation:
    IT Consultant
    Location:
    Zagreb
    Ratings:
    +2,385 / 1
    Home Country:
    Croatia Croatia
    Show System Specs
    I'm curious about this:

    Code (Text):
    1.  
    2. 2011-05-09 09:13:28.641292 [Debug][(9)]: fileSystemWatcher_Created file c:\programdata\team mediaportal\mediaportal\thumbs\Skin FanArt\Scraper\movies\127 часов   127 Hours{0}.jpg
    3. 2011-05-09 09:13:28.652293 [Info.][IMDBDetails(15)]: GetLocalFanart: line 152 Copy C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\Scraper\Movies\127 часов   127 Hours{0}.jpg -> C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\Scraper\Movies\127 Часов [2010]_D.BDRip.720p{0}.jpg
    4. [COLOR=Red]2011-05-09 09:13:28.653293 [Debug][(9)]: fileSystemWatcher_Deleted file c:\programdata\team mediaportal\mediaportal\thumbs\Skin FanArt\Scraper\movies\127 часов   127 Hours{0}.jpg[/COLOR]
    5. 2011-05-09 09:13:28.674294 [Info.][IMDBDetails(15)]: Exception   :System.IO.FileNotFoundException: Файл "C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\Scraper\Movies\127 часов   127 Hours{0}.jpg" не найден.
    6.  
    What deletes already created 127 часов 127 Hours{0}.jpg ? Can you maybe have some angry antivirus or something?

    There is no code for delete between creation of fanart for DBView and share view.
    What is happening is that first fanart is created then it tries to copy that file as 127 Часов [2010]_D.BDRip.720p{0}.jpg but method fails because something deletes it meanwhile.

    I tested fanarts on your database which you sent previously and none error found, everything was ok.

    Can you refresh fanart for that movie in configuration? No need to scan movie, you can do that in fanart tab.

    All parameters passed to fanart scraper are ok (edit: ahh yes local file is empty, this leads to something else)

    09:13:28.639292 [Info.][IMDBDetails(15)]: GETLocalFanart: Parameters
    Path->(E:\Фильмы\Новинки)
    Filename->(127 Часов [2010]_D.BDRip.720p.mkv)
    MovieTitle->(127 часов 127 Hours)
    Local file->(unknown) This is not ok
    Index->(0)
    Create fanart for share view->(True)
     
  5. ShIvADeSt

    ShIvADeSt Portal Pro

    Joined:
    May 30, 2009
    Messages:
    71
    Likes Received:
    2
    Ratings:
    +2 / 0
    I think I begin to understand problem. If file isn't in vdeoDB and I try to download IMDB info all works fine - fanart downloading.
    But if video already in videoDB - fanart on refresh didn't download.
    File 127 hours was not in videodb - fanart downloaded and all ok
    File harry Potter was in videodb - no fanart downloaded and exception in log.

    Bug 2. When fanart fist time downloaded it doesn't show immediatly. Need to close MP and start it again, that downloaded fanart shows for file. May be open new thread for this bug?
     
  6. Deda
    • Team MediaPortal

    Deda Lead Dev MP1 Videos

    Joined:
    March 18, 2009
    Messages:
    2,423
    Likes Received:
    2,098
    Gender:
    Male
    Occupation:
    IT Consultant
    Location:
    Zagreb
    Ratings:
    +2,385 / 1
    Home Country:
    Croatia Croatia
    Show System Specs
    Ok, this file will help you (I hope so). You can use original core.dll

    Fanart scrape in your case should not be taken from GetLocalFanart beacuse it's scrapped during movie refresh (rescan) that's why parameter localfile = unknown. I found possible glitch so I hope we can conclude this.

    Possible mistake is this:
    Code (Text):
    1.  
    2. if (_movieDetails.FanartURL == string.Empty)
    3.             {
    4.               fanartSearch.GetTmdbFanartByApi
    5.  
    6. should be
    7.  
    8. if (_movieDetails.FanartURL == string.Empty || _movieDetails.FanartURL == Strings.Unknown)
    9.             {
    10.               fanartSearch.GetTmdbFanartByApi
    11.  
    12.  
    You need to get fanart by API not as local file.
     
    • Like Like x 1
  7. ShIvADeSt

    ShIvADeSt Portal Pro

    Joined:
    May 30, 2009
    Messages:
    71
    Likes Received:
    2
    Ratings:
    +2 / 0
    Yes now it works perfectly with old core.dll. Fanart downloaded and no crash ever.

    But Bug 2 remains. Newly downloaded fanart shows for file ONLY after MP restart. Must I create new thread?
     
    • Like Like x 1
  8. Deda
    • Team MediaPortal

    Deda Lead Dev MP1 Videos

    Joined:
    March 18, 2009
    Messages:
    2,423
    Likes Received:
    2,098
    Gender:
    Male
    Occupation:
    IT Consultant
    Location:
    Zagreb
    Ratings:
    +2,385 / 1
    Home Country:
    Croatia Croatia
    Show System Specs
    This is behavior of fanart plugin, I can't do nothing about this. But it should be visible after some time when fanart plugin handles new files.
     
  9. Deda
    • Team MediaPortal

    Deda Lead Dev MP1 Videos

    Joined:
    March 18, 2009
    Messages:
    2,423
    Likes Received:
    2,098
    Gender:
    Male
    Occupation:
    IT Consultant
    Location:
    Zagreb
    Ratings:
    +2,385 / 1
    Home Country:
    Croatia Croatia
    Show System Specs
    And one thing to help you because I saw that kinopoisk scrapper doesn't have IMDBtt number (but you have it in your db) and when refreshing movie that number is gone from the database,so if you want to have multiple fanarts and without possible mistake, use "Refresh all" in Fanart tab in Configuration and you will have it for all movies because I can only get those when using that tt id, but enter missing tt number in movies you refreshed in MP (to edit that field check "Look up by tt" in title TAB) and save db first.
     

    Attached Files:

  10. ShIvADeSt

    ShIvADeSt Portal Pro

    Joined:
    May 30, 2009
    Messages:
    71
    Likes Received:
    2
    Ratings:
    +2 / 0
    Ok if is plugin behavior - let be so. May be mark thread as Bug?
     
  11. Deda
    • Team MediaPortal

    Deda Lead Dev MP1 Videos

    Joined:
    March 18, 2009
    Messages:
    2,423
    Likes Received:
    2,098
    Gender:
    Male
    Occupation:
    IT Consultant
    Location:
    Zagreb
    Ratings:
    +2,385 / 1
    Home Country:
    Croatia Croatia
    Show System Specs
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!