Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: Opening Object Browser crashes UI #431

Open
1 task done
OlliMartin opened this issue Sep 24, 2024 · 6 comments
Open
1 task done

[bug]: Opening Object Browser crashes UI #431

OlliMartin opened this issue Sep 24, 2024 · 6 comments
Labels
bug Something isn't working question Further information is requested

Comments

@OlliMartin
Copy link

OlliMartin commented Sep 24, 2024

No existing issues.

  • There is no existing issue for my problem.

Description

Opening the object browser from any other adapter leads to the UI crashing (at least some part of the tree).
I.e. partially screen is black, until the view is changed.

VM168 main.1e6546bb.js:2  Uncaught TypeError: Cannot read properties of undefined (reading 'palette')
    at Array.cellIdIconFolder (VM168 main.1e6546bb.js:2:166789)
    at u.getStyle (VM168 main.1e6546bb.js:2:435932)
    at pe.render (VM168 main.1e6546bb.js:2:295293)
    at ws (VM168 main.1e6546bb.js:2:6456901)
    at Vs (VM168 main.1e6546bb.js:2:6456697)
    at Si (VM168 main.1e6546bb.js:2:6500229)
    at Ml (VM168 main.1e6546bb.js:2:6488370)
    at gl (VM168 main.1e6546bb.js:2:6488298)
    at fl (VM168 main.1e6546bb.js:2:6488161)
    at ol (VM168 main.1e6546bb.js:2:6484941)
    at il (VM168 main.1e6546bb.js:2:6485332)
    at Nr (VM168 main.1e6546bb.js:2:6425924)
    at hl (VM168 main.1e6546bb.js:2:6485783)
    at Te (VM168 main.1e6546bb.js:2:6395066)
    at Uc (VM168 main.1e6546bb.js:2:6417742)
    at qt (VM168 main.1e6546bb.js:2:6402138)
    at $t (VM168 main.1e6546bb.js:2:6401922)

Pointing towards cellIdIconFolder here.

Is this a known issue? Any workaround available?

Reproduction instruction

In any adapter providing the possibility to open the Object Browser, for example Scenes or Scripts, open the Object Browser.
In the case of Scenes: Trigger --> [...] (click)

Edit: I just stumbled across the migration from v6->v7; Apologies if this is the wrong place to raise an issue.
Is the assumption correct that both 'Scenes' and 'Scripts' have not upgraded their respective code base?
Still; Is there a workaround? I am new to iobroker and looked for a way to manually downgrade the react adapter, but without success (yet)

@OlliMartin OlliMartin added the bug Something isn't working label Sep 24, 2024
@GermanBluefox
Copy link
Contributor

Hm. Scenes works. Scripts too... which versions of scenes and scripts are you use?

@GermanBluefox GermanBluefox added the question Further information is requested label Sep 29, 2024
@OlliMartin
Copy link
Author

Hi, thanks for your response.
(Java)Script: v8.7.6
Scenes: v3.2.1

I run the base setup from docker; latest buanet/iobroker image

@GermanBluefox
Copy link
Contributor

Just interesting, if you update scenes and javascript to at least
v2.3.9 and v8.8.2 will the error disappear?

@OlliMartin
Copy link
Author

Updating Script Engine to 8.8.3 resolves the issue! :)

For Scenes I am not sure how to up/down(?)grade to 2.3.9 - manually update the package.json and run npm i, potentially clearing the lock as well?
-> Might be stupid questions.. Very new to IoBroker.

With the latest version from the beta repo the issue is still reproducible (v3.2.3)

@OlliMartin
Copy link
Author

OlliMartin commented Oct 3, 2024

facepalm
I can just downgrade with expert mode on.
-> Can confirm, Scenes v2.3.9 is working as expected. Odd.
So there is a workaround available; Should I raise a related issue in the scenes repo or is it completely by chance that bluefox shows up in their change history? :D

Thanks a lot!
Olli

Edit: Not sure if this issue should closed or flagged as Workaround available.

@GermanBluefox
Copy link
Contributor

We will shift the versions to stable and solve the problem

GermanBluefox added a commit to ioBroker/ioBroker.repositories that referenced this issue Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants