Weird RMIR behaviour - 2 Roku upgrades

Discussion forum for JP1 software tools currently in use, or being developed, such as IR, KM, RemoteMaster, and other misc apps/tools.

Moderator: Moderators

mathdon
Expert
Posts: 4767
Joined: Tue Jul 22, 2008 8:53 am
Location: Cambridge, UK

Re: Weird RMIR behaviour - 2 Roku upgrades

Post by mathdon »

Barf wrote: Fri May 15, 2026 3:29 am I cannot reproduce the problem I reported, so it appears to have been fixed. Still, I have a bad feeling about the code, as I described in my previous post. Since there are now no known and documented bugs(?), I do not recommend an immediate fix though.
The fix included in RMIR v3.2.17 was provided by user lbschenkel. In DeviceUpgrade.java it includes the following:

Code: Select all

// copy the device parameter values
    if ( base.protocol != null )
    {
      // *DO NOT* call protocol.setDeviceParams() here to clone parmValues!
      // Protocol device params are global state, and may be:
      // - live: currently rendered in the UI; and/or
      // - dirty: containing user-entered input which has not been saved yet.
      //
      // Violation of this rule will result in this code path overwriting
      // user-entered protocol parameters. For example, if the table showing
      // device upgrades is re-rendered while the upgrade dialog is open,
      // the old values in the table data will overwrite any changes the user
      // has typed.
      parmValues = Value.copy( base.parmValues );
//      protocol.setDeviceParms( base.parmValues );
//      parmValues = protocol.getDeviceParmValues();
    }
You wrote
As I see it, the fundamental problem is that the actual device parameters is present in the Protocol class, where it does not conceptually belong; it belongs to the DeviceUpgrade class.
I believe that with this fix, there is no problem with having the actual device parameters being in the Protocol class. After all, their presence is not a recent change and as far as I can see, there are many upgrades that use the same protocol with more than one set of device parameters. I cannot recall any problems with it being reported previously.
Graham
Barf
Expert
Posts: 1538
Joined: Fri Oct 24, 2008 1:54 pm
Location: Munich, Germany
Contact:

Re: Weird RMIR behaviour - 2 Roku upgrades

Post by Barf »

mathdon wrote: Fri May 15, 2026 4:19 am There are 10 images in this thread, on pages 1 and 2, and all show this "not viewable" message.
From Germany, they are visible. Then i virtually moved to the UK, using VPN, NordVPN to be exact. And, voilà, now I also get "Content not viewable in your region"!!

So it must be the image hoster, imgur.com, who does not "like" UK.

A workaround is to use VPN.
The Robman
Site Owner
Posts: 22059
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Re: Weird RMIR behaviour - 2 Roku upgrades

Post by The Robman »

Barf wrote: Fri May 15, 2026 4:47 am
mathdon wrote: Fri May 15, 2026 4:19 am There are 10 images in this thread, on pages 1 and 2, and all show this "not viewable" message.
From Germany, they are visible. Then i virtually moved to the UK, using VPN, NordVPN to be exact. And, voilà, now I also get "Content not viewable in your region"!!

So it must be the image hoster, imgur.com, who does not "like" UK.

A workaround is to use VPN.
If imgur.com is blocked in the UK, that's a real pity because that's the service that I have been encouraging people to use for years. Of course, now that you can attach files to posts, we don't need it as much.

Graham, I have just converted all of the images from the first 2 pages into attached images, did that fix it for you?
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
mathdon
Expert
Posts: 4767
Joined: Tue Jul 22, 2008 8:53 am
Location: Cambridge, UK

Re: Weird RMIR behaviour - 2 Roku upgrades

Post by mathdon »

The Robman wrote: Fri May 15, 2026 12:24 pm If imgur.com is blocked in the UK, that's a real pity because that's the service that I have been encouraging people to use for years. Of course, now that you can attach files to posts, we don't need it as much.

Graham, I have just converted all of the images from the first 2 pages into attached images, did that fix it for you?
Yes, that has fixed it. Thanks, Rob.
Graham
Post Reply