KillBait/AutoDrive_Course_Editor

Crash Report

Closed this issue · 0 comments

Good day,
Not sure if it is the same issue or different, but it is hang as well when for example I click on the icon to "create a curve" then click on one node (like to start the curve), but want to click on the icon to "delete a node" because I realize I select the wrong action/icon (without to deselect the node) course editor hand and can't recover.
This is the second time it happen to me but with different action/icon but always the same way : forgot to deselect the node before to click on the new action/icon.
Using JDK 17 - course editor 0.60.2 - Win 11

C:\Users\Yannick\Documents\My Games\FarmingSimulator2022\AutoDrive Course Editor>java.exe -jar -Xms1024m -Xmx1024m .\AutoDriveEditor.Jar
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
[INFO ] 2022-01-06 23:00:16.812 [AWT-EventQueue-0] AutoDriveEditor - Starting AutoDrive Editor v0.60.2 .....
[INFO ] 2022-01-06 23:00:16.813 [AWT-EventQueue-0] AutoDriveEditor - Java Runtime Version 17
[INFO ] 2022-01-06 23:00:16.817 [AWT-EventQueue-0] AutoDriveEditor - 'AutoDriveEditor_en_US.properties' loaded
[INFO ] 2022-01-06 23:00:16.979 [AWT-EventQueue-0] AutoDriveEditor - Initializing CopyPaste Manager
[INFO ] 2022-01-06 23:00:16.979 [ConnectionDraw Thread] AutoDriveEditor - Starting ConnectionDraw Thread
[INFO ] 2022-01-06 23:00:16.979 [NodeDraw Thread] AutoDriveEditor - Starting NodeDraw thread
[INFO ] 2022-01-06 23:00:17.145 [AWT-EventQueue-0] AutoDriveEditor - Connecting to GitHub for update check[INFO ] 2022-01-06 23:00:17.914 [AWT-EventQueue-0] AutoDriveEditor - No update available... Remote version 0.60.2 matches current version
[INFO ] 2022-01-06 23:00:22.246 [AWT-EventQueue-0] AutoDriveEditor - ActionCommand: Load Config
[INFO ] 2022-01-06 23:00:30.857 [AWT-EventQueue-0] AutoDriveEditor - loadFile: C:\Users\Yannick\Documents\My Games\FarmingSimulator2022\AutoDrive Course Editor\Elmatador Yann\AutoDrive_config.xml
[INFO ] 2022-01-06 23:00:30.876 [AWT-EventQueue-0] AutoDriveEditor - Root element :AutoDrive
[INFO ] 2022-01-06 23:00:30.876 [AWT-EventQueue-0] AutoDriveEditor - FS22 Config detected
[INFO ] 2022-01-06 23:00:30.877 [AWT-EventQueue-0] AutoDriveEditor - Config was saved by AutoDrive '2.0.0.2'
[INFO ] 2022-01-06 23:00:30.879 [AWT-EventQueue-0] AutoDriveEditor - Current Element :waypoints
[INFO ] 2022-01-06 23:00:31.637 [AWT-EventQueue-0] AutoDriveEditor - Loaded config for map : Elm_Creek_Edit_By_Stevie_
[INFO ] 2022-01-06 23:00:31.637 [AWT-EventQueue-0] AutoDriveEditor - Config load complete.
[INFO ] 2022-01-06 23:00:31.639 [AWT-EventQueue-0] AutoDriveEditor - failed to load map image from JAR .. trying alternate locations
[INFO ] 2022-01-06 23:00:31.693 [AWT-EventQueue-0] AutoDriveEditor - Loaded mapImage from /C:/Users/Yannick/Documents/My Games/FarmingSimulator2022/AutoDrive Course Editor/mapImages/Elm_Creek_Edit_By_Stevie_.png
[INFO ] 2022-01-06 23:00:31.693 [AWT-EventQueue-0] AutoDriveEditor - Selected Image size is 2048 x 2048
[INFO ] 2022-01-06 23:00:31.705 [AWT-EventQueue-0] AutoDriveEditor - HeightMap path = C:\Users\Yannick\Documents\My Games\FarmingSimulator2022\AutoDrive Course Editor\Elmatador Yann\terrain.heightmap.png
[INFO ] 2022-01-06 23:00:33.254 [AWT-EventQueue-0] AutoDriveEditor - Failed to load HeightMap
javax.imageio.IIOException: Can't read input file!
at java.desktop/javax.imageio.ImageIO.read(ImageIO.java:1310)
at AutoDriveEditor.MapPanel.MapImage.loadHeightMap(MapImage.java:165)
at AutoDriveEditor.Listeners.MenuListener.actionPerformed(MenuListener.java:56)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2313)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
at java.desktop/javax.swing.AbstractButton.doClick(AbstractButton.java:374)
at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1028)
at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1072)
at java.desktop/java.awt.Component.processMouseEvent(Component.java:6626)
at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3389)
at java.desktop/java.awt.Component.processEvent(Component.java:6391)
at java.desktop/java.awt.Container.processEvent(Container.java:2266)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5001)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4575)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:746)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:744)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:743)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
[INFO ] 2022-01-06 23:01:42.245 [AWT-EventQueue-0] AutoDriveEditor - ActionCommand: Remove Nodes
[INFO ] 2022-01-06 23:02:00.147 [AWT-EventQueue-0] AutoDriveEditor - Rectangle started at 899/433
[INFO ] 2022-01-06 23:02:01.730 [AWT-EventQueue-0] AutoDriveEditor - Rectangle ended at 1053/108
[INFO ] 2022-01-06 23:02:01.732 [AWT-EventQueue-0] AutoDriveEditor - Removing all nodes in area
[INFO ] 2022-01-06 23:02:02.417 [AWT-EventQueue-0] AutoDriveEditor - Rectangle started at 1047/160
[INFO ] 2022-01-06 23:02:04.350 [AWT-EventQueue-0] AutoDriveEditor - Rectangle ended at 1565/343
[INFO ] 2022-01-06 23:02:04.353 [AWT-EventQueue-0] AutoDriveEditor - Removing all nodes in area
[INFO ] 2022-01-06 23:02:16.775 [AWT-EventQueue-0] AutoDriveEditor - Rectangle started at 941/659
...
...
[INFO ] 2022-01-06 23:52:07.738 [AWT-EventQueue-0] AutoDriveEditor - ActionCommand: Remove Destinations
[INFO ] 2022-01-06 23:52:22.299 [AWT-EventQueue-0] AutoDriveEditor - ActionCommand: Remove Nodes
[INFO ] 2022-01-06 23:52:25.219 [AWT-EventQueue-0] AutoDriveEditor - Rectangle started at 1138/355
[INFO ] 2022-01-06 23:52:28.766 [AWT-EventQueue-0] AutoDriveEditor - Rectangle ended at 489/564
[INFO ] 2022-01-06 23:52:28.766 [AWT-EventQueue-0] AutoDriveEditor - Removing all nodes in area
[INFO ] 2022-01-06 23:52:36.598 [AWT-EventQueue-0] AutoDriveEditor - ActionCommand: Create Secondary Node
[INFO ] 2022-01-06 23:52:49.944 [AWT-EventQueue-0] AutoDriveEditor - ActionCommand: Connect Nodes
[INFO ] 2022-01-06 23:52:59.067 [AWT-EventQueue-0] AutoDriveEditor - ActionCommand: Quadratic Bezier
[INFO ] 2022-01-06 23:53:05.207 [AWT-EventQueue-0] AutoDriveEditor - ActionCommand: Confirm Curve
[INFO ] 2022-01-06 23:53:13.816 [NodeDraw Thread] GlobalExceptionHandler - Cannot invoke "java.awt.Point.getX()" because the return value of "AutoDriveEditor.MapPanel.MapPanel.getMousePosition()" is null

java.lang.NullPointerException: Cannot invoke "java.awt.Point.getX()" because the return value of "AutoDriveEditor.MapPanel.MapPanel.getMousePosition()" is null
at AutoDriveEditor.MapPanel.MapPanel$NodeDrawThread.run(MapPanel.java:339) ~[AutoDriveEditor.jar:?]
at java.lang.Thread.run(Thread.java:833) [?:?]

image
(The arrow on the screen shot, if from the course editor, i didn't add anything)
Sorry if this is the same as post above.

Thanks
Yann

Originally posted by @yann-mrt in #5 (comment)