Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
Locked
"Connectivity error when searching turnouts" when load layout editor panel
#layouteditor
Hi
I've been building up a layout editor panel, adding NX routing and signal masts and have come up against "Connectivity error when searching turnouts in Block CrossoverABSlipBlock" errors when the panel is loaded. I've uploaded the panel - /g/jmriusers/files/ProblemsBeingWorkedOn/Andy%20Brown%20-%20161045/MavinsHills-layoutPanel-19.xml I'm running JMRI 4.18 on Ubuntu 19.10 using java 11.0.5 The error is connected with a double slip which has the offending block. I've tried deleting the slip and re-adding, but get the same error as soon as I connect up the 'A' (blue connector) leg of the slip. I've tried deleting the paths (menu option under Tables-Blocks) and saving the panel, but no change. I looked at the xml to try and understand what is going on, but am not sure how to interpret the error message to get very far. The one thing I did see that looked odd to me (but may be perfectly ok) was the following block definition which seemed to have 2 entries with the same 'todir' and 'fromdir' (highlighted) ??? <block systemName="IB:AUTO:0007" length="0.0" curve="0"> ????? <systemName>IB:AUTO:0007</systemName> ????? <userName>CrossoverABSlipBlock</userName> ????? <permissive>no</permissive> ????? <occupancysensor>TOTI-Crossover-AB-Inner</occupancysensor> ????? <path todir="128" fromdir="64" block="IB:AUTO:0005" /> ????? <path todir="16" fromdir="32" block="IB:AUTO:0008" /> ????? <path todir="64" fromdir="128" block="IB:AUTO:0014" /> ????? <path todir="128" fromdir="64" block="IB:AUTO:0029" /> ??? </block> I must admit to being at a complete loss as to what is wrong! The full startup log is shown below. Any help gratefully received. Thanks Andy 2019-12-30 16:18:11,703 util.Log4JUtil??????????????????????? INFO? - * JMRI log ** [main] 2019-12-30 16:18:11,779 util.Log4JUtil??????????????????????? INFO? - This log is appended to file: /home/andy/.jmri/log/messages.log [main] 2019-12-30 16:18:11,779 util.Log4JUtil??????????????????????? INFO? - This log is stored in file: /home/andy/.jmri/log/session.log [main] 2019-12-30 16:18:11,808 apps.Apps???????????????????????????? INFO? - PanelPro version 4.18+R37ad3d0 starts under Java 11.0.5 on Linux amd64 v5.3.0-24-generic at Mon Dec 30 16:18:11 GMT 2019 [main] WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by jmri.util.swing.SliderSnap$Init (file:/home/andy/Applications/JMRI-4.18/jmri.jar) to method javax.swing.plaf.basic.BasicSliderUI.xPositionForValue(int) WARNING: Please consider reporting this to the maintainers of jmri.util.swing.SliderSnap$Init WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release 2019-12-30 16:18:14,077 apps.Apps???????????????????????????? INFO? - Starting with profile Thomas.3ed0e513 [main] 2019-12-30 16:18:14,174 node.NodeIdentity???????????????????? INFO? - Using jmri-psbmN5_LGhNiaaabnX4csV-3ed0e513 as the JMRI storage identity for profile id 3ed0e513 [AWT-EventQueue-0] 2019-12-30 16:18:14,480 eventtable.CbusEventTableDataModel??? INFO? - Starting MERG CBUS Event Table [main] 2019-12-30 16:18:14,579 net.NetworkDriverAdapter????????????? INFO? - Connection complete with localhost/127.0.0.1 [main] 2019-12-30 16:18:14,969 apps.PerformFileModel???????????????? INFO? - Loading file /home/andy/railwayShare/Users/MavinsHills/Documents/MavinsHills.jmri/MavinsHills-layoutPanel-19.xml [main] 2019-12-30 16:18:18,273 apps.PerformScriptModel?????????????? INFO? - Running script /home/andy/railwayShare/Users/MavinsHills/Documents/MavinsHills.jmri/jython/SetUnknowns.py [main] 2019-12-30 16:18:18,283 script.JmriScriptEngineManager??????? INFO? - ECMAScript ECMA - 262 Edition 5.1 is provided by Oracle Nashorn 11.0.5 [main] 2019-12-30 16:18:18,300 script.JmriScriptEngineManager??????? INFO? - python 2.7 is provided by jython 2.7.1 [main] 2019-12-30 16:18:21,205 util.FileUtilSupport????????????????? INFO? - File path program: is /home/andy/Applications/JMRI-4.18/ [main] 2019-12-30 16:18:21,206 util.FileUtilSupport????????????????? INFO? - File path preference: is /home/andy/railwayShare/Users/MavinsHills/Documents/MavinsHills.jmri/ [main] 2019-12-30 16:18:21,206 util.FileUtilSupport????????????????? INFO? - File path profile: is /home/andy/railwayShare/Users/MavinsHills/Documents/MavinsHills.jmri/ [main] 2019-12-30 16:18:21,206 util.FileUtilSupport????????????????? INFO? - File path settings: is /home/andy/.jmri/ [main] 2019-12-30 16:18:21,206 util.FileUtilSupport????????????????? INFO? - File path home: is /home/andy/ [main] 2019-12-30 16:18:21,227 util.FileUtilSupport????????????????? INFO? - File path scripts: is /home/andy/railwayShare/Users/MavinsHills/Documents/MavinsHills.jmri/jython/ [main] 2019-12-30 16:18:21,398 layoutEditor.BlockValueFile?????????? ERROR - block MainABlock is not occupied but has a saved value, not setting saved block values [main] 2019-12-30 16:18:21,760 server.WebServer????????????????????? INFO? - Starting Web Server on port 12080 [WebServer] 2019-12-30 16:18:21,948 PanelPro.PanelPro???????????????????? INFO? - Main initialization done [main] 2019-12-30 16:18:22,019 server.WebServer????????????????????? INFO? - Starting ZeroConfService _http._tcp.local for Web Server with properties {path=/, json=5.2.0} [WebServer] 2019-12-30 16:19:23,601 layoutEditor.ConnectivityUtil???????? ERROR - Connectivity error when searching turnouts in Block CrossoverABSlipBlock [AWT-EventQueue-0] 2019-12-30 16:19:23,603 layoutEditor.ConnectivityUtil???????? ERROR - Connectivity error when searching turnouts in Block CrossoverABSlipBlock [AWT-EventQueue-0] 2019-12-30 16:19:23,605 layoutEditor.ConnectivityUtil???????? ERROR - Connectivity error when searching turnouts in Block CrossoverABSlipBlock [AWT-EventQueue-0] 2019-12-30 16:19:23,606 layoutEditor.ConnectivityUtil???????? ERROR - Connectivity error when searching turnouts in Block CrossoverABSlipBlock [AWT-EventQueue-0] 2019-12-30 16:19:23,608 layoutEditor.ConnectivityUtil???????? ERROR - Connectivity error when searching turnouts in Block CrossoverABSlipBlock [AWT-EventQueue-0] 2019-12-30 16:19:23,610 layoutEditor.ConnectivityUtil???????? ERROR - Connectivity error when searching turnouts in Block CrossoverABSlipBlock [AWT-EventQueue-0] |
Andy, I have not found the problem yet but I did come up with a circumvention. If the CrossoverCDSlipBlock block is extended down to ABSlip, then the errors do not occur. ? I don't know if this causes any other issues. BTW: ?The custom components generate a lot of errors during startup but don't appear to be important. Dave Sand ----- Original message ----- From: Andy Brown <andy.badshot@...> Subject: [jmriusers] "Connectivity error when searching turnouts" when load layout editor panel Date: Monday, December 30, 2019 10:42 AM Hi I've been building up a layout editor panel, adding NX routing and signal masts and have come up against "Connectivity error when searching turnouts in Block CrossoverABSlipBlock" errors when the panel is loaded. I've uploaded the panel - /g/jmriusers/files/ProblemsBeingWorkedOn/Andy%20Brown%20-%20161045/MavinsHills-layoutPanel-19.xml I'm running JMRI 4.18 on Ubuntu 19.10 using java 11.0.5 The error is connected with a double slip which has the offending block. I've tried deleting the slip and re-adding, but get the same error as soon as I connect up the 'A' (blue connector) leg of the slip. I've tried deleting the paths (menu option under Tables-Blocks) and saving the panel, but no change. I looked at the xml to try and understand what is going on, but am not sure how to interpret the error message to get very far. The one thing I did see that looked odd to me (but may be perfectly ok) was the following block definition which seemed to have 2 entries with the same 'todir' and 'fromdir' (highlighted) ??? <block systemName="IB:AUTO:0007" length="0.0" curve="0"> ????? <systemName>IB:AUTO:0007</systemName> ????? <userName>CrossoverABSlipBlock</userName> ????? <permissive>no</permissive> ????? <occupancysensor>TOTI-Crossover-AB-Inner</occupancysensor> ????? <path todir="128" fromdir="64" block="IB:AUTO:0005" /> ????? <path todir="16" fromdir="32" block="IB:AUTO:0008" /> ????? <path todir="64" fromdir="128" block="IB:AUTO:0014" /> ????? <path todir="128" fromdir="64" block="IB:AUTO:0029" /> ??? </block> I must admit to being at a complete loss as to what is wrong! The full startup log is shown below. Any help gratefully received. Thanks Andy 2019-12-30 16:18:11,703 util.Log4JUtil??????????????????????? INFO? - * JMRI log ** [main] 2019-12-30 16:18:11,779 util.Log4JUtil??????????????????????? INFO? - This log is appended to file: /home/andy/.jmri/log/messages.log [main] 2019-12-30 16:18:11,779 util.Log4JUtil??????????????????????? INFO? - This log is stored in file: /home/andy/.jmri/log/session.log [main] 2019-12-30 16:18:11,808 apps.Apps???????????????????????????? INFO? - PanelPro version 4.18+R37ad3d0 starts under Java 11.0.5 on Linux amd64 v5.3.0-24-generic at Mon Dec 30 16:18:11 GMT 2019 [main] WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by jmri.util.swing.SliderSnap$Init (file:/home/andy/Applications/JMRI-4.18/jmri.jar) to method javax.swing.plaf.basic.BasicSliderUI.xPositionForValue(int) WARNING: Please consider reporting this to the maintainers of jmri.util.swing.SliderSnap$Init WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release 2019-12-30 16:18:14,077 apps.Apps???????????????????????????? INFO? - Starting with profile Thomas.3ed0e513 [main] 2019-12-30 16:18:14,174 node.NodeIdentity???????????????????? INFO? - Using jmri-psbmN5_LGhNiaaabnX4csV-3ed0e513 as the JMRI storage identity for profile id 3ed0e513 [AWT-EventQueue-0] 2019-12-30 16:18:14,480 eventtable.CbusEventTableDataModel??? INFO? - Starting MERG CBUS Event Table [main] 2019-12-30 16:18:14,579 net.NetworkDriverAdapter????????????? INFO? - Connection complete with localhost/127.0.0.1 [main] 2019-12-30 16:18:14,969 apps.PerformFileModel???????????????? INFO? - Loading file /home/andy/railwayShare/Users/MavinsHills/Documents/MavinsHills.jmri/MavinsHills-layoutPanel-19.xml [main] 2019-12-30 16:18:18,273 apps.PerformScriptModel?????????????? INFO? - Running script /home/andy/railwayShare/Users/MavinsHills/Documents/MavinsHills.jmri/jython/SetUnknowns.py [main] 2019-12-30 16:18:18,283 script.JmriScriptEngineManager??????? INFO? - ECMAScript ECMA - 262 Edition 5.1 is provided by Oracle Nashorn 11.0.5 [main] 2019-12-30 16:18:18,300 script.JmriScriptEngineManager??????? INFO? - python 2.7 is provided by jython 2.7.1 [main] 2019-12-30 16:18:21,205 util.FileUtilSupport????????????????? INFO? - File path program: is /home/andy/Applications/JMRI-4.18/ [main] 2019-12-30 16:18:21,206 util.FileUtilSupport????????????????? INFO? - File path preference: is /home/andy/railwayShare/Users/MavinsHills/Documents/MavinsHills.jmri/ [main] 2019-12-30 16:18:21,206 util.FileUtilSupport????????????????? INFO? - File path profile: is /home/andy/railwayShare/Users/MavinsHills/Documents/MavinsHills.jmri/ [main] 2019-12-30 16:18:21,206 util.FileUtilSupport????????????????? INFO? - File path settings: is /home/andy/.jmri/ [main] 2019-12-30 16:18:21,206 util.FileUtilSupport????????????????? INFO? - File path home: is /home/andy/ [main] 2019-12-30 16:18:21,227 util.FileUtilSupport????????????????? INFO? - File path scripts: is /home/andy/railwayShare/Users/MavinsHills/Documents/MavinsHills.jmri/jython/ [main] 2019-12-30 16:18:21,398 layoutEditor.BlockValueFile?????????? ERROR - block MainABlock is not occupied but has a saved value, not setting saved block values [main] 2019-12-30 16:18:21,760 server.WebServer????????????????????? INFO? - Starting Web Server on port 12080 [WebServer] 2019-12-30 16:18:21,948 PanelPro.PanelPro???????????????????? INFO? - Main initialization done [main] 2019-12-30 16:18:22,019 server.WebServer????????????????????? INFO? - Starting ZeroConfService _http._tcp.local for Web Server with properties {path=/, json=5.2.0} [WebServer] 2019-12-30 16:19:23,601 layoutEditor.ConnectivityUtil???????? ERROR - Connectivity error when searching turnouts in Block CrossoverABSlipBlock [AWT-EventQueue-0] 2019-12-30 16:19:23,603 layoutEditor.ConnectivityUtil???????? ERROR - Connectivity error when searching turnouts in Block CrossoverABSlipBlock [AWT-EventQueue-0] 2019-12-30 16:19:23,605 layoutEditor.ConnectivityUtil???????? ERROR - Connectivity error when searching turnouts in Block CrossoverABSlipBlock [AWT-EventQueue-0] 2019-12-30 16:19:23,606 layoutEditor.ConnectivityUtil???????? ERROR - Connectivity error when searching turnouts in Block CrossoverABSlipBlock [AWT-EventQueue-0] 2019-12-30 16:19:23,608 layoutEditor.ConnectivityUtil???????? ERROR - Connectivity error when searching turnouts in Block CrossoverABSlipBlock [AWT-EventQueue-0] 2019-12-30 16:19:23,610 layoutEditor.ConnectivityUtil???????? ERROR - Connectivity error when searching turnouts in Block CrossoverABSlipBlock [AWT-EventQueue-0] |
Thanks Dave.
Like you say, that method gets rid of the errors, and it shouldn't be a problem on the layout, as that section is relatively short anyway. I was keen to get rid of the errors as I've been trying to understand another problem with JMRI 'hanging' (I had to kill the process, and even reboot once) when I tried to add signal masts. There's obviously a memory leak somewhere with the java version I'm using as I could see the memory used cranking up (3, 4, 5, 6...GB), with one of the CPUs maxed out. Unfortunately I've not been able to re-create the scenario consistently. I did manage to add the signal masts with the aid of a java 8 version, although that failed when I tried to open the Tables.... There were no errors or messages logged to the console when this was going on, so I've not much to go on at the moment. I'll post more details if I manage to get some consistency on that problem. Andy PS I wasn't quite sure what you meant by "custom components". |
Connectivity error when searching turnouts in Block?This is caused by an?LayoutTrack object?that says that it's connected to a track segment¡ but the track segment doesn't?says?that it's connected to the LayoutTrack object. (The error should tell you what track segment and LayoutTrack object are not connected properly¡ but it doesn't. I can fix that. Another TODO in the Queue¡ ;-) |
George, There is a link to the panel xml file in the first post. The xml data looks good. ?T8 is connected to SL1 using type 24 (point D). ?And SL1 connectdname is T8. The problem is that getTurnoutList is looking at the wrong slip point. ?prevConnectType is 21 (point A). ?I have not determined where that is being set yet. Dave Sand ----- Original message ----- From: "George Warner via Groups.Io" <geowar1@...> Subject: Re: [jmriusers] "Connectivity error when searching turnouts" when load layout editor panel Date: Monday, December 30, 2019 1:55 PM If you want to send me your layout file I can track it down. (it may just be a bug¡ in which case I'll add fixing it to my queue¡ ;-) |
Found the bug! In LayoutSlip.getLayoutConnectivity() the DOUBLE_SLIP is limiting BD instead of BC:
This line (¡Ö1847): ? ? ? ? ? ? if ((type == DOUBLE_SLIP) && (lbB != lbD)) {
should be: ? ? ? ? ? ? if (lbB != lbD) {
And this line (¡Ö1863)
? ? ? ? ? ? if (lbB != lbC) {
Should be:? ? ? ? ? ? if ((type == DOUBLE_SLIP) && (lbB != lbC)) { I'll submit a PR asap¡ |
Hi George
I've tried JMRI.4.19.2+R2d508f8 and the Connectivity errors I was getting have now gone away, so that fix looks good! Great job. (These errors had come back again after making other panel changes, so I'm glad that they're no longer showing, as they could mask 'real' errors.) Thanks for the change - a good start for 2020! Andy |
to navigate to use esc to dismiss