Skip to content

Regular crashes as of 28th of January in Windows client #5275

@MarcelRoelofs

Description

@MarcelRoelofs

Describe the problem

Starting the 28th or 29th of January, I get regular crashes in the netbird client on Windows, all of which have the following stack trace (obtained from netbird.err):

goroutine 390 [running]:
github.com/netbirdio/netbird/client/internal/peer/ice.(*ThreadSafeAgent).Close(0xc000e7c0c0?)
	/home/runner/work/netbird/netbird/client/internal/peer/ice/agent.go:37 +0x14
github.com/netbirdio/netbird/client/internal/peer.(*WorkerICE).OnNewOffer(0xc0001a4d20, 0xc00159cf80)
	/home/runner/work/netbird/netbird/client/internal/peer/worker_ice.go:110 +0x277
github.com/netbirdio/netbird/client/internal/peer.(*Handshaker).Listen(0xc00044c6e0, {0x7ff6910f2200, 0xc0008830e0})
	/home/runner/work/netbird/netbird/client/internal/peer/handshaker.go:111 +0x31c
github.com/netbirdio/netbird/client/internal/peer.(*Conn).Open.func1()
	/home/runner/work/netbird/netbird/client/internal/peer/conn.go:193 +0x5b
created by github.com/netbirdio/netbird/client/internal/peer.(*Conn).Open in goroutine 218
	/home/runner/work/netbird/netbird/client/internal/peer/conn.go:191 +0x9ac
ice ERROR: 2026/02/07 01:12:33 Failed to get selected candidate pair stats: the agent is closed
ice ERROR: 2026/02/07 01:12:33 Failed to get candidate pairs stats: the agent is closed
ice ERROR: 2026/02/07 01:20:39 Failed to get selected candidate pair stats: the agent is closed
ice ERROR: 2026/02/07 01:20:39 Failed to get selected candidate pair stats: the agent is closed
ice ERROR: 2026/02/07 01:20:39 Failed to get selected candidate pair stats: the agent is closed
ice ERROR: 2026/02/07 01:20:39 Failed to get selected candidate pair stats: the agent is closed
ice ERROR: 2026/02/07 01:20:39 Failed to get selected candidate pair stats: the agent is closed
ice ERROR: 2026/02/07 01:20:39 Failed to get selected candidate pair stats: the agent is closed
ice ERROR: 2026/02/07 01:20:39 Failed to get selected candidate pair stats: the agent is closed
ice ERROR: 2026/02/07 01:20:39 Failed to get selected candidate pair stats: the agent is closed
ice ERROR: 2026/02/07 01:20:39 Failed to get selected candidate pair stats: the agent is closed
ice ERROR: 2026/02/07 01:20:39 Failed to get selected candidate pair stats: the agent is closed
ice ERROR: 2026/02/07 01:20:39 Failed to get selected candidate pair stats: the agent is closed
ice ERROR: 2026/02/07 01:20:39 Failed to get selected candidate pair stats: the agent is closed
ice ERROR: 2026/02/07 01:20:39 Failed to get selected candidate pair stats: the agent is closed
ice ERROR: 2026/02/07 01:20:39 Failed to get selected candidate pair stats: the agent is closed
ice ERROR: 2026/02/07 01:20:39 Failed to get selected candidate pair stats: the agent is closed
ice ERROR: 2026/02/07 01:20:39 Failed to get selected candidate pair stats: the agent is closed
ice ERROR: 2026/02/07 01:20:39 Failed to get selected candidate pair stats: the agent is closed
ice ERROR: 2026/02/07 01:22:39 Failed to get selected candidate pair stats: the agent is closed
ice ERROR: 2026/02/07 01:24:10 Failed to get candidate pairs stats: the agent is closed
ice ERROR: 2026/02/07 01:24:10 Failed to get selected candidate pair stats: the agent is closed
ice ERROR: 2026/02/07 01:30:29 Failed to get selected candidate pair stats: the agent is closed
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x7ff69042e474]

The number of ice ERRORs displayed in the stack trace vary, from no errors, to this longer list.

To Reproduce

After I get back to my laptop after a long pause, the connection is down, and can't be reconnected because the service isn't running any longer. I have to start the netbird service again to get the connection back up.

Expected behavior

No crashes.

Are you using NetBird Cloud?

Self-hosted.

NetBird version

Latest, enforced by policy

Is any other VPN software installed?

No?

Debug output

To help us resolve the problem, please attach the following anonymized status output

Peers detail:
 xxxxx-storage-server.anon-sRfFF.domain:
  NetBird IP: 100.101.11.184
  Public key: oxfGH4IPOShhRMBVXNkH1tKXO06HgTw3nhQW8S3Tixg=
  Status: Connected
  -- detail --
  Connection type: P2P
  ICE candidate (Local/Remote): host/host
  ICE candidate endpoints (Local/Remote): fd3c:7d59:d487:0:f98b:d15c:336e:81bd:59999/100:::43690
  Relay server address: rels://netbird.anon-EYzIQ.domain:443
  Last connection update: 4 hours, 3 minutes ago
  Last WireGuard handshake: 24 seconds ago
  Transfer status (received/sent) 109.9 KiB/141.1 KiB
  Quantum resistance: false
  Networks: 10.1.0.5/32, 10.1.0.6/32, 10.1.1.0/24, 10.253.0.0/16, 10.253.0.0/27, 10.253.0.4/32, 10.253.4.3/32, 10.253.5.0/24
  Latency: 21.7236ms

 vpn-server-us.anon-sRfFF.domain:
  NetBird IP: 100.101.13.59
  Public key: C6uCkq5RGMyVrwCjKXMsTckWfEQVr8xsxmeg8KMhGHk=
  Status: Connected
  -- detail --
  Connection type: P2P
  ICE candidate (Local/Remote): host/host
  ICE candidate endpoints (Local/Remote): 172.25.64.1:59999/198.51.100.0:51820
  Relay server address: rels://netbird.anon-EYzIQ.domain:443
  Last connection update: 4 hours, 4 minutes ago
  Last WireGuard handshake: 4 seconds ago
  Transfer status (received/sent) 10.6 KiB/39.0 KiB
  Quantum resistance: false
  Networks: 10.1.0.4/32
  Latency: 150.5562ms

 data.anon-sRfFF.domain:
  NetBird IP: 100.101.16.167
  Public key: s8jmBk9H9BVgeh2LIswRNQ4Kb/pFFyVQOcqngdBs/jU=
  Status: Connected
  -- detail --
  Connection type: P2P
  ICE candidate (Local/Remote): host/host
  ICE candidate endpoints (Local/Remote): 100::1:59999/100::2:51820
  Relay server address: rels://netbird.anon-EYzIQ.domain:443
  Last connection update: 4 hours, 4 minutes ago
  Last WireGuard handshake: 58 seconds ago
  Transfer status (received/sent) 29.8 KiB/29.8 KiB
  Quantum resistance: false
  Networks: -
  Latency: 26.1917ms

 xxxxx-gw.anon-sRfFF.domain:
  NetBird IP: 100.101.89.65
  Public key: XUJ22IRUixmrG1QkinaXiRV5xDz3heYiJiSvg9CRQCU=
  Status: Connected
  -- detail --
  Connection type: P2P
  ICE candidate (Local/Remote): host/srflx
  ICE candidate endpoints (Local/Remote): 172.25.64.1:59999/198.51.100.1:42727
  Relay server address: rels://netbird.anon-EYzIQ.domain:443
  Last connection update: 3 hours, 57 minutes ago
  Last WireGuard handshake: 1 minute, 56 seconds ago
  Transfer status (received/sent) 30.8 KiB/54.5 KiB
  Quantum resistance: false
  Networks: 10.10.0.0/24, 10.2.0.1/32, 10.253.241.134/32
  Latency: 21.3157ms

 bigstorage.anon-sRfFF.domain:
  NetBird IP: 100.101.137.207
  Public key: zzukqkBnZod9n1+kc7V5OYHpzXLa0SSLPFRM5oyrUQA=
  Status: Connected
  -- detail --
  Connection type: P2P
  ICE candidate (Local/Remote): host/host
  ICE candidate endpoints (Local/Remote): 172.25.64.1:59999/198.51.100.2:46892
  Relay server address: rels://netbird.anon-EYzIQ.domain:443
  Last connection update: 4 hours, 3 minutes ago
  Last WireGuard handshake: 2 minutes, 40 seconds ago
  Transfer status (received/sent) 15.2 KiB/25.9 KiB
  Quantum resistance: false
  Networks: -
  Latency: 37.8821ms

 udm-se-xxxxx.anon-sRfFF.domain:
  NetBird IP: 100.101.237.186
  Public key: FoQrI4VwnKGIYJ6/maEgny5zxNnXwpYHkzxnafU8qQ4=
  Status: Connecting
  -- detail --
  Connection type: -
  ICE candidate (Local/Remote): -/-
  ICE candidate endpoints (Local/Remote): -/-
  Relay server address:
  Last connection update: 4 hours, 4 minutes ago
  Last WireGuard handshake: -
  Transfer status (received/sent) 0 B/0 B
  Quantum resistance: false
  Networks: -
  Latency: 0s

Events:
  [WARNING] DNS (5d300c63-d832-42a0-8b5c-7057c521f20a)
    Message: All upstream servers failed (probe failed)
    Time: 4 hours, 4 minutes ago
    Metadata: upstreams: 100.101.89.65:53, 100.101.11.184:53
  [WARNING] DNS (2a4ef4ba-95bb-4a9b-b777-d5a9a1b7c635)
    Message: All upstream servers failed (probe failed)
    Time: 4 hours, 4 minutes ago
    Metadata: upstreams: 100.101.89.65:53, 100.101.11.184:53
  [WARNING] DNS (16fb9040-aeeb-4465-8256-29d5b7a84d95)
    Message: All upstream servers failed (probe failed)
    Time: 4 hours, 4 minutes ago
    Metadata: upstreams: 100.101.89.65:53, 100.101.11.184:53
  [INFO] SYSTEM (e83fdc87-005b-44eb-87ce-9779bd408a7d)
    Message: Network map updated
    Time: 4 hours, 4 minutes ago
  [INFO] SYSTEM (da5c2a3d-af06-43f1-8c32-3c39dde48be6)
    Message: Network map updated
    Time: 3 hours, 26 minutes ago
  [INFO] SYSTEM (b8caabc9-0bf5-4465-9091-c515e8f34290)
    Message: Network map updated
    Time: 3 hours, 26 minutes ago
  [INFO] SYSTEM (0d0a79ed-3bd0-4725-9edb-b8586d9f9728)
    Message: Network map updated
    Time: 2 hours ago
OS: windows/amd64
Daemon version: 0.64.5
CLI version: 0.64.5
Profile: default
Management: Connected to https://netbird.anon-EYzIQ.domain:443
Signal: Connected to https://netbird.anon-EYzIQ.domain:443
Relays:
  [stun:netbird.anon-EYzIQ.domain:3478] is Available
  [rels://netbird.anon-EYzIQ.domain:443] is Available
Nameservers:
  [100.101.89.65:53, 100.101.11.184:53] for [intra.anon-EYzIQ.domain, platform.anon-EYzIQ.domain, pm.anon-EYzIQ.domain] is Available
FQDN: marcel-xps-16.anon-sRfFF.domain
NetBird IP: 100.101.94.174/16
Interface type: Userspace
Quantum resistance: false
Lazy connection: false
SSH Server: Disabled
Networks: -
Peers count: 5/6 Connected

Create and upload a debug bundle, and share the returned file key:

59ea9a96fb39f1392bb1571ae08a5b433954fd2e557a6c2598dfa30a86ff2d61/d287c902-cbf5-428d-ba6e-6a011b1e08f5

Screenshots

n/a

Additional context

Add any other context about the problem here.

Have you tried these troubleshooting steps?

  • [ x] Reviewed client troubleshooting (if applicable)
  • [ x] Checked for newer NetBird versions
  • [ x] Searched for similar issues on GitHub (including closed ones)
  • [ x] Restarted the NetBird client
  • [ x] Disabled other VPN software
  • [ x] Checked firewall settings

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions