1.15.0 Crash of MediaPortal Server after watching DVB-IP channel (1 Viewer)

ucola

Portal Member
June 12, 2016
14
1
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:

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    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:
    [collapse]
    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
    [/collapse]

    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.
     

    georgius

    Retired Team Member
  • Premium Supporter
  • October 31, 2010
    1,376
    654
    Bratislava
    Home Country
    Slovakia Slovakia
    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.
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    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?
     

    georgius

    Retired Team Member
  • Premium Supporter
  • October 31, 2010
    1,376
    654
    Bratislava
    Home Country
    Slovakia Slovakia
    https://www.team-mediaportal.de/erw...diaportal-iptv-filter-and-url-source-splitter
    Yes. I mean this plugin.

    However, do you agree that the crash is likely to be caused by the IPTV filter?
    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.

    and on my older logs, can you find a reason why they crashed how @mm1352000 writes? I love how it is implement yet and don't want to change to the plugin.... hope you can find a solution for me
    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.
     

    georgius

    Retired Team Member
  • Premium Supporter
  • October 31, 2010
    1,376
    654
    Bratislava
    Home Country
    Slovakia Slovakia
    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?
     

    ucola

    Portal Member
    June 12, 2016
    14
    1
    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
     

    georgius

    Retired Team Member
  • Premium Supporter
  • October 31, 2010
    1,376
    654
    Bratislava
    Home Country
    Slovakia Slovakia
    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
    Can you attach logs with not working HTTP streams?
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand

    Users who are viewing this thread

    Top Bottom