project-chip / connectedhomeip

Matter (formerly Project CHIP) creates more connections between more objects, simplifying development for manufacturers and increasing compatibility for consumers, guided by the Connectivity Standards Alliance.
https://buildwithmatter.com
Apache License 2.0
7.22k stars 1.92k forks source link

[BUG] Android failed to resolve services after resolve timing out #23775

Open Allen-Guof opened 1 year ago

Allen-Guof commented 1 year ago

Reproduction steps

1. Send a command to a powered off Commissionee. After a while, NsdManagerServiceResolver will print `resolve: Timing out`.
2. Commissioning another device. Resolver will print `failed to resolve service`.

Bug prevalence

Every time.

GitHub hash of the SDK that was being used

669cd4713793d8f0e45d90335cec4f8f9b6520ef

Platform

android

Platform Version(s)

No response

Anything else?

2022-11-28 17:13:51.829 NsdManager...ceResolver  D  resolve: Starting service resolution for '7DC2058E9FF8E40E-0000000063805F27' type '_matter._tcp'
2022-11-28 17:13:51.830 NsdManager...AvailState  D  Found NsdManager Resolver free, using it and marking it as busy
2022-11-28 17:14:21.836 NsdManager...ceResolver  D  resolve: Timing out
2022-11-28 17:14:21.850 NsdManager...AvailState  D  Signaling NsdManager Resolver as free
2022-11-28 17:15:26.064 NsdManager...ceResolver  D  resolve: Starting service resolution for '7DC2058E9FF8E40E-0000000063847C23' type '_matter._tcp'
2022-11-28 17:15:26.064 NsdManager...AvailState  D  Found NsdManager Resolver free, using it and marking it as busy
2022-11-28 17:15:26.068 NsdManager...ceResolver  W  Failed to resolve service '7DC2058E9FF8E40E-0000000063847C23': 3
2022-11-28 17:15:26.080 NsdManager...AvailState  D  Signaling NsdManager Resolver as free
stale[bot] commented 9 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.