Modify

Opened 2 years ago

Closed 6 months ago

#14148 closed defect (duplicate)

NPE in MapViewState$MapViewEastNorthPoint.<init>

Reported by: anonymous Owned by: team
Priority: normal Milestone:
Component: Core mappaint Version:
Keywords: template_report gsoc-core regression Cc: michael2402

Description (last modified by Don-vip)

What steps will reproduce the problem?

  1. Crash while combining layers
URL:http://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2016-11-06 20:18:38 +0100 (Sun, 06 Nov 2016)
Build-Date:2016-11-06 21:45:03
Revision:11223
Relative:URL: ^/trunk

Identification: JOSM/1.5 (11223 de) Windows 7 64-Bit
Memory Usage: 1414 MB / 2731 MB (480 MB allocated, but free)
Java version: 1.8.0_111-b14, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Screen: \Display0 1920x1200
Maximum Screen Size: 1920x1200

Dataset consistency test:
[WARN - NO NODES] Way {Way id=83900507 version=5 MT nodes=[{Node id=976553340 version=2 V lat=51.3443586,lon=7.4257185}]} has only one node
[WARN - ZERO NODES] Way {Way id=14271081 version=24 M nodes=[]} has zero nodes
[WARN - ZERO NODES] Way {Way id=187234632 version=9 M nodes=[]} has zero nodes
[WARN - ZERO NODES] Way {Way id=33698746 version=15 M nodes=[]} has zero nodes
[WARN - NO NODES] Way {Way id=193809761 version=5 MT nodes=[{Node id=1241996101 version=3 VT lat=53.4933665,lon=10.2139276}]} has only one node
[WARN - ZERO NODES] Way {Way id=29116462 version=13 M nodes=[]} has zero nodes
[WARN - ZERO NODES] Way {Way id=24326751 version=20 MT nodes=[]} has zero nodes
[WARN - ZERO NODES] Way {Way id=112163419 version=9 M nodes=[]} has zero nodes
[WARN - ZERO NODES] Way {Way id=315168613 version=4 M nodes=[]} has zero nodes
[WARN - ZERO NODES] Way {Way id=33698745 version=12 M nodes=[]} has zero nodes
[WARN - ZERO NODES] Way {Way id=149585959 version=17 M nodes=[]} has zero nodes
[WARN - ZERO NODES] Way {Way id=52100375 version=16 M nodes=[]} has zero nodes
[WARN - ZERO NODES] Way {Way id=132086030 version=13 M nodes=[]} has zero nodes
[WARN - ZERO NODES] Way {Way id=29116461 version=14 M nodes=[]} has zero nodes
[WARN - ZERO NODES] Way {Way id=110531132 version=12 M nodes=[]} has zero nodes
[WARN - ZERO NODES] Way {Way id=33699069 version=14 M nodes=[]} has zero nodes
[WARN - NO NODES] Way {Way id=83900501 version=6 MT nodes=[{Node id=970640730 version=2 VT lat=51.3442168,lon=7.4251074}]} has only one node
[WARN - ZERO NODES] Way {Way id=33699068 version=13 M nodes=[]} has zero nodes
[WARN - ZERO NODES] Way {Way id=150537438 version=8 M nodes=[]} has zero nodes
[WARN - ZERO NODES] Way {Way id=318912599 version=4 M nodes=[]} has zero nodes
[WARN - ZERO NODES] Way {Way id=23816002 version=22 M nodes=[]} has zero nodes
[WARN - ZERO NODES] Way {Way id=6307085 version=21 M nodes=[]} has zero nodes
[WARN - ZERO NODES] Way {Way id=114123478 version=13 M nodes=[]} has zero nodes


Last errors/warnings:
- E: Handled by bug report queue: java.lang.NullPointerException: eastNorth
- E: Handled by bug report queue: java.lang.NullPointerException: eastNorth
- W: Konflikte gefunden - <html>104 Konflikte wurden entdeckt.</html>
- E: Handled by bug report queue: java.lang.NullPointerException: eastNorth


=== REPORTED CRASH DATA ===
MapViewState#getPointFor:
 - node: {Node id=1020610727 version=2 M }

StyledMapRenderer#paintRecord:
 - record: StyleRecord [style=LineElemStyle{z_idx=[2.0/0.0/-1.0] modifier width=6.0 realWidth=0.0 color=#0000ff(alpha=230) dashed=null dashedColor=null linejoin=round linecap=round}, osm={Way id=90991137 version=11 VT nodes=[{Node id=1020610832 version=3 V lat=51.2093005,lon=6.793914}, {Node id=1020610727 version=2 M }, {Node id=2869214518 version=1 V lat=51.2093684,lon=6.7937067}, {Node id=1020610810 version=2 V lat=51.2094458,lon=6.7934982}]}, flags=0]

StyledMapRenderer#render:
 - data: org.openstreetmap.josm.data.osm.DataSet@6d498bf7
 - circum: 37033.92414409154
 - scale: 596.2123370625337
 - paintSettings: MapPaintSettings [useRealWidth=false, showDirectionArrow=false, showOnewayArrow=true, defaultSegmentWidth=2, showOrderNumber=false, showHeadArrowOnly=false, showNamesDistance=10000000, useStrokesDistance=10000000, showIconsDistance=10000000, selectedNodeSize=5, connectionNodeSize=5, unselectedNodeSize=3, taggedNodeSize=3, fillSelectedNode=true, fillUnselectedNode=false, fillTaggedNode=true, fillConnectionNode=false, outlineOnly=false, selectedColor=java.awt.Color[r=255,g=0,b=0], relationSelectedColor=java.awt.Color[r=255,g=0,b=255], highlightColor=java.awt.Color[r=255,g=0,b=0], inactiveColor=java.awt.Color[r=64,g=64,b=64], nodeColor=java.awt.Color[r=255,g=255,b=0], taggedColor=java.awt.Color[r=204,g=255,b=255], connectionColor=java.awt.Color[r=255,g=255,b=0], taggedConnectionColor=java.awt.Color[r=204,g=255,b=255]]
 - renderVirtualNodes: false

MapView#paintLayer:
 - layer: OsmDataLayer [name=Test.osm, associatedFile=C:\Users\schmidb\Desktop\Test.osm]
 - bounds: Bounds[49.7223243,3.9920795,53.4021623,12.1115731]

Warning issued by: MapView#paintLayer

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (19) of main
java.lang.NullPointerException: eastNorth
	at java.util.Objects.requireNonNull(Unknown Source)
	at org.openstreetmap.josm.gui.MapViewState$MapViewEastNorthPoint.<init>(MapViewState.java:590)
	at org.openstreetmap.josm.gui.MapViewState.getPointFor(MapViewState.java:175)
	at org.openstreetmap.josm.gui.MapViewState.getPointFor(MapViewState.java:197)
	at org.openstreetmap.josm.data.osm.visitor.paint.StyledMapRenderer$OffsetIterator.getForIndex(StyledMapRenderer.java:237)
	at org.openstreetmap.josm.data.osm.visitor.paint.StyledMapRenderer$OffsetIterator.next(StyledMapRenderer.java:135)
	at org.openstreetmap.josm.data.osm.visitor.paint.StyledMapRenderer$OffsetIterator.next(StyledMapRenderer.java:105)
	at org.openstreetmap.josm.data.osm.visitor.paint.StyledMapRenderer.drawWay(StyledMapRenderer.java:1460)
	at org.openstreetmap.josm.gui.mappaint.styleelement.LineElement.paintPrimitive(LineElement.java:115)
	at org.openstreetmap.josm.data.osm.visitor.paint.StyledMapRenderer$StyleRecord.paintPrimitive(StyledMapRenderer.java:312)
	at org.openstreetmap.josm.data.osm.visitor.paint.StyledMapRenderer.paintRecord(StyledMapRenderer.java:1975)
	at org.openstreetmap.josm.data.osm.visitor.paint.StyledMapRenderer.render(StyledMapRenderer.java:1955)
	at org.openstreetmap.josm.gui.layer.OsmDataLayer.paint(OsmDataLayer.java:423)
	at org.openstreetmap.josm.gui.layer.AbstractMapViewPaintable$CompatibilityModeLayerPainter.paint(AbstractMapViewPaintable.java:27)
	at org.openstreetmap.josm.gui.MapView.paintLayer(MapView.java:434)
	at org.openstreetmap.josm.gui.MapView.paint(MapView.java:503)
	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$4.run(Unknown Source)
	at javax.swing.RepaintManager$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
	at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
	at javax.swing.RepaintManager.prePaintDirtyRegions(Unknown Source)
	at javax.swing.RepaintManager.access$1200(Unknown Source)
	at javax.swing.RepaintManager$ProcessingRunnable.run(Unknown Source)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$500(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(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.pumpEventsForFilter(Unknown Source)
	at java.awt.WaitDispatchSupport$2.run(Unknown Source)
	at java.awt.WaitDispatchSupport$4.run(Unknown Source)
	at java.awt.WaitDispatchSupport$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.WaitDispatchSupport.enter(Unknown Source)
	at java.awt.Dialog.show(Unknown Source)
	at java.awt.Component.show(Unknown Source)
	at java.awt.Component.setVisible(Unknown Source)
	at java.awt.Window.setVisible(Unknown Source)
	at java.awt.Dialog.setVisible(Unknown Source)
	at org.openstreetmap.josm.gui.progress.PleaseWaitProgressMonitor.lambda$doBeginTask$2(PleaseWaitProgressMonitor.java:186)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$500(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(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 (4)

comment:1 Changed 2 years ago by Don-vip

Description: modified (diff)
Summary: Crash while combining layersNPE in MapViewState$MapViewEastNorthPoint.<init>

comment:2 Changed 2 years ago by Don-vip

Cc: michael2402 added
Keywords: gsoc-core regression added

comment:3 Changed 2 years ago by michael2402

Component: CoreCore mappaint

comment:4 Changed 6 months ago by Don-vip

Resolution: duplicate
Status: newclosed

Closed as duplicate of #15315.

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.