mpv icon indicating copy to clipboard operation
mpv copied to clipboard

Segfault under wayland on mouse over

Open qjqqyy opened this issue 12 years ago • 6 comments

mpv 0.5.0-git-88f247c under wayland/weston, playing most videos work fine until the cursor goes over the video playback area, then it segfaults. gdb output

Program received signal SIGSERV,Segmentation fault.
0x00000000005227fc in show_cursor(wl=0x225d140)
    at ../video/out/wayland_common.c:629
629           struct wl_cursor_image*image= wl->cursor.default_cursor->images[0];

qjqqyy avatar Aug 13 '14 16:08 qjqqyy

thread apply all backtrace

Thread 5 (Thread 0x7fffd7c1c700 (LWP 16599)):
#0  0x00007ffff759d03f in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/libpthread.so.0
#1  0x000000000048b07b in wait_audio (ao=<optimized out>, 
lock=0x21bd578) at ../audio/out/ao_pulse.c:124
#2  0x000000000048ce34 in playthread (arg=0x21a43d0) at 
../audio/out/push.c:325
#3 0x00007ffff75990a2 in start_thread () from /lib/libpthread.so.0 4 
#0x00007ffff1b1dd3d in clone () from /lib/libc.so.6
Thread 4 (Thread 0x7fffd841d700 (LWP 16598)):
#0 0x00007ffff1b1536d in poll () from /lib/libc.so.6 1 
#0x00007ffff6cfe791 in ?? () from /usr/lib/libpulse.so.0
#2  0x00007ffff6cf003c in pa_mainloop_poll () from 
/usr/lib/libpulse.so.0
#3  0x00007ffff6cf06ae in pa_mainloop_iterate () from 
/usr/lib/libpulse.so.0
#4 0x00007ffff6cf0760 in pa_mainloop_run () from /usr/lib/libpulse.so.0 
#5 0x00007ffff6cfe743 in ?? () from /usr/lib/libpulse.so.0
#6  0x00007ffff1609618 in ?? () from 
/usr/lib/pulseaudio/libpulsecommon-5.0.so
#7 0x00007ffff75990a2 in start_thread () from /lib/libpthread.so.0 8 
#0x00007ffff1b1dd3d in clone () from /lib/libc.so.6
Thread 3 (Thread 0x7fffdcc1f700 (LWP 16597)):
#0  0x00007ffff759d03f in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/libpthread.so.0
#1 0x0000000000908cd6 in frame_worker_thread () 2 0x00007ffff75990a2 in 
#start_thread () from /lib/libpthread.so.0 3 0x00007ffff1b1dd3d in clone 
#() from /lib/libc.so.6
Thread 2 (Thread 0x7fffdd420700 (LWP 16596)):
#0  0x00007ffff759d03f in pthread_cond_wait@@GLIBC_2.3.2 () from 
/lib/libpthread.so.0
#1 0x0000000000908cd6 in frame_worker_thread () 2 0x00007ffff75990a2 in 
#start_thread () from /lib/libpthread.so.0 3 0x00007ffff1b1dd3d in clone 
#() from /lib/libc.so.6
Thread 1 (Thread 0x7ffff7f5f800 (LWP 16592)):
#0  0x00000000005227fc in show_cursor (wl=0x1d30530) at 
../video/out/wayland_common.c:629
#1 0x00007fffede7fabc in ffi_call_unix64 () from /usr/lib/libffi.so.6 2 
#0x00007fffede7f5c5 in ffi_call () from /usr/lib/libffi.so.6 3 
#0x00007ffff437bf5a in ?? () from /usr/lib/libwayland-client.so.0 4 
#0x00007ffff4379670 in ?? () from /usr/lib/libwayland-client.so.0 5 
#0x00007ffff43796f4 in ?? () from /usr/lib/libwayland-client.so.0
#6  0x00007ffff437a334 in wl_display_dispatch_queue_pending () from 
/usr/lib/libwayland-client.so.0
#7  0x0000000000523709 in vo_wayland_control (vo=0x1d50d20, 
events=events@entry=0x7fffffffe8ac, request=2,
    arg=0x0) at ../video/out/wayland_common.c:1108
#8  0x00000000005129ad in control (vo=<optimized out>, 
events=0x7fffffffe8ac, request=<optimized out>,
    data=<optimized out>) at ../video/out/gl_wayland.c:205
#9  0x00000000005161cd in control (vo=0x1d50d20, request=2, data=0x0) at 
../video/out/vo_opengl.c:376
#10 0x00000000004caf05 in run_playloop (mpctx=mpctx@entry=0x1a2fde0) at 
../player/playloop.c:855
#11 0x00000000004c7000 in play_current_file (mpctx=<optimized out>) at 
../player/loadfile.c:1300
#12 mp_play_files (mpctx=mpctx@entry=0x1a2fde0) at 
../player/loadfile.c:1432
#13 0x00000000004c7f00 in mpv_main (argc=<optimized out>, 
argv=<optimized out>) at ../player/main.c:524
#14 0x00007ffff1a59b05 in __libc_start_main () from /lib/libc.so.6
#15 0x0000000000477aee in _start ()

qjqqyy avatar Aug 13 '14 17:08 qjqqyy

Could you paste the contents of the following directories:

~/.icons/
~/.local/share/icons/

giselher avatar Aug 13 '14 19:08 giselher

It seems I can't debug mpv with gdb anymore. But it looks like we get an invalid pointer back. Do you use weston 1.5 or did you update from git?

giselher avatar Aug 13 '14 19:08 giselher

It was weston 1.5.0.

~/.icons/
~/.local/share/icons/

do not exist

qjqqyy avatar Aug 13 '14 19:08 qjqqyy

Which distribution do you use?

giselher avatar Aug 13 '14 20:08 giselher

Should work now.

giselher avatar Aug 13 '14 20:08 giselher