[13b59] Recurrent exception with tokens -getVisibleArea-

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

Post Reply
User avatar
DJuego
Cave Troll
Posts: 84
Joined: Fri Jun 01, 2007 1:54 pm

[13b59] Recurrent exception with tokens -getVisibleArea-

Post by DJuego »

Windows XP SP 3
Maptool 1.3b59 (Spanish)
Java: Version 6 Update 15

Processor: 3.4 Ghz Northwood
Video:ASUS 9800XT
RAM: 2 GB

The campaign file was created with Maptool 1.3b56.
The campaign file was opened with Maptool 1.3b59.

When the mouse pointer is over the northernmost token ¡bang!

Code: Select all

java.lang.NullPointerException
	at net.rptools.maptool.client.ui.zone.ZoneView.getVisibleArea(ZoneView.java:224)
	at net.rptools.maptool.client.ui.zone.ZoneRenderer.renderVisionOverlay(ZoneRenderer.java:1023)
	at net.rptools.maptool.client.ui.zone.ZoneRenderer.renderGMVisionOverlay(ZoneRenderer.java:1017)
	at net.rptools.maptool.client.ui.zone.ZoneRenderer.renderZone(ZoneRenderer.java:773)
	at net.rptools.maptool.client.ui.zone.ZoneRenderer.paintComponent(ZoneRenderer.java:601)
	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.BufferStrategyPaintManager.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.paintDirtyRegions(Unknown Source)
	at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
	at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
	at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at net.rptools.maptool.client.swing.MapToolEventQueue.dispatchEvent(MapToolEventQueue.java:24)
	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)
The token was added (Dragged) with PC option.

If you add the same token with NPC option, and after that, you change to PC option NO PROBLEM. Test it!

The sample campaign download link:

Code: Select all

http://rapidshare.com/files/285859571/Iniciatica_000-Error.cmpgn
Perhaps It is related with this bug:

http://forums.rptools.net/viewtopic.php?f=21&t=8938

DJuego

gramathy
Kobold
Posts: 9
Joined: Mon May 25, 2009 6:03 am

Re: [13b59] Recurrent exception with tokens -getVisibleArea-

Post by gramathy »

This is related to the bug here. I suspected it when the last call on your trace matched the other one exactly - What I think was happening was his assigned vision type was an invalid property (old, or something) and so maptool was trying to get a nonexistent vision type as above. Having tried it on b59 I can confirm that re-choosing "conic vision" in your campaign as the vision type (though the right-click menu in Map Explorer's token list) gets rid of the exception, even without adding a new token as you did (which also works, but I'm not sure why). My own dev version which fixes the bug mentioned previously had no problem at all with the mouseover to begin with.

I think the main issue was your token had an old, invalid sight option that would break until its options were refreshed, which wasn't happening until a valid option was manually assigned (or somehow autoassigned when created as an NPC but not as a PC?) in b59 and previous. The next update should auto-default to a valid option if it tries to pass a bad one.

I don't know why creating it differently was fixing it, though. I'd have to go deeper into the token creation code to figure that one out.

I suspect there was a point where the case sensitivity change broke old options, which brought this bug to light.

User avatar
trevor
Codeum Arcanum (RPTools Founder)
Posts: 11311
Joined: Mon Jan 09, 2006 4:16 pm
Location: Austin, Tx
Contact:

Re: [13b59] Recurrent exception with tokens -getVisibleArea-

Post by trevor »

This is fixed in 1.3b60 (user contributed patch)
Dreaming of a 1.3 release

Post Reply

Return to “Resolved”