﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
10690	Crash after connecting an external monitor	botticchio@…	team	"==== What steps will reproduce the problem?
1. Open JOSM on a laptop, without external monitors connected
2. Connect an external monitor (please note that in my case the main desktop was the external monitor)
3. Click the maximize window button

==== What is the expected result?
JOSM window is maximized and operational

==== What happens instead?
JOSM crashes and triggers the crash reporter. In addition, the crash reporter is opened in the laptop monitor (i.e. the secondary), not on the external (main).

After closing the crash report window, JOSM is still operational, apparently without issues.

==== Please provide any additional information below. Attach a screenshot if possible.

{{{
Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2014-10-21 19:23:06
Last Changed Author: Don-vip
Revision: 7643
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Relative URL: ^/trunk
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2014-10-21 21:19:16 +0200 (Tue, 21 Oct 2014)
Last Changed Rev: 7643

Identification: JOSM/1.5 (7643 it) Windows 7 64-Bit
Memory Usage: 305 MB / 910 MB (170 MB allocated, but free)
Java version: 1.7.0_67, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
VM arguments: [-Djava.security.policy=file:C:\Program Files\Java\jre7\lib\security\javaws.policy, -DtrustProxy=true, -Djnlpx.home=<java.home>\bin, -Djnlpx.origFilenameArg=C:\Users\federico\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\56\1ee8cfb8-3b9e7ffe, -Djnlpx.remove=false, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.splashport=61740, -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:
- ElevationProfile (30737)
- FixAddresses (30737)
- buildings_tools (30762)
- editgpx (30737)
- gpxfilter (30738)
- mapdust (30738)
- turnlanes (30737)
- turnrestrictions (30762)
- utilsplugin2 (30762)
- wikipedia (30738)

Last errors/warnings:
- E: java.lang.ArrayIndexOutOfBoundsException: 1

java.lang.ArrayIndexOutOfBoundsException: 1
	at sun.awt.Win32GraphicsEnvironment.getDefaultScreenDevice(Unknown Source)
	at sun.awt.windows.WWindowPeer.updateGC(Unknown Source)
	at sun.awt.windows.WWindowPeer.displayChanged(Unknown Source)
	at sun.awt.windows.WWindowPeer$1.run(Unknown Source)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$200(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$1.doIntersectionPrivilege(Unknown Source)
	at java.security.ProtectionDomain$1.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$1.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)

}}}
"	defect	closed	minor		Core	latest	othersoftware	template_report java7 javabug	
