Perl Warning in fhem.pl

Begonnen von Laffer72, 16 September 2015, 11:01:03

Vorheriges Thema - Nächstes Thema

Laffer72

Hallo,

bei mir läuft immer wieder die gleiche Perl-Warnung im Log auf:

2015.09.16 11:01:27 5: PRESENCE (Reinhard_Handy_Presence) - stopping timer
2015.09.16 11:01:27 5: PRESENCE (Reinhard_Handy_Presence) - starting blocking call for mode lan-ping
2015.09.16 11:01:27 4: BlockingCall created child (6531), uses telnetForBlockingFn to connect back
2015.09.16 11:01:27 1: PERL WARNING: Use of uninitialized value in string eq at fhem.pl line 4338.
2015.09.16 11:01:27 3: stacktrace:
2015.09.16 11:01:27 3:     main::__ANON__                      called by fhem.pl (4338)
2015.09.16 11:01:27 3:     main::fhemFork                      called by FHEM/Blocking.pm (68)
2015.09.16 11:01:27 3:     main::BlockingCall                  called by ./FHEM/73_PRESENCE.pm (535)
2015.09.16 11:01:27 3:     main::PRESENCE_StartLocalScan       called by fhem.pl (2683)
2015.09.16 11:01:27 3:     main::HandleTimeout                 called by fhem.pl (583)
2015.09.16 11:01:27 5: PRESENCE (Reinhard_Handy_Presence) - starting ping scan: Reinhard_Handy_Presence|192.168.178.55|0|4
2015.09.16 11:01:33 5: PRESENCE (Reinhard_Handy_Presence) - ping command returned with output:


Habe bei global verbose auf 5 und stacktrace auf 1 gesetzt. Dann erhalte ich den o.a. Log-Eintrag.
Vielleicht kann mir ja einer einen Tipp geben.
Mir ist durchaus bewußt, daß solche Fehlermeldungen bei restarts auftreten können. Aber dieser Eintrag kommt immer wieder.

Kann es sein, daß es mit der Presence Abfrage zusammenhängt?

Viele Grüße

Reinhard
Raspberry Pi Rev.B, FB7390 (FHEM2FHEM), Sonos, Smarter Coffee
Osram Lightify:2m LED-Streifen, 5m-LED-Streifen, Gartenspot, Surface 28W, Classic E14,E27, Classic RGBW E27, PAR16 GU10, Plug
CUL868:FS20-ST, FS20-DI, FS20-FMS, FS20-ES1
HMUSB:HM-Sec-RHS,HM-Sec-MDIR2
Jeelink868:TX-29-IT, TFA30.315

rudolfkoenig

Eine DbLog Instanz hat keine Verbindung (DBH).
Die Warnung sollte aber nur einmal pro FHEM-Start kommen.

Laffer72

Ist aber nicht so. Heute nacht z.B.:
1: PERL WARNING: Use of uninitialized value in string eq at fhem.pl line 4338.
2015.09.16 02:39:37 1: PERL WARNING: Use of uninitialized value in string ne at ./FHEM/00_SONOS.pm line 1557.
2015.09.16 02:39:37 1: PERL WARNING: Use of uninitialized value in string eq at ./FHEM/00_SONOS.pm line 1570.
2015.09.16 02:39:38 1: PERL WARNING: Use of uninitialized value in string eq at fhem.pl line 4338.
2015.09.16 02:40:31 1: PERL WARNING: Use of uninitialized value in string eq at fhem.pl line 4338.
2015.09.16 02:40:31 1: PERL WARNING: Use of uninitialized value in string eq at fhem.pl line 4338.
2015.09.16 02:40:38 1: PERL WARNING: Use of uninitialized value in string eq at fhem.pl line 4338.
2015.09.16 02:41:34 1: PERL WARNING: Use of uninitialized value in string eq at fhem.pl line 4338.
2015.09.16 02:41:38 1: PERL WARNING: Use of uninitialized value in string eq at fhem.pl line 4338.
2015.09.16 02:41:44 3: Watchdog w_Ute_absent_rr triggered
2015.09.16 02:41:44 2: ROOMMATE set rr_Ute absent
2015.09.16 02:41:44 2: ROOMMATE set rr_Jasper absent
2015.09.16 02:41:44 1: PERL WARNING: Use of uninitialized value in string eq at fhem.pl line 4338.
2015.09.16 02:42:37 1: PERL WARNING: Use of uninitialized value in string eq at fhem.pl line 4338.
2015.09.16 02:42:38 1: PERL WARNING: Use of uninitialized value in string eq at fhem.pl line 4338.
2015.09.16 02:42:58 1: PERL WARNING: Use of uninitialized value in string eq at fhem.pl line 4338.
2015.09.16 02:43:01 2: ROOMMATE set rr_Ute home
2015.09.16 02:43:01 2: ROOMMATE set rr_Jasper home
2015.09.16 02:43:38 1: PERL WARNING: Use of uninitialized value in string eq at fhem.pl line 4338.
2015.09.16 02:43:40 1: PERL WARNING: Use of uninitialized value in string eq at fhem.pl line 4338.
2015.09.16 02:44:01 1: PERL WARNING: Use of uninitialized value in string eq at fhem.pl line 4338.
2015.09.16 02:44:17 2: HUEBridge: message for unknow device received: HUEBridge-1
2015.09.16 02:44:17 2: HUEBridge: message for unknow device received: HUEBridge-2
2015.09.16 02:44:38 1: PERL WARNING: Use of uninitialized value in string eq at fhem.pl line 4338.
2015.09.16 02:44:44 1: PERL WARNING: Use of uninitialized value in string eq at fhem.pl line 4338.
2015.09.16 02:44:47 1: Error: ke_hm_waschmaschine_power has no TYPE
2015.09.16 02:45:04 1: PERL WARNING: Use of uninitialized value in string eq at fhem.pl line 4338.
2015.09.16 02:45:38 1: PERL WARNING: Use of uninitialized value in string eq at fhem.pl line 4338.
2015.09.16 02:45:47 1: PERL WARNING: Use of uninitialized value in string eq at fhem.pl line 4338.
2015.09.16 02:46:08 1: PERL WARNING: Use of uninitialized value in string eq at fhem.pl line 4338.
2015.09.16 02:46:38 1: PERL WARNING: Use of uninitialized value in string eq at fhem.pl line 4338.
2015.09.16 02:46:50 1: PERL WARNING: Use of uninitialized value in string eq at fhem.pl line 4338.
2015.09.16 02:47:11 1: PERL WARNING: Use of uninitialized value in string eq at fhem.pl line 4338.
2015.09.16 02:47:38 1: PERL WARNING: Use of uninitialized value in string eq at fhem.pl line 4338.
2015.09.16 02:47:53 1: PERL WARNING: Use of uninitialized value in string eq at fhem.pl line 4338.
2015.09.16 02:48:24 3: Watchdog w_Ute_absent_rr triggered
2015.09.16 02:48:24 2: ROOMMATE set rr_Ute absent
2015.09.16 02:48:24 2: ROOMMATE set rr_Jasper absent
2015.09.16 02:48:24 1: PERL WARNING: Use of uninitialized value in string eq at fhem.pl line 4338.
2015.09.16 02:48:38 1: PERL WARNING: Use of uninitialized value in string eq at fhem.pl line 4338.
2015.09.16 02:48:56 1: PERL WARNING: Use of uninitialized value in string eq at fhem.pl line 4338.


Und das ist jetzt nur ein kleiner Ausschnitt.

Außerdem verwende ich ja gar kein DBLog...dachte ich zumindest bisher...
Raspberry Pi Rev.B, FB7390 (FHEM2FHEM), Sonos, Smarter Coffee
Osram Lightify:2m LED-Streifen, 5m-LED-Streifen, Gartenspot, Surface 28W, Classic E14,E27, Classic RGBW E27, PAR16 GU10, Plug
CUL868:FS20-ST, FS20-DI, FS20-FMS, FS20-ES1
HMUSB:HM-Sec-RHS,HM-Sec-MDIR2
Jeelink868:TX-29-IT, TFA30.315

rudolfkoenig

Ok, ich praezisiere: die Meldung sollte nur einmal kommen, falls stacktrace nicht aktiviert ist.
Die stacktrace Ausgabe selbst erfolgt nur, falls "global verbose" >= 3 ist. Evtl. setzen manche Module dieses Attribut temporaer um.

Die DbLog Instanzen kriegt man mit "list TYPE=DbLog"
Noch 'ne Moeglichkeit: eine Instanz ohne Typ. Diese Liste kriegt man mit
{ join("\n", grep { !defined($defs{$_}{TYPE}) } keys %defs) }
Das wurde hier im Forum schon oefters behandelt.

Laffer72

Danke, lag scheinbar an ke_hm_waschmaschine_power. Das Device hatte keinen TYPE.
nachdem ich das Device gelöscht habe, tritt die Fehlermeldung nicht mehr auf.

Danke nochmal für die schnelle Hilfe.

Viele Grüße

Reinhard
Raspberry Pi Rev.B, FB7390 (FHEM2FHEM), Sonos, Smarter Coffee
Osram Lightify:2m LED-Streifen, 5m-LED-Streifen, Gartenspot, Surface 28W, Classic E14,E27, Classic RGBW E27, PAR16 GU10, Plug
CUL868:FS20-ST, FS20-DI, FS20-FMS, FS20-ES1
HMUSB:HM-Sec-RHS,HM-Sec-MDIR2
Jeelink868:TX-29-IT, TFA30.315