Opened 4 years ago

Closed 4 years ago

#12991 closed defect (fixed)

Crash after deleting gpx file

Reported by: anonymous Owned by: OliverW
Priority: normal Milestone:
Component: Plugin elevationprofile Version:
Keywords: template_report gsoc-core regression Cc: michael2402


What steps will reproduce the problem?

  1. Load gpx file
  2. Realise already edited, so delete
  3. Crash

What is the expected result?

What happens instead?

Please provide any additional information below. Attach a screenshot if possible.

Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2016-06-18 01:45:15 +0200 (Sat, 18 Jun 2016)
Build-Date:2016-06-18 01:33:54
Relative:URL: ^/trunk

Identification: JOSM/1.5 (10414 en_GB) Linux Debian GNU/Linux testing (stretch)
Memory Usage: 526 MB / 3550 MB (211 MB allocated, but free)
Java version: 1.8.0_91-8u91-b14-2-b14, Oracle Corporation, OpenJDK 64-Bit Server VM

- DirectDownload (32158)
- ElevationProfile (32158)
- Tracer2 (32158)
- buildings_tools (32158)
- editgpx (32263)
- graphview (32158)
- measurement (32158)
- turnrestrictions (32158)
- utilsplugin2 (32158)

Last errors/warnings:
- W: Unable to delete file <josm.pref>/cache/tiles/
- W: Unable to delete file <josm.pref>/cache/tiles/TMS_INDEX.key
- W: Unable to delete file <josm.pref>/cache/tiles/
- W: Old style SideButton usage for action$CancelAction@722b6ff1
- E: java.lang.IllegalArgumentException: Listener was not registered before: LayerChangeAdapter [org.openstreetmap.josm.plugins.elevation.ElevationMapMode@46562140]

java.lang.IllegalArgumentException: Listener was not registered before: LayerChangeAdapter [org.openstreetmap.josm.plugins.elevation.ElevationMapMode@46562140]
	at org.openstreetmap.josm.gui.layer.LayerManager.removeLayerChangeListener(
	at org.openstreetmap.josm.gui.layer.LayerManager.removeLayerChangeListener(
	at org.openstreetmap.josm.actions.JosmAction.destroy(
	at org.openstreetmap.josm.gui.IconToggleButton.destroy(
	at org.openstreetmap.josm.gui.MapFrame.destroy(
	at org.openstreetmap.josm.Main.setMapFrame(
	at org.openstreetmap.josm.Main.removeLayer(
	at org.openstreetmap.josm.gui.dialogs.layer.DeleteLayerAction.actionPerformed(
	at javax.swing.AbstractButton.fireActionPerformed(
	at javax.swing.AbstractButton$Handler.actionPerformed(
	at javax.swing.DefaultButtonModel.fireActionPerformed(
	at javax.swing.DefaultButtonModel.setPressed(
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(
	at java.awt.AWTEventMulticaster.mouseReleased(
	at java.awt.Component.processMouseEvent(
	at javax.swing.JComponent.processMouseEvent(
	at java.awt.Component.processEvent(
	at java.awt.Container.processEvent(
	at java.awt.Component.dispatchEventImpl(
	at java.awt.Container.dispatchEventImpl(
	at java.awt.Component.dispatchEvent(
	at java.awt.LightweightDispatcher.retargetMouseEvent(
	at java.awt.LightweightDispatcher.processMouseEvent(
	at java.awt.LightweightDispatcher.dispatchEvent(
	at java.awt.Container.dispatchEventImpl(
	at java.awt.Window.dispatchEventImpl(
	at java.awt.Component.dispatchEvent(
	at java.awt.EventQueue.dispatchEventImpl(
	at java.awt.EventQueue.access$500(
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	at java.awt.EventQueue.dispatchEvent(
	at org.GNOME.Accessibility.AtkWrapper$5.dispatchEvent(
	at java.awt.EventDispatchThread.pumpOneEventForFilters(
	at java.awt.EventDispatchThread.pumpEventsForFilter(
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(
	at java.awt.EventDispatchThread.pumpEvents(
	at java.awt.EventDispatchThread.pumpEvents(

Attachments (1)

plugin-ElevationProfile-destroy.patch (1.4 KB) - added by michael2402 4 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 4 years ago by Don-vip

Cc: michael2402 added
Keywords: gsoc-core regression added

comment:2 Changed 4 years ago by michael2402

Component: CorePlugin elevationprofile
Owner: changed from team to OliverW

I could reproduce this. It only happened the second time I deleted the GPX layer.

I have the same problem with the TMS/WMS layers in AddImageLayerActionTest (and some more):

destroy() seems to be called for actions that are already destroyed.

Last edited 4 years ago by michael2402 (previous) (diff)

Changed 4 years ago by michael2402

comment:3 Changed 4 years ago by michael2402

I added an untested patch for this.

MapModes are automatically destroyed when the map view is.

comment:4 Changed 4 years ago by Don-vip

Resolution: fixed
Status: newclosed

Thanks! It should be fixed in [o32313:32314].

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain OliverW.
as The resolution will be set.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.