Repository navigation
Description
Existing Resources
- Please search the existing issues for related problems
- Consult the product documentation : Docs
- Consult the FAQ : FAQ
- Consult the Troubleshooting Guide : Guide
- Reviewed existing training videos: Youtube
Describe the bug
Since 1.19.0 (kasmweb/brave:1.19.0; 1.18.0 worked), the web client gets stuck on the loading screen in Microsoft Edge 156.0.4314.50 on Windows 11 26H2. The console shows no errors and no /websockify request is ever made. Firefox on the same machine works.
It looks like on first load the client probes codecs in _tryDecode(), decoding a test frame with VideoDecoder and hardwareAcceleration "prefer-hardware". It waits for either an output frame or an error, with no timeout. On this machine the hardware decoder returns neither, so the promise never resolves and the connection never starts.
I can pre-populate local storage, and then things work:
localStorage.setItem('kasm_video_codecs_v1', JSON.stringify({capabilities:{AVC:false,HEVC:false,AV1:false},hwAcceleration:{}}))
To Reproduce
Described above
Expected behavior
Behavior as-per 1.18.0
Screenshots
N/A
Workspaces Version
1.19.0
Workspaces Installation Method
Docker container, kasmweb/brave:1.19.0
Client Browser (please complete the following information):
- OS: Windows 11 26H2
- Browser Edge
- Version 156.0.4314.50
Workspace Server Information (please provide the output of the following commands):
uname -a
Linux SRVDCK01 6.12.113+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.113-1 (2026-10-15) x86_64 GNU/Linuxcat /etc/os-releasePRETTY_NAME="Debian GNU/Linux 13 (trixie)" NAME="Debian GNU/Linux" VERSION_ID="13" VERSION="13 (trixie)" VERSION_CODENAME=trixie DEBIAN_VERSION_FULL=13.7 ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"sudo docker infoClient: Docker Engine - Community Version: 29.9.2 Context: default Debug Mode: false Plugins: buildx: Docker Buildx (Docker Inc.) Version: v0.38.1 Path: /usr/libexec/docker/cli-plugins/docker-buildx compose: Docker Compose (Docker Inc.) Version: v5.6.1 Path: /usr/libexec/docker/cli-plugins/docker-compose Server: Containers: 13 Running: 12 Paused: 0 Stopped: 1 Images: 14 Server Version: 29.9.2 Storage Driver: overlay2 Backing Filesystem: extfs Supports d_type: true Using metacopy: false Native Overlay Diff: true userxattr: false Logging Driver: journald Cgroup Driver: systemd Cgroup Version: 2 Plugins: Volume: local Network: bridge host ipvlan macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog CDI spec directories: /etc/cdi /var/run/cdi Swarm: inactive Runtimes: runc io.containerd.runc.v2 Default Runtime: runc Init Binary: docker-init containerd version: b7a25261e029d68978bbf290df0a62fc819b3c51 runc version: v1.5.2-0-g29dd3dc2 init version: de40ad0 Security Options: apparmor Profile: default seccomp Profile: builtin cgroupns no-new-privileges Kernel Version: 6.12.113+deb13-amd64 Operating System: Debian GNU/Linux 13 (trixie) OSType: linux Architecture: x86_64 CPUs: 4 Total Memory: 7.654GiB Name: SRVDCK01 ID: BTWS:I75F:3CK3:M6EV:4MFD:QDHR:AU7L:HOOJ:UOTR:D7K2:LPLT:HAKO Docker Root Dir: /var/lib/docker Debug Mode: false Experimental: false Insecure Registries: 127.0.0.0/8 ::1/128 Live Restore Enabled: true Firewall Backend: iptablessudo docker ps | grep kasm3ec6a2beea85 kasmweb/brave:1.19.0 "/dockerstartup/kasm…" 20 hours ago Up 18 hours (healthy) 4901/tcp, 5901/tcp, 6901/tcp browser
Additional context
# sslOnly=0 is used since traefik is in front of kasmweb
- VNCOPTIONS=-PreferBandwidth -DynamicQualityMin=4 -DynamicQualityMax=7 -DLP_ClipDelay=0 -sslOnly=0
- APP_ARGS=--start-maximized --disable-gpu
- LAUNCH_URL=about:blank
- KASM_SVC_AUDIO=0
- KASM_SVC_AUDIO_INPUT=0
- KASM_SVC_GAMEPAD=0
- KASM_SVC_PRINTER=0
- KASM_SVC_SMARTCARD=0
- KASM_SVC_UPLOADS=0
- KASM_SVC_WEBCAM=0
Activity
Dylan-Bs commentedon Nov 30, 2026
Same problem here, reproduced on a second machine with a different Windows build, so it is not specific to one setup. I traced it to the same place and have a proposed fix below.
Environment
edge://gpureports Video Decode: Hardware accelerated.What I observed
vnc.html,assets/ui-*.jsandapp/locale/fr.jsonare all served with a 200. After that, the client sends no further request: nopackage.jsonand no/websockify. There is nothing in the console or in DevTools > Issues, even with&logging=debug.package.jsonabout one second after the locale file, then opens/websockify. The client therefore stops somewhere between the l10n step andUI.start().Root cause (
core/codecs.json master)UI.prime()awaitsnew CodecDetector().detect()before callingUI.start(). The surroundingtry/catchonly handles a rejection. A promise that never settles blocksUI.start()forever, soUI.connect()is never called._tryDecode()only resolves from the decoder'soutputorerrorcallback, or from a rejectedflush(). There is no timeout, so nothing settles the promise in two cases:flush()resolves without any output. The WebCodecs spec emits every output beforeflush()resolves, so this case means the frame was not decoded.localStorageoncedetect()completes. An affected browser therefore hangs again on every load. The manual cache entry works becausedetect()returns early on a cache hit._tryDetect(codec)passes the codec string toVideoDecoder.isConfigSupported(), which expects aVideoDecoderConfigdictionary ({codec}), so it rejects with aTypeError. That rejection escapes thecatchin the loop,detect()rejects, and nothing is cached.Proposed fix
The patch below bounds each test decode to 2 s, treats a
flush()that resolves without output as "not supported", and always closes the decoder. It also passes{codec}toisConfigSupported()and catches its errors. On an affected machine, the hardware probe now times out, the existing software retry runs, and the result is cached (prefer-softwarewhen software decoding works). The worst case is about 6 s on the first load only, if the hardware probe hangs for all three codecs.I tested it against a mocked
VideoDecodercovering the hang, flush-without-output, error, configure-throws and success cases:_tryDecode()stays pending in the first two cases, and_tryDetect()rejects with aTypeError.detect()writes the cache.I have not been able to test it in a real browser on the affected machine yet.
As an additional safeguard,
UI.prime()could racedetect()against a timeout, so that a codec probe can never keep the client from connecting.