GhostNaN / mpvpaper

A video wallpaper program for wlroots based wayland compositors.
GNU General Public License v3.0
765 stars 24 forks source link

[sway] Memory access error (memory dumped) #1

Closed ghost closed 4 years ago

ghost commented 4 years ago

Installation: mpvpaper was installed from the AUR Version: mpvpaper-git-r8.4927e4e-1 WM: sway v1.5 CPU / GPU: Intel Core i5-2450M / Intel HD 3000 Used RAM: 3044MiB / 7889MiB

Steps to reproduce:

  1. killall swaybg
  2. mpvpaper LVDS-1 MyVideoWallpaper.mp4

strace output (last 12 lines (looks like less because of bad formatting)):

ioctl(5, DRM_IOCTL_I915_GEM_CONTEXT_SETPARAM, 0x7ffdd029dcc0) = -1 ENODEV (No such device) ioctl(5, DRM_IOCTL_I915_GEM_CONTEXT_SETPARAM, 0x7ffdd029dcc0) = -1 ENODEV (No such device) ioctl(5, DRM_IOCTL_I915_GEM_CONTEXT_SETPARAM, 0x7ffdd029dcc0) = -1 ENODEV (No such device) getpid() = 197484 getpid() = 197484 getpid() = 197484 mincore(NULL, 4096, 0x7ffdd029de27) = -1 ENOMEM (Cannot allocate memory) getpid() = 197484 getpid() = 197484 getpid() = 197484 --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} --- +++ killed by SIGSEGV (core dumped) +++

GhostNaN commented 4 years ago

I believe your GPU doesn't support OpenGL 4.6 that I put in.

https://www.intel.com/content/www/us/en/support/articles/000005524/graphics.html

I made a new branch "opengl-3.0" for you to try: https://github.com/GhostNaN/mpvpaper/tree/opengl-3.0

Follow the build instructions, just make sure your downloading the opengl-3.0 branch:

git clone --single-branch --branch opengl-3.0 https://github.com/GhostNaN/mpvpaper

EDIT : opengl-3.0 branch removed as there's no need for it now. https://github.com/GhostNaN/mpvpaper/commit/2369a0a7f9a1fb8298f3502a230bd0034a8b8e2b

ghost commented 4 years ago

It works now :smile:! Thank you very much @GhostNaN ! Really cool project....Keep it up!

marb commented 3 years ago

I have the same issue and some semi-ancient hardware. Can you make OpenGL 4.3 branch?

Intel i7-3740QM glxinfo OpenGL version string: 4.3 (Compatibility Profile) Mesa 21.1.4

GhostNaN commented 3 years ago

That shouldn't happen. I fixed this issue a while ago https://github.com/GhostNaN/mpvpaper/commit/2369a0a7f9a1fb8298f3502a230bd0034a8b8e2b I even tested this myself on my old Thinkpad that only supports as far as 3.3

mpvpaper goes through all compatible versions of OpenGL (3.0 - 4.6) on startup and selects the most recent one. It will tell you which version it selected if you add the "-v" or "--verbose" option.

This might be a separate issue.

marb commented 3 years ago

Yeah. Looks like something else.

mpvpaper -v LVDS-1 video.mp4 [] Output LVDS-1 (Unknown 0x0338 0x00000000) selected [] OpenGL 3.3 EGL context loaded Memory access error (memory dumped)

GhostNaN commented 3 years ago

OpenGL must not be initializing...

It might be a long shot, but the OpenGL profile this comes with is "Core". Down below is mpvpaper, but with the "Compatiblity" profile instead: mpvpaper.tar.gz

Build, then run and see if it works for you.

marb commented 3 years ago

It's giving me the same result.

GhostNaN commented 3 years ago

Then I don't know.

My laptop has similar specs to yours with a i7 3840QM. So I don't think it's a hardware compatibility issue. It might be just your particular system with it's set of software.

Well if you feel like debugging yourself with gdb or something else, let me know what you find. Either way thanks for trying.