1.15.0 - Crash of MediaPortal Server after watching DVB-IP channel

Discussion in 'Archive' started by ucola, December 12, 2016.

  1. ucola

    ucola Portal Member

    Joined:
    June 12, 2016
    Messages:
    14
    Likes Received:
    1
    Ratings:
    +1 / 0
    Home Country:
    Switzerland Switzerland
    MediaPortal Version: 1.15.0

    Description
    Hi all

    I have setup the MediaPortal Server and use it with Kodi.
    Works fine, but sometimes on Channel Scanning (a lot of Channels on a m3u list) or watching MediaPortal crashs.
    That means, that i must restart the service and then it works again. If I start after crashing the TV-Server Configuration they tell me that the service is not running.

    Attached my logfiles, I hope you can see something.... It happens today between 19:15 and 20:00



    Would be nice if you can help me

    Steps to Reproduce:
    Scanning DVB-IP channels on a big m3u list (i.e. 40 Channels) or on watching tv. It crashes with HTTP TS streams
     
    Last edited: December 17, 2016
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. mm1352000
    • Team MediaPortal

    mm1352000 Development Group

    Joined:
    September 1, 2008
    Messages:
    21,518
    Likes Received:
    4,730
    Ratings:
    +8,196 / 17
    Home Country:
    New Zealand New Zealand
    Thanks for the report ucola (y)

    @georgius
    It looks like the IPTV source filter might be crashing on the second attempt to resize the HTTP protocol buffer.

    This seems to happen more than once:
    08-12-2016 18:06:42.074 [23e4] [{671F5996-A5DE-41B0-B448-17EC2E592FB5}] [Warning] CMPIPTV_HTTP: ReceiveData(): data received, buffer free space too small, buffer size: 524288, free buffer size: 1608, occupied buffer size: 347652, data length: 2920
    08-12-2016 22:22:06.578 [1b34] [{FFCFDCC2-888E-4A26-93B0-881F17ED6C9D}] [Info] DLLMAIN: DllMain(): Start

    09-12-2016 08:28:13.254 [1b70] [{30825995-1AFB-495A-8CD1-7F958CA989E0}] [Warning] CMPIPTV_HTTP: ReceiveData(): data received, buffer free space too small, buffer size: 524288, free buffer size: 632, occupied buffer size: 513504, data length: 5840
    09-12-2016 08:30:02.206 [1b14] [{12E31056-965E-4BD3-8B90-9C71FB4A0223}] [Info] DLLMAIN: DllMain(): Start

    12-12-2016 19:11:54.983 [ e18] [{00142FFF-3A80-4A1A-9CE1-0EB60B582A6D}] [Warning] CMPIPTV_HTTP: ReceiveData(): data received, buffer free space too small, buffer size: 524288, free buffer size: 240, occupied buffer size: 417076, data length: 8760

    ...but only for HTTP, not UDP:
    Show Spoiler

    09-12-2016 09:00:14.590 [100c] [{4FDC3BEA-4440-4024-8FC0-6C1896825A61}] [Warning] CMPIPTV_UDP: ReceiveData(): no data received, buffer free space too small, buffer size: 262144, free buffer size: 260, occupied buffer size: 261884, packet size: 1316
    09-12-2016 09:00:14.603 [100c] [{4FDC3BEA-4440-4024-8FC0-6C1896825A61}] [Warning] CMPIPTV_UDP: ReceiveData(): resized buffer, buffer size: 524288, free buffer size: 262404, occupied buffer size: 261884
    09-12-2016 09:00:14.760 [100c] [{4FDC3BEA-4440-4024-8FC0-6C1896825A61}] [Warning] CMPIPTV_UDP: ReceiveData(): no data received, buffer free space too small, buffer size: 524288, free buffer size: 520, occupied buffer size: 523768, packet size: 1316
    09-12-2016 09:00:14.777 [100c] [{4FDC3BEA-4440-4024-8FC0-6C1896825A61}] [Warning] CMPIPTV_UDP: ReceiveData(): resized buffer, buffer size: 1048576, free buffer size: 524808, occupied buffer size: 523768
    09-12-2016 09:00:15.105 [100c] [{4FDC3BEA-4440-4024-8FC0-6C1896825A61}] [Warning] CMPIPTV_UDP: ReceiveData(): no data received, buffer free space too small, buffer size: 1048576, free buffer size: 1040, occupied buffer size: 1047536, packet size: 1316
    09-12-2016 09:00:15.121 [100c] [{4FDC3BEA-4440-4024-8FC0-6C1896825A61}] [Warning] CMPIPTV_UDP: ReceiveData(): resized buffer, buffer size: 2097152, free buffer size: 1049616, occupied buffer size: 1047536
    09-12-2016 09:00:15.795 [100c] [{4FDC3BEA-4440-4024-8FC0-6C1896825A61}] [Warning] CMPIPTV_UDP: ReceiveData(): no data received, buffer free space too small, buffer size: 2097152, free buffer size: 764, occupied buffer size: 2096388, packet size: 1316
    09-12-2016 09:00:15.808 [100c] [{4FDC3BEA-4440-4024-8FC0-6C1896825A61}] [Warning] CMPIPTV_UDP: ReceiveData(): resized buffer, buffer size: 4194304, free buffer size: 2097916, occupied buffer size: 2096388
    09-12-2016 09:00:17.177 [100c] [{4FDC3BEA-4440-4024-8FC0-6C1896825A61}] [Warning] CMPIPTV_UDP: ReceiveData(): no data received, buffer free space too small, buffer size: 4194304, free buffer size: 212, occupied buffer size: 4194092, packet size: 1316
    09-12-2016 09:00:17.192 [100c] [{4FDC3BEA-4440-4024-8FC0-6C1896825A61}] [Warning] CMPIPTV_UDP: ReceiveData(): resized buffer, buffer size: 8388608, free buffer size: 4194516, occupied buffer size: 4194092
    09-12-2016 09:00:19.938 [100c] [{4FDC3BEA-4440-4024-8FC0-6C1896825A61}] [Warning] CMPIPTV_UDP: ReceiveData(): no data received, buffer free space too small, buffer size: 8388608, free buffer size: 424, occupied buffer size: 8388184, packet size: 1316
    09-12-2016 09:00:19.948 [100c] [{4FDC3BEA-4440-4024-8FC0-6C1896825A61}] [Warning] CMPIPTV_UDP: ReceiveData(): resized buffer, buffer size: 16777216, free buffer size: 8389032, occupied buffer size: 8388184
    09-12-2016 09:00:25.458 [100c] [{4FDC3BEA-4440-4024-8FC0-6C1896825A61}] [Warning] CMPIPTV_UDP: ReceiveData(): no data received, buffer free space too small, buffer size: 16777216, free buffer size: 848, occupied buffer size: 16776368, packet size: 1316
    09-12-2016 09:00:25.495 [100c] [{4FDC3BEA-4440-4024-8FC0-6C1896825A61}] [Warning] CMPIPTV_UDP: ReceiveData(): resized buffer, buffer size: 33554432, free buffer size: 16778064, occupied buffer size: 16776368


    I checked the code and I think it might be related to chunking. It seems that the chunked buffer size is not checked for safety when adding data, and the chunked buffer is not resized when the normal buffer is resized.
     
  4. georgius
    • Team MediaPortal

    georgius Retired Team Member

    Joined:
    October 31, 2010
    Messages:
    1,376
    Likes Received:
    437
    Gender:
    Male
    Occupation:
    Software Architect
    Location:
    Bratislava
    Ratings:
    +668 / 0
    Home Country:
    Slovakia Slovakia
    Show System Specs
    I can't find any reason why it crashes. The crash in MediaPortalLogs_13_12_16__11_26.zip is not on chunked encoded HTTP stream, so I don't think that it is related to chunked encoding. @ucola , can you try MediaPortal IPTV filter and url source splitter, it can be installed directly from MediaPortal Extensions Manager.
     
  5. ucola

    ucola Portal Member

    Joined:
    June 12, 2016
    Messages:
    14
    Likes Received:
    1
    Ratings:
    +1 / 0
    Home Country:
    Switzerland Switzerland
  6. mm1352000
    • Team MediaPortal

    mm1352000 Development Group

    Joined:
    September 1, 2008
    Messages:
    21,518
    Likes Received:
    4,730
    Ratings:
    +8,196 / 17
    Home Country:
    New Zealand New Zealand
    @georgius
    (I hope you're well! :) )
    Thanks for the reply.
    After my earlier message, I realised that the crash was not related to chunking because there was no "chunked encoding" message in the log file. Very embarrassing! :oops:
    So we currently have no idea what the cause is. However, do you agree that the crash is likely to be caused by the IPTV filter?
     
  7. georgius
    • Team MediaPortal

    georgius Retired Team Member

    Joined:
    October 31, 2010
    Messages:
    1,376
    Likes Received:
    437
    Gender:
    Male
    Occupation:
    Software Architect
    Location:
    Bratislava
    Ratings:
    +668 / 0
    Home Country:
    Slovakia Slovakia
    Show System Specs

    Yes. I mean this plugin.

    It is possible, but it can be any native component in TV service. In application eventlog is mentioned ntdll.dll with error code c0000005. In most cases it means memory allocation/deallocation/resizing violation.

    I did not find reason, why service crash. I only found same error messages (crash in ntdll.dll with error code c0000005). If you try mentioned filter and crash will not occure, then crash is caused by built-in IPTV filter.
     
  8. georgius
    • Team MediaPortal

    georgius Retired Team Member

    Joined:
    October 31, 2010
    Messages:
    1,376
    Likes Received:
    437
    Gender:
    Male
    Occupation:
    Software Architect
    Location:
    Bratislava
    Ratings:
    +668 / 0
    Home Country:
    Slovakia Slovakia
    Show System Specs
    In the attached logs (283835_MediaPortalLogs_16_12_16__17_17.zip) I don't see, that you have installed filter. Also TV service is running from 2016-12-15 17:51:41,020 without restart. Did you install filter on same computer as TV service?
     
  9. ucola

    ucola Portal Member

    Joined:
    June 12, 2016
    Messages:
    14
    Likes Received:
    1
    Ratings:
    +1 / 0
    Home Country:
    Switzerland Switzerland
    Right now i uninstall it because my http streams was not working with the filter and i was having no chance to get running it with the filter... So i try it again without plugin
     
  10. georgius
    • Team MediaPortal

    georgius Retired Team Member

    Joined:
    October 31, 2010
    Messages:
    1,376
    Likes Received:
    437
    Gender:
    Male
    Occupation:
    Software Architect
    Location:
    Bratislava
    Ratings:
    +668 / 0
    Home Country:
    Slovakia Slovakia
    Show System Specs
    Can you attach logs with not working HTTP streams?
     
  11. mm1352000
    • Team MediaPortal

    mm1352000 Development Group

    Joined:
    September 1, 2008
    Messages:
    21,518
    Likes Received:
    4,730
    Ratings:
    +8,196 / 17
    Home Country:
    New Zealand New Zealand
    This problem is a known problem. It will be solved in the next MP release (MP 1.16 pre-release).
    For now you can solve it by installing the patch from here:
    https://forum.team-mediaportal.com/threads/rtsp-streaming-library-update.132521/

    Note that patch is only for the standard IPTV filter. It doesn't work with the plugin filter.
     
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!