-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[client API] Too many logs make ring buffer run out #838
Comments
The ring buffer for log messages is intentionally fixed size, because otherwise it could happen that we might run out of memory just because a client doesn't read the log messages. (That's also why the per-client event buffer is limited.) I see the following solutions:
|
For a debugging purpose, anyone may want to retrieve all logs and in that case, the first option cannot be a solution. |
OK, I did two things:
I also have 2 alternative ideas that could be implemented:
|
Yep, it's sufficient for now. Thank you! |
No. Windows hates pipes. I'm hesitant with the first option - it would add more (and more complicated) API, so if the current solution works sufficiently, I'll leave it at this for now. |
Okay, I'll bring up this issue later when the problem appears again. Thanks! |
I think it's time to bring up the old issue. I have a file which produces next logs in a certain point:
I guess this is the same issue with this because it crashes when creating This time, the whole number of log lines is over 27000. |
It certainly shouldn't crash. A sample would probably be helpful to reproduce this. |
I cut some part of front from original file. The problem occurs around 1m 43s. |
It just crashed. The prefix and text fields point to static strings in this case. Oops. Fixes the issue mentioned in #838.
The sample was helpful, thanks. Fixed. |
It works. Thank you! (link removed) |
It just crashed. The prefix and text fields point to static strings in this case. Oops. Fixes the issue mentioned in #838.
It just crashed. The prefix and text fields point to static strings in this case. Oops. Fixes the issue mentioned in #838.
It just crashed. The prefix and text fields point to static strings in this case. Oops. Fixes the issue mentioned in mpv-player#838.
When opening one of my sample mkv file with "-v", I got next logs:
The problem is that the number of lines is over 1400.
This causes running out of ring buffer for client API and makes the application crashed.
Since all the parsed head informations are logged at once in demux_mkv_read_seekhead(), it's not a problem of lazy pulling of log events from client side.
Is there any way to avoid runnig out of message buffer in this case? Or, can this be fixed in mpv's client API?
The text was updated successfully, but these errors were encountered: