Opened 8 years ago
Closed 8 years ago
#14268 closed defect (duplicate)
IllegalArgumentException: RouteLayer is not managed by us
Reported by: | Owned by: | jttt | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Plugin routes | Version: | |
Keywords: | template_report gsoc-core regression | Cc: | michael2402 |
Description
What steps will reproduce the problem?
- load aerial "ScanEx IRS" imagery
- delete immediately this imagery by clicking on "Trash can" button in "Layers" window
- got an exceptiopn
What is the expected result?
I wanted to remove the layer right after I added it.
What happens instead?
The layer is deleted, but the exception is occurred too.
Please provide any additional information below. Attach a screenshot if possible.
URL:http://josm.openstreetmap.de/svn/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2017-01-02 00:53:29 +0100 (Mon, 02 Jan 2017) Build-Date:2017-01-02 02:33:21 Revision:11427 Relative:URL: ^/trunk Identification: JOSM/1.5 (11427 en) Linux Ubuntu 16.04.1 LTS Memory Usage: 1288 MB / 5202 MB (893 MB allocated, but free) Java version: 1.8.0_111-8u111-b14-2ubuntu0.16.04.2-b14, Oracle Corporation, OpenJDK 64-Bit Server VM Screen: :0.0 1920x1080 Maximum Screen Size: 1920x1080 Java package: openjdk-8-jre:amd64-8u111-b14-2ubuntu0.16.04.2 VM arguments: [-Djosm.pref=<josm.pref>] Plugins: + DirectDownload (33004) + DirectUpload (32885) + ElevationProfile (33004) + FastDraw (33004) + InfoMode (33004) + Mapillary (v1.3.2) + OpenStreetCam (32) + OpenStreetView (31) + PicLayer (33088) + RoadSigns (33088) + apache-commons (32994) + apache-http (32699) + auto_tools (1479831713) + download_along (32946) + editgpx (33004) + ejml (32680) + ext_tools (33004) + geochat (33088) + geojson (52) + geotools (33042) + gpsblam (33004) + gpxfilter (33004) + imagery_offset_db (33004) + imageryadjust (33004) + jna (32699) + jts (32699) + log4j (32699) + measurement (33088) + merge-overlap (33004) + openvisible (33088) + osmarender (33004) + photo_geotagging (33088) + photoadjust (33088) + print (33102) + pt_assistant (33108) + public_transport (33088) + reltoolbox (33088) + reverter (33088) + routes (33088) + routing (33004) + tageditor (33021) + turnlanes-tagging (254) + turnrestrictions (33088) + utilsplugin2 (33088) + waydownloader (33088) + waypoint_search (32699) + wikipedia (33098) Last errors/warnings: - W: Unable to get color from '' for color preference 'extrude.main.line' - W: Unable to get color from '' for color preference 'improve.way.accuracy.helper.line' - W: Unable to get color from '' for color preference 'make.parallel.helper.line' - E: Handled by bug report queue: java.lang.IllegalArgumentException: RouteLayer [name=Czech hiking trails, associatedFile=null] is not managed by us. === REPORTED CRASH DATA === BugReportExceptionHandler#handleException: No data collected. Warning issued by: BugReportExceptionHandler#handleException === STACK TRACE === Thread: AWT-EventQueue-0 (18) of main java.lang.IllegalArgumentException: RouteLayer [name=Czech hiking trails, associatedFile=null] is not managed by us. at org.openstreetmap.josm.gui.layer.LayerManager.checkContainsLayer(LayerManager.java:339) at org.openstreetmap.josm.gui.layer.LayerManager.realRemoveLayer(LayerManager.java:226) at org.openstreetmap.josm.gui.layer.LayerManager.lambda$removeLayer$1(LayerManager.java:214) at org.openstreetmap.josm.gui.util.GuiHelper.runInEDTAndWaitWithException(GuiHelper.java:138) at org.openstreetmap.josm.gui.layer.LayerManager.removeLayer(LayerManager.java:214) at org.openstreetmap.josm.plugins.routes.RoutesPlugin$2.run(RoutesPlugin.java:105) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Attachments (1)
Change History (6)
by , 8 years ago
Attachment: | Screenshot from 2017-01-19 06-50-18.png added |
---|
comment:1 by , 8 years ago
Component: | Core → Plugin routes |
---|---|
Owner: | changed from | to
comment:2 by , 8 years ago
Cc: | added |
---|---|
Keywords: | gsoc-core regression added |
Summary: | an unexpected exception occured → IllegalArgumentException: RouteLayer is not managed by us |
comment:3 by , 8 years ago
The problem is there:
https://github.com/openstreetmap/josm-plugins/blob/master/routes/src/org/openstreetmap/josm/plugins/routes/RoutesPlugin.java#L105
The user may have removed the layers, so that they cannot be removed there.
Checking if Main.getLayerManager() contains that layer fixes the problem.
comment:5 by , 8 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Closed as duplicate of #13300.
screen shot