Keyboard Shortcuts
Likes
Search
Locked Fatal crash - JMRI V 4.16
Since I loaded version 4.16 I repeatedly get an unrecoverable error: an extract from the JMRI session.log, when I first encountered it in July on my Raspberry Pi, shows:- ? “2019-07-20 20:16:23,827 ptionhandler.UncaughtExceptionHandler ERROR - Uncaught Exception caught by jmri.util.exceptionhandler.UncaughtExceptionHandler [AWT-EventQueue-0] java.lang.Error: Cannot call invokeAndWait from the event dispatcher thread” ? This error occurs both on my Laptop and on my Raspberry Pi and happens randomly. I also tried version 4.17.5 on the Laptop - it has a slight variation of the same problem (only occurs when I ‘Quit’ PanelPro - I ran a script for 30mins without fault). I am not running Dispatcher !! Is this a known problem? I can provide more details if required.It does not occur on Laptop nor R.Pi with earlier version (4.14). Laptop: Windows 10, Java1.8.0-231, MERG interface, via USB. Raspberry Pi: MERG interface on CANPiCap. John |
John,
WIthout more to go upon, it will be difficult to investigate the issue you are seeing. The error message you provide points out that there is some basic flaw in play, and that flaw could be caused by your script or by something in JMRI's basic functionality, or within the libraries you are working with. It _might_ help JMRI's developers to debug your problem if you provide the remainder of the error message. It can be many lines long, and sometimes something in that long list of messages can help focus the debugging process. Other times, this type of error message leaves very few bread crumbs to follow. What does your script do, in general? What JMRI features does it attempt to exercise? Perhaps you will need to provide the JMRI developers with a copy of any scripts you are running, and perhaps even the panel file(s) you use. If you installed JMRI 4.17.4 over the top of a JMRI 4.16 install (or some previous version), it may be that you have some old library files hanging around. A "clean" install (meaning to an entirely new or entirely empty "program" directory) can sometimes resolve this kind of problem. Regards, Billybob |
Hi Billybob.
Thanks for your response.? Today I uninstalled JMRI using the windows uninstaller, deleted the JMRI folder in Program Files (x86), renamed the “c:\Users\name\JMRI” folder (to hide my setup) and then re-installed JMRI v 4.17.5. I had changed the File locations path to my folder and was configuring my setup for my Roster when the Fatal error occurred. So still a problem. I haven't provide script nor panel files as the crash doesn't seem to be connected with either. Hope that helps to identify the problem. John |
John,
Your latest info doesn't help _me_ identify the problem, but it might help someone else. Did this misbehavior start coincident with installation of 4.16, or did it work fine with 4.16 for a while and then begin its random occurence? If the later, then the only other thing I can think of is that perhaps a JAVA update has caused the problem. But it is a far-fetched idea... Regards, Billybob |
Billybob,
toggle quoted message
Show quoted text
The problem appears to be related to PR #6831 at 4.15.6/4/16. Dave Sand ----- Original message -----
From: billybob experimenter <jawhugrps@...> To: [email protected] Subject: Re: [jmriusers] Fatal crash - JMRI V 4.16 Date: Thursday, November 07, 2019 3:46 PM John, Your latest info doesn't help _me_ identify the problem, but it might help someone else. Did this misbehavior start coincident with installation of 4.16, or did it work fine with 4.16 for a while and then begin its random occurence? If the later, then the only other thing I can think of is that perhaps a JAVA update has caused the problem. But it is a far-fetched idea... Regards, Billybob |
Billybob,
toggle quoted message
Show quoted text
Based on my research, #6831 introduced the 4.16 (and later) problem while trying to fix a different issue. Dave Sand ----- Original message -----
From: billybob experimenter <jawhugrps@...> To: [email protected] Subject: Re: [jmriusers] Fatal crash - JMRI V 4.16 Date: Thursday, November 07, 2019 6:58 PM Dave, Unfortunately, John reported that the problem recurred in 4.17.5. So his problem would seem to be different from P/R #6831, or the issue in #6831 has re-surfaced. Regards, Billybob |
John, The main problem is that other people are not seeing the error. ?I have tried to re-create it but I don't get the error. What did you do in the 38 seconds between the completion of PanelPro startup and crash as indicated in the system console log that you uploaded? Try the following steps.
At this point, the system console should show a "No ... roster.xml file to backup". ?This is where the crash occurred in the session.log file that you uploaded. Dave Sand ----- Original message ----- From: "John Wilson via Groups.Io" <jwgreyhat@...> Subject: Re: [jmriusers] Fatal crash - JMRI V 4.16 Date: Friday, November 08, 2019 3:27 AM Hi Dave Not sure what I do now. I did find the #6831 refered to for 4.15, but couldn't make any sense of it. Presume this an issue outside my control? John |
Dave,
In that 38secs I set up the connection to my layout (as MERG using COM3) and started to set the path for my Roster. I don't think the crash occurred in response to any key press. I will do the things you have suggested. It will be a day or three before I get back with results as my busy weekend doesn't seem to involve trains at all. Incidently I have noticed that the error message refers to the dispatcher which I am not using. I recall that perhaps two years ago I did have a play with dispatcher, but could get on with it and removed everything to do with it - a process which was hard and frustrating. Is there a chance that there is a remnant from this hidden somwhere other than in Users\John\JMRI that is lurking about? Just remembered about this and thought I should mention it. John? |
Dave, ? Then I set the Roster default path to my folder, saved and restarted. I ran PanelPro a few times each one crashing at some point. Then, on a whim, I examined the roster.xml file and found a couple of entries with “dispatcher” in them; also a couple of the xml files in the ‘roster’ folder had ‘dispatcher’ in them. So I renamed the ‘roster.xml’ file and the ‘roster’ folder, started PanelPro and re-created a couple of roster entries from scratch. I was able to control a couple of DMU’s from the roster. I closed and re-opened PanelPro checked the roster still looked correct. Note that it had been created in the same folder as my Panel and script file on my F: drive. Opened Message log; opened my panel - just went to re-size the panel (I was moving the cursor) and CRASH - the fatal error occurred. I have put the session log, called "session-log 13Nov.log" in the folder "Fatal error in 4-16". Note that I have called it a fatal error because clicking the button in the dialogue box which appears to notify me of the error closes JMRI immediately. Moreover, when I then try to run PanelPro again I get a message to say JMRI is already running - but here is no sign of it in windows Task Manager, not even a mention of Java. And, when I try to rename the session log I get a message saying its in use! ? Note that prior to these checks I had loaded my panel and run my script successfully for a few train operations: this time the fatal error only occurred when I clicked the Quit button. (I haven’t kept the session log). |
John, Could you upload your panel xml file and script(s)? This failure is essentially the same but in a different place within JMRI. Dave Sand ----- Original message ----- From: "John Wilson via Groups.Io" <jwgreyhat@...> Subject: Re: [jmriusers] Fatal crash - JMRI V 4.16 Date: Wednesday, November 13, 2019 12:55 PM Dave, ? Then I set the Roster default path to my folder, saved and restarted. I ran PanelPro a few times each one crashing at some point. Then, on a whim, I examined the roster.xml file and found a couple of entries with “dispatcher” in them; also a couple of the xml files in the ‘roster’ folder had ‘dispatcher’ in them. So I renamed the ‘roster.xml’ file and the ‘roster’ folder, started PanelPro and re-created a couple of roster entries from scratch. I was able to control a couple of DMU’s from the roster. I closed and re-opened PanelPro checked the roster still looked correct. Note that it had been created in the same folder as my Panel and script file on my F: drive. Opened Message log; opened my panel - just went to re-size the panel (I was moving the cursor) and CRASH - the fatal error occurred. I have put the session log, called "session-log 13Nov.log" in the folder "Fatal error in 4-16". Note that I have called it a fatal error because clicking the button in the dialogue box which appears to notify me of the error closes JMRI immediately. Moreover, when I then try to run PanelPro again I get a message to say JMRI is already running - but here is no sign of it in windows Task Manager, not even a mention of Java. And, when I try to rename the session log I get a message saying its in use! ? Note that prior to these checks I had loaded my panel and run my script successfully for a few train operations: this time the fatal error only occurred when I clicked the Quit button. (I haven’t kept the session log). |
OK Dave, I have uploaded those files (same folder). The script "... 5-6-3a" is the one I most recently ran. I don't use 'self' in the Class name, nor throughout - I know this is frowned on, but it hasn't caused me problems (perhaps up to now....?). However, I have included a slightly earlier version as well ("..... 5-6-3 self") where I changed all Class references to 'self' - but it didn't prevent the fatal error.
Do note that the error often occurs before I load my script - quite often when I open the Script Output Panel. Regards John |
John, I still cannot re-create the problem. ?Two more ideas: Change the MERG connection to Simulated. ?Maybe I don't see the error since I am running in simulated environment. Do a clean JMRI install. ?Use the Windows Control Panel to delete JMRI. ?Remove any residual JMRI directory at C:\Program Files (x86). ?Install a fresh download of 4.17.5. Dave Sand ----- Original message ----- From: "John Wilson via Groups.Io" <jwgreyhat@...> Subject: Re: [jmriusers] Fatal crash - JMRI V 4.16 Date: Wednesday, November 13, 2019 3:34 PM OK Dave, I have uploaded those files (same folder). The script "... 5-6-3a" is the one I most recently ran. I don't use 'self' in the Class name, nor throughout - I know this is frowned on, but it hasn't caused me problems (perhaps up to now....?). However, I have included a slightly earlier version as well ("..... 5-6-3 self") where I changed all Class references to 'self' - but it didn't prevent the fatal error. Do note that the error often occurs before I load my script - quite often when I open the Script Output Panel. Regards John |
OK Dave, I have some success at last and running my layout. And no errors in a 25minute automatic running session, nor when I Quit PanelPro. I did as you suggested, namely uninstalled JMRI and re-installed. Before I re-installed I also uninstalled and removed Java, downloaded again and re-installed (off-line version). I used the 64-bit version - there is a possibility that the previous version had been 32-bit: it had been originally installed when the laptop was Windows 8, and I am now running Windows 10 as 64-bit, although I had kept Java up to date.
I shall do some more tests setting file locations and Roster locations, but not until next week perhaps Wednesday. Is there any recommendations you would make? Should I try setting the file locations to the folders I have? Or should I create a new folder and put in it the panel and scripts I want? (And set the file location paths).These files have quite a long path name i.e F:\evrybody\Johns\Railway\MR-JMRI and the F: is a virtual ?hard drive on C:.
Now I can concentrate on sorting my script which is running on a Raspberry Pi and throwing keyerrors when accessing a dictionary. But I am on the case and progressing with that (I know my data-types are rather mixed up). John |
John, For now, I think you can use your current folder setup. If you run into other issues, you may want to rename C:\Users\John\JMRI and start with new profiles. ? Your roster, panels and scripts should be OK. ? Dave Sand ----- Original message ----- From: "John Wilson via Groups.Io" <jwgreyhat@...> Subject: Re: [jmriusers] Fatal crash - JMRI V 4.16 Date: Thursday, November 14, 2019 11:02 AM OK Dave, I have some success at last and running my layout. And no errors in a 25minute automatic running session, nor when I Quit PanelPro. I did as you suggested, namely uninstalled JMRI and re-installed. Before I re-installed I also uninstalled and removed Java, downloaded again and re-installed (off-line version). I used the 64-bit version - there is a possibility that the previous version had been 32-bit: it had been originally installed when the laptop was Windows 8, and I am now running Windows 10 as 64-bit, although I had kept Java up to date. So the main difference, as I type this, is that I have created a new Roster and run everything from the installation defaults - i.e. I haven’t set up my file locations paths for Panels nor for scripts, but called these up using the files dialogue boxes. I shall do some more tests setting file locations and Roster locations, but not until next week perhaps Wednesday. Is there any recommendations you would make? Should I try setting the file locations to the folders I have? Or should I create a new folder and put in it the panel and scripts I want? (And set the file location paths).These files have quite a long path name i.e F:\evrybody\Johns\Railway\MR-JMRI and the F: is a virtual ?hard drive on C:. Thanks very much for all your help so far. Now I can concentrate on sorting my script which is running on a Raspberry Pi and throwing keyerrors when accessing a dictionary. But I am on the case and progressing with that (I know my data-types are rather mixed up). John |
Dave, I have had some success and some failures and may have found a way to repeat the error. I nearly always open the Debug (Display) Message Log when I run the layout and I think this is triggering the fatal error. I successfully operated the layout several times without the Debug Message log panel open. Then I started the layout (the script runs it automatically) and after a few operations opened the Debug Message Log. The layout continued to run correctly so after a couple of operations I clicked PanelPro 'Quit'? button- voila - instant Fatal Error. Note that most oddly, the layout continued to operate correctly under 'script control while the Error Dialogue box was displayed - that is the trains started and stopped correctly. As usual, clicking the 'OK ' in the error dialogue closed PanelPro. I have put the JMRI Session Log ("") in the usual folder ("Fatal error in 4-16").
John |
Hi John,
I see that the error in your 4.17.5 install as 2019-11-22 20:57:09,346 eventtable.CbusEventTableAction? ? ? ?INFO? - Saving event xml file [AWT-EventQueue-0]As per my MERG forum post discussing this 11th November, As per my MERG forum post discussing this 11th November, Ive set the CbusEventTableShutdownTask to run on a seperate thread from version 4.17.6Does updating to 4.17.6 resolve the issue? Thanks, Steve. |
开云体育Hi Steve, I havent had a chance to check yet, not today either. Possibly tomorrow. I have a? Suspision it might be associated with having the Debug message log panel open. More test to do... John Sent from Samsung tablet -------- Original message -------- From: "steve young via Groups.Io" <icklesteve@...> Date: 23/11/2019 12:34 (GMT+00:00) To: [email protected] Subject: Re: [jmriusers] Fatal crash - JMRI V 4.16 Hi John, I see that the error in your 4.17.5 install as 2019-11-22 20:57:09,346 eventtable.CbusEventTableAction? ? ? ?INFO? - Saving event xml file [AWT-EventQueue-0]As per my MERG forum post discussing this 11th November, As per my MERG forum post discussing this 11th November, Ive set the CbusEventTableShutdownTask to run on a seperate thread from version 4.17.6Does updating to 4.17.6 resolve the issue? Thanks, Steve. |