AntonioMeireles / homebridge-vieramatic

Homebridge plugin for Panasonic™ Viera™ TVs (includes support for 2018 and later models)
Apache License 2.0
43 stars 9 forks source link

Spinning wheel in UI Config #92

Open Seexelas opened 2 years ago

Seexelas commented 2 years ago

Describe your issue

I did a fresh install of my Rasp. Homebridge, I installed the Vieramatic plugin, when installed, I get the web ui config page but with a never ending spinning wheel.

Issue Context

Please add the following items, when applicable:

Regular logs show's nothing.

2022-01-24 16_18_06-Homebridge - Personal - Microsoft​ Edge

Tried on Chrome and Edge.

I just restarted the whole Rasp, nothing's change.

Here is the debug on Chrome :

2022-01-24 16_23_26-Settings

I also tried on my iPhone on Safari, same result.

Thanks for the help,

Best regards ,

Alexis

Seexelas commented 2 years ago

OK, so I used my backup of my config.json, get the part for my Panasonic Tv in the current config.json. restarted and there the web ui is working good.

AntonioMeireles commented 2 years ago

@Seexelas

welcome back!

hummm

On one hand glad it is sorted. On the other... shouldn't happen.

what TV model do you have ?

thanks in advance!

Seexelas commented 2 years ago

Hi Antonio,

Thanks ;) Hope everything's good for you.

I have the Panasonic 65GZ2000

AntonioMeireles commented 2 years ago

did you got anything relevant in the "Console" tab in Chromes's debug ?

AntonioMeireles commented 2 years ago

[will try to find a way to reproduce and will get back to you]

Seexelas commented 2 years ago

Not so far, it stays that way.

Is there a discovery or something the first time ?

AntonioMeireles commented 2 years ago

there was. it's disabled - breaks docker setups. still looking at how to get it properly done for all. i suspect that i 've got some regression - regarding clean installs / empty setups at 1st install. but need to try to repro when at home with some spare time.

Seexelas commented 2 years ago

I have a docker image for test, do you want me to test it also there ?

AntonioMeireles commented 2 years ago

let's fix this specific issue 1st :-) then will bug you with docker ;-)

AntonioMeireles commented 2 years ago

@Seexelas

confirm please that homebridge-vieramatic@4.0.21 that i've just published fixes this issue.

Seexelas commented 2 years ago

Hi Antonio,

I did a full uninstall, and a config.json cleanup. Rebooted my rasp, installed your plugin.

Same result, spinning wheel.

AntonioMeireles commented 2 years ago

@Seexelas

thanks for reporting. That's unexpected. can you attach your 'cleaned' config.json ? also, what timezone are you on ? (i'm only will be able to look at this again in around 11hrs)

Seexelas commented 2 years ago

You will find enclosed the config.json that is actually working (without your plugin as it is uninstalled).

I'm from Luxembourg, so I have right now 11:29 am.

Thanks for your help.

Seexelas commented 2 years ago

config (1).txt

AntonioMeireles commented 2 years ago

OK. will get back to you after yours' 9pm. thanks!

AntonioMeireles commented 2 years ago

@Seexelas can you give a quick test to homebridge-vieramatic@4.0.22 (went just out), please ?

Seexelas commented 2 years ago

Hi Antonio,

Still the same :S

I switch to debut mode :S but nothing shows up

AntonioMeireles commented 2 years ago

@Seexelas

plz install a debug version - npm i -g homebridge-vieramatic@debug, and restart homebridge. then please attach here the contents from the "Console" tab in Chromes's debug - you should get lines starting by (updateGlobalConfig) --> there...

Seexelas commented 2 years ago

I have this :

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'tvs')
    at J4 (VieraConfigUI.tsx:23:7)
    at async VieraConfigUI.tsx:70:24
J4 @ VieraConfigUI.tsx:23
await in J4 (async)
(anonymous) @ VieraConfigUI.tsx:70
n9 @ VieraConfigUI.tsx:67
i9 @ VieraConfigUI.tsx:69
p8 @ index.js:506
U2 @ index.js:173
l6 @ children.js:124
u8 @ index.js:392
U2 @ index.js:226
l6 @ children.js:124
U2 @ index.js:196
l6 @ children.js:124
U2 @ index.js:196
l6 @ children.js:124
U2 @ index.js:196
M @ render.js:16
R1 @ render.js:55
(anonymous) @ VieraConfigUI.tsx:335
_handleIncomingMessage @ ui.ts:70
postMessage (async)
confirmReady @ main-es2015.9d482d945810494ac85a.js:1
handleMessage @ main-es2015.9d482d945810494ac85a.js:1
invokeTask @ polyfills-es2015.e8bb8be2ebc926cac2d0.js:1
onInvokeTask @ main-es2015.9d482d945810494ac85a.js:1
invokeTask @ polyfills-es2015.e8bb8be2ebc926cac2d0.js:1
runTask @ polyfills-es2015.e8bb8be2ebc926cac2d0.js:1
invokeTask @ polyfills-es2015.e8bb8be2ebc926cac2d0.js:1
p @ polyfills-es2015.e8bb8be2ebc926cac2d0.js:1
f @ polyfills-es2015.e8bb8be2ebc926cac2d0.js:1
postMessage (async)
(anonymous) @ index.html?origin=http%3A%2F%2F192.168.1.250&v=4.0.22-debug1:17
load (async)
(anonymous) @ index.html?origin=http%3A%2F%2F192.168.1.250&v=4.0.22-debug1:16
AntonioMeireles commented 2 years ago

trying to understand why i do not get that error here...

Seexelas commented 2 years ago

I tried edge, chrome, safari on my phone and it's the same !

When I put the configuration of my tv back in config.json and restart. No more error in Chrome console and it works.

Seexelas commented 2 years ago

Hummm...

So with the web ui working, I switched to edit mode, delete my tv configuration, restarted and there it is working.

Even with a full restart of the rasp, it still working !

AntonioMeireles commented 2 years ago

this is bizarre. it works here (on the mac) on both firefox, safari, edge and chrome. and in safari in the iphone.

image
AntonioMeireles commented 2 years ago

(wondering) did you did an hard refresh on the browser of the UI ? i suspect that perhaps the UI may had gone nuts between homebridge updates (as server (hb) side code changed but UI one not fully... (just thinking loud)

Seexelas commented 2 years ago

So this is weird... I took my Mac (M1 Chip).

No issue on Safari, and Chrome.

Safari IOS -> Nok Chrome, Edge Windows -> Nok

I don't use Edge on my PC so it's like fresh. It's to become crazy.

AntonioMeireles commented 2 years ago

@Seexelas

digging. thanks for your patience!

Seexelas commented 2 years ago

No problem, glad I can help

AntonioMeireles commented 2 years ago

@Seexelas

install plz npm i -g homebridge-vieramatic@4.0.22-debug3.

where is failed before still fails ? and where it works still works ?

Seexelas commented 2 years ago

Same results as before

AntonioMeireles commented 2 years ago

bah. thanks. will keep digging.

Seexelas commented 2 years ago

I need to go to sleep :) I'm sorry ! I'll continuy tomorrow

AntonioMeireles commented 2 years ago

@Seexelas

(morning!) what IOS / safari version are you testing on ?

Seexelas commented 2 years ago

Morning :)

IOS 15.3 RC.

I will try with a fresh install of Chrome on my iPhone and let you know.

AntonioMeireles commented 2 years ago

humm... betas don't count :-) . OTOH that should go public this week or early next one. still digging. (&& thanks again)

Seexelas commented 2 years ago

So Chrome on IOS is working.

Incognito mode on PC Chrome and Edge -> Working.

I tried removing my Adblock, but the same result.

AntonioMeireles commented 2 years ago

ok, so what's not working ? safari on IOS/RC and what else ?

Seexelas commented 2 years ago

Chrome / Edge normal mode Safari IOS

AntonioMeireles commented 2 years ago

Chrome / Edge work here in MacOS (plain Monterey) . can you try to disable / bissect extensions to see which one is b0rking things ?

Seexelas commented 2 years ago

I have an another PC with a fresh install. I will try on this one and let you know. Also same with the phone, I will try on my work phone.

Seexelas commented 2 years ago

Sooooooooooooooo...

Work phone (iOS 15.2.1) -> Safari ok My other laptop (Windows 10) with Chrome and Adblock -> ok on Chrome.

It's driving me crazy

AntonioMeireles commented 2 years ago

@Seexelas

hi again! did you made any progresses on this ? here even with latest MacOS and IOS iterations (that went public last night) things keep behaving ...

thanks in advance

Seexelas commented 2 years ago

Hi Antonio,

I did a lot of test, I don't know, I really don't know.

I added my Tv manually for now, I don't know what to test more

AntonioMeireles commented 2 years ago

@Seexelas

but are you still hitting the original issue or not ?

Seexelas commented 2 years ago

Yes.

Last results were :

If I input my configuration into config.json, I don't have anymore issue with the webui (and if I delete the Tv Config by the plugin webui, after restart, it works).

It's when I delete the whole plugin and configuration, than restart and the problem comes back.

AntonioMeireles commented 2 years ago

on your iPhone, when with spare time, check plz if issue remains after the update to 15.3 final. still digging.

and thanks again!

Seexelas commented 2 years ago

Hi Antonio.

I just did it, and it's the same.

AntonioMeireles commented 2 years ago

@Seexelas

when you have time take a look at homebridge-vieramatic@4.0.23.

have a great weekend && thanks!

Seexelas commented 2 years ago

Hi Antonio,

Sadly it is still the same

thanks

Seexelas commented 2 years ago

Hi Antonio,

I saw that you put a new version, should I try it ? Or no corrections for my issue ?

Many thanks

AntonioMeireles commented 2 years ago

Hi Antonio,

I saw that you put a new version, should I try it ? Or no corrections for my issue ?

Many thanks

@Seexelas

Hi again...

given that i'm not 100% sure about what's going on, not sure... OTOH i'm hoping this is just a esbuild side effect and that somehow it will get fixed soon. (and yes esbuild was updated (albeit according to their changelog the changes consumed in last version should - on paper - be immaterial to this particular issue.)

have a great weekend!