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

"invalid width, height, or strid (0x24, 0)" error when calling draw on FallbackFrame #446

Open
tmccombs opened this issue Apr 3, 2024 · 0 comments

Comments

@tmccombs
Copy link

tmccombs commented Apr 3, 2024

When I call FallbackFrame::draw I get this error in the title.

More context from the wayland debug output:

[4029484.720] [email protected](11489)
[4029486.062]  -> [email protected]_configure(11489)
[4029486.230]  -> [email protected]_title("zsh")
[4029486.252]  -> [email protected]_buffer(new id wl_buffer@38, 0, 0, 24, 0, 0)
[4029486.268]  -> [email protected]_buffer_scale(1)
[4029486.272]  -> [email protected]_sync()
[4029486.277]  -> [email protected]_position(0, -24)
[4029486.282]  -> [email protected](wl_buffer@38, 0, 0)
[4029486.287]  -> [email protected]_buffer(0, 0, 2147483647, 2147483647)
[4029486.290]  -> [email protected]()
[4029486.296]  -> [email protected]_buffer(new id wl_buffer@40, 0, 0, 4, 0, 0)
[4029486.301]  -> [email protected]_buffer_scale(1)
[4029486.304]  -> [email protected]_sync()
[4029486.307]  -> [email protected]_position(-4, -28)
[4029486.311]  -> [email protected](wl_buffer@40, 0, 0)
[4029486.315]  -> [email protected]_buffer(0, 0, 2147483647, 2147483647)
[4029486.318]  -> [email protected]()
[4029486.322]  -> [email protected]_buffer(new id wl_buffer@41, 0, 4, 0, 16, 0)
[4029486.327]  -> [email protected]_buffer_scale(1)
[4029486.330]  -> [email protected]_sync()
[4029486.333]  -> [email protected]_position(0, -24)
[4029486.337]  -> [email protected](wl_buffer@41, 0, 0)
[4029486.340]  -> [email protected]_buffer(0, 0, 2147483647, 2147483647)
[4029486.343]  -> [email protected]()
[4029486.347]  -> [email protected]_buffer(new id wl_buffer@42, 0, 0, 4, 0, 0)
[4029486.352]  -> [email protected]_buffer_scale(1)
[4029486.355]  -> [email protected]_sync()
[4029486.358]  -> [email protected]_position(-4, 0)
[4029486.361]  -> [email protected](wl_buffer@42, 0, 0)
[4029486.365]  -> [email protected]_buffer(0, 0, 2147483647, 2147483647)
[4029486.367]  -> [email protected]()
[4029486.372]  -> [email protected]_buffer(new id wl_buffer@43, 0, 4, 0, 16, 0)
[4029486.376]  -> [email protected]_buffer_scale(1)
[4029486.379]  -> [email protected]_sync()
[4029486.382]  -> [email protected]_position(-4, -24)
[4029486.392]  -> [email protected](wl_buffer@43, 0, 0)
[4029486.396]  -> [email protected]_buffer(0, 0, 2147483647, 2147483647)
[4029486.399]  -> [email protected]()
[4029486.467] [email protected](wl_shm_pool@22, 1, "invalid width, height or stride (0x24, 0)")
wl_shm_pool@22: error 1: invalid width, height or stride (0x24, 0)
Protocol error 1 on object wl_shm_pool@22: 
00:00:22.569  ERROR  wezterm_gui > running message loop: Protocol error 1 on object wl_shm_pool@22: ; terminating

Maybe this is user error, and I there is some step I am missing in setting up the client side decorations (which by the way is remarkably complicated to do). But it seems like the library should avoid creating a buffer with invalid parameters.

I think it should either use a minimum size of 1 for the buffers, avoid drawing altogether if the widht and height are zero.

See wez/wezterm#5044

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

1 participant