Closed LTrain closed 3 years ago
Looks to be windows related - I was able to run it on a mac.
@LTrain
By any chance are you using OpenJFX rather than the Java FX that is built in to JDK8 and Amazon Corretto?
I did a fresh clone of virtual_robot, and it runs fine with Corretto. Then I switched to Java 11 and added a library for OpenJFX 11. That resulted in the same error you're seeing.
Not sure I’ll check. I installed it to a cleaner machine and it worked fine. This is on a laptop I need to nuke and pave anyway. I’ll try that now
Get Outlook for iOShttps://aka.ms/o0ukef
From: jkenney2 notifications@github.com Sent: Thursday, December 10, 2020 1:02:21 PM To: Beta8397/virtual_robot virtual_robot@noreply.github.com Cc: LTrain leonp_ms@hotmail.com; Mention mention@noreply.github.com Subject: Re: [Beta8397/virtual_robot] Application immediately crashes (#71)
By any chance are you using OpenJFX rather than the Java FX that is built in to JDK8 and Amazon Corretto?
I did a fresh clone of virtual_robot, and it runs fine with Corretto. Then I switched to Java 11 and added a library for OpenJFX 11. That resulted in the same error you're seeing.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FBeta8397%2Fvirtual_robot%2Fissues%2F71%23issuecomment-742692757&data=04%7C01%7C%7C72e20fa6e42a4feacdb908d89d35be44%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637432201438638665%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=PCYE4TSjOVHKFADxeKZ1Ffrib3d7qJtZs0WTMw4MK24%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAAF3D3LQUMAZOAFVQ3NJXC3SUEEK3ANCNFSM4UVJ5H6A&data=04%7C01%7C%7C72e20fa6e42a4feacdb908d89d35be44%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637432201438648620%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=8FO%2FOzSuM%2FrH0%2B%2FOCbZh4lpGfK4k6aNMZwY1DvfG690%3D&reserved=0.
If the issue on your laptop was related to using OpenJFX, what you'd probably need to do to fix it is to add "VM Options" in your Run Configuration, as is explained here in the "JavaFX and IntelliJ" tab. I'll close this issue; let me know if any more problems.
That resolved the issue thanks for the fast support.
From: jkenney2 notifications@github.com Sent: Friday, December 11, 2020 10:33 AM To: Beta8397/virtual_robot virtual_robot@noreply.github.com Cc: LTrain leonp_ms@hotmail.com; Mention mention@noreply.github.com Subject: Re: [Beta8397/virtual_robot] Application immediately crashes (#71)
If the issue on your laptop was related to using OpenJFX, what you'd probably need to do to fix it is to add "VM Options" in your Run Configuration, as is explained herehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fopenjfx.io%2Fopenjfx-docs%2F&data=04%7C01%7C%7C4fc13f3a10824f2f854708d89dea1a53%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637432976093948674%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=GqadPnkrqW9GzAjLqkGcFwSv4WGURGSQI9674IyUBRU%3D&reserved=0 in the "JavaFX and IntelliJ" tab. I'll close this issue; let me know if any more problems.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FBeta8397%2Fvirtual_robot%2Fissues%2F71%23issuecomment-743263243&data=04%7C01%7C%7C4fc13f3a10824f2f854708d89dea1a53%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637432976093958629%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=P%2F8G00uJYwn1XeeHY8eF%2BECAtVKrB98mi9OT7BQtpoM%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAAF3D3P7JQYOKPDF2PNJVZDSUI3ULANCNFSM4UVJ5H6A&data=04%7C01%7C%7C4fc13f3a10824f2f854708d89dea1a53%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637432976093958629%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=vIgpYxGk7WzAxlM3nRl%2FpmeMoMA6Qyv7sInt9D%2Fbd4E%3D&reserved=0.
The application immediately crashes after running it. This is a fresh install of java and intellij. Any thoughts on this error?
Exception in Application start method Exception in Application stop method java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389) at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:873) Caused by: java.lang.RuntimeException: Exception in Application start method at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917) at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$1(LauncherImpl.java:182) at java.lang.Thread.run(Thread.java:748) Caused by: javafx.fxml.LoadException: /C:/Users/leonp/Downloads/virtual_robot-master/virtual_robot-master/out/production/Controller/virtual_robot/controller/virtual_robot.fxml
Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71) at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275) at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2566) ... 12 more Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:659) at java.util.ArrayList.get(ArrayList.java:435) at com.sun.javafx.collections.ObservableListWrapper.get(ObservableListWrapper.java:89) at virtual_robot.controller.VirtualRobotController.setupCbxOpModes(VirtualRobotController.java:372) at virtual_robot.controller.VirtualRobotController.initialize(VirtualRobotController.java:135) ... 22 more Exception running application virtual_robot.controller.VirtualRobotApplication
Process finished with exit code 1