Repository navigation
Crash breadcrumbs: record when SDL replaces the window's wl_surface (PLX-NATIVE-K) - #1429
Merged
Merged
Conversation
…PLX-NATIVE-K) Adds a surface_changed window crumb: update_wayland_info compares each non-null surface SDL answers with against the last one it published (a compare-only address that survives the background release) and records the change. Evidence for PLX-NATIVE-K, not the fix. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds one crash breadcrumb,
surface_changed, to the window ring. It is recorded when SDL's WM info returns a different non-nullwl_surfacethan the last one seen. This holds across a background/foreground release, because the compare-onlyG_WL_SURFACE_SEENsurvivessys_release_wayland.This is evidence for Sentry PLX-NATIVE-K, not a fix.
Why
PLX-NATIVE-K (106 events, 29 users, still live on 0.10.0) is a SIGSEGV in
wl_proxy_marshal. In all 12 sampled events the return address lies in libmali, not in our code. Symbolizing the libmali found on the dev set (by opcode, since no crashing build-id matched) places the call indisplay_window_buffer_wl→wl_surface.attach, reached fromeglSwapBuffers, i.e. ourSDL_GL_SwapWindow. The surface proxy is stale (freed), not NULL. Our code never creates or destroys that surface. The leading hypothesis is that LG's SDL fork replaces it under the live EGLSurface. Today's breadcrumbs cannot show when, or whether, that happens.A present
surface_changedproves a replacement. A missing one proves nothing, because an address reused by the allocator is invisible; the doc comments say so.Privacy
Only the fixed label leaves the device; no pointer values.
PRIVACY.mdis updated.Verification
["wm_ready","wm_ready"]with nosurface_changed.make test-crate C=plxnative-modules T=wayland_tests:test result: ok. 6 passed; 0 failedci/check-deps.sh: all gates green.check-module-layers: green.plx_telemetrycrate tests (window.rs). The Mac's disk is full and the build preflight refuses, so this PR is a draft for CI to gate.Follow-ups (not in this PR)
crash/k-phase-unverified. It is written but has never built and is known not to compile its tests yet.SDL_WindowEventlayout on LG's fork is unverified.🤖 Generated with Claude Code