Sometimes no image rendered when playing video (2 Viewers)

doskabouter

Development Group
  • Team MediaPortal
  • September 27, 2009
    4,030
    2,265
    Nuenen
    Home Country
    Netherlands Netherlands
    Country flag
    Finally got around to this mystery:
    I now have logging on all the _state changes of the tsreaderplayer (that is used when determining g_player.playing, which in turn controls the isplayingvideo property)
    happy testing!
     

    Attachments

    • test.zip
      2.7 MB · Views: 0

    CyberSimian

    Test Group
  • Team MediaPortal
  • June 10, 2013
    2,347
    1,428
    Southampton
    Home Country
    United Kingdom United Kingdom
    Country flag
    I now have logging on all the _state changes of the tsreaderplayer (that is used when determining g_player.playing, which in turn controls the isplayingvideo property)
    Thank you for the updated files. I will install them and see if I can reproduce the problem. (y)

    When using the previous versions, I noticed that I was experiencing "micro stuttering" when watching live TV or recorded TV/video. There was no noticeable interruption in the audio, but the video would freeze for a fraction of a second (guess: 0.2-0.3 seconds), and then jump to catch up with the audio. This happened frequently, but not with any regularity. Initially I thought that this was caused by the two USB disks that I had recently connected to the system, but then I realised that it was caused by the large amount of debug logging generated by these debug versions of the files. :eek:

    MP (and Windows) are installed on a relatively slow Western Digital Green drive, which I guess is too slow to accept the debug output without causing the micro stuttering. Reverting logging to ERROR level cured the stuttering :D. I would not consider the stuttering to be acceptable for long-term use, but I have no problem with it for a few days, if we can track down the cause of the video problem. (y)

    -- from CyberSimian in the UK
     

    bta489

    Portal Pro
    March 17, 2013
    163
    85
    Home Country
    Germany Germany
    Country flag
    After a period of relative eventfulness in this matter, I now have a new set of logs. This time while sifting through TV recordings today. During this, I had Black screens, flickering image and normal playback.
    As before I removed the sections where it repeats the same debug lines over and over (during normal playback) to cut down on filesize of MediaPortal.log. The other two are untouched.

    Thanks again for taking the time and for your continued support, doskabouter (y)
     

    Attachments

    • 2021-05-30_evr.log
      377.1 KB · Views: 0
    • 2021-05-30_MediaPortal.log
      465.4 KB · Views: 0
    • 2021-05-30_MediaPortal-Error.log
      2.5 MB · Views: 0

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,030
    2,265
    Nuenen
    Home Country
    Netherlands Netherlands
    Country flag
    Indeed it's been a while, was more or less hoping the problem resolved itself :)
    But these logs indeed contain a nice exception with stacktraces and linenumbers.
    Will investigate soon
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,030
    2,265
    Nuenen
    Home Country
    Netherlands Netherlands
    Country flag
    Hm, starting to see a pattern here:
    the first value after "start drawtexture" is less than 2147483647 when the rest succeeds, but bigger when it fails.
    My guess is that in DXNative.FontEngineSetTexture(ptr.ToPointer()); the pointer is somewhere handled as int32 instead of unsignedint32
    Edit: do you happen to have a fontengine.log (same dir as other logs) to 100% confirm that?
    Edit2: the fontengine casts this pointer to an LPDIRECT3DTEXTURE9 and only does low level directx calls with it, but it seems unlikely that this issue is in the directxsdk itself...


    Edit3 :I think I fixed it.
    If you want to reduce logging to ease testing, just let me know
     

    Attachments

    • Core.zip
      2.2 MB · Views: 0
    Last edited:

    bta489

    Portal Pro
    March 17, 2013
    163
    85
    Home Country
    Germany Germany
    Country flag
    New files are in place. I don't see much impact on performance from logging apart from an occasional stutter, which I can easily live with for now.

    If this is still of interest, I checked my logs: Except for the last time, there was no fontEngine.log file present in the log dir. That last time there was one (filesize 150 MB :eek:) with first line

    22-05-2021 20:07:21.100 [157c]ERROR Fontengine:FontEngineDrawText3D(4) exception

    and subsequently, repeated every other millisecond or so for about 2,5 hours this line (only difference is the timestamp)

    22-05-2021 20:07:24.156 [157c]ERROR Fontengine:Ran out of texture vertices

    The date is almost a week before, though.

    €dit: I just started to play several videos, to see if I can provoke another incident (none so far) and it already feels a lot 'snappier'. The image seems to be rendered much faster now (almost instant), whereas before there was always a noticeable loading period. (y)
     
    Last edited:

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,030
    2,265
    Nuenen
    Home Country
    Netherlands Netherlands
    Country flag
    New files are in place. I don't see much impact on performance from logging apart from an occasional stutter, which I can easily live with for now.

    If this is still of interest, I checked my logs: Except for the last time, there was no fontEngine.log file present in the log dir. That last time there was one (filesize 150 MB :eek:) with first line

    22-05-2021 20:07:21.100 [157c]ERROR Fontengine:FontEngineDrawText3D(4) exception

    and subsequently, repeated every other millisecond or so for about 2,5 hours this line (only difference is the timestamp)

    22-05-2021 20:07:24.156 [157c]ERROR Fontengine:Ran out of texture vertices

    The date is almost a week before, though.
    it was just something that I saw in the code, but isn't really relevant now that i found the real cause

    €dit: I just started to play several videos, to see if I can provoke another incident (none so far) and it already feels a lot 'snappier'. The image seems to be rendered much faster now (almost instant), whereas before there was always a noticeable loading period. (y)
    That has certainly nothing to do with my update...
     

    bta489

    Portal Pro
    March 17, 2013
    163
    85
    Home Country
    Germany Germany
    Country flag
    I'd say so, yes. I tested with as many different Videos as I could since your last updated files, and so far did not encounter the problem again. It's hard to make absolute statements, though, as the error only occured sporadically before. However, the Video-Playback still feels a lot snappier. That alone certainly is an improvement.
    These past days the stutters increased, due to the intense logging. I just tried setting it back to 'Error' level, and the stutters are gone completely.

    Thank you for all your efforts in getting to the bottom of this and fixing it. (y)
     

    Users who are viewing this thread

    Similar threads

    You were right, I have re-installed the My Anime 3 plugin and the search in MP now works again! :)
    You were right, I have re-installed the My Anime 3 plugin and the search in MP now works again! :)
    Hi, I just discovered that MediaPortal crashes when I search a movie in Moving Pictures. I enter the phrase and when I want to...
    Replies
    2
    Views
    831
    wiki updated, thanks for the hint @high
    wiki updated, thanks for the hint @high
    When playing a video it the display gets black, sound is playing and I see these Exceptions: [2017-10-10 21:48:22,993] [Error ]...
    Replies
    8
    Views
    2K
    Great :) I will push some other update about GUI issue but you can use this version and will see :P
    Great :) I will push some other update about GUI issue but you can use this version and will see :P
    MediaPortal Version: 1.18.0 Description I will try to explain... in LOG I found "endless" entries of: .... [2018-01-29...
    Replies
    3
    Views
    1K
    and you may try to repair your sql database Repair SQLite Database - MediaPortal 1 - MediaPortal Wiki it looks corrupt to me
    and you may try to repair your sql database Repair SQLite Database - MediaPortal 1 - MediaPortal Wiki it looks corrupt to me
    Media Portal version: 1.16.0 MP-TVSeries version: 4.3.0.0 LAV Filters: 0.69.0 madVR: 0.91.8 Operating System: Windows 10...
    Replies
    7
    Views
    1K
    I had quite a lot of issues with my last HTPC, I experienced random freeze/lockups for 30-60secs. I feel your pain, it use to drive me insane. I ended up tracking it down to the SSD drive, after a firmware upgrade (which proved to be very diffulcult) I no longer experienced the issue. So my advice, see if there is a firmware update...
    I had quite a lot of issues with my last HTPC, I experienced random freeze/lockups for 30-60secs. I feel your pain, it use to drive...
    All my TV series are stored on a SATA disc on my main MP server, which has an SSD as boot disc. In Power Options I have configured...
    Replies
    14
    Views
    3K
    Top Bottom