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

happy crashing in [OwlShmBuffer invalidate] #21

Open
RJVB opened this issue Mar 8, 2025 · 0 comments
Open

happy crashing in [OwlShmBuffer invalidate] #21

RJVB opened this issue Mar 8, 2025 · 0 comments

Comments

@RJVB
Copy link

RJVB commented Mar 8, 2025

I'm getting regular crashes under [OwlShmBuffer invalidate], most often with this backtrace:

0   libwayland-server.0.dylib     	0x000000010ac92f06 wl_shm_buffer_get_data + 20 (wayland-shm.c:459)
1   io.github.bugaevc.Owl         	0x000000010ac4903c -[OwlShmBuffer invalidate] + 108 (OwlShmBuffer.m:64)
2   libffi.8.dylib                	0x000000010accb052 ffi_call_unix64 + 82
3   libffi.8.dylib                	0x000000010accfba7 ffi_call_int.llvm.BC09A206 + 807
4   libwayland-server.0.dylib     	0x000000010ac9633d wl_closure_invoke + 382 (connection.c:1035)
5   libwayland-server.0.dylib     	0x000000010ac8fb87 wl_client_connection_data + 990 (wayland-server.c:438)
6   libwayland-server.0.dylib     	0x000000010ac93540 wl_event_source_fd_dispatch + 132 (event-loop.c:135)
7   libwayland-server.0.dylib     	0x000000010ac93bc4 wl_event_loop_dispatch + 204 (event-loop.c:1064)
8   io.github.bugaevc.Owl         	0x000000010ac4edb1 socketCallback + 17 (OwlRunLoopSource.m:49)

This is because the _buffer pointer is corrupt, but I haven't yet been able to find out what causes that, or where. The issue doesn't occur when I run Owl under valgrind.

Best I've seen is this:

Mar  8 23:53:28 Portia.local Owl[91231] <Error>: CGImageCreate: invalid image size: 255 x 0.
Mar  8 23:53:28 Portia.local Owl[91231] <Error>: CGImageCreate: invalid image size: 255 x 0.
Buffer address requested when its parent pool has an external reference and a deferred resize pending.
2025-03-08 23:53:39.815 Owl[91231:d07] Unknown shm format

(in that case the crash occurred in wl_shm_buffer_begin_access(), wayland-shm.c:637 ; the CGImageCreate warnings occur only when running with jemalloc.)

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