Anzeige plötzlich mit Fehler

Begonnen von Damu, 08 Dezember 2025, 23:15:13

Vorheriges Thema - Nächstes Thema

Damu

Wenn ich alle EnOcean Devices anzeigen möchte ist die Anzeige Plötzlich irgendwie Fehlerhaft.
Jeder zweite Device wird Schwarz und nicht anwählbar angezeigt.
Ist auch bei ZWave so.....

rudolfkoenig

Kannst du mir bitte mehr Details nennen?

Damu

Wenn ich bei EnOcean oder ZWave auf Typ klicke wird jedes zweite Device Schwarz und nicht anwählbar angezeigt.
Dasselbe auch bei ZWave und get Node List.



passibe

Vielleicht mal einen Screenshot posten ...

Damu


rudolfkoenig

Screenshot nicht noetig, nachstellen ist einfach mit list oder list .*

Das Problem wird verursacht vom kuerzlichen Fix wg. https://forum.fhem.de/index.php?topic=143241

Habe jetzt einen weiteren Versuch gestartet: bei mir funktioniert jetzt list und help nach "define lt dummy".

DerTom

Ich habe nach einem Update heute einen Fehler. Habe die alte Version wieder eingespielt und es lief wieder:

2025.12.10 11:13:38.140 1: reload: Error:Modul 01_FHEMWEB deactivated: Variable length lookbehind not implemented in regex m/(?<=\n|\r|\s|^)([a-z0-9._]+)(?=\n|\r|\s|$)/ at ./FHEM/01_FHEMWEB.pm line 1286, <$fh> line 30.
2025.12.10 11:13:38.141 0: Variable length lookbehind not implemented in regex m/(?<=\n|\r|\s|^)([a-z0-9._]+)(?=\n|\r|\s|$)/ at ./FHEM/01_FHEMWEB.pm line 1286, <$fh> line 30.

MartinD

Hallo,

auch ich habe kein Web-Zugriff mehr!
Die Meldungen beim Start:

2025.12.10 13:36:55 1: Including fhem.cfg
2025.12.10 13:36:56 2: mozart4_DbLog - Subprocess >14158< initialized ... ready for non-blocking operation
2025.12.10 13:36:56 1: reload: Error:Modul 01_FHEMWEB deactivated:
 Variable length lookbehind not implemented in regex m/(?<=\n|\r|\s|^)([a-z0-9._]+)(?=\n|\r|\s|$)/ at ./FHEM/01_FHEMWEB.pm line 1286, <$fh> line 28.

2025.12.10 13:36:56 0: Variable length lookbehind not implemented in regex m/(?<=\n|\r|\s|^)([a-z0-9._]+)(?=\n|\r|\s|$)/ at ./FHEM/01_FHEMWEB.pm line 1286, <$fh> line 28.

2025.12.10 13:36:56 1: PERL WARNING: Subroutine FHEMWEB_Initialize redefined at ./FHEM/01_FHEMWEB.pm line 134, <$fh> line 39.
2025.12.10 13:36:56 1: PERL WARNING: Subroutine FW_Define redefined at ./FHEM/01_FHEMWEB.pm line 282, <$fh> line 39.
2025.12.10 13:36:56 1: PERL WARNING: Subroutine FW_Undef redefined at ./FHEM/01_FHEMWEB.pm line 325, <$fh> line 39.
2025.12.10 13:36:56 1: PERL WARNING: Subroutine FW_Read redefined at ./FHEM/01_FHEMWEB.pm line 340, <$fh> line 39.
2025.12.10 13:36:56 1: PERL WARNING: Subroutine FW_finishRead redefined at ./FHEM/01_FHEMWEB.pm line 626, <$fh> line 39.
2025.12.10 13:36:56 1: PERL WARNING: Subroutine FW_initInform redefined at ./FHEM/01_FHEMWEB.pm line 672, <$fh> line 39.
2025.12.10 13:36:56 1: PERL WARNING: Subroutine FW_addToWritebuffer redefined at ./FHEM/01_FHEMWEB.pm line 735, <$fh> line 39.
2025.12.10 13:36:56 1: PERL WARNING: Subroutine FW_AsyncOutput redefined at ./FHEM/01_FHEMWEB.pm line 761, <$fh> line 39.
2025.12.10 13:36:56 1: PERL WARNING: Subroutine FW_closeConn redefined at ./FHEM/01_FHEMWEB.pm line 797, <$fh> line 39.
2025.12.10 13:36:56 1: PERL WARNING: Subroutine FW_serveSpecial redefined at ./FHEM/01_FHEMWEB.pm line 816, <$fh> line 39.
2025.12.10 13:36:56 1: PERL WARNING: Subroutine FW_setStylesheet redefined at ./FHEM/01_FHEMWEB.pm line 828, <$fh> line 39.
2025.12.10 13:36:56 1: PERL WARNING: Subroutine FW_answerCall redefined at ./FHEM/01_FHEMWEB.pm line 840, <$fh> line 39.
2025.12.10 13:36:56 1: PERL WARNING: Subroutine FW_redirect redefined at ./FHEM/01_FHEMWEB.pm line 1235, <$fh> line 39.
2025.12.10 13:36:56 1: PERL WARNING: Subroutine addParam redefined at ./FHEM/01_FHEMWEB.pm line 1250, <$fh> line 39.
2025.12.10 13:36:56 1: PERL WARNING: Subroutine FW_dataAttr redefined at ./FHEM/01_FHEMWEB.pm line 1247, <$fh> line 39.
2025.12.10 13:36:56 1: PERL WARNING: Subroutine FW_addContent redefined at ./FHEM/01_FHEMWEB.pm line 1274, <$fh> line 39.
2025.12.10 13:36:56 1: reload: Error:Modul 01_FHEMWEB deactivated:
 Variable length lookbehind not implemented in regex m/(?<=\n|\r|\s|^)([a-z0-9._]+)(?=\n|\r|\s|$)/ at ./FHEM/01_FHEMWEB.pm line 1286, <$fh> line 39.

2025.12.10 13:36:56 0: Variable length lookbehind not implemented in regex m/(?<=\n|\r|\s|^)([a-z0-9._]+)(?=\n|\r|\s|$)/ at ./FHEM/01_FHEMWEB.pm line 1286, <$fh> line 39.

2025.12.10 13:36:56 1: PERL WARNING: Subroutine FHEMWEB_Initialize redefined at ./FHEM/01_FHEMWEB.pm line 134, <$fh> line 49.
2025.12.10 13:36:56 1: PERL WARNING: Subroutine FW_Define redefined at ./FHEM/01_FHEMWEB.pm line 282, <$fh> line 49.
2025.12.10 13:36:56 1: PERL WARNING: Subroutine FW_Undef redefined at ./FHEM/01_FHEMWEB.pm line 325, <$fh> line 49.
2025.12.10 13:36:56 1: PERL WARNING: Subroutine FW_Read redefined at ./FHEM/01_FHEMWEB.pm line 340, <$fh> line 49.
2025.12.10 13:36:56 1: PERL WARNING: Subroutine FW_finishRead redefined at ./FHEM/01_FHEMWEB.pm line 626, <$fh> line 49.
2025.12.10 13:36:56 1: PERL WARNING: Subroutine FW_initInform redefined at ./FHEM/01_FHEMWEB.pm line 672, <$fh> line 49.
2025.12.10 13:36:56 1: PERL WARNING: Subroutine FW_addToWritebuffer redefined at ./FHEM/01_FHEMWEB.pm line 735, <$fh> line 49.
2025.12.10 13:36:56 1: PERL WARNING: Subroutine FW_AsyncOutput redefined at ./FHEM/01_FHEMWEB.pm line 761, <$fh> line 49.
2025.12.10 13:36:56 1: PERL WARNING: Subroutine FW_closeConn redefined at ./FHEM/01_FHEMWEB.pm line 797, <$fh> line 49.
2025.12.10 13:36:56 1: PERL WARNING: Subroutine FW_serveSpecial redefined at ./FHEM/01_FHEMWEB.pm line 816, <$fh> line 49.
2025.12.10 13:36:56 1: PERL WARNING: Subroutine FW_setStylesheet redefined at ./FHEM/01_FHEMWEB.pm line 828, <$fh> line 49.
2025.12.10 13:36:56 1: PERL WARNING: Subroutine FW_answerCall redefined at ./FHEM/01_FHEMWEB.pm line 840, <$fh> line 49.
2025.12.10 13:36:56 1: PERL WARNING: Subroutine FW_redirect redefined at ./FHEM/01_FHEMWEB.pm line 1235, <$fh> line 49.
2025.12.10 13:36:56 1: PERL WARNING: Subroutine addParam redefined at ./FHEM/01_FHEMWEB.pm line 1250, <$fh> line 49.
2025.12.10 13:36:56 1: PERL WARNING: Subroutine FW_dataAttr redefined at ./FHEM/01_FHEMWEB.pm line 1247, <$fh> line 49.
2025.12.10 13:36:56 1: PERL WARNING: Subroutine FW_addContent redefined at ./FHEM/01_FHEMWEB.pm line 1274, <$fh> line 49.
2025.12.10 13:36:56 1: reload: Error:Modul 01_FHEMWEB deactivated:
 Variable length lookbehind not implemented in regex m/(?<=\n|\r|\s|^)([a-z0-9._]+)(?=\n|\r|\s|$)/ at ./FHEM/01_FHEMWEB.pm line 1286, <$fh> line 49.

2025.12.10 13:36:56 0: Variable length lookbehind not implemented in regex m/(?<=\n|\r|\s|^)([a-z0-9._]+)(?=\n|\r|\s|$)/ at ./FHEM/01_FHEMWEB.pm line 1286, <$fh> line 49.

Was kann ich tun?

Mit besten Grüßen

Martin

rudolfkoenig

ZitatIch habe nach einem Update heute einen Fehler. Habe die alte Version wieder eingespielt und es lief wieder:
Welche perl Version hast Du?
Und was ist an diesem Regexp "variable length"? *Seufz*

Ich habe jetzt eine Version gebaut, mit Pruefung auf perl > 5.030, ab da soll laut Doku auch Variable length erlaubt sein.
Wer eine alte perl version hat, der darf keine FHEM Instanz mit dem Namen lt oder gt anlegen, oder sich nicht wundern, wenn die Hilfe kaputt ist.

erwin

zur INFO:
mit perl 5.32.1 bekomme ich einmalig beim start:
PERL WARNING: Variable length lookbehind is experimental in regex; marked by <-- HERE in m/(?<=\n|\r|\s|^)([a-z0-9._]+)(?=\n|\r|\s|$) <-- HERE / at ./FHEM/01_FHEMWEB.pm line 1286, <$fh> line 42.FHEM läuft, bin mir nicht klar, wie ich den Fehler (runtime) produzieren kann.
l.g. erwin
FHEM aktuell auf RaspberryPI Mdl 1-4
Maintainer: 00_KNXIO.pm 10_KNX.pm
User: CUNO2 (868 SLOWRF) - HMS100xx, FS20, FHT, 1-Wire  - 2401(iButton), 18x20, 2406, 2413 (AVR), 2450,..,MQTT2, KNX, SONOFF, mySENSORS,....
Hardware:  Busware ROT, Weinzierl IP731, 1-Wire GW,...

rudolfkoenig

Laut Doku ist "variable length lookbehind" ab 5.30 implementiert.
5.32 ist noch experimental.
5.42 (meine Version) hat kein Problem damit.
Ich wuerde gerne wissen, ab wann es nicht mehr experimental, und dafuer die Unterscheidung setzen.

Es sei denn jemand hat eine Loesung fuer das Problem ohne "lookbehind"

Damu

Hab die Version 5.34
Es wird aber keine neuere angeboten.
Geht aber hab aber auch Fehler im Log
Zitat2025.12.10 07:48:42 0: Server started with 568 defined entities (fhem.pl:30608/2025-12-09 perl:5.034000 os:linux user:fhem pid:1260376)
2025.12.10 08:27:21 1: PERL WARNING: Argument "POE_ZW_Prim_OG" isn't numeric in numeric gt (>) at ./FHEM/10_ZWave.pm line 4785.
2025.12.10 12:53:16 1: PERL WARNING: Use of uninitialized value $fileName in concatenation (.) or string at fhem.pl line 5816.
2025.12.10 12:53:16 1: PERL WARNING: Use of uninitialized value $fileName in concatenation (.) or string at fhem.pl line 5826.
2025.12.10 12:53:16 1: PERL WARNING: Use of uninitialized value $filePath in concatenation (.) or string at ./FHEM/01_FHEMWEB.pm line 2639.2025.12.10 16:51:54 1: PERL WARNING: Variable length lookbehind is experimental in regex; marked by <-- HERE in m/(?<=\n|\r|\s|^)([a-z0-9._]+)(?=\n|\r|\s|$) <-- HERE / at ./FHEM/01_FHEMWEB.pm line 1286, <$fh> line 24.

FHEM ist auf: Latest Revision: 30609

betateilchen

Wenn man hier liest

https://github.com/Perl/perl5/issues/22189

kommt man zu dem Schluss, dass es wohl ab 5.36 funktionieren soll, auch wenn da noch experimental-Warnungen ausgegeben werden.
-----------------------
Formuliere die Aufgabe möglichst einfach und
setze die Lösung richtig um - dann wird es auch funktionieren.
-----------------------
Lesen gefährdet die Unwissenheit!

Damu

Zitat von: betateilchen am 10 Dezember 2025, 17:18:38Wenn man hier liest

https://github.com/Perl/perl5/issues/22189

kommt man zu dem Schluss, dass es wohl ab 5.36 funktionieren soll, auch wenn da noch experimental-Warnungen ausgegeben werden.

schön leider wird die nicht automatisch angeboten (bei mir)
Zitatperl is already the newest version (5.34.0-3ubuntu1.5).

rudolfkoenig

Laut Doku https://perldoc.perl.org/perlre#Extended-Patterns geht das schon ab 5.30:
ZitatPrior to Perl 5.30, it worked only for fixed-width lookbehind, but starting in that release, it can handle variable lengths from 1 to 255 characters)
erwin(5.32) und Damu(5.34) bestaetigen das auch, aber leider mit Warnung.
Ich (5.42) kriege keine Warnung, die Frage ist, wann wurde die Warnung abgeschaltet.

Ich habe jetzt eine neue Version ohne "lookbehind" eingecheckt, das hat mit 5.30 keine Warnung generiert, und besteht auch die beiden Tests (list und help mit defmod lt dummy)