VideoView crashes after a long time

I have an application that plays video in a loop forever. I ran into a problem that VideoView seems to crash after a long time (usually 2 to 3 days).

Some comments on what is going on:

  • All my code is in Try - Catch blocks, but the error is not caught by them. (why I did not publish any magazines)

  • It is not caught by UnhandledException by any of them (or is caught, but not logged on my server). I created my own ApplicationContext class and suggested that it logs (sends an error to the server) when an UnhandledException occurs.

  • MP4 videos seem to play for a longer time than WMV.

  • There is memory and it is almost static (usually it starts with 649mb and after playing for two days it still has 618mb)

  • There are two types of visual errors:

    1 - The screen turns black (I believe that this happens when an error occurs when changing the video)

    2 - The video freezes (but the application continues to respond to my server)

I cannot send logs because they are not there. I cannot publish my code because you will need to publish the whole solution, but I can send my application to someone and give instructions for use.

If you don’t know what might happen, any ideas on how to find the error message will help greatly .

Thanks to everyone.

+4
source share

Source: https://habr.com/ru/post/1498580/


All Articles