xterm.js icon indicating copy to clipboard operation
xterm.js copied to clipboard

Broken webgl rendering in Safari on MacOS beta 26.5 beta

Open gsabran opened this issue 7 months ago • 9 comments

This issue started to happen for several users who are specifically using macOS 26.5 beta. The rendering is totally broken:

Image

The text can still be copied fine.

Using the canva addon over the webgl one fixes the rendering issue.

Details

  • Browser and browser version: Safari
  • OS version: 26.5 beta (25F5053d)
  • xterm.js version:

Steps to reproduce

Run this repro in Safari, macOS 26.5 beta (pnpm i && pnpm dev)

https://github.com/user-attachments/assets/a5d8233b-f8d4-4ee5-8ca7-58ada52e31d5

xterm-webgl-tauri-repro.zip

gsabran avatar Apr 17 '26 05:04 gsabran

@gsabran This looks suspiciously like a fingerprint countermeasure done by safari. Please check the settings for canvas and fingerprinting and if they change that behavior.

jerch avatar Apr 17 '26 07:04 jerch

Thanks for solving!! @gsabran glad the beta hint led to something.

kotyperry avatar Apr 17 '26 14:04 kotyperry

I didn't notice a difference in Safari's settings between the new macOS (right) and 26.4.1 (left)

Image

gsabran avatar Apr 17 '26 17:04 gsabran

Our plan is to give this a day or two before we switch back to canvas rendering. If anyone can find a fix we'd be super grateful! Would love to be able to stay on webgl.

jacksondc avatar Apr 17 '26 19:04 jacksondc

On my side I don’t have found a hack/fix so I reverted to Canvas only when OS version >= 26.5

(Older OS releases still using the WebGL)

https://github.com/isontheline/pro.webssh.net/issues/1574

isontheline avatar Apr 22 '26 10:04 isontheline

I have a possible fix for this in #5883 would appreciate testing

before:

Image

after:

Image

vsych avatar May 18 '26 23:05 vsych

I have a possible fix for this in #5883 would appreciate testing

before:

Image

after:

Image

vsych avatar May 19 '26 00:05 vsych

I'm on macOS 15.7 and also get this issue

AndrewSouthpaw avatar May 21 '26 01:05 AndrewSouthpaw

Could you retest the original Safari / macOS 26.5 repro on a current beta build? #5883 fixed an atlas page-merge bug where merged pages could render with missing glyphs, and that fix isn't in the 6.0.0 release. If a fresh terminal is still broken before any atlas merge, this is a different bug and should stay open.

xtermjs-bot avatar Oct 29 '26 15:10 xtermjs-bot