ioBroker / ioBroker.admin

user interface for configuration and administration
https://iobroker.net
MIT License
270 stars 79 forks source link

[bug]: Error in Gui! Scripts crash #2455

Closed mpl1337 closed 3 months ago

mpl1337 commented 4 months ago

No existing issues.

Describe the bug

Admin Gui Crash when i open Scripts

To Reproduce

Click on "Skripte"

Expected behavior

.

Screenshots & Logfiles

image

Adapter version

6.17.8

js-controller version

5.0.19

Node version

18.20.0

Operating system

Debian 12.5

Additional context

No response

Diginix commented 4 months ago

Same here with admin 6.17.8:

TypeError: Cannot read properties of null (reading 'contentWindow')
    at c.componentDidMount (CustomTab.tsx:143:48)
    at Si (react-dom.production.min.js:263:222)
    at bi (react-dom.production.min.js:259:318)
    at yi (react-dom.production.min.js:258:431)
    at react-dom.production.min.js:282:96
    at ws (react-dom.production.min.js:280:398)
    at ls (react-dom.production.min.js:269:269)
    at S (scheduler.production.min.js:13:203)
    at MessagePort.T (scheduler.production.min.js:14:128)
(anonymous) @ console.ts:40
co @ react-dom.production.min.js:188
a.componentDidCatch.t.callback @ react-dom.production.min.js:189
Wa @ react-dom.production.min.js:156
ki @ react-dom.production.min.js:260
bi @ react-dom.production.min.js:259
yi @ react-dom.production.min.js:258
(anonymous) @ react-dom.production.min.js:282
ws @ react-dom.production.min.js:280
is @ react-dom.production.min.js:272
Hl @ react-dom.production.min.js:127
(anonymous) @ react-dom.production.min.js:282
ws @ react-dom.production.min.js:280
ls @ react-dom.production.min.js:269
S @ scheduler.production.min.js:13
T @ scheduler.production.min.js:14
Show 16 more frames
Show less
toolbarContentscript.js:113 {"message":"A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received"}

Downgrade to 6.17.6 helps

Grothesk242 commented 4 months ago

Same here. Affects 'third-party-Tabs'. tab-opendtu-0; tab-devices; tab-backitup-0; tab-zigbee-0; tab-alias-manager; tab-echarts; tab-javascript; tab-files

Error:

Cannot read properties of null (reading 'contentWindow')
TypeError: Cannot read properties of null 
(reading 'contentWindow')(e,t)=>(0,g.jsxs)("div",{children:[e,(0,g.jsx)("br",{})]},t)    
at c.componentDidMount (http://chet:8081/static/js/5060.031ffab9.chunk.js:1:348691)(e,t)=>(0,g.jsxs)("div",{children:[e,(0,g.jsx)("br",{})]},t)    
at Si (http://chet:8081/static/js/5096.3a6e8bdb.chunk.js:2:102405)(e,t)=>(0,g.jsxs)("div",{children:[e,(0,g.jsx)("br",{})]},t)    
at bi (http://chet:8081/static/js/5096.3a6e8bdb.chunk.js:2:100735)(e,t)=>(0,g.jsxs)("div",{children:[e,(0,g.jsx)("br",{})]},t)    
at yi (http://chet:8081/static/js/5096.3a6e8bdb.chunk.js:2:100399)(e,t)=>(0,g.jsxs)("div",{children:[e,(0,g.jsx)("br",{})]},t)    
at http://chet:8081/static/js/5096.3a6e8bdb.chunk.js:2:112236(e,t)=>(0,g.jsxs)("div",{children:[e,(0,g.jsx)("br",{})]},t)    
at ws (http://chet:8081/static/js/5096.3a6e8bdb.chunk.js:2:112751)(e,t)=>(0,g.jsxs)("div",{children:[e,(0,g.jsx)("br",{})]},t)    
at ls (http://chet:8081/static/js/5096.3a6e8bdb.chunk.js:2:105209)(e,t)=>(0,g.jsxs)("div",{children:[e,(0,g.jsx)("br",{})]},t)    
at S (http://chet:8081/static/js/5096.3a6e8bdb.chunk.js:2:131248)(e,t)=>(0,g.jsxs)("div",{children:[e,(0,g.jsx)("br",{})]},t)    
at MessagePort.T (http://chet:8081/static/js/5096.3a6e8bdb.chunk.js:2:131782)

V6.17.6 runs fine, 6.17.7 + 6.17.8 are showing the errors.

T-S-Garp commented 4 months ago

I see the same issue right after the admin adapter upgrade to 6.17.8. The #tab-javascript and #tab-backitup are not accessible anymore:

image

diamand2k22 commented 4 months ago

yes i can confirm, downgrade to V6.17.6 helps

wittmannchris commented 4 months ago

same here:

console.ts:40 TypeError: Cannot read properties of null (reading 'contentWindow')
    at c.componentDidMount (CustomTab.tsx:143:48)
    at Si (react-dom.production.min.js:263:222)
    at bi (react-dom.production.min.js:259:318)
    at yi (react-dom.production.min.js:258:431)
    at react-dom.production.min.js:282:96
    at ws (react-dom.production.min.js:280:398)
    at ls (react-dom.production.min.js:269:269)
    at S (scheduler.production.min.js:13:203)
    at MessagePort.T (scheduler.production.min.js:14:128)
(anonymous) @ console.ts:40
Show 1 more frame
Show less
hombach commented 4 months ago

Same.... Admin 6.17.8 with OpenDTU screen brings up: image

This issue is labeled as "fixed" .... would be great to have a hint for the version where it is fixed to test it upon (beta-) release.

Grothesk242 commented 4 months ago

6.17.8 has been revoked, 6.17.7 is the latest release atm.

Feuer-sturm commented 4 months ago

@mpl1337 @Grothesk242 @hombach please check with current beta version v6.17.13 if this issue can be closed.

Grothesk242 commented 4 months ago

lgtm

hombach commented 3 months ago

Works fine! Thank you!