Modify

Opened 15 years ago

Closed 15 years ago

#3998 closed defect (fixed)

slippymap: snapping to tile size cause runtimeerrors

Reported by: Bürste Owned by: Bürste
Priority: minor Milestone:
Component: Core imagery Version:
Keywords: Cc:

Description (last modified by stoecker)

If you click on snap to tile size (which is else not translated yet) causes an runtimeerror:

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2009-11-18 02:32:06
Last Changed Author: stoecker
Revision: 2468
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2009-11-17 17:33:31 +0100 (Tue, 17 Nov 2009)
Last Changed Rev: 2468

Memory Usage: 63 MB / 508 MB (14 MB allocated, but free)
Java version: 1.6.0_03

Plugins: AgPifoJeditgpxnearclickopenvisibleremotecontrolslippymaptageditortagging-preset-testerterracervalidatorwaydownloaderwmsplugin
Plugin AgPifoJ Version: 18593
Plugin editgpx Version: 18595
Plugin nearclick Version: 17705
Plugin openvisible Version: 17536
Plugin remotecontrol Version: 18678
Plugin slippymap Version: 18593
Plugin tageditor Version: 18522
Plugin tagging-preset-tester Version: 14015
Plugin terracer Version: 17874
Plugin validator Version: 18623
Plugin waydownloader Version: 18617
Plugin wmsplugin Version: 18671

java.lang.NullPointerException

at org.openstreetmap.josm.plugins.slippymap.SlippyMapLayer$7.actionPerformed(SlippyMapLayer.java:216)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
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)

Attachments (0)

Change History (9)

comment:1 by Bürste, 15 years ago

As far as I can see this function doesn't work at all, so I deactivate it in rev18727.

comment:2 by bastiK, 15 years ago

Owner: changed from framm to hansendc
Summary: snapping to tile size cause runtimeerrorsslippymap: snapping to tile size cause runtimeerrors

This was added recently and used to work.

It is an essential feature, so it should be fixed instead!

comment:3 by bastiK, 15 years ago

Btw. it works fine here:

Build-Date: 2009-11-21 01:14:34		
Revision: 2485
Is-Local-Build: true

Memory Usage: 61 MB / 396 MB (36 MB allocated, but free)
Java version: 1.6.0_14

Plugins: openstreetbugsslippymapvalidatorwmsplugin
Plugin openstreetbugs Version: 18595
Plugin slippymap Version: 18593
Plugin validator Version: 18623
Plugin wmsplugin Version: 18712

Maybe update the josm version?

comment:4 by anonymous, 15 years ago

Resolution: fixed
Status: newclosed

I've committed a fix for this and applied in osm SVN revision 18731.

If you want to work around this for now, turn on tile autoloading off autozooming and avoid snapping to tile size right after zoom level changes.

comment:5 by bastiK, 15 years ago

Resolution: fixed
Status: closedreopened

thx,
however the change by Bürste is not reverted yet.

(Also the binary needs to be committed (maybe later :) ))

comment:6 by hansendc, 15 years ago

Owner: changed from hansendc to Bürste
Status: reopenednew

I'll leave it to Bürste to undo his own patch.

comment:7 by Bürste, 15 years ago

@hansendc
Feel free to undo my changes if needed, but a user should not get such errors. So if you fix it it should be stable.

@bastiK
I didn't get the function to run so ... what is it doing that it is essential?

I never wanted to block further develop, but on the next build it should be stable or not part of it, I think.

comment:8 by hansendc, 15 years ago

@Bürste . I created a bug, and I fixed it. You removed a feature and *you* need to fix it, please.

comment:9 by stoecker, 15 years ago

Description: modified (diff)
Resolution: fixed
Status: newclosed

In [o18784].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Bürste.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.