maptool-1.4.0.5.jar Drawing crash

Confirmed bugs should get a single post here. Check the READ ME FIRST sticky thread for the format.

Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice, MapTool BugReport Manager

Forum rules
Posts that do not conform to the READ ME FIRST sticky thread are subject to deletion.
Post Reply
Demiosis
Kobold
Posts: 1
Joined: Sun Nov 01, 2015 10:27 pm

maptool-1.4.0.5.jar Drawing crash

Post by Demiosis »

Subject: Crashing the program at will when drawing.

The link to the original discussion: None as specific as this from what i saw

A summary of the problem:
Step to reproduce:

Step1: Choose Draw freehand lines. option

Step2: hold left click and draw a shape

Step3: at ANY MOMENT in step 2 right click.

Step4: Crash log down there, also this corrupt the campaign and make it impossible to load with the error :java.lang.NullPointerException Cannot determine file format; not loaded.

A suggested possible solution: don't know

Any supporting attachments: Crash log:

java.lang.NullPointerException
at sun.dc.DuctusRenderingEngine.createStrokedShape(Unknown Source)
at java.awt.BasicStroke.createStrokedShape(Unknown Source)
at net.rptools.maptool.model.drawing.LineSegment.createLineArea(LineSegment.java:66)
at net.rptools.maptool.model.drawing.LineSegment.getArea(LineSegment.java:50)
at net.rptools.maptool.model.drawing.LineSegment.draw(LineSegment.java:76)
at net.rptools.maptool.model.drawing.AbstractDrawing.draw(AbstractDrawing.java:73)
at net.rptools.maptool.client.tool.drawing.AbstractDrawingTool.paintTransformed(AbstractDrawingTool.java:126)
at net.rptools.maptool.client.tool.drawing.AbstractLineTool.paintOverlay(AbstractLineTool.java:125)
at net.rptools.maptool.client.ui.zone.ZoneRenderer.renderZone(ZoneRenderer.java:1191)
at net.rptools.maptool.client.ui.zone.ZoneRenderer.paintComponent(ZoneRenderer.java:705)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintToOffscreen(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager$4.run(Unknown Source)
at javax.swing.RepaintManager$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.prePaintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.access$1200(Unknown Source)
at javax.swing.RepaintManager$ProcessingRunnable.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at net.rptools.maptool.client.swing.MapToolEventQueue.dispatchEvent(MapToolEventQueue.java:36)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

User avatar
Full Bleed
Demigod
Posts: 4736
Joined: Sun Feb 25, 2007 11:53 am
Location: FL

Re: maptool-1.4.0.5.jar Drawing crash

Post by Full Bleed »

This appears to be a known issue related to Java 8:

https://forums.rptools.net/viewtopic.ph ... ne#p267027

I have not seen a solution other than to say, "Don't try to drag or reposition the map (right-click) while using the drawing tools." :/

As this is a show-stopper, if this can't be fixed it would be nice if the right-click was disabled during draws so it didn't implode a session.
Last edited by Full Bleed on Sat Apr 06, 2019 2:38 pm, edited 1 time in total.
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."

User avatar
aliasmask
RPTools Team
Posts: 9024
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: maptool-1.4.0.5.jar Drawing crash

Post by aliasmask »

Confirmed Bug with version 1.4.1.8 as well.

You can get out of it by closing the error window each time it shows up and open the draw explorer and delete the drawing that says Points -1. Works better if you use keyboard to close error window (space bar). You right click the bad drawing in Draw Explorer and select delete, then confirm.

I thought I've seen a post on this before and I'm wondering if it has already been addressed or at least logged. edit: Thanks Full Bleed.

Phergus
Deity
Posts: 7132
Joined: Fri May 12, 2006 8:56 pm
Location: Middle of Nowhere, NM
Contact:

Re: maptool-1.4.0.5.jar Drawing crash

Post by Phergus »

Note that this doesn't happen under Java 10. (Maybe Java 9 but I've already moved on.)

User avatar
Full Bleed
Demigod
Posts: 4736
Joined: Sun Feb 25, 2007 11:53 am
Location: FL

Re: maptool-1.4.0.5.jar Drawing crash

Post by Full Bleed »

Phergus wrote:
Fri Nov 23, 2018 9:19 am
Note that this doesn't happen under Java 10. (Maybe Java 9 but I've already moved on.)
Any insight on when 8 will no longer be the default Java.com release (i.e. when it will be the version most MT users will actually be using)?

And do you know of any issues with 10 and 1.4+?
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."

Phergus
Deity
Posts: 7132
Joined: Fri May 12, 2006 8:56 pm
Location: Middle of Nowhere, NM
Contact:

Re: maptool-1.4.0.5.jar Drawing crash

Post by Phergus »

I've been using 1.4.0.5 extensively under Java 10 since it came out. I test periodically with 1.4.1.8 and Nerps releases. So far no issues but of course Oracle has already removed Java 10 from general distribution and has moved onto Java 11 which no longer includes JavaFX.

I believe the current plan is to move MT to Java 10 while we figure out how to deal with the mess that Oracle is making.

taustinoc
Dragon
Posts: 516
Joined: Mon Aug 03, 2015 6:30 pm

Re: maptool-1.4.0.5.jar Drawing crash

Post by taustinoc »

Didn't Amazon just release their own Java version with promises of long term support because of all the foolishness from Oracle?

Phergus
Deity
Posts: 7132
Joined: Fri May 12, 2006 8:56 pm
Location: Middle of Nowhere, NM
Contact:

Re: maptool-1.4.0.5.jar Drawing crash

Post by Phergus »

So they did. Very interesting.

User avatar
Jagged
Great Wyrm
Posts: 1306
Joined: Mon Sep 15, 2008 9:27 am
Location: Bristol, UK

Re: maptool-1.4.0.5.jar Drawing crash

Post by Jagged »

I posted a fix for this back in Feb, so should be there for 1.4.1.9 whenever that gets released.

Post Reply

Return to “Bug Reports”