Modify

Opened 8 years ago

Closed 8 years ago

#13537 closed defect (duplicate)

NPE in MapViewState$MapViewEastNorthPoint.getInViewX

Reported by: adib.yz@… Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: template_report regression gsoc-core Cc: michael2402

Description (last modified by simon04)

I updated JOSM this just now, but it keeps showing the following error.

What is the expected result?

What happens instead?

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-09-06 00:16:07 +0200 (Tue, 06 Sep 2016)
Build-Date:2016-09-05 22:21:00
Revision:10966
Relative:URL: ^/trunk

Identification: JOSM/1.5 (10966 en) Windows 7 64-Bit
Memory Usage: 1994 MB / 1994 MB (1648 MB allocated, but free)
Java version: 1.8.0_92-b14, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Screen: \Display0 1600x900
Maximum Screen Size: 1600x900
VM arguments: [-Djava.security.manager, -Djava.security.policy=file:<java.home>\lib\security\javaws.policy, -DtrustProxy=true, -Djnlpx.home=<java.home>\bin, -Djnlpx.origFilenameArg=%UserProfile%\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\56\1ee8cfb8-1a272fea, -Djnlpx.remove=false, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.splashport=49251, -Djnlp.application.href=https://josm.openstreetmap.de/download/josm.jnlp, -Djnlpx.jvm=<java.home>\bin\javaw.exe, -Djnlpx.vmargs=LURqYXZhLnV0aWwuQXJyYXlzLnVzZUxlZ2FjeU1lcmdlU29ydD10cnVlAC1Eam5scC5hcHBsaWNhdGlvbi5ocmVmPWh0dHBzOi8vam9zbS5vcGVuc3RyZWV0bWFwLmRlL2Rvd25sb2FkL2pvc20uam5scAA=]
Dataset consistency test: No problems found

Plugins:
+ ImproveWay (1452443304)
+ PicLayer (32796)
+ SimplifyArea (32796)
+ apache-commons (32699)
+ apache-http (32699)
+ buildings_tools (32796)
+ ejml (32680)
+ geojson (43)
+ geotools (32813)
+ imagery_offset_db (32796)
+ jts (32699)
+ log4j (32699)
+ merge-overlap (32699)
+ opendata (32898)
+ reltoolbox (32796)
+ reverter (32796)
+ utilsplugin2 (32815)

Last errors/warnings:
- E: java.net.SocketTimeoutException: Read timed out
- E: org.openstreetmap.josm.io.OsmTransferException: Could not connect to the OSM server. Please check your internet connection.. Cause: java.net.SocketTimeoutException: Read timed out
- E: IO Exception - <html>Failed to upload data to or download data from<br>'https://api.openstreetmap.org/api/0.6/changeset/41942441/download'<br>due to a problem with transferring data.<br>Details (untranslated): Read timed out</html>
- W: java.net.SocketTimeoutException: Read timed out
- W: Already here java.net.SocketTimeoutException: Read timed out
- E: java.net.SocketTimeoutException: Read timed out
- E: org.openstreetmap.josm.io.OsmTransferException: Could not connect to the OSM server. Please check your internet connection.. Cause: java.net.SocketTimeoutException: Read timed out
- E: IO Exception - <html>Failed to upload data to or download data from<br>'https://api.openstreetmap.org/api/0.6/changeset/41942441/download'<br>due to a problem with transferring data.<br>Details (untranslated): Read timed out</html>
- W: java.net.SocketException: Socket Closed
- E: java.net.SocketException: Socket Closed


=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-2 (60) of javawsApplicationThreadGroup
java.lang.NullPointerException
	at org.openstreetmap.josm.gui.MapViewState$MapViewEastNorthPoint.getInViewX(MapViewState.java:581)
	at org.openstreetmap.josm.gui.MapViewState$MapViewPoint.oneNormInView(MapViewState.java:509)
	at org.openstreetmap.josm.data.osm.visitor.paint.AbstractMapRenderer.isLargeSegment(AbstractMapRenderer.java:199)
	at org.openstreetmap.josm.actions.mapmode.SelectAction$VirtualManager.activateVirtualNodeNearPoint(SelectAction.java:1197)
	at org.openstreetmap.josm.actions.mapmode.SelectAction$VirtualManager.access$300(SelectAction.java:1158)
	at org.openstreetmap.josm.actions.mapmode.SelectAction.giveUserFeedback(SelectAction.java:256)
	at org.openstreetmap.josm.actions.mapmode.SelectAction.giveUserFeedback(SelectAction.java:235)
	at org.openstreetmap.josm.actions.mapmode.SelectAction.mouseMoved(SelectAction.java:473)
	at java.awt.AWTEventMulticaster.mouseMoved(Unknown Source)
	at java.awt.Component.processMouseMotionEvent(Unknown Source)
	at javax.swing.JComponent.processMouseMotionEvent(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.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.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.awt.EventQueue$4.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 (9)

comment:1 by Klumbumbus, 8 years ago

Cc: michael2402 added

comment:2 by michael2402, 8 years ago

Somehow a east/north coordinate is null.

comment:3 by Don-vip, 8 years ago

Keywords: regression gsoc-core added
Milestone: 16.09

comment:4 by Don-vip, 8 years ago

In 10968/josm:

see #13537 - refactor constructors and add parameters validation to detect root cause

comment:5 by Klumbumbus, 8 years ago

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

comment:6 by simon04, 8 years ago

Description: modified (diff)
Summary: I updated JOSM this just now, but it keeps showing the following error.NPE in MapViewState$MapViewEastNorthPoint.getInViewX

comment:7 by Klumbumbus, 8 years ago

I don't know if #13665 is also a duplicate. The stack trace is a bit different

comment:8 by simon04, 8 years ago

Tickets related to SelectAction and SelectAction$VirtualManager in the stack trace: #13537, #13677, #13724.

comment:9 by michael2402, 8 years ago

Milestone: 16.09
Resolution: duplicate
Status: newclosed

Closed as duplicate of #13665.
Fixed with the fix for #13665 in [11079].

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. 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.