Modify

Opened 3 years ago

Closed 23 months ago

Last modified 23 months ago

#13170 closed defect (duplicate)

RangeViolatedError: the new range must be within a single subrange (2)

Reported by: muerkelmann Owned by: team
Priority: normal Milestone:
Component: Core mappaint Version:
Keywords: template_report scale range style Cc:

Description

What steps will reproduce the problem?

  1. first set filter to *=* then
  2. highway=*
  3. turn them on an off a few times

What is the expected result?

fading in or out of filtered items

What happens instead?

works a few times, then application crashes

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: 2016-07-11 23:04:49 +0200 (Mon, 11 Jul 2016)
Build-Date:2016-07-12 01:31:48
Revision:10526
Relative:URL: ^/trunk

Identification: JOSM/1.5 (10526 de) Linux Debian GNU/Linux 8.5 (jessie)
Memory Usage: 921 MB / 1778 MB (499 MB allocated, but free)
Java version: 1.8.0_92-b14, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
VM arguments: [-Djava.security.policy=file:<java.home>/lib/security/javaws.policy, -DtrustProxy=true, -Djnlpx.home=<java.home>/bin, -Djava.security.manager, -Djnlpx.origFilenameArg=${HOME}/bin/josm.jnlp, -Djnlpx.remove=true, -Dsun.awt.warmup=true, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.splashport=35987, -Djnlpx.jvm=<java.home>/bin/java, -Djnlpx.vmargs=LURqYXZhLnV0aWwuQXJyYXlzLnVzZUxlZ2FjeU1lcmdlU29ydD10cnVlAA==]
Dataset consistency test: No problems found

Plugins:
- imagery_offset_db (32528)
- reverter (32584)
- turnrestrictions (32629)

Tagging presets:
- https://josm.openstreetmap.de/josmfile?page=Presets/Diving&zip=1
- https://josm.openstreetmap.de/josmfile?page=Presets/ParkingLanes&zip=1
- https://raw.githubusercontent.com/OpenSeaMap/josm/master/Presets_Sport.xml

Last errors/warnings:
- W: Datei <josm.pref>/cache/tiles/TMS_BLOCK.data kann nicht gelöscht werden
- W: Datei <josm.pref>/cache/tiles/TMS_INDEX.key kann nicht gelöscht werden
- W: Datei <josm.pref>/cache/tiles/TMS_INDEX.data kann nicht gelöscht werden
- W: Datei <josm.pref>/cache/tiles/TMS_INDEX_v2.key kann nicht gelöscht werden
- W: Datei <josm.pref>/cache/tiles/TMS_INDEX_v2.data kann nicht gelöscht werden
- E: java.io.IOException: Stream closed
- E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=400, Error Header=<You requested too many nodes (limit is 50000). Either request a smaller area, or use planet.osm>, Error Body=<Lesen des Fehlertextes fehlgeschlagen.>
- E: Fehlerhafte Anfrage - <html>Der OSM-Server »api.openstreetmap.org« meldete eine fehlerhafte Anfrage.<br><br>Der angeforderte Bereich ist zu groß oder enthält zu viele Daten.<br>Versuchen Sie, einen kleineren Bereich herunterzuladen oder nutzen Sie einen Datenbankexport.</html>
- W: java.lang.NoSuchMethodException: No such function prettifyValue
- E: java.lang.AssertionError. Ursache: java.lang.AssertionError. Ursache: java.lang.AssertionError: Range violated: the new range must be within a single subrange (2) (object: Linie 312841565, current style: org.openstreetmap.josm.gui.mappaint.StyleCache@f0586f42, scale: 174.59033471434284, new stylelist: [LineElemStyle{z_idx=[3.0/7.0/0.0] modifier width=2.0 realWidth=0.0 color=#999999 dashed=[12.0, 12.0] dashedColor=null linejoin=round linecap=none}, LineElemStyle{z_idx=[3.0/4.0/0.0] width=2.0 realWidth=0.0 color=#800080(alpha=51) dashed=[24.0, 4.0] dashedColor=null linejoin=round linecap=none}, LineElemStyle{z_idx=[3.0/2.0/0.0] width=1.0 realWidth=0.0 color=#ff6600 dashed=[9.0, 9.0] dashedColor=null linejoin=round linecap=none}], new range: |s29.858214173896975-955.4628535647032). Ursache: org.openstreetmap.josm.gui.mappaint.DividedScale$RangeViolatedError: the new range must be within a single subrange (2)

java.lang.AssertionError
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:598)
	at java.util.concurrent.ForkJoinTask.reportException(ForkJoinTask.java:677)
	at java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:720)
	at java.util.concurrent.ForkJoinPool.invoke(ForkJoinPool.java:2616)
	at org.openstreetmap.josm.data.osm.visitor.paint.StyledMapRenderer.render(StyledMapRenderer.java:1934)
	at org.openstreetmap.josm.gui.layer.OsmDataLayer.paint(OsmDataLayer.java:420)
	at org.openstreetmap.josm.gui.layer.AbstractMapViewPaintable$CompatibilityModeLayerPainter.paint(AbstractMapViewPaintable.java:27)
	at org.openstreetmap.josm.gui.MapView.paintLayer(MapView.java:829)
	at org.openstreetmap.josm.gui.MapView.paint(MapView.java:893)
	at javax.swing.JComponent.paintChildren(JComponent.java:889)
	at javax.swing.JComponent.paint(JComponent.java:1065)
	at javax.swing.JComponent.paintToOffscreen(JComponent.java:5210)
	at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:290)
	at javax.swing.RepaintManager.paint(RepaintManager.java:1272)
	at javax.swing.JComponent._paintImmediately(JComponent.java:5158)
	at javax.swing.JComponent.paintImmediately(JComponent.java:4969)
	at javax.swing.RepaintManager$4.run(RepaintManager.java:831)
	at javax.swing.RepaintManager$4.run(RepaintManager.java:814)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
	at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
	at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
	at javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
	at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1732)
	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)
Caused by: java.lang.AssertionError
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:598)
	at java.util.concurrent.ForkJoinTask.reportException(ForkJoinTask.java:677)
	at java.util.concurrent.ForkJoinTask.join(ForkJoinTask.java:720)
	at org.openstreetmap.josm.data.osm.visitor.paint.StyledMapRenderer$ComputeStyleListWorker.compute(StyledMapRenderer.java:1833)
	at org.openstreetmap.josm.data.osm.visitor.paint.StyledMapRenderer$ComputeStyleListWorker.compute(StyledMapRenderer.java:1797)
	at java.util.concurrent.RecursiveTask.exec(RecursiveTask.java:94)
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Caused by: java.lang.AssertionError: Range violated: the new range must be within a single subrange (2) (object: Linie 312841565, current style: org.openstreetmap.josm.gui.mappaint.StyleCache@f0586f42, scale: 174.59033471434284, new stylelist: [LineElemStyle{z_idx=[3.0/7.0/0.0] modifier width=2.0 realWidth=0.0 color=#999999 dashed=[12.0, 12.0] dashedColor=null linejoin=round linecap=none}, LineElemStyle{z_idx=[3.0/4.0/0.0] width=2.0 realWidth=0.0 color=#800080(alpha=51) dashed=[24.0, 4.0] dashedColor=null linejoin=round linecap=none}, LineElemStyle{z_idx=[3.0/2.0/0.0] width=1.0 realWidth=0.0 color=#ff6600 dashed=[9.0, 9.0] dashedColor=null linejoin=round linecap=none}], new range: |s29.858214173896975-955.4628535647032)
	at org.openstreetmap.josm.gui.mappaint.ElemStyles.getStyleCacheWithRange(ElemStyles.java:151)
	at org.openstreetmap.josm.gui.mappaint.ElemStyles.get(ElemStyles.java:83)
	at org.openstreetmap.josm.data.osm.visitor.paint.StyledMapRenderer$ComputeStyleListWorker.add(StyledMapRenderer.java:1892)
	at org.openstreetmap.josm.data.osm.visitor.paint.StyledMapRenderer$ComputeStyleListWorker.visit(StyledMapRenderer.java:1860)
	at org.openstreetmap.josm.data.osm.Way.accept(Way.java:211)
	at org.openstreetmap.josm.data.osm.visitor.paint.StyledMapRenderer$ComputeStyleListWorker.computeDirectly(StyledMapRenderer.java:1844)
	at org.openstreetmap.josm.data.osm.visitor.paint.StyledMapRenderer$ComputeStyleListWorker.compute(StyledMapRenderer.java:1824)
	... 6 more
Caused by: org.openstreetmap.josm.gui.mappaint.DividedScale$RangeViolatedError: the new range must be within a single subrange (2)
	at org.openstreetmap.josm.gui.mappaint.DividedScale.putImpl(DividedScale.java:147)
	at org.openstreetmap.josm.gui.mappaint.DividedScale.put(DividedScale.java:102)
	at org.openstreetmap.josm.gui.mappaint.StyleCache.put(StyleCache.java:50)
	at org.openstreetmap.josm.gui.mappaint.ElemStyles.getStyleCacheWithRange(ElemStyles.java:149)
	... 12 more

Attachments (0)

Change History (7)

comment:1 Changed 3 years ago by simon04

#11963 relates to the same bug.

@muerkelmann: Which styles do you have enabled?

comment:2 Changed 3 years ago by Don-vip

Ticket #14342 has been marked as a duplicate of this ticket.

comment:3 Changed 3 years ago by Don-vip

Ticket #14504 has been marked as a duplicate of this ticket.

comment:4 Changed 3 years ago by Don-vip

Component: CoreCore mappaint
Keywords: scale range style added

comment:5 Changed 3 years ago by Don-vip

Summary: Using filters crashes JOSMDividedScale$RangeViolatedError: the new range must be within a single subrange

comment:6 Changed 23 months ago by Don-vip

Resolution: duplicate
Status: newclosed

Closed as duplicate of #11607.

comment:7 Changed 23 months ago by Don-vip

Summary: DividedScale$RangeViolatedError: the new range must be within a single subrangeRangeViolatedError: the new range must be within a single subrange (2)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
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.