-
Notifications
You must be signed in to change notification settings - Fork 37
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
Crash in g_utf8_validate #19
Comments
Does your system have GLib >= 2.52? Because the code to ensure that non utf8 strings are properly handled depends on a function added in GLib 2.52, and is skipped in systems with an older GLib version. |
Chiming in: I have GLib 2.54.3 and I'm experiencing the same problem. |
Yes, I have 2.56.2. |
Do you have a link to a radio stream or file I can use to test this issue with? |
I also have same issue, here follows an example of the error and url of a radio stream causing it. Of course, it not always happens, just when the title of the song or author contains some "special" characters (in this radio is quite frequent, anyway, given the type of music -classical- and authors).
|
I've had a look into the issue and it seems that, according to http://icecast.org/docs/icecast-2.4.1/config-file.html, many radio streams use latin1 encoding instead of utf-8 when they are not an ogg stream. Radio streams can specify their character encoding, but I'm not sure if that is actually done, and how I would get that information from mpv. It may be possible to detect the encoding of the text and convert it accordingly, but I'm not sure how to reliably do that without introducing more bugs relating to the text conversion. I am already calling |
Sorry this took so long. I've decided the best thing to do would be to call |
[This is a copy of mpv-player/mpv/issues/6118].
mpv version and platform
v0.29.0
built on Jul 22 2018
ffmpeg library versions:
libavutil 56.14.100
libavcodec 58.18.100
libavformat 58.12.100
libswscale 5.1.100
libavfilter 7.16.100
libswresample 3.1.100
ffmpeg version: 4.0.2
Reproduction steps
Start a radio stream which reports "icy-title" (what's currently played) and have an invalid UTF-8 character in there. In my case it was, perhaps, in another encoding.
Expected behaviour
mpv skips the invalid character.
Actual behaviour
mpv crashes with the following message:
They closed it with:
At that time this bug happened I was on commit d741f7a.
The text was updated successfully, but these errors were encountered: