¿ªÔÆÌåÓý

Roster Media - Images disappear in one profile - disappear but reappear when roster rebuilt in different profile #rosterimage


 

I have two layouts sharing a roster using dropbox. One of the layouts is problematic. Both run JMRI 5.1. Each layout has its own profile. I am unable to discern any profile differences that seem to relate to roster media links or calls.

On on an elevated layout using Windows 10, NCE PowerCab/USB interface, Java 19, the roster media images disappear when DecoderPro is closed but can be made to reappear by rebuilding the roster when DecoderPro is later started.

On the lower layout, using Windows 11, NCE SB5-DB5/USB interface, Java 21, the roster media will not appear.

Originally I input the the roster media on the Windows 11 computer but images disappeared in DecoderPro after DecoderPro was stopped (they still exist in the roster directory). I re-input the images again on the Windows 10 computer and the images seem to be stable, at least when I rebuild the roster.

Is there a difference between rebuilding the roster and reindexing the roster in its effects on roster media?

When editing a roster entry, is there a difference between file/save and save to roster?

Thank you for any help.

RBD


 

Is that really JMRI version 5.1, if so which version of 5.1,x - 5.1 is a series of test releases.

If you meant 5.10 production release then don't leave off the zero - a lot of people seem to do this, but release ten is distinctly different to release one.

I suspect your problem is the Java releases. Again, if you are really using JMRI 5.1 it was intended for Java 11, so using java 19 or java 21 is likely to have strange problems.



On Fri, 10 Jan 2025 at 23:59, RBD via <rdunham=[email protected]> wrote:

I have two layouts sharing a roster using dropbox. One of the layouts is problematic. Both run JMRI 5.1. Each layout has its own profile. I am unable to discern any profile differences that seem to relate to roster media links or calls.

On on an elevated layout using Windows 10, NCE PowerCab/USB interface, Java 19, the roster media images disappear when DecoderPro is closed but can be made to reappear by rebuilding the roster when DecoderPro is later started.

On the lower layout, using Windows 11, NCE SB5-DB5/USB interface, Java 21, the roster media will not appear.

Originally I input the the roster media on the Windows 11 computer but images disappeared in DecoderPro after DecoderPro was stopped (they still exist in the roster directory). I re-input the images again on the Windows 10 computer and the images seem to be stable, at least when I rebuild the roster.

Is there a difference between rebuilding the roster and reindexing the roster in its effects on roster media?

When editing a roster entry, is there a difference between file/save and save to roster?

Thank you for any help.

RBD


 

It is 5.10. I will revise.


 

Are you running JMRI on the two computers at the same time?

Bob

On Jan 10, 2025, at 6:59?PM, RBD via groups.io <rdunham@...> wrote:

I have two layouts sharing a roster using dropbox. One of the layouts is problematic. Both run JMRI 5.1. Each layout has its own profile. I am unable to discern any profile differences that seem to relate to roster media links or calls.
On on an elevated layout using Windows 10, NCE PowerCab/USB interface, Java 19, the roster media images disappear when DecoderPro is closed but can be made to reappear by rebuilding the roster when DecoderPro is later started.
On the lower layout, using Windows 11, NCE SB5-DB5/USB interface, Java 21, the roster media will not appear.
Originally I input the the roster media on the Windows 11 computer but images disappeared in DecoderPro after DecoderPro was stopped (they still exist in the roster directory). I re-input the images again on the Windows 10 computer and the images seem to be stable, at least when I rebuild the roster.
Is there a difference between rebuilding the roster and reindexing the roster in its effects on roster media?
When editing a roster entry, is there a difference between file/save and save to roster?
Thank you for any help.
RBD
¡ª
Bob Jacobsen
rgj1927@...


 

Bob,

Sometimes I do run both at the same time, but not normally. While trying to resolve this, I have tried it while running both and while running just one; no difference in the behavior of the roster media.

So far, I have: A. uninstalled Java 19 and Java 21, respectively, and installed Java 17 on both computers. No change in behavior. (May go down to Java 11 later.), B. disabled firewalls, antivirus etc, on Windows 11 computer with no resulting change, and C. copied existing profile on Windows 11 and renamed it, edited it somewhat, and retried; no change.

I plan to try creating a new profile on the Windows 11 computer and if that doesn¡¯t work I plan to copy the Windows 10 profile to Windows 11 computer.

Bob


 

Bob
You likely have the images in different places for each pc. They need to be stored in a relative path to the files section or roster. So they appear as roster:: or files::.
Steve G.
?


 

If you look in the roster.xml file you will see the filenames being used
e.g. imageFilePath="home:JMRI-Files/JMRI-Roster/roster/CNR1026.jpg"
All our files have the same relative path from the users home directory.
?
Steve G.


 

Thanks. That makes sense; I see all the images in the dropbox roster directory.

For the roster.xml file on dropbox it has ¡°imageFilePath="" for each locomotive.

Do I change all those, individually, or is there a way to globally change the path?


 

¿ªÔÆÌåÓý

On Sat, 11 Jan 2025 Steve G wrote:
You likely have the images in different places for each pc. They need to be stored in a relative path to the files section or roster. So they appear as roster:: or files::.


On my computer (Windows 7, JAVA 11, JMRI 5.10), the image files are in the Roster folder. JMRI copies the file into the Roster folder whenever I drag n
¡¯ drop an image into a Media sheet.

Mark Granville


 

Mark
It's not where the file is that matters it is how the path to it is expressed so it can be accessed from multiple profiles across multiple O/S's and multiple PCs.
It is normally copied to the roster area and then pointed to by home:patheandfilename,?so everyone accessing the files must have the same directory structure off "home:', unfortunately there is no "roster:" URI. which means when resetting the location of the roster it doesn't update the URLs.
?
Bob
We normally fix problems like with "sed" in linux, but any text editor that does search and replace should work. Remember to do backup of the files. It has to be changed in the master record rather than the roster.xml file and then the roster.xml rebuilt (or edited), ultimately though you need to make the path to the roster from "home" the same in all instances.
?
Steve G.


 

To verify the path on each machine, look at the system console after starting DecoderPro. ?There will be an INFO message that has the path to the roster.xml file.

INFO? - Reading roster file with rootFromName(C:\Users\xxx\Dropbox\JMRI\SharedRoster\roster.xml) [main]

The path after "C:\Users\<username>\" has to be identical for both machines.


Dave Sand


----- Original message -----
From: "Steve_G via groups.io" <RailRodder22=[email protected]>
Subject: Re: [jmriusers] Roster Media - Images disappear in one profile - disappear but reappear when roster rebuilt in different profile #rosterimage
Date: Saturday, January 11, 2025 10:26 AM

Mark
It's not where the file is that matters it is how the path to it is expressed so it can be accessed from multiple profiles across multiple O/S's and multiple PCs.
It is normally copied to the roster area and then pointed to by home:patheandfilename,?so everyone accessing the files must have the same directory structure off "home:', unfortunately there is no "roster:" URI. which means when resetting the location of the roster it doesn't update the URLs.
?
Bob
We normally fix problems like with "sed" in linux, but any text editor that does search and replace should work. Remember to do backup of the files. It has to be changed in the master record rather than the roster.xml file and then the roster.xml rebuilt (or edited), ultimately though you need to make the path to the roster from "home" the same in all instances.
?
Steve G.


 

Thank you all. These suggestions make sense to me. Learning as I go, I am off to search and edit files.


 

Close to final report: After checking all the locomotive roster entries, and the roster.xml files and system consoles on both machines, I realized there were slight differences in the roster paths, due to one computer having both a personal dropbox account (which adds ¡°(Personal)¡± to the path and directory name) and a business dropbox account, with the second computer only having a personal dropbox account (no need for ¡°(Personal)¡± in the path).

I added the business dropbox account to make them each have the same dropbox setups and reset the roster path and rebuilt the roster on that machine.

Most of the roster media promptly appeared. Media for three locomotives did not appear on the second machine; not sure why yet. Now I just have to figure out what is different with respect to three locomotives.

I learned today that ¡°Identical¡± really means identical. And, 5.1 is not really equal to 5.10

Thank you all for your help.

RBD