MP 1.37 Pre-Release Crash When Changing Channel (2 Viewers)

AberDino

MP Donator
  • Premium Supporter
  • February 17, 2005
    267
    45
    Kincardineshire
    Home Country
    Scotland Scotland
    I'm a long-term MP user based in the UK using Freeview (DVB-T) and Freesat (DVB-S). A few weeks ago I upgraded to the MP 1.37 Pre-Release and noticed that when I change channel, both my client systems crash. The error suggests it is related to subtitles, even though I don't have these switched on when viewing TV. Indeed, when I untick "Enable DVB Subtitles" in MP Configuration, the systems no longer crash. Logs attached.

    [2025-04-06 21:37:07,723] [Error ] [25 ] [ERROR] - MediaPortal: Unhandled exception occured
    [2025-04-06 21:37:07,729] [Log ] [25 ] [ERROR] - Exception: System.OverflowException: Arithmetic operation resulted in an overflow.
    at MediaPortal.Player.Subtitles.SubtitleSelector.OnSubtitleReset(Int32 count, IntPtr pOpts, Int32& selected_bitmap_index) Message: Arithmetic operation resulted in an overflow. Site : Int32 OnSubtitleReset(Int32, IntPtr, Int32 ByRef) Source : Core Stack Trace: at MediaPortal.Player.Subtitles.SubtitleSelector.OnSubtitleReset(Int32 count, IntPtr pOpts, Int32& selected_bitmap_index)
     

    Attachments

    • crash.zip
      23.9 KB

    catavolt

    Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    14,830
    10,960
    Königstein (Taunus)
    Home Country
    Germany Germany
    I mentioned some time ago in the prerelease thread that the installation of TVServer part takes an unusual very long time now - maybe it´s related?
     

    AberDino

    MP Donator
  • Premium Supporter
  • February 17, 2005
    267
    45
    Kincardineshire
    Home Country
    Scotland Scotland
    I mentioned some time ago in the prerelease thread that the installation of TVServer part takes an unusual very long time now - maybe it´s related?
    Just to note that these are MP clients only, the TV server is running on a separate physical machine.

    Many years ago, when using UNC paths in a multi-seat setup rather than RTSP, there was a similar issue, which got resolved. However, in this instance, the crash happens in both scenarios (UNC paths and RTSP).

    To rule out whether it is a general issue or something specific to my setup, I guess it would be good if another user could replicate to issue. I see @CyberSimian is based in the UK, so perhaps he can assist? I typically switch channels by pressing enter in fullscreen mode, then select another channel from the list, or by going back to the guide and selecting a channel from there. Note that I've only tested switching HD channels on the same DVB-T tuner, for example, Channel 4 HD to BBC Two HD.
     

    CyberSimian

    Test Group
  • Team MediaPortal
  • June 10, 2013
    3,045
    1,902
    Southampton
    Home Country
    United Kingdom United Kingdom
    I have this afternoon installed MediaPortalSetup_x64_1.36.100_2025-04-07-21-35.exe on 64-bit Windows 7, performing an upgrade install over MP 1.33. Some points:

    (1) The install proceeded without error.

    (2) The install of the MP part seemed to take longer than I remember. In contrast, the install of the TV Server parts seemed to take about the same time as previous releases. This is the opposite to @catavolt 's observation.

    (3) After rebooting, TV Server was not started. Starting "TV Server Config" detected this, and offered to start TV Server, which I accepted. TV Server then started without problem. This happened each time the system was rebooted (it was not a once-only occurrence on the first boot after the install).

    (4) DVB subtitles were enabled, and worked without causing the system to crash. However, this was with the client and server on the same system, so not the same scenario as @AberDino . I don't have a separate client that I can test with my Windows 7 system.

    (5) One error that I did notice was the preservation of the subtitle setting:
    • If I enable DVB subtitles on a DVB-T channel, the setting is preserved when I switch to another DVB-T channel.
    • If I enable DVB subtitles on a DVB-T2 channel, the setting is preserved when I switch to another DVB-T2 channel.
    • However, the DVB subtitle setting is not preserved when I switch from a DVB-T channel to a DVB-T2 channel, or when I switch from a DVB-T2 channel to a DVB-T channel.
    For users who have impaired hearing, preserving the subtitle setting is desirable. It would be unnecessarily annoying to have to re-enable subtitles every time the channel is changed. I think that the behaviour when switching between DVB-T channels, or switching between DVB-T2 channels, is the correct behaviour. The error is the non-preservation of the subtitle setting when switching between DVB-T and DVB-T2 channels.

    I have checked this on my MP 1.33 production system, and it has the same behaviour, so this is not a bug that has been introduced recently. It is more likely to have been an oversight when support for DVB-T2 was added.

    I don't have a satellite system, so I don't know whether the same bug exists when switching between DVB-S and DVB-S2. We also need to check (and fix if necessary) DVB-C and DVB-C2.

    -- from CyberSimian in the UK
     

    CyberSimian

    Test Group
  • Team MediaPortal
  • June 10, 2013
    3,045
    1,902
    Southampton
    Home Country
    United Kingdom United Kingdom
    A few weeks ago I upgraded to the MP 1.37 Pre-Release and noticed that when I change channel, both my client systems crash. The error suggests it is related to subtitles
    I have just tested this, albeit on 64-bit Windows 7. I did the following:

    (1) Installed the MP 1.33 client on an empty Windows 7 partition (empty == nothing previously installed).

    (2) Connected to TV Server on my Windows 7 production HTPC, and confirmed that DVB subtitles on the client could be turned on and off, and the channel changed, without causing the server or the client to crash.

    (3) I then performed an upgrade install of the MP 1.37 client over the MP 1.33 client.

    (4) The MP 1.37 client connected to the MP 1.37 server that I had installed previously. As before, I could turn DVB subtitles on and off, and change channel, without the server or the client crashing.

    (5) I have been testing a more recent build than the pre-release that @AberDino used, but I am not aware that any fixes have been made in this area. Also, I would surmise that @AberDino is using Windows 10 or Windows 11, so perhaps there is a problem with 10 or 11 that does not occur on 7.

    (6) The only DVB subtitle problem that I noticed was the one that I reported previously, namely that the subtitles are always turned off when switching from a DVB-T channel to a DVB-T2 channel, or vice versa.

    -- from CyberSimian in the UK
     

    Users who are viewing this thread


    Write your reply...
    Top Bottom