Modify

Opened 2 years ago

Last modified 2 years ago

#21961 needinfo defect

IllegalStateException: Component must have a valid peer when JOSM is maximized (F11)

Reported by: Jese-MX Owned by: Jese-MX
Priority: normal Milestone:
Component: Core Version: latest
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

  1. I donwloaded a zone in "ignacio Allende" and "Andador Francisco I. Madero", I was create de building in front to Neptune Fountain.
  2. For error, I press F11 and then Josm closed.

Now, I can not open Josm. I double clik, show it the logo and plugins loaded, then show it the interface, and it closes it immediately.

What is the expected result?

What happens instead?

Please provide any additional information below. Attach a screenshot if possible.

Revision:18387
Build-Date:2022-03-07 09:13:43

Identification: JOSM/1.5 (18387 es) Windows 7 64-Bit
OS Build number: Windows 7 Professional (7601)
Memory Usage: 232 MB / 882 MB (51 MB allocated, but free)
Java version: 17.0.2+8-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1920×1080 (scaling 1.00×1.00)
Maximum Screen Size: 1920×1080
Best cursor sizes: 16×16→32×32, 32×32→32×32
System property file.encoding: Cp1252
System property sun.jnu.encoding: Cp1252
Locale info: es_MX
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Djpackage.app-version=1.5.18387, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --add-exports=java.base/sun.security.action=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, -Djpackage.app-path=%UserProfile%\AppData\Local\JOSM\JOSM.exe]

Plugins:
+ OpeningHoursEditor (35893)
+ ejml (35893)
+ jaxb (35893)
+ jogl (1.2.3)
+ kendzi3d-dev (1.0.206-SNAPSHOT)
+ kendzi3d-resources (0.0.2)
+ log4j (35893)
+ lwjgl (35926)
+ lwjgl-windows (35926)
+ tageditor (35893)
+ turnlanes (35893)
+ turnlanes-tagging (v0.0.5)
+ turnrestrictions (35893)

Map paint styles:
- https://josm.openstreetmap.de/josmfile?page=Styles/Lane_and_Road_Attributes&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Enhanced_Lane_and_Road_Attributes&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/SidewalksAndFootways&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Cycleways&zip=1
- F:\banquetas

Last errors/warnings:
- 00001.830 W: extended font config - overriding 'filename.Shruti=shruti.ttf' with 'SHRUTI.TTF'
- 00001.833 W: extended font config - overriding 'filename.Raavi=raavi.ttf' with 'RAAVI.TTF'
- 00001.834 W: extended font config - overriding 'filename.Gautami=gautami.ttf' with 'GAUTAMI.TTF'
- 00001.837 W: extended font config - overriding 'filename.Vrinda=vrinda.ttf' with 'VRINDA.TTF'
- 00001.839 W: extended font config - overriding 'filename.Kartika=kartika.ttf' with 'KARTIKA.TTF'
- 00001.840 W: extended font config - overriding 'filename.Latha=latha.ttf' with 'LATHA.TTF'
- 00003.392 E: java.security.KeyStoreException: Windows-ROOT not found. Causa: java.security.NoSuchAlgorithmException: Windows-ROOT KeyStore not available
- 00023.451 W: Error al cargar los estilos Mappaint desde 'F:\banquetas'. La excepción fue: java.nio.file.NoSuchFileException: F:\banquetas
- 00023.452 E: java.nio.file.NoSuchFileException: F:\banquetas
- 00040.617 E: Handled by bug report queue: java.lang.IllegalStateException: Component must have a valid peer



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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: main (1)
java.lang.IllegalStateException: Component must have a valid peer
	at java.desktop/java.awt.Component$FlipBufferStrategy.flipSubRegion(Unknown Source)
	at java.desktop/java.awt.Component$FlipBufferStrategy.showSubRegion(Unknown Source)
	at java.desktop/java.awt.Component$FlipSubRegionBufferStrategy.showIfNotLost(Unknown Source)
	at java.desktop/javax.swing.BufferStrategyPaintManager.show(Unknown Source)
	at java.desktop/javax.swing.RepaintManager.show(Unknown Source)
	at java.desktop/javax.swing.SwingPaintEventDispatcher.createPaintEvent(Unknown Source)
	at java.desktop/sun.awt.windows.WComponentPeer.postPaintIfNecessary(Unknown Source)
	at java.desktop/sun.awt.windows.WComponentPeer.handlePaint(Unknown Source)
	at java.desktop/sun.java2d.d3d.D3DScreenUpdateManager.repaintPeerTarget(Unknown Source)
	at java.desktop/sun.java2d.d3d.D3DScreenUpdateManager.createScreenSurface(Unknown Source)
	at java.desktop/sun.awt.windows.WComponentPeer.createScreenSurface(Unknown Source)
	at java.desktop/sun.awt.windows.WComponentPeer.replaceSurfaceData(Unknown Source)
	at java.desktop/sun.awt.windows.WComponentPeer.replaceSurfaceData(Unknown Source)
	at java.desktop/sun.awt.windows.WComponentPeer.setBounds(Unknown Source)
	at java.desktop/sun.awt.windows.WComponentPeer.initialize(Unknown Source)
	at java.desktop/sun.awt.windows.WCanvasPeer.initialize(Unknown Source)
	at java.desktop/sun.awt.windows.WPanelPeer.initialize(Unknown Source)
	at java.desktop/sun.awt.windows.WWindowPeer.initialize(Unknown Source)
	at java.desktop/sun.awt.windows.WFramePeer.initialize(Unknown Source)
	at java.desktop/sun.awt.windows.WComponentPeer.<init>(Unknown Source)
	at java.desktop/sun.awt.windows.WCanvasPeer.<init>(Unknown Source)
	at java.desktop/sun.awt.windows.WPanelPeer.<init>(Unknown Source)
	at java.desktop/sun.awt.windows.WWindowPeer.<init>(Unknown Source)
	at java.desktop/sun.awt.windows.WFramePeer.<init>(Unknown Source)
	at java.desktop/sun.awt.windows.WToolkit.createFrame(Unknown Source)
	at java.desktop/java.awt.Frame.addNotify(Unknown Source)
	at java.desktop/java.awt.Window.show(Unknown Source)
	at java.desktop/java.awt.Component.show(Unknown Source)
	at java.desktop/java.awt.Component.setVisible(Unknown Source)
	at java.desktop/java.awt.Window.setVisible(Unknown Source)
	at org.openstreetmap.josm.actions.FullscreenToggleAction.setMode(FullscreenToggleAction.java:111)
	at org.openstreetmap.josm.actions.FullscreenToggleAction.initial(FullscreenToggleAction.java:67)
	at org.openstreetmap.josm.gui.MainApplication.mainJOSM(MainApplication.java:974)
	at org.openstreetmap.josm.gui.MainApplication$3.processArguments(MainApplication.java:282)
	at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:742)

Attachments (2)

21961.patch (1.1 KB ) - added by taylor.smock 2 years ago.
josm-custom.jar (16.1 MB ) - added by taylor.smock 2 years ago.

Change History (4)

comment:1 by taylor.smock, 2 years ago

@Jese-MX: As a workaround until I have a patch ready, you can open your preferences file in a text editor, and remove the draw.fullscreen preference from it. I'll try to get a patch out today, but I won't be able to debug the root cause (I don't have Windows 7).

See wiki:Help/Preferences#Windows for where the file is.

Last edited 2 years ago by taylor.smock (previous) (diff)

by taylor.smock, 2 years ago

Attachment: 21961.patch added

by taylor.smock, 2 years ago

Attachment: josm-custom.jar added

comment:2 by taylor.smock, 2 years ago

Owner: changed from team to Jese-MX
Status: newneedinfo
Summary: f11 and after closed itIllegalStateException: Component must have a valid peer when JOSM is maximized (F11)

@Jese-MX: Can you try the attachment:josm-custom.jar file and see if that fixes your problem?

Modify Ticket

Change Properties
Set your email in Preferences
Action
as needinfo The owner will remain Jese-MX.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from Jese-MX to the specified user. Next status will be 'new'.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from Jese-MX to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.