Skip to content

Fix iOS WebGL keep-alive and WebContent crash#294

Merged
capy-ai[bot] merged 1 commit intokief5555/iosfrom
capy/fix-webgl-keepalive
Apr 13, 2026
Merged

Fix iOS WebGL keep-alive and WebContent crash#294
capy-ai[bot] merged 1 commit intokief5555/iosfrom
capy/fix-webgl-keepalive

Conversation

@Kief5555
Copy link
Copy Markdown
Collaborator

@Kief5555 Kief5555 commented Apr 13, 2026

This PR fixes the WebContent crash on the initial queue→stream path by removing the CSS will-change animation layer promotion that conflicts with concurrent StreamLoadingView animation pressure. The WebGL GPU keep-alive from PR #292 is restored and improved: it now runs indefinitely (no stop condition) so the empty MediaStream's playing event does not cancel it before real video arrives. The MediaStream WebContent keep-alive from PR #293 is retained.

StreamerView.swift:

  • CSS: Remove @keyframes _gpuKA rule and <div id="_gpuKA"> with will-change:transform that caused WebContent crash during initial path
  • JavaScript: Add WebGL 1×1 canvas gl.clear() rAF loop before connect() to keep GPUProcess alive during WebRTC negotiation; runs until WKWebView destruction
  • JavaScript: Keep MediaStream + video.play() before connect() to prevent WebContent process suspension

Open in Capy OPEN-16 · Sonnet 4.6

@Kief5555 Kief5555 added the capy Generated by capy.ai label Apr 13, 2026 — with Capy AI
@capy-ai capy-ai Bot merged commit 93a40d8 into kief5555/ios Apr 13, 2026
@capy-ai capy-ai Bot deleted the capy/fix-webgl-keepalive branch April 13, 2026 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

capy Generated by capy.ai

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant