¿ªÔÆÌåÓý

Locked Load and save creating errors in layout editor


 

Hi all


I am getting an error when I have saved a panel in JMRI after adding things.

it appears to add into the layout shape section of the config file the words "Points/" before the end of the section.

when you try to reload the panel it refuses quoting the error as that particular line.

i have routinely being going into the file with word pad and deleting the word "Points/" before reloading it is then OK.

I cant seen to figure out why it is doing it?

help required please

Tim


 

Tim,

If you are running Windows, use the file manager and navigate to C:\Program Files (x86)\JMRI\xml\schema\types and get the file size for editors.xsd.

Also, let us know the version of Windows, the previous JMRI version and the current JMRI version.

Dave Sand

On Sep 23, 2019, at 4:23 PM, tim_p1964@... wrote:

Hi all


I am getting an error when I have saved a panel in JMRI after adding things.

it appears to add into the layout shape section of the config file the words "Points/" before the end of the section.

when you try to reload the panel it refuses quoting the error as that particular line.

i have routinely being going into the file with word pad and deleting the word "Points/" before reloading it is then OK.

I cant seen to figure out why it is doing it?

help required please

Tim
Top


 

Tim,

I have been doing some more research on the problem. ?It appears that you have an incomplete shape on your panel. ?The shape section probably looks like the following:

? ? <layoutShape ident="S2" type="Open" level="3" linewidth="3" lineColor="#000000" fillColor="#404040"?class="jmri.jmrit.display.layoutEditor.configurexml.LayoutShapeXml">
? ? ? <points />
? ? </layoutShape>

This occurs when you start creating a shape but never finish it. ?If this matches what you see, you also need to delete the <layoutShape¡­ and </layoutShape> lines.

Dave Sand

?

On Sep 23, 2019, at 9:05 PM, Dave Sand <ds@...> wrote:

Tim,

If you are running Windows, use the file manager and navigate to C:\Program Files (x86)\JMRI\xml\schema\types and get the file size for editors.xsd.

Also, let us know the version of Windows, the previous JMRI version and the current JMRI version.

Dave Sand



On Sep 23, 2019, at 4:23 PM, tim_p1964@... wrote:

Hi all


I am getting an error when I have saved a panel in JMRI after adding things.

it appears to add into the layout shape section of the config file the words "Points/" before the end of the section.

when you try to reload the panel it refuses quoting the error as that particular line.

i have routinely being going into the file with word pad and deleting the word "Points/" before reloading it is then OK.

I cant seen to figure out why it is doing it??

help required please

Tim
Top







 

Thanks Dave

that would be it I was drawing a shape but then changed my mind and deleted it. must not have deleted properly.

Thanks
Tim


 

I recently had the same problem. Just two wrong user clicks and user has problems. This is an application error and should be fixed.

--
Petr ?¨ªdlo
Czech Republic


 

Yeah, shapes probably shouldn't be saved without points¡­ File an issue (<https://github.com/JMRI/JMRI/issues>) and I'll add it to my queue.