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

henso

Development Group
  • Team MediaPortal
  • February 16, 2012
    2,170
    735
    Denmark Denmark
    Country flag
    Will this be a general change for everybody?
    AFAIK OpenCV is also using ffmpeg but is 2-10 times faster. At least it was when I tested it last. Did the change to ffmpeg help anything or was it any of all other changes done?
     

    Terra

    Portal Pro
    August 25, 2009
    230
    56
    Austria Austria
    Country flag
    Did the change to ffmpeg help anything or was it any of all other changes done?
    Sorry I cannot answer that, I applied all changes mentioned in the thread step by step to solve the issue, not sure which change was the most relevant one.
     

    morpheus_xx

    Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,389
    6,966
    Germany Germany
    Country flag
    Did the change to ffmpeg help anything or was it any of all other changes done?
    It was a try to see if out-of-process thumb creation works better, but I think it did not make the relevant change, as we have seen OOM after replacement as well.
     

    sridharb

    Portal Pro
    October 13, 2007
    57
    0
    India India
    Country flag
    Hi,

    I am also getting similar OOM errors. I notice that you were fixing it. Do you have a version that I could try?

    Thanks,
    Sridhar

    [2019-01-18 00:18:09,793] [8286521] [28 ] [INFO ] - TvdbHandler: Loading series 73314
    [2019-01-18 00:19:54,589] [8391317] [77 ] [INFO ] - TvdbHandler: Loading series 77526
    [2019-01-18 00:20:03,210] [8399938] [98 ] [INFO ] - TvdbHandler: Loading series 71040
    [2019-01-18 00:22:57,586] [8574314] [98 ] [INFO ] - TvdbHandler: Loading series 76290
    [2019-01-18 00:23:15,521] [8592249] [112 ] [ERROR] - Unable to query
    System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
    at System.Text.StringBuilder.ToString()
    at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args)
    at MediaPortal.Backend.Services.MediaLibrary.MIA_Management.GetMIAAttributeColumnName(AttributeSpecification spec)
    at MediaPortal.Backend.Services.MediaLibrary.QueryEngine.BaseQueryBuilder.RequestSimpleAttribute(QueryAttribute queryAttribute, IDictionary`2 tableQueries, IList`1 tableJoins, String miaJoinType, IDictionary`2 requestedAttributes, IDictionary`2 miaTypeTableQueries, RequestedAttribute miaIdAttribute, RequestedAttribute& requestedAttribute)
    at MediaPortal.Backend.Services.MediaLibrary.QueryEngine.MainQueryBuilder.GenerateSqlStatement(Boolean groupByValues, IDictionary`2 miamAliases, String& mediaItemIdOrGroupSizeAlias, IDictionary`2& attributeAliases, String& statementStr, IList`1& bindVars)
    at MediaPortal.Backend.Services.MediaLibrary.QueryEngine.CompiledMediaItemQuery.GetMediaItems(ISQLDatabase database, ITransaction transaction, Boolean singleMode, IEnumerable`1 selectedMIAs, IList`1& mediaItemIds, IDictionary`2& complexMediaItems, Boolean forceSingleMIAMode)
    at MediaPortal.Backend.Services.MediaLibrary.QueryEngine.CompiledMediaItemQuery.Query(ISQLDatabase database, ITransaction transaction, Boolean singleMode)
    [2019-01-18 00:23:20,535] [8597263] [28 ] [WARN ] - Request not successful for retrieve series details for 76290
     

    sridharb

    Portal Pro
    October 13, 2007
    57
    0
    India India
    Country flag
    Thanks, I did. However, it looks like the developer still is working on the issue (or related issues). My question was whether he was done and has a "official" patch that he has checked in.
     

    sridharb

    Portal Pro
    October 13, 2007
    57
    0
    India India
    Country flag
    Something is/seems wrong with the FanArt changes. It is stuck like

    [2019-01-20 13:25:58,721] [18816974] [103 ] [INFO ] - FanArtActionBlock: Persisting 99141 fanart actions.
    [2019-01-20 13:26:00,351] [18818604] [118 ] [INFO ] - FanArtActionBlock: Persisting 99141 fanart actions.
    [2019-01-20 13:26:08,706] [18826959] [113 ] [INFO ] - FanArtActionBlock: Persisting 99141 fanart actions.
    [2019-01-20 13:26:11,622] [18829875] [95 ] [INFO ] - FanArtActionBlock: Persisting 99141 fanart actions.

    [2019-01-20 16:09:32,731] [28630984] [112 ] [INFO ] - FanArtActionBlock: Persisting 99141 fanart actions.
    [2019-01-20 16:09:35,090] [28633343] [112 ] [INFO ] - FanArtActionBlock: Persisting 99141 fanart actions.
    [2019-01-20 16:10:43,708] [28701961] [107 ] [INFO ] - FanArtActionBlock: Persisting 99141 fanart actions.
    [2019-01-20 16:10:47,666] [28705919] [112 ] [INFO ] - FanArtActionBlock: Persisting 99141 fanart actions.
    [2019-01-20 16:10:51,205] [28709458] [112 ] [INFO ] - FanArtActionBlock: Persisting 99141 fanart actions.

    Notice the break in time and there is no movement.
     

    sridharb

    Portal Pro
    October 13, 2007
    57
    0
    India India
    Country flag
    More to the point, I had triggered an import of my Movie folder this morning after putting in place the new files. It progressed to about 6% by around 0830 (a few minutes after I had started) and then there has been no progress since then. There is CPU and disk activity throughout, but no progress other than these log items above. What exactly is happening and where do I look?

    Update: after reverting to the 2.2 versions of the files and retriggering an import, it reaches 48% and seems stuck, but CPU and disk usage much lower than before. I also don't see the persistent FanArt actions as before. However, the last messages in the log is:


    [2019-01-20 16:52:46,645] [1193791] [98 ] [INFO ] - ImporterWorker.ImportJob(#1).DirectoryUnfoldBlock: Successfully processed 5666 MediaItems; time elapsed: 00:18:08.6092793; MaxDegreeOfParallelism(InnerBlock) = 1
    [2019-01-20 16:52:46,646] [1193792] [89 ] [INFO ] - ImporterWorker.ImportJob(#1).DirectorySaveBlock: Successfully processed 5666 MediaItems; time elapsed: 00:18:08.5089175; MaxDegreeOfParallelism(InnerBlock) = 1
    [2019-01-20 16:52:46,730] [1193876] [87 ] [INFO ] - ImporterWorker.ImportJob(#1).FileUnfoldBlock: Successfully processed 50884 MediaItems; time elapsed: 00:18:08.4293517; MaxDegreeOfParallelism(InnerBlock) = 1

    If it is "finished" why is the status in the settings shown as 48%

    The last entry is

    [2019-01-20 16:49:41,615] [1008761] [110 ] [INFO ] - ImporterWorker: 49 % completed (1 ImportJob(s), in total 4700 of 9654 so far identified resources processed)

    The entries of "ImporterWorker" successfully processed comes soon after this 49% completed. As I said, the settings page still displays 48% complete.

    Memory usage is high (910M), but no OOM errors
     
    Last edited:

    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 56
    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