Still working this NaN issue. Time available is limited but this is what I have found so far:
1) The problem is present on all installations I have tried on my 8Gb Raspberry Pi 4. These include:
- The full (and fully updated) GUI system that came with the Raspberry Pi. On this system I first installed ZM 1.32 from the RPi repos, then used the ZM repo to upgrade to 1.34.22 and later 1.36.0
- The RPi Lite OS installed exactly as per the ZM wiki instructions for ZM 1.36.0, except that I substituted the 1.34.22 repo,
- and RPi Lite OS again exactly as the wiki directs, including the 1.36.0 repo.
2) The problem does NOT occur on my RPi 3B which is still running ZM 1.34.22.
- The 3b is also a stock RPi full-GUI system where I first installed ZM 1.32 from the default RPi repos, then upgraded to 1.34.22 from the ZM repo.
- I am limited in my ability to debug on the RPi 3b because it is a remote installation and currently in use as a security system
By enabling debug logs on zms (debug level 4) I can see that the jQuery status reply goes out as expected:
Code: Select all
08/14/21 20:27:13.823512 zms_e8522[11714].DB2-zm_eventstream.cpp/310 [Got message, type 1, msg 99]
08/14/21 20:27:13.823530 zms_e8522[11714].DB1-zm_eventstream.cpp/538 [Got QUERY command, sending STATUS]
08/14/21 20:27:13.823546 zms_e8522[11714].DB2-zm_eventstream.cpp/570 [Event:8522, Duration 9.000000, Paused:1, progress:0.000000 Rate:0, Zoom:100]
08/14/21 20:27:13.823568 zms_e8522[11714].DB1-zm_eventstream.cpp/575 [Size of msg 40]
You can see it has the Event, Duration, Paused, Progress, Rate and Zoom values.
However when received at the (Firefox) client, the browser's debugger shows the received data only has Rate and Zoom values, both of which are zero. Yet the packet status is "Ok" and result is "Success." I set a breakpoint at getCmdResponse() in skins/classic/views/js/event.js
It is acting like the client interprets the data differently (perhaps as an object?) from how the server is sending it (maybe as an array?)
I see this same behavior in all installations that show the NaN problem.
I have tried to get the RPi 3b to spit out similar debug messages for comparison, but oddly I can't seem to get that to work on the 3b system. I get no debug messages from the zms component, even if I leave the target field blank instead of setting it to _zms. And on the receiving end, the debugger never breaks on getCmdResponse(). Yet the event display seems to work as designed. It's acting like the QUERY-STATUS command-response never happens on the RPi3b.
I will be at the RPi 3b location later this week. I will try to swap in an SD card prepped with Buster Lite and ZM as per the wiki to see if I can get debug logging to behave any better.
If anyone has any suggestions or guidance based on what I'm seeing, let me know!