Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 642032 - media-video/mpv-0.27.0-r1 with USE="lua luajit" - PANIC: unprotected error in call to Lua API (5)
Summary: media-video/mpv-0.27.0-r1 with USE="lua luajit" - PANIC: unprotected error in...
Status: RESOLVED DUPLICATE of bug 645342
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Coacher
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-22 13:02 UTC by Helmut Jarausch
Modified: 2018-01-22 17:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
mpv_info.xz (mpv_info.xz,7.41 KB, application/x-xz)
2017-12-22 13:02 UTC, Helmut Jarausch
Details
emerge --info mpv (emerge --info mpv,21.93 KB, text/plain)
2018-01-21 17:30 UTC, Coacher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2017-12-22 13:02:03 UTC
Created attachment 511462 [details]
mpv_info.xz

mpv crashes like
PANIC: unprotected error in call to Lua API (5)

emerge --info  is attached

This does not happen with USE flags -lua -luagit
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2017-12-22 17:44:22 UTC
(In reply to Helmut Jarausch from comment #0)
> This does not happen with USE flags -lua -luagit

USE=luajit no doubt.
Comment 2 Coacher 2017-12-22 20:20:38 UTC
Crashes all the time or with a certain files?
Crashes immediately or after a while?
Crashes when using specific Lua scripts or without using custom Lua scripts?

Please answer all these questions and attach log of such crash captured with `--log-file=mpv.log`.
Comment 3 Helmut Jarausch 2017-12-23 11:03:16 UTC
(In reply to Coacher from comment #2)
> Crashes all the time or with a certain files? 
  It crashes all the time at the very beginning

> Crashes immediately or after a while?
  It crashes immediately just printing
mpv --log-file=mpv.log African_Skies2.mp4
PANIC: unprotected error in call to Lua API (5)
Playing: African_Skies2.mp4


> Crashes when using specific Lua scripts or without using custom Lua scripts?

I myself didn't install any Lua scripts

> 
> Please answer all these questions and attach log of such crash captured with
> `--log-file=mpv.log`.

The log is very short, so I include it here

[   0.030][v][cplayer] mpv 0.27.0 (C) 2000-2017 mpv/MPlayer/mplayer2 projects
[   0.030][v][cplayer]  built on UNKNOWN
[   0.031][v][cplayer] ffmpeg library versions:
[   0.031][v][cplayer]    libavutil       55.78.100
[   0.031][v][cplayer]    libavcodec      57.107.100
[   0.031][v][cplayer]    libavformat     57.83.100
[   0.031][v][cplayer]    libswscale      4.8.100
[   0.031][v][cplayer]    libavfilter     6.107.100
[   0.031][v][cplayer]    libswresample   2.9.100
[   0.031][v][cplayer] ffmpeg version: 3.4.1
[   0.031][v][cplayer] 
[   0.031][v][cplayer] Configuration: /var/tmp/portage/media-video/mpv-0.27.0-r1/work/mpv-0.27.0/waf --prefix=/usr --libdir=/usr/lib64 --confdir=/etc/mpv --docdir=/usr/share/doc/mpv-0.27.0-r1 --htmldir=/usr/share/doc/mpv-0.27.0-r1/html --enable-libmpv-shared --disable-libmpv-static --disable-static-build --disable-optimize --disable-debug-build --enable-html-build --disable-pdf-build --disable-cplugins --disable-zsh-comp --disable-test --disable-android --enable-iconv --disable-libsmbclient --enable-lua --lua=luajit --disable-javascript --enable-libass --enable-libass-osd --enable-zlib --enable-encoding --enable-libbluray --enable-dvdread --enable-dvdnav --enable-cdda --enable-uchardet --disable-rubberband --enable-lcms2 --disable-vapoursynth --disable-vapoursynth-lazy --disable-libarchive --enable-libavdevice --disable-sdl2 --disable-sdl1 --disable-oss-audio --disable-rsound --disable-sndio --enable-pulse --enable-jack --enable-openal --disable-opensles --enable-alsa --disable-coreaudio --disable-cocoa --enable-drm --disable-gbm --disable-wayland --enable-x11 --enable-xv --disable-gl-cocoa --enable-gl-x11 --enable-egl-x11 --disable-egl-drm --disable-gl-wayland --enable-vdpau --enable-vdpau-gl-x11 --enable-vaapi --enable-vaapi-x11 --disable-vaapi-wayland --disable-vaapi-drm --disable-caca --enable-jpeg --disable-rpi --enable-plain-gl --disable-mali-fbdev --enable-vaapi-hwaccel --enable-vdpau-hwaccel --disable-cuda-hwaccel --enable-tv --enable-tv-v4l2 --enable-libv4l2 --enable-audio-input --disable-dvbin --disable-apple-remote --enable-vaapi-glx --enable-vaapi-x-egl --disable-build-date configure
[   0.031][v][cplayer] List of enabled features: alsa asm atomics audio-input avutil-content-light-level avutil-icc-profile avutil-imgcpy-uc avutil-spherical cdda cplayer drm dvdnav dvdread dvdread-common egl-helpers egl-x11 encoding fchmod gbm.h gl gl-x11 glibc-thread-name glob glob-posix gnuc iconv is_ffmpeg jack jpeg lcms2 libass libass-osd libav libavcodec libavdevice libbluray libdl libm libmpv-shared librt libv4l2 linux-fstatfs lua luajit nanosleep openal plain-gl posix posix-or-mingw posix-spawn pthreads pulse shm stdatomic termios tv tv-v4l2 uchardet vaapi vaapi-egl vaapi-glx vaapi-hwaccel vaapi-x-egl vaapi-x11 vdpau vdpau-gl-x11 vdpau-hwaccel videodev vt.h x11 xv zlib
[   0.031][v][cplayer] Command line options: '--log-file=mpv.log' 'African_Skies2.mp4'
[   0.031][v][cplayer] mpv 0.27.0 (C) 2000-2017 mpv/MPlayer/mplayer2 projects
[   0.031][v][cplayer]  built on UNKNOWN
[   0.031][v][cplayer] ffmpeg library versions:
[   0.031][v][cplayer]    libavutil       55.78.100
[   0.031][v][cplayer]    libavcodec      57.107.100
[   0.031][v][cplayer]    libavformat     57.83.100
[   0.031][v][cplayer]    libswscale      4.8.100
[   0.031][v][cplayer]    libavfilter     6.107.100
[   0.031][v][cplayer]    libswresample   2.9.100
[   0.031][v][cplayer] ffmpeg version: 3.4.1
[   0.031][v][cplayer] 
[   0.031][v][cplayer] Configuration: /var/tmp/portage/media-video/mpv-0.27.0-r1/work/mpv-0.27.0/waf --prefix=/usr --libdir=/usr/lib64 --confdir=/etc/mpv --docdir=/usr/share/doc/mpv-0.27.0-r1 --htmldir=/usr/share/doc/mpv-0.27.0-r1/html --enable-libmpv-shared --disable-libmpv-static --disable-static-build --disable-optimize --disable-debug-build --enable-html-build --disable-pdf-build --disable-cplugins --disable-zsh-comp --disable-test --disable-android --enable-iconv --disable-libsmbclient --enable-lua --lua=luajit --disable-javascript --enable-libass --enable-libass-osd --enable-zlib --enable-encoding --enable-libbluray --enable-dvdread --enable-dvdnav --enable-cdda --enable-uchardet --disable-rubberband --enable-lcms2 --disable-vapoursynth --disable-vapoursynth-lazy --disable-libarchive --enable-libavdevice --disable-sdl2 --disable-sdl1 --disable-oss-audio --disable-rsound --disable-sndio --enable-pulse --enable-jack --enable-openal --disable-opensles --enable-alsa --disable-coreaudio --disable-cocoa --enable-drm --disable-gbm --disable-wayland --enable-x11 --enable-xv --disable-gl-cocoa --enable-gl-x11 --enable-egl-x11 --disable-egl-drm --disable-gl-wayland --enable-vdpau --enable-vdpau-gl-x11 --enable-vaapi --enable-vaapi-x11 --disable-vaapi-wayland --disable-vaapi-drm --disable-caca --enable-jpeg --disable-rpi --enable-plain-gl --disable-mali-fbdev --enable-vaapi-hwaccel --enable-vdpau-hwaccel --disable-cuda-hwaccel --enable-tv --enable-tv-v4l2 --enable-libv4l2 --enable-audio-input --disable-dvbin --disable-apple-remote --enable-vaapi-glx --enable-vaapi-x-egl --disable-build-date configure
[   0.031][v][cplayer] List of enabled features: alsa asm atomics audio-input avutil-content-light-level avutil-icc-profile avutil-imgcpy-uc avutil-spherical cdda cplayer drm dvdnav dvdread dvdread-common egl-helpers egl-x11 encoding fchmod gbm.h gl gl-x11 glibc-thread-name glob glob-posix gnuc iconv is_ffmpeg jack jpeg lcms2 libass libass-osd libav libavcodec libavdevice libbluray libdl libm libmpv-shared librt libv4l2 linux-fstatfs lua luajit nanosleep openal plain-gl posix posix-or-mingw posix-spawn pthreads pulse shm stdatomic termios tv tv-v4l2 uchardet vaapi vaapi-egl vaapi-glx vaapi-hwaccel vaapi-x-egl vaapi-x11 vdpau vdpau-gl-x11 vdpau-hwaccel videodev vt.h x11 xv zlib
[   0.051][v][cplayer] Reading config file /etc/mpv/encoding-profiles.conf
[   0.053][v][cplayer] Setting option 'log-file' = 'mpv.log' (flags = 8)
[   0.054][v][global] user path: 'mpv.log' -> 'mpv.log'
[   0.054][v][osc] Loading lua script @osc.lua...
[   0.055][v][global] config path: 'scripts' -/-> '/home/jarausch/.config/mpv/scripts'
[   0.055][v][global] config path: 'scripts' -/-> '/home/jarausch/.mpv/scripts'
[   0.055][v][global] config path: 'scripts' -/-> '/etc/mpv/scripts'
[   0.055][v][osc] loading mp.defaults
[   0.055][v][osc] loading @osc.lua
[   0.057][v][global] config path: 'lua-settings/osc.conf' -/-> '/home/jarausch/.config/mpv/lua-settings/osc.conf'
[   0.057][v][global] config path: 'lua-settings/osc.conf' -/-> '/home/jarausch/.mpv/lua-settings/osc.conf'
[   0.057][v][global] config path: 'lua-settings/osc.conf' -/-> '/etc/mpv/lua-settings/osc.conf'
[   0.057][v][osc] lua-settings/osc.conf not found. 
[   0.057][v][cplayer] Run command: define-section, flags=0, args=[showhide, mouse_move script-binding osc/__keybinding1
[   0.057][v][cplayer] mouse_leave script-binding osc/__keybinding2
[   0.057][v][cplayer] , force]
[   0.057][v][cplayer] Run command: enable-section, flags=0, args=[showhide, allow-hide-cursor+allow-vo-dragging]
[   0.057][v][cplayer] Run command: define-section, flags=0, args=[input, mbtn_left script-binding osc/__keybinding3
[   0.057][v][cplayer] shift+mbtn_left script-binding osc/__keybinding4
[   0.057][v][cplayer] mbtn_right script-binding osc/__keybinding5
[   0.057][v][cplayer] wheel_up script-binding osc/__keybinding6
[   0.057][v][cplayer] wheel_down script-binding osc/__keybinding7
[   0.057][v][cplayer] mbtn_left_dbl ignore
[   0.057][v][cplayer] shift+mbtn_left_dbl ignore
[   0.057][v][cplayer] mbtn_right_dbl ignore
[   0.057][v][cplayer] , force]
[   0.057][v][cplayer] Run command: enable-section, flags=0, args=[input, ]
[   0.057][v][cplayer] Run command: define-section, flags=0, args=[input_osc, del script-binding osc/__keybinding8
[   0.057][v][cplayer] , default]
[   0.057][v][cplayer] Run command: enable-section, flags=0, args=[input_osc, allow-hide-cursor+allow-vo-dragging]
[   0.057][v][cplayer] Run command: define-section, flags=0, args=[input_forced_osc, , force]
[   0.057][v][cplayer] Run command: enable-section, flags=0, args=[input_forced_osc, allow-hide-cursor+allow-vo-dragging]
[   0.057][v][cplayer] Done loading @osc.lua.
[   0.057][v][ytdl_hook] Loading lua script @ytdl_hook.lua...
[   0.057][v][global] config path: 'scripts' -/-> '/home/jarausch/.config/mpv/scripts'
[   0.057][v][global] config path: 'scripts' -/-> '/home/jarausch/.mpv/scripts'
[   0.057][v][global] config path: 'scripts' -/-> '/etc/mpv/scripts'
[   0.058][v][ytdl_hook] loading mp.defaults
[   0.058][v][ytdl_hook] loading @ytdl_hook.lua
[   0.059][v][global] config path: 'lua-settings/ytdl_hook.conf' -/-> '/home/jarausch/.config/mpv/lua-settings/ytdl_hook.conf'
[   0.059][v][global] config path: 'lua-settings/ytdl_hook.conf' -/-> '/home/jarausch/.mpv/lua-settings/ytdl_hook.conf'
[   0.059][v][global] config path: 'lua-settings/ytdl_hook.conf' -/-> '/etc/mpv/lua-settings/ytdl_hook.conf'
[   0.059][v][ytdl_hook] lua-settings/ytdl_hook.conf not found. 
[   0.059][v][cplayer] Run command: hook-add, flags=0, args=[on_load, 1, 10]
[   0.059][v][cplayer] Run command: hook-add, flags=0, args=[on_preloaded, 2, 10]
[   0.059][v][cplayer] Done loading @ytdl_hook.lua.
[   0.059][v][global] config path: 'scripts' -/-> '/home/jarausch/.config/mpv/scripts'
[   0.059][v][global] config path: 'scripts' -/-> '/home/jarausch/.mpv/scripts'
[   0.059][v][global] config path: 'scripts' -/-> '/etc/mpv/scripts'
[   0.059][v][global] config path: 'watch_later' -> '/home/jarausch/.config/mpv/watch_later'
[   0.059][i][cplayer] Playing: African_Skies2.mp4
[   0.059][v][cplayer] Running hook: ytdl_hook/on_load
[   0.059][v][cplayer] Run command: hook-ack, flags=0, args=[on_load]
[   0.059][v][ifo] Opening African_Skies2.mp4
[   0.059][v][ifo_dvdnav] Opening African_Skies2.mp4
Comment 4 Coacher 2017-12-24 10:01:26 UTC
Do these crashes happen if you build mpv with USE="lua -luajit"?
Comment 5 Helmut Jarausch 2017-12-24 14:06:04 UTC
(In reply to Coacher from comment #4)
> Do these crashes happen if you build mpv with USE="lua -luajit"?

No, it doesn't crash with these useflags.
Thanks, and merry Christmas
Helmut
Comment 6 Coacher 2018-01-21 17:29:00 UTC
emerge --info says you have one of the latest AMD processors.
Does luajit work on those in general?
Comment 7 Coacher 2018-01-21 17:30:46 UTC
Created attachment 515730 [details]
emerge --info mpv

Reattached user's emerge --info without compression.
Comment 8 Helmut Jarausch 2018-01-22 10:48:49 UTC
(In reply to Coacher from comment #6)
> emerge --info says you have one of the latest AMD processors.
> Does luajit work on those in general?

No, see BUG 645342
Comment 9 Coacher 2018-01-22 17:58:55 UTC
Ah, as I suspected. Thanks for investigating this.
Closing this particular bug as it's a symptom of a bigger problem (broken luajit on recent AMDs).

*** This bug has been marked as a duplicate of bug 645342 ***