Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. js-controller 5.0.x jetzt für alle User im STABLE!

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    js-controller 5.0.x jetzt für alle User im STABLE!

    This topic has been deleted. Only users with topic management privileges can see it.
    • O
      oFbEQnpoLKKl6mbY5e13 @foxriver76 last edited by

      @foxriver76

      Gibt es hierzu bereits nähere Erkenntnisse?:

      2023-09-25 01:31:38.380  - error: host.iobroker Caught by controller[0]: <--- Last few GCs --->
      2023-09-25 01:31:38.380  - error: host.iobroker Caught by controller[0]: [5590:0x5810de0] 691161900 ms: Mark-sweep 2981.8 (4143.9) -> 2981.3 (4143.9) MB, 289.2 / 0.0 ms  (average mu = 0.910, current mu = 0.018) allocation failure; scavenge might not succeed
      2023-09-25 01:31:38.381  - error: host.iobroker Caught by controller[0]: [5590:0x5810de0] 691162135 ms: Mark-sweep 2981.4 (4144.1) -> 2981.3 (4144.1) MB, 234.0 / 0.0 ms  (average mu = 0.850, current mu = 0.003) allocation failure; scavenge might not succeed
      2023-09-25 01:31:38.381  - error: host.iobroker Caught by controller[0]: <--- JS stacktrace --->
      2023-09-25 01:31:38.381  - error: host.iobroker Caught by controller[0]: FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
      2023-09-25 01:31:38.381  - error: host.iobroker Caught by controller[1]:  1: 0xb7a940 node::Abort() [io.backitup.0]
      2023-09-25 01:31:38.381  - error: host.iobroker Caught by controller[2]:  2: 0xa8e823  [io.backitup.0]
      2023-09-25 01:31:38.382  - error: host.iobroker Caught by controller[3]:  3: 0xd5c940 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [io.backitup.0]
      2023-09-25 01:31:38.382  - error: host.iobroker Caught by controller[4]:  4: 0xd5cce7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [io.backitup.0]
      2023-09-25 01:31:38.382  - error: host.iobroker Caught by controller[5]:  5: 0xf3a3e5  [io.backitup.0]
      2023-09-25 01:31:38.382  - error: host.iobroker Caught by controller[6]:  6: 0xf4c8cd v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [io.backitup.0]
      2023-09-25 01:31:38.382  - error: host.iobroker Caught by controller[7]:  7: 0xf26fce v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [io.backitup.0]
      2023-09-25 01:31:38.383  - error: host.iobroker Caught by controller[8]:  8: 0xf28397 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [io.backitup.0]
      2023-09-25 01:31:38.383  - error: host.iobroker Caught by controller[9]:  9: 0xf088e0 v8::internal::Factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [io.backitup.0]
      2023-09-25 01:31:38.383  - error: host.iobroker Caught by controller[10]: 10: 0xf00354 v8::internal::FactoryBase<v8::internal::Factory>::AllocateRawWithImmortalMap(int, v8::internal::AllocationType, v8::internal::Map, v8::internal::AllocationAlignment) [io.backitup.0]
      2023-09-25 01:31:38.383  - error: host.iobroker Caught by controller[11]: 11: 0xf026e8 v8::internal::FactoryBase<v8::internal::Factory>::NewRawTwoByteString(int, v8::internal::AllocationType) [io.backitup.0]
      2023-09-25 01:31:38.383  - error: host.iobroker Caught by controller[12]: 12: 0x11dfc15 v8::internal::String::SlowFlatten(v8::internal::Isolate*, v8::internal::Handle<v8::internal::ConsString>, v8::internal::AllocationType) [io.backitup.0]
      2023-09-25 01:31:38.383  - error: host.iobroker Caught by controller[13]: 13: 0xd6874c v8::String::Utf8Length(v8::Isolate*) const [io.backitup.0]
      2023-09-25 01:31:38.384  - error: host.iobroker Caught by controller[14]: 14: 0xc64a91 node::StringBytes::Size(v8::Isolate*, v8::Local<v8::Value>, node::encoding) [io.backitup.0]
      2023-09-25 01:31:38.384  - error: host.iobroker Caught by controller[15]: 15: 0xc5ef28 int node::StreamBase::WriteString<(node::encoding)1>(v8::FunctionCallbackInfo<v8::Value> const&) [io.backitup.0]
      2023-09-25 01:31:38.384  - error: host.iobroker Caught by controller[16]: 16: 0xc5f985 void node::StreamBase::JSMethod<&(int node::StreamBase::WriteString<(node::encoding)1>(v8::FunctionCallbackInfo<v8::Value> const&))>(v8::FunctionCallbackInfo<v8::Value> const&) [io.backitup.0]
      2023-09-25 01:31:38.384  - error: host.iobroker Caught by controller[17]: 17: 0xdbaa30  [io.backitup.0]
      2023-09-25 01:31:38.384  - error: host.iobroker Caught by controller[18]: 18: 0xdbbf6f v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) [io.backitup.0]
      2023-09-25 01:31:38.384  - error: host.iobroker Caught by controller[19]: 19: 0x16fb7b9  [io.backitup.0]
      2023-09-25 01:31:38.385  - warn: host.iobroker instance system.adapter.backitup.0 terminated due to SIGABRT
      2023-09-25 01:31:38.385  - info: host.iobroker instance system.adapter.backitup.0 terminated with code null ()
      
      Thomas Braun foxriver76 2 Replies Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @oFbEQnpoLKKl6mbY5e13 last edited by

        @ofbeqnpolkkl6mby5e13 sagte in js-controller 5.0.x jetzt für alle User im STABLE!:

        Reached heap limit Allocation failed - JavaScript heap out of memory

        Vermutlich ist dein Backup zu fett.

        1 Reply Last reply Reply Quote 0
        • foxriver76
          foxriver76 Developer @oFbEQnpoLKKl6mbY5e13 last edited by

          @ofbeqnpolkkl6mby5e13 Sonos adapter I’m Einsatz?

          O 1 Reply Last reply Reply Quote 0
          • O
            oFbEQnpoLKKl6mbY5e13 @foxriver76 last edited by oFbEQnpoLKKl6mbY5e13

            @foxriver76

            War nach der Deinstallation des Sonos-Adapters für ein paar Tage weg. Heute Nacht ohne Sonos-Adapter wieder aufgetreten. Und @ilovegym hat ihn auch nicht installiert.

            foxriver76 1 Reply Last reply Reply Quote 0
            • foxriver76
              foxriver76 Developer @oFbEQnpoLKKl6mbY5e13 last edited by

              @ofbeqnpolkkl6mby5e13 anders gefragt: gibt es binary states in deiner installation? Normal States vom Typ File

              O 1 Reply Last reply Reply Quote 0
              • O
                oFbEQnpoLKKl6mbY5e13 @foxriver76 last edited by oFbEQnpoLKKl6mbY5e13

                @foxriver76

                Im Log werden mir nach der Deinstallation des Sonos-Adapters keine Meldungen mehr dbzgl. ausgegeben, daher gehe ich nicht davon aus. Der Fehler tritt wohl beim Backup der Influxdb2 auf, da das temporäre Verzeichnis davon übrig bleibt. Die ist gepackt ca. 1GB groß. Mein System hat allerdings genug Reserven (16GB RAM) und der Fehler tritt erst seit JS-Controller 5 auf.

                foxriver76 1 Reply Last reply Reply Quote 0
                • foxriver76
                  foxriver76 Developer @oFbEQnpoLKKl6mbY5e13 last edited by

                  @ofbeqnpolkkl6mby5e13 Führe mal bitte das Skript aus und schau welche IDs geloggt werden.

                  (() => {
                      $('*').each(async id => {
                          try {
                              const obj = await getObjectAsync(id);
                              
                              if (obj.binary) {
                                  log(id, 'warn');
                              }
                          } catch {
                              // ignore
                          }
                      })
                  })();
                  
                  O 1 Reply Last reply Reply Quote 0
                  • O
                    oFbEQnpoLKKl6mbY5e13 @foxriver76 last edited by

                    @foxriver76 sagte in js-controller 5.0.x jetzt für alle User im STABLE!:

                    2023-09-26 08:46:11.322  - info: javascript.0 (16432) Start javascript script.js.common._Tests.Test_6
                    2023-09-26 08:46:12.429  - info: javascript.0 (16432) script.js.common._Tests.Test_6: registered 0 subscriptions, 0 schedules, 0 messages, 0 logs and 0 file subscriptions
                    2023-09-26 08:46:16.104  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "alexa2.0" can't be copied: {}
                    2023-09-26 08:46:17.665  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "hue-sync-box.0" can't be copied: {}
                    2023-09-26 08:46:18.086  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "nanoleaf-lightpanels.0" can't be copied: {}
                    2023-09-26 08:46:18.088  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "nanoleaf-lightpanels.1" can't be copied: {}
                    2023-09-26 08:46:18.102  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "nuki-extended.0" can't be copied: {}
                    2023-09-26 08:46:18.215  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "system.adapter.deyeidc.upload" can't be copied: {}
                    2023-09-26 08:46:18.243  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "system.adapter.vis.0.alive" can't be copied: {}
                    2023-09-26 08:46:18.243  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "system.adapter.vis.0.compactMode" can't be copied: {}
                    2023-09-26 08:46:18.244  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "system.adapter.vis.0.connected" can't be copied: {}
                    2023-09-26 08:46:18.244  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "system.adapter.vis.0.cpu" can't be copied: {}
                    2023-09-26 08:46:18.245  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "system.adapter.vis.0.cputime" can't be copied: {}
                    2023-09-26 08:46:18.245  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "system.adapter.vis.0.inputCount" can't be copied: {}
                    2023-09-26 08:46:18.246  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "system.adapter.vis.0.logLevel" can't be copied: {}
                    2023-09-26 08:46:18.247  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "system.adapter.vis.0.memHeapTotal" can't be copied: {}
                    2023-09-26 08:46:18.247  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "system.adapter.vis.0.memHeapUsed" can't be copied: {}
                    2023-09-26 08:46:18.248  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "system.adapter.vis.0.memRss" can't be copied: {}
                    2023-09-26 08:46:18.248  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "system.adapter.vis.0.outputCount" can't be copied: {}
                    2023-09-26 08:46:18.249  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "system.adapter.vis.0.sigKill" can't be copied: {}
                    2023-09-26 08:46:18.249  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "system.adapter.vis.0.uptime" can't be copied: {}
                    2023-09-26 08:46:18.271  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "tuya.0" can't be copied: {}
                    2023-09-26 08:46:18.276  - error: javascript.0 (16432) script.js.common._Tests.Test_6: Object "unifi.0" can't be copied: {}
                    
                    foxriver76 2 Replies Last reply Reply Quote 0
                    • foxriver76
                      foxriver76 Developer @oFbEQnpoLKKl6mbY5e13 last edited by

                      @ofbeqnpolkkl6mby5e13 Hm okay, kp was javascript da intern treibt. Ich schaue nochmal obs ne andere Variante gibt die binary states zu finden. Dachte eigentlich Admin könnte filtern - leider nicht.

                      1 Reply Last reply Reply Quote 1
                      • Peoples
                        Peoples @foxriver76 last edited by

                        @foxriver76
                        Ich habe mir gestern jetzt mal die Mühe gemacht, alle möglichen Varianten (Adapterversionen / Js-Controler auf 4 und 5) durch zu spielen mit folgenden Erkenntinissen:

                        • Socket / Web / Ws Adapter aktuell, Controller auf V4... (im Webadapter auf intern gestellt und Websockets angehackt)
                          Probleme in Vis treten erst nach einiger Zeit auf, betrifft hauptsächlich CSS - Eigentschaften und Bindings
                          Beispielsweise habe ich auf meinem "Homescreen" ein graues Kästchen welches ich bei eine Systemmeldung über CSS
                          als Overlay über den ganzen Bildschirm strecke. Dies funktioniert Anfangs und nach einer gewissen Zeit wird nur noch der
                          Text oben Links wo im Editor das Kästchen mit deaktivierten Css-Eigenschaften liegt angezeigt.

                        • Socket / Web / Ws Adapter aktuell ebenso der Controller auf V5 (im Webadapter auf ws gestellt da es sonst nicht geht)
                          Das oben beschriebene Problem tritt nach ca. 5 Minuten kontinuierlich auf. Reload des Projekts behebt das Problem für
                          wieder ca. 5 Minuten.

                        • Socket / Web /Ws Adapter auf den Vorversionen und Controller auf V4
                          keine Probleme vorhanden.

                        Da mir das Zusammenspiel der einzelnen Adapter nicht klar ist und ich auch nicht sagen kann welchen Einfluss der Js-Controller auf das Thema hat, wüsste ich auch garnicht bei welchem Adapter ich hier ein Issue eröffnen sollte.
                        Wenn es mir jedoch jemand erklärt mache ich das natürlich sehr gerne.

                        foxriver76 1 Reply Last reply Reply Quote 0
                        • foxriver76
                          foxriver76 Developer @Peoples last edited by foxriver76

                          @peoples und ob die webinstanz ws oder socketio nutzt macht kein Unterschied im Verhalten? Und irgendwie https im Spiel? ICh kann es nicht nachstellen und es ist nicht trivial herauszufinden woran es liegen könnte, daher möglichst viele Infos bitte. Controller würde ich eher ausschließen, da wie du sagst auch ohne neuen Controller passiert (auch wenn es laut deinen Tests häufiger auftritt).

                          1 Reply Last reply Reply Quote 0
                          • foxriver76
                            foxriver76 Developer @oFbEQnpoLKKl6mbY5e13 last edited by

                            @ofbeqnpolkkl6mby5e13

                            (async () => {    
                                $('*').each(async id => {
                                    try { 
                                        const state = await getBinaryStateAsync(id)
                                        try {
                                        if (state) {
                                            JSON.parse(state.toString())
                                        }
                                        } catch (e) {
                                            log('Binary state found: ' + id, 'error')
                                        }
                                        
                                    } catch {
                                        // ignore
                                    }
                                })
                            })();
                            

                            Macht er das oder meckert er da auch?

                            O 1 Reply Last reply Reply Quote 0
                            • O
                              oFbEQnpoLKKl6mbY5e13 @foxriver76 last edited by

                              @foxriver76 sagte in js-controller 5.0.x jetzt für alle User im STABLE!:

                              (async () => {

                              Kein Fehler, aber jetzt ist das Log 12MB groß (kein Vorwurf!), weil er jeden State als Binary erkennt.

                              foxriver76 1 Reply Last reply Reply Quote 0
                              • foxriver76
                                foxriver76 Developer @oFbEQnpoLKKl6mbY5e13 last edited by foxriver76

                                @ofbeqnpolkkl6mby5e13 Kannst du mir das Log bereitstellen?

                                O 1 Reply Last reply Reply Quote 0
                                • O
                                  oFbEQnpoLKKl6mbY5e13 @foxriver76 last edited by

                                  @foxriver76

                                  Selbstverständlich. Wie?

                                  foxriver76 1 Reply Last reply Reply Quote 0
                                  • foxriver76
                                    foxriver76 Developer @oFbEQnpoLKKl6mbY5e13 last edited by

                                    @ofbeqnpolkkl6mby5e13 12 MB könnten evtl noch per Mail gehen: moritz.heusinger@gmail.com

                                    Ansonsten villt eifnach ein File Upload (https://easyupload.io/) und mir den Link schicken falls du keine Bedenken hast

                                    O 1 Reply Last reply Reply Quote 0
                                    • O
                                      oFbEQnpoLKKl6mbY5e13 @foxriver76 last edited by

                                      @foxriver76

                                      Ist ja nur Text. Gepackt keine 300kb groß.

                                      foxriver76 1 Reply Last reply Reply Quote 0
                                      • foxriver76
                                        foxriver76 Developer @oFbEQnpoLKKl6mbY5e13 last edited by

                                        @ofbeqnpolkkl6mby5e13 Ok, passt ne keine Binary States würde ich sagen. Das Log für jeden State kommt vom controller bei jedem Aufruf von binary Methoden. Und die Node Version bei dir war welche?

                                        O 1 Reply Last reply Reply Quote 0
                                        • O
                                          oFbEQnpoLKKl6mbY5e13 @foxriver76 last edited by

                                          @foxriver76

                                          18.16.0

                                          foxriver76 1 Reply Last reply Reply Quote 0
                                          • foxriver76
                                            foxriver76 Developer @oFbEQnpoLKKl6mbY5e13 last edited by foxriver76

                                            @ofbeqnpolkkl6mby5e13 hm magst du mal innerhalb der 18er Range upgraden um auszuschließen dass es daran liegt - ich vermute wenn nach Vorgaben installiert sollte ein sudo apt update && sudo apt upgrade zur Aktualisierung ausrecihen. Ansonsten bliebe noch das ich probiere es mit deinem Backup nachzustellen, aber aktuell fehlt mir leider jeder Anhaltspunkt.

                                            O 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            913
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            js-controller stable upgrade
                                            82
                                            509
                                            98364
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo