Announcement
Collapse
No announcement yet.
Alarm not working with 8.3?
Collapse
X
-
Originally posted by KeBul View PostI can reproduce the pause and stop not closing down an alarm completely problem on my SB Touch
Kev
Sent from my Pixel 3a using TapatalkLiving Room: Touch or Squeezelite (Pi3B) > Topping E30 > Audiolab 8000A > Monitor Audio S5 + BK200-XLS DF
Bedroom: Radio
Bathroom: Radio
Comment
-
Originally posted by KeBul View PostI can reproduce the pause and stop not closing down an alarm completely problem on my SB Touch
Kev
Sent from my Pixel 3a using TapatalkLiving Room: Touch or Squeezelite (Pi3B) > Topping E30 > Audiolab 8000A > Monitor Audio S5 + BK200-XLS DF
Bedroom: Radio
Bathroom: Radio
Comment
-
Alarm not working with 8.3?
> @mherger Any thoughts on why the Radio and the Touch behave differently
> when the alarm is paused or stopped from a remote source? I wonder if
I don't know... some of the very last changes were indeed related to the
Alarm. But I've lost track of what is in which firmware version.
Michael
"It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
(LMS: Settings/Information)
Comment
-
Originally posted by mherger View Post> @mherger Any thoughts on why the Radio and the Touch behave differently
> when the alarm is paused or stopped from a remote source? I wonder if
I don't know... some of the very last changes were indeed related to the
Alarm. But I've lost track of what is in which firmware version.
https://github.com/Logitech/squeezep...its/public/7.8
Sent from my Pixel 3a using TapatalkLiving Room: Touch or Squeezelite (Pi3B) > Topping E30 > Audiolab 8000A > Monitor Audio S5 + BK200-XLS DF
Bedroom: Radio
Bathroom: Radio
Comment
-
Originally posted by slartibartfast View PostI suppose this could be the culprit
Sent from my Pixel 3a using Tapatalk
Sent from my Pixel 3a using TapatalkLiving Room: Touch or Squeezelite (Pi3B) > Topping E30 > Audiolab 8000A > Monitor Audio S5 + BK200-XLS DF
Bedroom: Radio
Bathroom: Radio
Comment
-
Originally posted by slartibartfast View PostSeriously [emoji1787]. How consistent were your results? I tried four times in a row and each time the alarm screen closed down. Even with pause and that never works on the Radio.Originally posted by slartibartfast View PostI just tried seven alarms on the Touch and every time the alarm was cancelled correctly with three "Stops" and four "Pauses".
Not as reliable to fail as pause on a Radio, but definitely still happening.
KevLast edited by KeBul; 2022-12-02, 19:53.
Comment
-
I'm going to release an update to Material soon. Should I remove the unsubscribe? Will that work-around the issue? Or should I leave Material as is and wait for the fix in LMS itself?Material debug: 1. Launch via http: //SERVER:9000/material/?debug=json (Use http: //SERVER:9000/material/?debug=json,cometd to also see update messages, e.g. play queue) 2. Open browser's developer tools 3. Open console tab in developer tools 4. REQ/RESP messages sent to/from LMS will be logged here.
Comment
-
Originally posted by KeBul View PostYep seriously, worked for the first couple of alarms but then started failing each time. Just set up another test - failed 3 out of 4.
Not as reliable to fail as pause on a Radio, but definitely still happening.
Kev
Sent from my Pixel 3a using TapatalkLiving Room: Touch or Squeezelite (Pi3B) > Topping E30 > Audiolab 8000A > Monitor Audio S5 + BK200-XLS DF
Bedroom: Radio
Bathroom: Radio
Comment
-
Originally posted by cpd73 View PostI'm going to release an update to Material soon. Should I remove the unsubscribe? Will that work-around the issue? Or should I leave Material as is and wait for the fix in LMS itself?
Checking back on your posts you say you introduced this method of unsubscribe in July 2022 - what was the reason for that introduction?
What would be the potential impact of removing the unsubscribe, apart from maybe a fix for the recent alarm problem(s)?
Michael doesn't seem to believe Material is to blame - however, I have tested extensively several times without Material installed and not had any alarm failures, but there's a caveat to that - the only way I can "reliably" induce failures during testing is by playing around and changing between players in Material - with no Material installed I can't do that.
Having said that, the testing I did with your MaterialSkin vTest, which had the unsubscribe removed, was quite extensive with lots of changing between players but no alarm failures were seen.
Michaels ignore 'playerprefs' fix in Alarm.pm resolves or at least drastically improves the problem where an alarm fails to trigger, but seems to have made another issue worse - "using a remote device to pause or stop an alarm". Although I agree with him that this is considerably less of an issue than an alarm failing to trigger, so we are in a better place at the moment.
The testing I've done for this issue also seems to indicate that without Material installed pause works every time, i.e. the alarm is successfully shutdown, once Material is installed the issue for me becomes prevalent, pause regularly fails to completely shutdown an alarm.
I haven't tested MaterialSkin vTest against this issue, if you would like me to do so let me know, but from what I'm seeing in the logs I would be surprised if removing the unsubscribe didn't also help with this.
In short, albeit from a pure testing evidential standpoint rather than in-depth knowledge of Material and LMS and the protocols/code/interactions between them etc.. I think that Material currently is a trigger for whatever is going wrong within the player and alarm handling, from the testing with MaterialSkin vTest, it looks like removing the unsubscribe either stops that trigger or greatly reduces it.
I think it's also worth noting that Michael started this thread and first reported he was having strange alarm issues early Aug, possibly not that long after your July unsubscribe change. ~Insert smoking gun emoji here~
KevLast edited by KeBul; 2022-12-03, 01:04.
Comment
-
Originally posted by KeBul View PostChecking back on your posts you say you introduced this method of unsubscribe in July 22 - what was the reason for that introduction?
Originally posted by KeBul View PostWhat would be the potential impact of removing the unsubscribe (apart from maybe a fix for the alarm problem)?
Originally posted by KeBul View PostMichael doesn't seem to believe Material is to blame - however, I have tested several times without Material installed and not had any alarm failures, but there's a caveat to that - the only way I can "reliably" induce failures during testing is by playing around and changing between players in Material - with no Material installed I can't do that.
Having said that, the testing I did with your MaterialSkin vTest, which had the unsubscribe removed, was quite extensive with lots of changing between players but no alarm failures were seen.Material debug: 1. Launch via http: //SERVER:9000/material/?debug=json (Use http: //SERVER:9000/material/?debug=json,cometd to also see update messages, e.g. play queue) 2. Open browser's developer tools 3. Open console tab in developer tools 4. REQ/RESP messages sent to/from LMS will be logged here.
Comment
-
Originally posted by cpd73 View PostMainly to cleanup - I believe if you subscribe to a message you should unsubscribe when you no longer want to be informed. I think it was missing before due to a simple oversight.. )
Originally posted by cpd73 View PostProbably none, as Material has worked for years before this change.
Originally posted by cpd73 View PostI don't 100% believe Material is wrong, just that its behaviour triggers this issue in LMS.
There's been some good work done investigating though by yourself, Michael and gordonb3, but seems to be quite a few unanswered questions floating around, like yours on correct method to unsubscribe and gordon's on why the alarms always seem to start with an ignored self request "Stop"
Must say as well, while conversing with you - amazing job you've done on Material it's a lovely modern interface for LMS
Kev
Comment
-
Alarm not working with 8.3?
> Michael doesn't seem to believe Material is to blame - however, I have
> tested several times without Material installed and not had any alarm
> failures, but there's a caveat to that - the only way I can "reliably"
> induce failures during testing is by playing around and changing between
> players in Material - with no Material installed I can't do that.
Yes, I believe Material is only triggering an issue in LMS. But to
ignore _notifications_ in the alarm code seems the right thing to me.
They usually echo an action taken elsewhere. And we should only act on
actual input, not on notification (unless we subscribe to them, of course).
Why that introduces another issue, I have no clue. I remember Felix, and
old Squeezebox buddie of the time, who had to work on Alarm code at a
later stage, once mentioned he would never use it. The Alarm code
combined (LMS & firmware) was just too complicated, dealing with too
many possible failures...
> I think it's also worth noting that Michael started this thread and
> first reported he was having strange alarm issues early Aug, about 2
> weeks after your unsubscribe change. ~Insert smoking gun emoji here~
It was the return to school time - we hadn't used the alarm for several
weeks :-).
Michael
"It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
(LMS: Settings/Information)
Comment
-
I apologize if this post is off-topic but there is a chance that it might be related in a tangential way. About 3 months ago, a user of the Denon AVR plugin that I co-maintain reported strange behavior and provided a debug log illustrating it. It appeared that the problem was caused by the notification callback in the plugin being called for events from players other than those for which the plugin had registered (subscribed) the callback --- a condition that the code was completely unprepared to handle. Upon further research, it was discovered that the players in questions were ones that had been synched with a player that WAS registered for the events. I was able to easily recreate the situation and coded a fix (workaround?) that was fairly simple but added some cpu overhead --- add and maintain an array of player id's that are currently registered for the notifications and ignore any event callbacks from unregistered players. However, it seemed strange to me at the time that a problem with as common a use case as this should suddenly appear in a plugin that had been in fairly widespread use for over 10 years. I also had doubts about whether or not the behavior was intentional/correct after looking at the LMS doc pages. So here's my question:
When registering a notification callback for a particular player ($client), e.g.Code:Slim::Control::Request::subscribe( \&commandCallback, [['power', 'play', 'playlist', 'pause', 'mixer']], $client);
Sam
Comment
-
Alarm not working with 8.3?
> When registering a notification callback for a particular player
> ($client), e.g.
> Code:
> --------------------
> Slim::Control::Request::subscribe( \&commandCallback, [['power', 'play', 'playlist', 'pause', 'mixer']], $client);
> --------------------
> is it expected/intended that the callback should also be invoked for
> other players that are synched with that player?
I don't think it is. But I'm not too familiar with that code. If you
check the client in your callback, would it be called for _all_ synched
players or only ever one, but not always the one to be expected?
Michael
"It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
(LMS: Settings/Information)
Comment
Comment