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

Picom crashes when I switch focused app, when having shadows w/ rounded corners #1143

Closed
hossammenem opened this issue Oct 31, 2023 · 3 comments

Comments

@hossammenem
Copy link

Platform

OS: Fedora Linux 38 (Workstation Edition) x86_64
Host: B450M S2H
Kernel: 6.5.5-200.fc38.x86_64
Shell: sh
Terminal: alacritty
CPU: AMD Ryzen 3 3200G (4) @ 3.600GHz

 glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: AMD (0x1002)
    Device: AMD Radeon Vega 8 Graphics (raven, LLVM 16.0.6, DRM 3.54, 6.5.5-200.fc38.x86_64) (0x15d8)
    Version: 23.1.8
    Accelerated: yes
    Video memory: 2048MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
    VBO free memory - total: 1555 MB, largest block: 1555 MB
    VBO free aux. memory - total: 2824 MB, largest block: 2824 MB
    Texture free memory - total: 1555 MB, largest block: 1555 MB
    Texture free aux. memory - total: 2824 MB, largest block: 2824 MB
    Renderbuffer free memory - total: 1555 MB, largest block: 1555 MB
    Renderbuffer free aux. memory - total: 2824 MB, largest block: 2824 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 2048 MB
    Total available memory: 4971 MB
    Currently available dedicated video memory: 1555 MB
OpenGL vendor string: AMD
OpenGL renderer string: AMD Radeon Vega 8 Graphics (raven, LLVM 16.0.6, DRM 3.54, 6.5.5-200.fc38.x86_64)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 23.1.8
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 23.1.8
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 23.1.8
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

Environment

  • bspwm
  • no DE

picom version

picom --version
v10

Configuration:

Configuration file
# vsync = true

backend = "glx";
glx-no-stencil = true;
glx-copy-from-front = false;
#glx-swap-method = 2;

# Opacity
active-opacity = 1;
inactive-opacity = 1;
frame-opacity = 1;
frame = true
inactive-opacity-override = false;


opacity-rule = [
    "90:class_g = 'Alacritty'",
];

rounded-corners-exclude = [ "window_type = 'dock'", "window_type = 'desktop'" ];


# Blur
blur-background = true;
blur-background-frame = false;
blur-method = "dual_kawase";
blur-strength = 3;

# Fading
fading = true;
fade-delta = 3;
no-fading-openclose = false;

fade-exclude = [ ];

# Window type settings
wintypes:
{
  dock = {
    shadow = false;
  };
};

blur-background-exclude = [
  "_GTK_FRAME_EXTENTS@:c",
  "class_g = 'Polybar'",
  "class_g = 'Rofi'",
];

xrender-sync-fence = true;

# Border roundness
corner-radius = 8;
round-borders = 1;

# Shadows
#shadow = true;
shadow-radius = 20;
shadow-offset-x = -20;
shadow-offset-y = -20;
shadow-opacity = 1;

shadow-ignore-shaped = true;
detect-rounded-corners = true;

shadow-exclude = [
  "!focused",
  "fullscreen",
  "class_g = 'Bspwm' && class_i = 'presel_feedback'",
  "_GTK_FRAME_EXTENTS@:c",
];

Issue

As you can see in the configurations, I have shadows and rounded corners, they work just fine when opening picom, but when changing the active app ( even if it's the same app ), picom completely crashes, I've tried removing the blur, but didn't change anything, it just seems that shadows don't work with rounded corners ( but both works great alone ).

Stack trace

picom --debug-mode 
# just change active app
picom: ../src/win.c:349: win_bind_mask: Assertion `!w->mask_image' failed.
[1]    3144149 IOT instruction (core dumped)  picom --debug-mode
@Monsterovich
Copy link
Contributor

Hello, try this patch: #1091

@absolutelynothelix
Copy link
Collaborator

absolutelynothelix commented Nov 1, 2023

Hello, try this patch: #1091

sounds more like #1035.

@hossammenem
Copy link
Author

So, I had picom installed via dnf, so I deleted it and cloned the official repo, built it and everything worked just fine.

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

3 participants