allusive-dev / compfy

A Compositor for X11 based on Picom. No Longer Maintained in favor of Picom v12!
203 stars 23 forks source link

`Assertion failed: ps->server_grabbed (../src/c2.c: c2_match: 1684)` #33

Closed apprehensions closed 9 months ago

apprehensions commented 10 months ago

What is the issue Assertion failure when checking for a regex or if the server has something grabbed

What did you expect Picom runs as normal

Your configuration Default

Package Version: 44e4be6afee4946ff28ef995ebb0f3aed5382b40 Build Method: Source WM: dwm

~/src/picom-allusive $ git log --pretty=oneline
44e4be6afee4946ff28ef995ebb0f3aed5382b40 (HEAD -> main, origin/main, origin/HEAD) Update README.md
3a3c0751cc54f548fa8638c1fcb9ef5f636bcb9a (tag: 1.5.0) Update to pcre2 in relation to #29
05bb2cd3e054b1e22a3b511ce7a5678e8f12017b Merge pull request #32 from IogaMaster/improved-flake
~/src/picom-allusive $ git log --pretty=oneline | head -2
44e4be6afee4946ff28ef995ebb0f3aed5382b40 Update README.md
3a3c0751cc54f548fa8638c1fcb9ef5f636bcb9a Update to pcre2 in relation to #29
~/src/picom-allusive $ git branch
* main
~/src/picom-allusive $ rm -rf build ; meson setup -Dregex=true build
The Meson build system
Version: 1.2.3
Source dir: /home/meow/src/picom-allusive
Build dir: /home/meow/src/picom-allusive/build
Build type: native build
Project name: picom
Project version: 1.5.0
C compiler for the host machine: ccache cc (gcc 13.2.0 "cc (GCC) 13.2.0")
C linker for the host machine: cc ld.bfd 2.41
Host machine cpu family: x86_64
Host machine cpu: x86_64
Has header "stdc-predef.h" : YES 
Compiler for C supports arguments -Wcast-function-type: YES 
Compiler for C supports arguments -Wignored-qualifiers: YES 
Compiler for C supports arguments -Wmissing-parameter-type: YES 
Compiler for C supports arguments -Wnonnull: YES 
Compiler for C supports arguments -Wshadow: YES 
Compiler for C supports arguments -Wno-type-limits: YES 
Compiler for C supports arguments -Wold-style-declaration: YES 
Compiler for C supports arguments -Woverride-init: YES 
Compiler for C supports arguments -Wsign-compare: YES 
Compiler for C supports arguments -Wtype-limits: YES 
Compiler for C supports arguments -Wuninitialized: YES 
Compiler for C supports arguments -Wshift-negative-value: YES 
Compiler for C supports arguments -Wunused-but-set-parameter: YES 
Compiler for C supports arguments -Wunused-parameter: YES 
Compiler for C supports arguments -Wimplicit-fallthrough=2: YES 
Compiler for C supports arguments -Wno-unknown-warning-option: NO 
Compiler for C supports arguments -Wno-missing-braces: YES 
Compiler for C supports arguments -Wconversion: YES 
Compiler for C supports arguments -Wempty-body: YES 

Executing subproject test.h 

test.h| Project name: test.h
test.h| Project version: undefined
test.h| C compiler for the host machine: ccache cc (gcc 13.2.0 "cc (GCC) 13.2.0")
test.h| C linker for the host machine: cc ld.bfd 2.41
test.h| Build targets in project: 0
test.h| Subproject test.h finished.

Found pkg-config: /usr/bin/pkg-config (2.0.3)
Found CMake: /usr/bin/cmake (3.27.7)
Run-time dependency libev found: NO (tried pkgconfig and cmake)
Library ev found: YES
Library m found: YES
Run-time dependency x11 found: YES 1.8.7
Run-time dependency x11-xcb found: YES 1.8.7
Run-time dependency xcb-renderutil found: YES 0.3.10
Run-time dependency xcb-image found: YES 0.4.1
Run-time dependency xext found: YES 1.3.5
Run-time dependency pixman-1 found: YES 0.42.2
Run-time dependency xcb-render found: YES 1.16
Run-time dependency xcb-damage found: YES 1.16
Run-time dependency xcb-randr found: YES 1.16
Run-time dependency xcb-sync found: YES 1.16
Run-time dependency xcb-composite found: YES 1.16
Run-time dependency xcb-shape found: YES 1.16
Run-time dependency xcb-xinerama found: YES 1.16
Run-time dependency xcb-xfixes found: YES 1.16
Run-time dependency xcb-present found: YES 1.16
Run-time dependency xcb-glx found: YES 1.16
Run-time dependency xcb found: YES 1.16
Has header "uthash.h" : YES 
Run-time dependency libconfig found: YES 1.7.3
Run-time dependency libpcre2-8 found: YES 10.42
Run-time dependency gl found: YES 1.2
Run-time dependency egl found: YES 1.5
Run-time dependency dbus-1 found: YES 1.15.8
Build targets in project: 1

picom 1.5.0

  Subprojects
    test.h: YES

  User defined options
    regex : true

Found ninja-1.9 at /usr/bin/ninja
~/src/picom-allusive $ ninja -C build 
ninja: entering directory 'build'
[1/31] Compiling C object src/picom.p/backend_gl_egl.c.o
[2/31] Compiling C object src/picom.p/backend_gl_shaders.c.o
[3/31] Compiling C object src/picom.p/backend_gl_blur.c.o
[4/31] Compiling C object src/picom.p/backend_gl_glx.c.o
[5/31] Compiling C object src/picom.p/backend_gl_gl_common.c.o
[6/31] Compiling C object src/picom.p/backend_driver.c.o
[7/31] Compiling C object src/picom.p/backend_backend.c.o
[8/31] Compiling C object src/picom.p/backend_dummy_dummy.c.o
[9/31] Compiling C object src/picom.p/backend_xrender_xrender.c.o
[10/31] Compiling C object src/picom.p/backend_backend_common.c.o
[11/31] Compiling C object src/picom.p/dbus.c.o
[12/31] Compiling C object src/picom.p/opengl.c.o
[13/31] Compiling C object src/picom.p/config_libconfig.c.o
[14/31] Compiling C object src/picom.p/file_watch.c.o
[15/31] Compiling C object src/picom.p/atom.c.o
[16/31] Compiling C object src/picom.p/cache.c.o
[17/31] Compiling C object src/picom.p/event.c.o
[18/31] Compiling C object src/picom.p/options.c.o
[19/31] Compiling C object src/picom.p/log.c.o
[20/31] Compiling C object src/picom.p/kernel.c.o
[21/31] Compiling C object src/picom.p/render.c.o
[22/31] Compiling C object src/picom.p/string_utils.c.o
[23/31] Compiling C object src/picom.p/diagnostic.c.o
[24/31] Compiling C object src/picom.p/utils.c.o
[25/31] Compiling C object src/picom.p/vsync.c.o
[26/31] Compiling C object src/picom.p/config.c.o
[27/31] Compiling C object src/picom.p/x.c.o
[28/31] Compiling C object src/picom.p/c2.c.o
[29/31] Compiling C object src/picom.p/win.c.o
[30/31] Compiling C object src/picom.p/picom.c.o
../src/win.c: In function 'win_update_focused':
../src/win.c:152:23: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  152 |                 if (ps, w, ps->o.focus_blacklist, NULL) {
      |                       ^
../src/win.c:152:26: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  152 |                 if (ps, w, ps->o.focus_blacklist, NULL) {
      |                          ^
../src/win.c:152:49: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  152 |                 if (ps, w, ps->o.focus_blacklist, NULL) {
      |                                                 ^
../src/win.c: In function 'win_determine_rounded_corners':
../src/win.c:1555:34: warning: assignment to 'int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
 1555 |                 w->corner_radius = val;
      |                                  ^
[31/31] Linking target src/picom
~/src/picom-allusive $ build/src/picom
Assertion failed: ps->server_grabbed (../src/c2.c: c2_match: 1684)
Aborted

The previous issue was locked, so i opened a new one.

allusive-dev commented 10 months ago

@apprehensions It has become clear to me at least that this is an issue with your system. I have tested under the same circumstances and not come across this issue, as well nobody else seems to have come across this issue.

Best I can suggest is you review your system and possibly try testing the issue on another system.

Apologies for the other issue, I thought you would still have access after I locked it.

apprehensions commented 10 months ago

While i still don't know how to debug very well, I still firmly believe the fault was due to a signficant code change done in this project. Picom vanilla runs perfectly fine.

apprehensions commented 10 months ago

Is there another stable Picom fork with animations i can use as a point of reference?

allusive-dev commented 10 months ago

Is there another stable Picom fork with animations i can use as a point of reference?

https://github.com/pijulius/picom

apprehensions commented 10 months ago

That fork you linked works.

apprehensions commented 10 months ago

I'm not sure what exactly happened in code of project, but theres thousands of code changes which are purely style... This makes it so much damn harder to track down the original issue

apprehensions commented 10 months ago

https://github.com/fdev31/picom also works

allusive-dev commented 10 months ago

Stumps me how you got both yshui and pijulius to work but not mine

What makes less sense is how this is only happening for you.

apprehensions commented 10 months ago

Are you on the Picom discord? we can discuss further there

allusive-dev commented 10 months ago

I was not aware picom had it's own discord server.

allusive-dev commented 10 months ago

@apprehensions Can you send the link, I cannot find it.

apprehensions commented 10 months ago

https://discord.gg/SY5JJzPgME

allusive-dev commented 10 months ago

I'm in #development

allusive-dev commented 9 months ago

Resolved. Building with meson setup -Dregex=true build causes the issue. To resolve use this command when building.

meson setup --buildtype=release . build
apprehensions commented 9 months ago

Yep.