开云体育

Track line not present when panel is loaded #layouteditor


 

When I load a panel some of the track lines are missing.? If I enter edit mode they are then visible.? Exiting edit mode and they're still there.? JMRI 4.26? Java 1.8.0_422? Windows 11 PC.? There are no errors in the system console.? Any thoughts?? Please see the attached images.? Thanks and take care.

Cheers, Dennis Drury
Dayton, NV

The miracle is this: the more we share the more we have.
Leonard Nimoy


 

Dennis,

The "load" and "edit" images are before the layout has been initialized. ?The "after" image is after sensor and signal mast initialization. ?Maybe the initialization affects how some of the tracks are drawn.

Dave Sand


----- Original message -----
From: "Dennis Drury via groups.io" <cowrr1984=[email protected]>
Subject: [jmriusers] Track line not present when panel is loaded
Date: Sunday, March 02, 2025 3:40 PM

When I load a panel some of the track lines are missing.? If I enter edit mode they are then visible.? Exiting edit mode and they're still there.? JMRI 4.26? Java 1.8.0_422? Windows 11 PC.? There are no errors in the system console.? Any thoughts?? Please see the attached images.? Thanks and take care.

Cheers, Dennis Drury
Dayton, NV

The miracle is this: the more we share the more we have.
Leonard Nimoy

Attachments:
  • Panel Load.png
  • Panel Edit Mode.png
  • Panel After Edit.png


 

Dennis,
?
I flipped between the images you uploaded (i.e. between "Panel Load" and "Panel After Edit") and it looks like the track segments that are not showing up, are the ones on which you have track occupancy lamp icons.? Since the Panel Load image has the "unknown" state for your sensor icons, I am wondering if you are using icons for the track lines, and whether they somehow got associated to a sensor(s) that is yet to be initialized (as Dave noted) and thus, is not showing while it is in an "unknown" state.? It has been sometime since I dabbled with panels but I seem to recall you can change an icon's graphic to reflect its sensor state.? Maybe you just did not assign a graphic to the "unknown" state...?
?
Happy to help, hope it helps,
<Pete Johnson>


 

Thanks Dave and Pete.? Good ideas on the initialization but the attached image shows the panel after the init script has been run.? It's easy enough to enter and exit edit mode to correct the?issue but it's just weird.? I'll keep playing with it and let you know how it goes.? Take care.

Cheers, Dennis Drury
Dayton, NV

The miracle is this: the more we share the more we have.
Leonard Nimoy



On Sun, Mar 2, 2025 at 4:58?PM Pete Johnson via <amtrakpetey=[email protected]> wrote:
Dennis,
?
I flipped between the images you uploaded (i.e. between "Panel Load" and "Panel After Edit") and it looks like the track segments that are not showing up, are the ones on which you have track occupancy lamp icons.? Since the Panel Load image has the "unknown" state for your sensor icons, I am wondering if you are using icons for the track lines, and whether they somehow got associated to a sensor(s) that is yet to be initialized (as Dave noted) and thus, is not showing while it is in an "unknown" state.? It has been sometime since I dabbled with panels but I seem to recall you can change an icon's graphic to reflect its sensor state.? Maybe you just did not assign a graphic to the "unknown" state...?
?
Happy to help, hope it helps,
<Pete Johnson>


 

One other thought.? The block occupancy is shown by the track segment turning red.? The black lamps are part of the NX system.? They show when a route has been entered then go out when the movement is completed.? Hope this helps.? Thanks and take care.

Cheers, Dennis Drury
Dayton, NV

The miracle is this: the more we share the more we have.
Leonard Nimoy



On Sun, Mar 2, 2025 at 4:58?PM Pete Johnson via <amtrakpetey=[email protected]> wrote:
Dennis,
?
I flipped between the images you uploaded (i.e. between "Panel Load" and "Panel After Edit") and it looks like the track segments that are not showing up, are the ones on which you have track occupancy lamp icons.? Since the Panel Load image has the "unknown" state for your sensor icons, I am wondering if you are using icons for the track lines, and whether they somehow got associated to a sensor(s) that is yet to be initialized (as Dave noted) and thus, is not showing while it is in an "unknown" state.? It has been sometime since I dabbled with panels but I seem to recall you can change an icon's graphic to reflect its sensor state.? Maybe you just did not assign a graphic to the "unknown" state...?
?
Happy to help, hope it helps,
<Pete Johnson>


 

Oops, forgot the image.

Cheers, Dennis Drury
Dayton, NV

The miracle is this: the more we share the more we have.
Leonard Nimoy



On Mon, Mar 3, 2025 at 9:42?AM Dennis Drury via <cowrr1984=[email protected]> wrote:
Thanks Dave and Pete.? Good ideas on the initialization but the attached image shows the panel after the init script has been run.? It's easy enough to enter and exit edit mode to correct the?issue but it's just weird.? I'll keep playing with it and let you know how it goes.? Take care.

Cheers, Dennis Drury
Dayton, NV

The miracle is this: the more we share the more we have.
Leonard Nimoy



On Sun, Mar 2, 2025 at 4:58?PM Pete Johnson via <amtrakpetey=[email protected]> wrote:
Dennis,
?
I flipped between the images you uploaded (i.e. between "Panel Load" and "Panel After Edit") and it looks like the track segments that are not showing up, are the ones on which you have track occupancy lamp icons.? Since the Panel Load image has the "unknown" state for your sensor icons, I am wondering if you are using icons for the track lines, and whether they somehow got associated to a sensor(s) that is yet to be initialized (as Dave noted) and thus, is not showing while it is in an "unknown" state.? It has been sometime since I dabbled with panels but I seem to recall you can change an icon's graphic to reflect its sensor state.? Maybe you just did not assign a graphic to the "unknown" state...?
?
Happy to help, hope it helps,
<Pete Johnson>


 

Dennis,
When the initialization has finished and if the image shows no track segment, go to Tables and look at the sensor for block 103 and see what its status is. I still wonder if the actual icon for the “unknown” state is either not defined or matches the background color…?
?
Happy to help, hope it helps,
<Pete Johnson>


 

Pete,

This is a Layout Editor panel. ?There are no icons for track components. ?They are drawn using Java graphic tools. ?

Dennis,

Instead of switching to edit mode, try changing the window size by dragging an edge or corner. ?A very small change should redraw the panel. ?See if that makes a difference.

What Look and Feel do you have set in "Preferences -> Display"?

Based on the images, you appear to be having an issue with the "clipping" area. ?The right side and lower half of the track plan is outside of the "clip rectangle".

If you upload the layout xml data file to the group's ProblemsBeingWorkedOn file folder, I can see if there is a Layout Editor issue.

Dave Sand




----- Original message -----
From: "Pete Johnson via groups.io" <amtrakpetey=[email protected]>
Subject: Re: [jmriusers] Track line not present when panel is loaded
Date: Monday, March 03, 2025 12:15 PM

Dennis,
When the initialization has finished and if the image shows no track segment, go to Tables and look at the sensor for block 103 and see what its status is. I still wonder if the actual icon for the “unknown” state is either not defined or matches the background color…?
?
Happy to help, hope it helps,
<Pete Johnson>


 

Dave,?
?
Roger that!
?
Dennis,
?
You're in the proper hands...
?
<veers back into his own lane>
?
?
?


 

I made a mistake once where the color of an object on screen was the same gray as the background.? It became invisible, although it was still here.? Hopefully all track responds the same as to what color represents what state though and if so, no electrons were abused in this suggestion.
?
Phil?