[fixed] MP2 Importer Exception of type 'System.OutOfMemoryException' was thrown. (1 Viewer)

Terra

Portal Pro
August 25, 2009
230
56
Austria Austria
Country flag
When did you start your last import?
With all the latest modifications I started the importer around midnight (12.12).

Thats probably the reason, why you have no thumbnails.
I just noticed I am missing some covers (fanart) but maybe you are right that some thumbnails are missing as well.
 

ge2301

MP2 Design
  • Team MediaPortal
  • January 11, 2014
    6,615
    2,385
    Stuttgart
    Germany Germany
    Country flag
    With all the latest modifications I started the importer around midnight (12.12).
    Then the logs are full of OOM warnings again when it comes to creating of thumbnails.

    I just noticed I am missing some covers (fanart) but maybe you are right that some thumbnails are missing as well.
    Probably the OOM errors also affect the download of posters and other FanArt. But this needs to be checked by the experts here.
     

    Brownard

    Development Group
  • Team MediaPortal
  • March 21, 2007
    1,945
    1,297
    United Kingdom United Kingdom
    Country flag
    With all the changes installed so far the importer now went through without any Server Errors!
    However the GUI crashed in the morning and I am also missing a lot of covers for recognized tv shows now.
    Thanks, I can't see the crash in the logs, it looks like the client was closed manually at 6.07 this morning? I may have introduced the missing covers issue but can you double check that they are still missing after a restart of the client?
    2018-12-12 01:50:42,398] [7823004] [132 ] [WARN ] - ImageProcessorThumbnailProvider: Error loading bitmapSource from file data stream
    System.OutOfMemoryException: Out of memory.
    at System.Drawing.Image.FromStream(Stream stream, Boolean useEmbeddedColorManagement, Boolean validateImageData)
    at MediaPortal.Extensions.MetadataExtractors.GDIThumbnailProvider.GDIThumbnailProvider.GetThumbnail(Stream stream, Int32 width, Int32 height, Boolean cachedOnly, Byte[]& imageData, ImageType& imageType)
    Annoyingly Image.FromStream throws OOM exceptions when the image stream is invalid, which has nothing to do with the system being out of memory. Without any other symptoms I expect that this is the case here.
    @ge2301 There are some errors relating to skin files that you probably need to check ;)
    Code:
    [2018-12-12 01:19:00,772] [13174328] [InputMgr ] [DEBUG] - ScreenManager: Loading screen from file path 'C:\Program Files (x86)\Team MediaPortal\MP2-Client\Plugins\BlueVision\Skin\BlueVision\screens\CurrentlyPlayingImage.xaml'...
    [2018-12-12 01:19:00,778] [13174334] [InputMgr ] [ERROR] - ScreenManager: Error loading screen 'CurrentlyPlayingImage' in resource bundle 'BlueVision', falling back to resource bundle 'Theme 'default' of skin 'default''
    MediaPortal.UI.SkinEngine.Xaml.Exceptions.XamlLoadException: XAML loader: Error parsing file 'C:\Program Files (x86)\Team MediaPortal\MP2-Client\Plugins\BlueVision\Skin\BlueVision\screens\CurrentlyPlayingImage.xaml' ---> MediaPortal.UI.SkinEngine.Xaml.Exceptions.XamlLoadException: XAML loader: Error parsing file 'C:\Program Files (x86)\Team MediaPortal\MP2-Client\Plugins\BlueVision\Skin\BlueVision\screens\master_bare_players.xaml' ---> System.Xml.XmlException: Name cannot begin with the '<' character, hexadecimal value 0x3C. Line 176, position 13.
     

    Terra

    Portal Pro
    August 25, 2009
    230
    56
    Austria Austria
    Country flag
    Thanks, I can't see the crash in the logs, it looks like the client was closed manually at 6.07 this morning? I may have introduced the missing covers issue but can you double check that they are still missing after a restart of the client?
    Jup still missing, see screenshot.
    Will a ReImport of shares fix this issue as MP2 will detects missing images?
    Database is now at 5.6GB
     

    Terra

    Portal Pro
    August 25, 2009
    230
    56
    Austria Austria
    Country flag
    Import is finished, I now see more banners in the SERIES menu, however a lot are still missing.
    The series is recognized, they are popular series and they have fanart. Band of Brothers, Mr. Robot just to name 2.
    What should I do to get them?

    the only error in the ServerError.log after the import is now a SQL Error:

    Code:
    [2018-12-12 21:17:09,410] [6134447] [132      ] [ERROR] - MediaLibrary: Error adding or updating media item(s) in path '{03dd2da6-4da8-4d3e-9e55-80e3165729a3}://// [...] >{112728b1-f71d-4284-9e5c-3462e8d3c74d}:///'
    code = Error (1), message = System.Data.SQLite.SQLiteException (0x800007BF): SQL logic error
    near "WHERE": syntax error
       at System.Data.SQLite.SQLite3.Prepare(SQLiteConnection cnn, String strSql, SQLiteStatement previous, UInt32 timeoutMS, String& strRemain)
       at System.Data.SQLite.SQLiteCommand.BuildNextCommand()
       at System.Data.SQLite.SQLiteCommand.GetStatement(Int32 index)
       at System.Data.SQLite.SQLiteDataReader.NextResult()
       at System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave)
       at System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
       at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery(CommandBehavior behavior)
       at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery()
       at MediaPortal.Backend.Services.MediaLibrary.MIA_Management.AddOrUpdateMIA(ITransaction transaction, Guid mediaItemId, MediaItemAspect mia, Boolean add)
       at MediaPortal.Backend.Services.MediaLibrary.MediaLibrary.AddOrUpdateMediaItem(ISQLDatabase database, ITransaction transaction, MediaItemAspect pra, Guid mediaItemId, IEnumerable`1 mediaItemAspects, Boolean wasCreated)
       at MediaPortal.Backend.Services.MediaLibrary.MediaLibrary.AddOrUpdateMediaItem(ISQLDatabase database, ITransaction transaction, Guid parentDirectoryId, String systemId, ResourcePath path, Nullable`1 existingMediaItemId, Nullable`1 newMediaItemId, IEnumerable`1 mediaItemAspects, Boolean isRefresh)
     

    Brownard

    Development Group
  • Team MediaPortal
  • March 21, 2007
    1,945
    1,297
    United Kingdom United Kingdom
    Country flag
    What should I do to get them?
    You can try re-importing each series individually, a full share refresh won't work. Open the context menu on a series and select reimport.
    the only error in the ServerError.log after the import is now a SQL Error:
    Thanks, this seems like a different issue relating to iso files, I'll look into it.
    .
     

    Terra

    Portal Pro
    August 25, 2009
    230
    56
    Austria Austria
    Country flag
    You can try re-importing each series individually, a full share refresh won't work. Open the context menu on a series and select reimport.
    Ah that worked, I did not know there was a context menu.
    2 Series still could not be found, I look into that later...
     

    HTPCSourcer

    MP2 Product Manager
  • Team MediaPortal
  • May 16, 2008
    11,431
    2,333
    Germany Germany
    Country flag
    I already reduced the amount of stuff it keeps in memory in the previous changes I posted, so the memory footprint shouldn't be that big (only a couple of guids for every item to collect fanart for) but it does try to allocate two very long arrays when saving the settings which probably causes the issues when memory is already tight. One of those allocations is unnecessary so I've removed it and I'll also batch up the settings saving so it does it less frequently.
    Anything that you would like to push to 2.2.1 or is it still WiP?
     

    Terra

    Portal Pro
    August 25, 2009
    230
    56
    Austria Austria
    Country flag
    I'd like to test if the external thumb creation by ffmpeg.exe works better for your case than the OCV version.
    @morpheus_xx Is this something I would need todo now after every update or will it be part of a new release? Will this be a general change for everybody?
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    Lichloathe MP2 importing keyart instead of poster General 0
    J [fixed] [MP2-833] 2.2.2 server crash during import Submit: Bug Reports 50
    MausWiesel LightsOut-Connector für MP2? Allgemeines Support- und Diskussionsforum 9
    M [solved] MP2 Not discovering all movies Newcomers Forum 2
    J [fixed] [MP2-821] Importer glitches in 2.2 Submit: Bug Reports 42
    N [Finished] [MP2-791] Radio recordings do not get imported into Recordings listing MediaPortal 2 25
    raffe [solved] Export tool and import support from MP-TVSeries & Moving Pictures to MP2 General 22
    H MP2 database won't keep in synch with recordings General 2
    H [solved] MP2 Wiedergabe von Aufnahmen und Live TV geht nicht Allgemeines Support- und Diskussionsforum 6
    ge2301 [WiP] MP2Web - A platform independent web client for MP2 MediaPortal 2 57
    F Problems with new install of MP2 Newcomers Forum 3
    catalpa Bug MP2-837 Allgemeines Support- und Diskussionsforum 2
    P MP2: US user, OTA - can NOT get SchedulesDirect plugin to work on MP1 or MP2 --> how do I get OTA schedule? General 5
    bigboss97 Does anyone has a SoundGraph imon remote file for MP2 to share? General 0
    ge2301 Android based client for MP2 MediaPortal 2 3
    R MP2 GUI Issues General 7
    P [solved] MP2 new install, 2 x hdhomerun tuners, client on same PC unable to view TV & recordings Newcomers Forum 8
    Lichloathe Trakt for MP2 question General 7
    C Streaming/transcoding MP2 vs MP1? General 1
    P MP 2 - Request to add an additional TV series Filename protocal Feature Requests 0
    C Streaming to clients over Wifi. MP1 or MP2? Newcomers Forum 0
    CyberSimian MP2 synchronising of stoptime MediaPortal 1 Talk 5
    M Initial Setup MP2 (On Wndows 10) General 2
    R [solved] MP2 Client ist extrem langsam Allgemeines Support- und Diskussionsforum 5
    D [solved] EPG Buddy for MP2 - Does it work? General 5
    Similar threads

























    Top Bottom