Skip to content
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 #6118

Closed
szotsaki opened this issue Sep 9, 2018 · 1 comment
Closed

Crash in g_utf8_validate #6118

szotsaki opened this issue Sep 9, 2018 · 1 comment
Labels
down-upstream features and bugs that need to be implemented and fixed upstream

Comments

@szotsaki
Copy link

szotsaki commented Sep 9, 2018

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:

A: 01:09:21 / 01:09:37 (99%) Cache: 16s+498KB
File tags:
 icy-title: NEK - LAURA NON C�

(process:15290): GLib-CRITICAL **: 15:09:02.059: g_variant_new_string: assertion 'g_utf8_validate (string, -1, NULL)' failed
dbus[15290]: arguments to dbus_message_iter_append_basic() were incorrect, assertion "_dbus_check_is_valid_utf8 (*string_p)" failed in file dbus-message.c line 2754.
This is normally a bug in some application using the D-Bus library.

  D-Bus not built with -rdynamic so unable to print a backtrace

I also use the MPRIS plugin.

@CounterPillow
Copy link
Contributor

Looks like a problem in the mpris plugin, as mpv by itself does not use dbus.

@sfan5 sfan5 added the down-upstream features and bugs that need to be implemented and fixed upstream label Sep 11, 2018
@sfan5 sfan5 closed this as completed Sep 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
down-upstream features and bugs that need to be implemented and fixed upstream
Projects
None yet
Development

No branches or pull requests

3 participants