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

vo=drm with force-window crashes when playing an mp3 after a png #5438

Closed
sgerwk opened this issue Jan 22, 2018 · 4 comments
Closed

vo=drm with force-window crashes when playing an mp3 after a png #5438

sgerwk opened this issue Jan 22, 2018 · 4 comments

Comments

@sgerwk
Copy link
Contributor

sgerwk commented Jan 22, 2018

mpv version and platform

github master
lnux

Reproduction steps

mpv --vo=drm --force-window file.png file.mp3

Expected behavior

show the png file for about 1 sec, then play the mp3 file

Actual behavior

crashes instead of playing the mp3 file, with error:

mpv: ../video/mp_image.c:527: mp_image_crop: Assertion `x1 <= img->w && y1 <= img->h' failed.

Log file

http://sgerwk.altervista.org/output-png-mp3.txt

@ghost
Copy link

ghost commented Jan 23, 2018

Do you have a backtrace?

@sgerwk
Copy link
Contributor Author

sgerwk commented Jan 24, 2018

sure:

#0 0xb7fdaae1 in __kernel_vsyscall ()
#1 0xb5c74dc0 in __libc_signal_restore_set (set=0xb34fbd00)
at ../sysdeps/unix/sysv/linux/nptl-signals.h:79
#2 __GI_raise (sig=6) at ../sysdeps/unix/sysv/linux/raise.c:48
#3 0xb5c76287 in __GI_abort () at abort.c:89
#4 0xb5c6da17 in __assert_fail_base (
fmt=0xb5da96ac "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n",
assertion=0x80131b52 "x1 <= img->w && y1 <= img->h",
file=0x80131a82 "../video/mp_image.c", line=528,
function=0x80131cf0 <PRETTY_FUNCTION.9048> "mp_image_crop")
at assert.c:92
#5 0xb5c6da9b in __GI___assert_fail (
assertion=0x80131b52 "x1 <= img->w && y1 <= img->h",
file=0x80131a82 "../video/mp_image.c", line=528,
function=0x80131cf0 <PRETTY_FUNCTION.9048> "mp_image_crop")
at assert.c:101
#6 0x800af9b6 in mp_image_crop (img=0xb34fc03c, x0=0, y0=0, x1=960, y1=480)
at ../video/mp_image.c:528
#7 0x800afa45 in mp_image_crop_rc (img=0xb34fc03c, rc=...)
at ../video/mp_image.c:541
#8 0x800e1a16 in draw_image (vo=0x802028c8, mpi=0xb371e488)
at ../video/out/vo_drm.c:322
#9 0x800e1f8c in control (vo=0x802028c8, request=9, arg=0x0)
at ../video/out/vo_drm.c:463
#10 0x800e0fe5 in do_redraw (vo=0x802028c8) at ../video/out/vo.c:945
#11 vo_thread (ptr=0x802028c8) at ../video/out/vo.c:1050
#12 0xb5e0927a in start_thread (arg=0xb34fcb40) at pthread_create.c:333
#13 0xb5d30b56 in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:110

@sgerwk
Copy link
Contributor Author

sgerwk commented Feb 3, 2018

Addition: this seems to happen only if the image is smaller than the force-window size (640x480).

@sgerwk
Copy link
Contributor Author

sgerwk commented Feb 12, 2018

Fixed by 733bcc0

@sgerwk sgerwk closed this as completed Feb 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant