appsgate2015 / appsgate

Appsgate
0 stars 5 forks source link

Le bridge HUE disparait spontanément... #491

Open snybril opened 9 years ago

snybril commented 9 years ago

Au bout d'un moment j'ai "perdu" le bridge: 14:12:11.303 [Timer-7] INFO a.l.p.PhilipsHUE.PhilipsHUEAdapter -- Uninstantiating PhilipsHUEAdapter ... 14:12:11.303 [Timer-7] INFO a.l.p.PhilipsHUE.PhilipsHUEAdapter -- Removing command listener TARGET PHILIPSHUE ... 14:12:11.303 [Timer-7] INFO a.l.p.PhilipsHUE.PhilipsHUEAdapter -- Removing command listener PHILIPSHUE removed 14:12:11.303 [Timer-7] DEBUG a.l.p.PhilipsHUE.PhilipsHUEAdapter -- PhilipsHUEAdapter uninstantiated. 14:12:11.329 [Timer-7] INFO a.l.p.P.importer.PhilipsHueImporter -- Trying to remove instance 3 from apam

(pas trouvé d'autre traces du phénomène)

alors qu'il est encore disponible dans la liste des services UPnP et qu'il répond au ping... ma config: philips.discovery.pooling.disable=false philips.discovery.scanNetwork=true philips.java.preferences.disable=false

snybril commented 9 years ago

Après recherche rapide, il semblerait que Fuchsia appelle denyImportDeclaration(...) sur l'importer PhilipsHueImporter.

snybril commented 9 years ago

Reproduit le bug:

Après avoir activé les traces fuchsia

Trace n°1, Visiblement une des recherches du polling échoue:

10:05:27.317 [bridge-search-thread] DEBUG o.o.c.f.d.p.BridgeSearchScheduler -- Searching for Hue.. 10:05:27.318 [bridge-search-thread] DEBUG o.o.c.f.d.p.BridgeSearchScheduler -- Network scan activated! 10:05:33.070 [Timer-7] TRACE o.o.c.f.d.p.BridgeSearchScheduler -- PhilipsDiscovery: onConnectionResumed com.philips.lighting.hue.sdk.bridge.impl.PHBridgeImpl@2d6cf47f 10:05:33.072 [Timer-7] TRACE o.o.c.f.d.p.BridgeSearchScheduler -- PhilipsDiscovery: onCacheUpdated 10:05:40.763 [Thread-803] TRACE o.o.c.f.d.p.PhilipsHueBridgeDiscovery -- Bridge failed with the code 1157 and message No bridge found 10:05:40.763 [Thread-803] TRACE o.o.c.f.d.p.BridgeSearchScheduler -- PhilipsDiscovery: onError code 1157 message No bridge found 10:05:40.763 [Thread-803] TRACE o.o.c.f.d.p.BridgeSearchScheduler -- Search finished. New search scheduled to run in 10000 ms. 10:05:42.971 [Timer-7] TRACE o.o.c.f.d.p.PhilipsHueBridgeDiscovery -- Bridge failed with the code 22 and message No connection 10:05:42.971 [Timer-7] TRACE o.o.c.f.d.p.BridgeSearchScheduler -- PhilipsDiscovery: onError code 22 message No connection 10:05:42.973 [Timer-7] TRACE o.o.c.f.d.p.PhilipsHueBridgeDiscovery -- Fetching IP 192.168.1.4 for disconnection 10:05:42.977 [Timer-7] DEBUG o.o.c.f.c.c.DefaultImportationLinker -- Declaration [Declaration:{id=bridge-null, discovery.philips.bridge.object=com.philips.lighting.hue.sdk.bridge.impl.PHBridgeImpl@2d6cf47f, scope=generic, discovery.philips.bridge.type=com.philips.lighting.model.PHBridge}({})(1(1))] do not match service, skipping 10:05:42.977 [Timer-7] DEBUG o.o.c.f.c.c.DefaultImportationLinker -- philipsLinkerBridge : Unbind the ImportDeclaration [Declaration:{id=bridge-null, discovery.philips.bridge.object=com.philips.lighting.hue.sdk.bridge.impl.PHBridgeImpl@2d6cf47f, scope=generic, discovery.philips.bridge.type=com.philips.lighting.model.PHBridge}({})(1(1))] 10:05:42.978 [Timer-7] INFO o.o.c.f.i.p.PhilipsHueBridgeImporter -- philips hue bridge importer removal triggered 10:05:42.982 [Timer-7] INFO a.l.p.PhilipsHUE.PhilipsHUEAdapter -- Uninstantiating PhilipsHUEAdapter ... 10:05:42.982 [Timer-7] INFO a.l.p.PhilipsHUE.PhilipsHUEAdapter -- Removing command listener TARGET PHILIPSHUE ... 10:05:42.982 [Timer-7] INFO a.l.p.PhilipsHUE.PhilipsHUEAdapter -- Removing command listener PHILIPSHUE removed 10:05:42.982 [Timer-7] DEBUG a.l.p.PhilipsHUE.PhilipsHUEAdapter -- PhilipsHUEAdapter uninstantiated.

Trace n° 2, lors d'un nouveau polling après, il retrouve pont, mais il ne recréée pas l'instance du service:

10:05:50.764 [bridge-search-thread] DEBUG o.o.c.f.d.p.BridgeSearchScheduler -- Searching for Hue.. 10:05:50.764 [bridge-search-thread] DEBUG o.o.c.f.d.p.BridgeSearchScheduler -- Network scan activated! 10:05:53.026 [Timer-7] TRACE o.o.c.f.d.p.BridgeSearchScheduler -- PhilipsDiscovery: onConnectionResumed com.philips.lighting.hue.sdk.bridge.impl.PHBridgeImpl@2d6cf47f 10:05:53.027 [Timer-7] TRACE o.o.c.f.d.p.BridgeSearchScheduler -- PhilipsDiscovery: onCacheUpdated 10:06:03.040 [Timer-7] TRACE o.o.c.f.d.p.BridgeSearchScheduler -- PhilipsDiscovery: onConnectionResumed com.philips.lighting.hue.sdk.bridge.impl.PHBridgeImpl@2d6cf47f 10:06:03.041 [Timer-7] TRACE o.o.c.f.d.p.BridgeSearchScheduler -- PhilipsDiscovery: onCacheUpdated 10:06:03.961 [Thread-816] TRACE o.o.c.f.d.p.PhilipsHueBridgeDiscovery -- access point already connected 192.168.1.4 10:06:03.962 [Thread-816] TRACE o.o.c.f.d.p.BridgeSearchScheduler -- PhilipsDiscovery: onAccessPointsFound 10:06:03.962 [Thread-816] TRACE o.o.c.f.d.p.BridgeSearchScheduler -- Search finished. New search scheduled to run in 10000 ms.