RMIR: Prototype IR function in RM

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

Moderator: Moderators

Post Reply
Dilligaf
Posts: 79
Joined: Tue Aug 05, 2003 4:24 pm
Location: Michigan

Post by Dilligaf »

I'm having a problem with RM and RMIR, the save and open dialogs will not appear if using a windows style, changing to metal makes them work. This is not a problem in RM, in RMIR there is no way to change the look and feel. Is there a file that I can edit or command line switches that will make RMIR open in a style other than windows??? Thanks for all your hard work.

Mike
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

Please post a copy of rmaster.err in the Diagnosis Area.

What versions of Windows and Java are you using?

Could it be the same as http://www.hifi-remote.com/forums/viewtopic.php?t=7297

or maybe http://www.hifi-remote.com/forums/viewt ... 7700#47700
Dilligaf
Posts: 79
Joined: Tue Aug 05, 2003 4:24 pm
Location: Michigan

Post by Dilligaf »

Here http://www.hifi-remote.com/forums/dload ... le_id=3884 is rmaster.err. I'm using Xp and Vista and have experienced the problem in both, it seems to happen more in Vista. I very well could have a polluted XP install as I haven't cleaned it up in a while. I will try reinstalling Java. On a related subject there is an IR file enclosed that seems to have problems, the keymoves don't show up when opening in RMIR, works fine in RM. If I upload directly from the remote it looks the same but I can't save. I also enclosed the RDF I'm using, I think it's the latest. Thanks again.

Mike
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

What version of Java? What version of XP and Vista. Details please.

Here's the relevant section of rmaster.err:

Code: Select all

java.lang.ArrayIndexOutOfBoundsException: 3184
	at sun.awt.shell.Win32ShellFolder2.getFileChooserIcon(Unknown Source)
	at sun.awt.shell.Win32ShellFolderManager2.get(Unknown Source)
	at sun.awt.shell.ShellFolder.get(Unknown Source)
This matches exactly the symptoms described in RemoteMaster 1.68 java exception on file open or save, which I linked to before.
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

RM v1.70 should solve the problem with the IR file you are trying to import.
Dilligaf
Posts: 79
Joined: Tue Aug 05, 2003 4:24 pm
Location: Michigan

Post by Dilligaf »

Sorry, Java Version 1.5.0 (Build 1.5.0_9-b03) Windows XP MCE SP2 with all updates, Vista RC1 build 5840. I reloaded XP and it now works but I can't open IR files, when I try to open the file I enclosed earlier I get a prompt asking which remote it is (10820, 6820, 8820) I answer 8820 and then nothing happens. If I download fron the remote that this IR file is loaded into the keymoves and macros don't read correctly. I'm using RM 1.70. I would save the downloaded file but RM won't let me, I click on 'save as' and nothing happens. Download to remote is also greyed out. I think this is the relevant section of rmaster.err

Code: Select all

java.lang.NullPointerException
	at com.hifiremote.jp1.RemoteMaster.saveAs(RemoteMaster.java:408)
	at com.hifiremote.jp1.RemoteMaster.actionPerformed(RemoteMaster.java:497)
	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at javax.swing.AbstractButton.doClick(Unknown Source)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
	at java.awt.Component.processMouseEvent(Unknown Source)
	at javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)
I'm not trying to cause problems or complain, I'm just posting my observations to help. The above was all in XP. I'm not too concerned with Vista until the final is available. Thanks again.

Mike

Edit: the above was when trying to save, below is trying to open IR file:

Code: Select all

java.lang.IndexOutOfBoundsException: Index: 6, Size: 2
	at java.util.ArrayList.RangeCheck(Unknown Source)
	at java.util.ArrayList.get(Unknown Source)
	at com.hifiremote.jp1.RemoteConfiguration.importIR(RemoteConfiguration.java:260)
	at com.hifiremote.jp1.RemoteConfiguration.<init>(RemoteConfiguration.java:19)
	at com.hifiremote.jp1.RemoteMaster.openFile(RemoteMaster.java:367)
	at com.hifiremote.jp1.RemoteMaster.openFile(RemoteMaster.java:307)
	at com.hifiremote.jp1.RemoteMaster.actionPerformed(RemoteMaster.java:493)
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

RM v1.71 should take care of both of those problems.

You RDF has a FavKey entry, and you have keymoves assigned to the Fav key. This is apparently a combination that has never been tested with a remote that uses the long keymove format.
Dilligaf
Posts: 79
Joined: Tue Aug 05, 2003 4:24 pm
Location: Michigan

Post by Dilligaf »

Thank you again for all your work I can now open the file and download from remote and all looks OK, I still cant save as the error is

Code: Select all

java.lang.NullPointerException
	at com.hifiremote.jp1.RemoteMaster.saveAs(RemoteMaster.java:408)
	at com.hifiremote.jp1.RemoteMaster.actionPerformed(RemoteMaster.java:497)
	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
One other thing I noticed is if I edit either the Media center or X Box device upgrades the output tab shows a protocol upgrade. These are using a built in protocol. I don't know if this behavior is intentional or not. If I open the rmdu file for the upgrades a protocol upgrade isn't shown. I'm sorry if I'm being a pain in the a**. Again thanks for all your work.

Mike
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

Dilligaf wrote:I still cant save as the error is

Code: Select all

java.lang.NullPointerException
	at com.hifiremote.jp1.RemoteMaster.saveAs(RemoteMaster.java:408)
	at com.hifiremote.jp1.RemoteMaster.actionPerformed(RemoteMaster.java:497)
	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
This makes no sense. The saveAs method begins at line 467 of RemoteMaster.jar. Line 408 is in the openFile method.
One other thing I noticed is if I edit either the Media center or X Box device upgrades the output tab shows a protocol upgrade. These are using a built in protocol.

Mike
Post links to your .rmdu files and I'll take a look to see what's going on in these cases. However, as discussed earlier in this very thread, there will probably always be cases where RMIR chooses the wrong variant of a protocol when importing an IR file (or downloading from the remote). From that earlier discussion:
Since an IR file doesn't have all the details of a device upgrade, and importing can sometimes choose the wrong protocol, the thing to do is go through each of the installed device upgrades and manually load the correct KM or RM file. This will guarantee that there haven't been any import errors, and will also fill in all the missing details (function names, unassigned functions, upgrade notes, etc.) that aren't present in a .IR file.
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

Give RM v1.71a a try. It is a trial version, not an official release, so isn't available for download from sourceforge. It should solve the problem importing your MCE upgrades.

I still have no clue about the Save As issue.
eaglelil
Posts: 5
Joined: Thu May 19, 2005 9:24 am

Post by eaglelil »

Would you add a <blank> inidcation to the Long/Double Key Press keys for the "Function" column, making it display like ToadTog?

[Short]: [Long]:Shift-Stop becomes
[Short]: <blank> [Long]:Shift-Stop

Here's my stab at the solution...

Code: Select all

Index: com/hifiremote/jp1/LDKPFunction.java
===================================================================
RCS file: /cvsroot/controlremote/km/com/hifiremote/jp1/LDKPFunction.java,v
retrieving revision 1.2
diff -u -r1.2 LDKPFunction.java
--- com/hifiremote/jp1/LDKPFunction.java	29 Aug 2006 19:44:39 -0000	1.2
+++ com/hifiremote/jp1/LDKPFunction.java	1 Dec 2006 20:41:30 -0000
@@ -63,6 +63,8 @@
     buff.append( firstStrings[ style ]);
     buff.append( "]:" );
     int firstLength = getFirstLength();
+    if ( firstLength == 0 )
+      buff.append( "<blank>" );
     int i = 0;
     for ( ; i < firstLength; ++i )
     {
@@ -73,6 +75,8 @@
     buff.append( " [" );
     buff.append( secondStrings[ style ]);
     buff.append( "]:" );
+    if ( i == vals.length - 1 )
+    	buff.append( "<blank>" );
     for ( ; i + 1 < vals.length; ++i )
     {
       if ( i != firstLength )
Dilligaf
Posts: 79
Joined: Tue Aug 05, 2003 4:24 pm
Location: Michigan

Post by Dilligaf »

I tried 1.71a , no change. this filehttp://www.hifi-remote.com/forums/dload ... le_id=3892 has a new rmerror file, this shows the error saving at line 471. I can produce this behavior consistently by 1) download from remote 2)file save as. The remote is an 8820 the rmir file is enclosed. perhaps if someone else has a 8820 they can load this file and see if they can reproduce also.
As far as the protocol upgrade showing when editing 1) load the enclosed rmir file 2) go to Devices tab 3) select x box or media center upgrade 4) click on edit. 5) go to the Output tab in Upgrade editor. This shows a protocol upgrade. The included rmdu files are the ones used to load these upgrades, they do not use a protocol upgrade. This really isn't a big issue to me, it's just something I noticed. The save thing is a problem, I don't know if it's just me or a bug. It's strange that the error is on a different line. I will try a few more times and see if the line number keeps changing.Thanks.

Mike
Mark Pierson
Expert
Posts: 3018
Joined: Sun Aug 03, 2003 12:13 am
Location: Connecticut, USA
Contact:

Post by Mark Pierson »

Dilligaf wrote:perhaps if someone else has a 8820 they can load this file and see if they can reproduce also.
I was able to open this file without any errors. I did not try the download, save as.

As far as the protocol upgrade showing when editing 1) load the enclosed rmir file 2) go to Devices tab 3) select x box or media center upgrade 4) click on edit. 5) go to the Output tab in Upgrade editor. This shows a protocol upgrade.
I tried this and did NOT get any protocol upgrades for either device. I'm thinking you have a bad RDF. I recently had some issues and got an updated copy from Mike England. I just updated the one in the file section to this newer version. Try it and see if your errors go away.
Mark
Dilligaf
Posts: 79
Joined: Tue Aug 05, 2003 4:24 pm
Location: Michigan

Post by Dilligaf »

Mark, I tried your RDF it opens the rmir file fine but when i download from remote rmir chokes on the keymove tab. This is the relevant part of rmerror

Code: Select all

Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 1
	at com.hifiremote.jp1.Hex.get(Hex.java:67)
	at com.hifiremote.jp1.Hex.get(Hex.java:62)
	at com.hifiremote.jp1.KeyMoveEFC5.getCmd(KeyMoveEFC5.java:46)
	at com.hifiremote.jp1.KeyMoveTableModel.getValueAt(KeyMoveTableModel.java:97)
Thishttp://www.hifi-remote.com/forums/dload ... le_id=3895 is the rdf I'm using. It was originally posted by johnsfine.

Mike

Tried several times with the 8820 and got the same error every time, tried with urc 1067 and it didn't work with that either. I did find that if I open any rmir file and then download from remote I can save. Apparently in order to reproduce you need to open RMIR and then immediately download from remote. As I said this happened with the 8820 and 1067.
gfb107
Expert
Posts: 3411
Joined: Sun Aug 03, 2003 7:18 pm
Location: Cary, NC
Contact:

Post by gfb107 »

I think I've got it now. Try RM v1.71b.
Post Reply