Syntax error in line xxxx (1 Viewer)

vuego

Documentation Group
  • Team MediaPortal
  • August 5, 2006
    1,585
    745
    Göteborg
    Sweden Sweden
    Country flag
    • Thread starter
    • Moderator
    • #1
    MediaPortal Version: 1.2.3

    Description
    I started getting this error when playing a specific video file. I have several plugins installed and the error message doesn't give much clue of what the problem is. After clicking OK the video plays normally however I did not get any subtitles displayed. Turns out the .srt file was missing a decimal.

    Syntax error.png


    The error message isn't very HTPC friendly and doesn't help the user understand what's going on.
    Proposal: Skip the Windows popup window and instead display a message in MediaPortal's GUI which mentions that the subtitle won't be loaded. Even better would be if the subtitle reader could be smart enough to add the missing decimal :)

    Steps to Reproduce:
    Play a video with an external subtitle file that's missing a decimal like in this example:
    Code:
    1
    00:00:05,000 --> 00:00:07,000
    No problem with this line.
     
    2
    00:00:08 --> 00:00:13,000
    This line will make MP throw
    a Syntax Error message box.
    Notice the missing ",000" on the second line.
    Attached log files and a sample .srt subtitle file.
     

    Attachments

    Last edited:

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,448
    10,274
    France
    France France
    Country flag
    From my test on current branch fix, it seems that it's an error from MPC-HC Engine that lead to do not load .SRT.
    Testing with ffdshow engine and only culprit line is not displayed.
    Will try later with MPC-HC to confirm.
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,448
    10,274
    France
    France France
    Country flag
    Hey,
    Was quick, i can confirm it's MPC-HC subtitle code to fix :)

    MPC-HC_Error_SRT.PNG


    So i assume the current fix it's when using subtitle renderer (TV side) :p
     

    Scythe42

    Retired Team Member
  • Premium Supporter
  • June 20, 2009
    2,065
    2,703
    47
    Berlin
    Germany Germany
    Wrong location, but should be easy to apply the regex to C++ as well.

    Shouldn't the subtitle engine be updated in general first?
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,448
    10,274
    France
    France France
    Country flag
    There is a branch with latest MPC-HC Engine, i have tested on it and on master and it's the same.
    I have ask MPC-HC guys to know if they can fix it :p
     

    Scythe42

    Retired Team Member
  • Premium Supporter
  • June 20, 2009
    2,065
    2,703
    47
    Berlin
    Germany Germany
    Provide them with my regex. They can export it to C++ from Expresso and also test it in there on various SRT files.

    It's designed to load the whole file and then return the individual components in each matching block with captures.
     

    Attachments

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

    OP Similar threads Forum Replies Date
    Rob Hexenmeister Conditional syntax General Support 7
    F MediaPortal 1.16 server crashing due to user error? General Support 5
    CanadianEh MP TV server rebuild with Colossus 2 - Kodi clients receive PMT error when playing videos recoreded by Colossus 2 TV-Server 1
    M 1.25.0 Tv Server Configuration Italian Dvb-t2 test channel preview error Television (MyTV frontend and TV-Server) 7
    G [solved] timeshift error Newcomers Forum 2
    C Can't install any extensions - DLL error Installation, configuration support 19
    horned_reaper Errors in FH log ... Fanart Handler 1
    joecrow 1.25.0 5031: Error on Install. Bugreports 24
    M MediaPortal2 TV Config Error on Install (0x80004005) General 7
    J Blue Screen Error Submit: Bug Reports 0
    G Q about scheduling weekly series when epg lists duplicate back to back episodes each week General Support 2
    Rob Hexenmeister Dependency error on install v2.3.2.0 OnlineVideos 28
    catavolt [WiP] When changing theme in my skins, I always get this error message in logs MediaPortal 1 9
    F Error invoking action 'GetNowNextProgramForGroup' Submit: Bug Reports 3
    B MP 2.2.3 Error playing videos from NAS Submit: Bug Reports 2
    vvulture UNKNOWN ERROR when starting live TV General Support 6
    doskabouter Build errors MediaPortal 1 9
    ajs Trakt error when start with MP crash Trakt 1
    horned_reaper MediaPortal configuration error log message General Support 1
    horned_reaper MiniDisplayStatus error log messages General Support 7
    horned_reaper [solved] GUITextureManager Load2 log error messages Fanart Handler 1
    horned_reaper MediaPortal.LastFM.LastFMException error log message General Support 1
    R [solved] No Response from Home Page - Error Newcomers Forum 0
    globaldonkey Music Database Error Listen Music 1
    ajs [solved] 4982: Why this error hard stop when Mediaportal start? MediaPortal 1 3
    Similar threads

























    Top Bottom