#21961 closed defect (fixed)
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?
- I donwloaded a zone in "ignacio Allende" and "Andador Francisco I. Madero", I was create de building in front to Neptune Fountain.
- 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)
Change History (7)
by , 4 years ago
| Attachment: | 21961.patch added |
|---|
by , 4 years ago
| Attachment: | josm-custom.jar added |
|---|
comment:2 by , 4 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → needinfo |
| Summary: | f11 and after closed it → IllegalStateException: 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?
comment:3 by , 11 months ago
| Resolution: | → fixed |
|---|---|
| Status: | needinfo → closed |
Lo siento, dejé de usar josm java. Ahora uso josm.msi.
Pero continúa el mismo problema.
Estoy usando windows 7 64bits AMD
comment:4 by , 11 months ago
Sorry for the answer late. Never arrive notification of this site..
Sorry for my bad English
Sorry, now I don't use josm java. I use Josm.msi, but the problem is continue.
I use Win7 64bits AMD.



@Jese-MX: As a workaround until I have a patch ready, you can open your preferences file in a text editor, and remove thedraw.fullscreenpreference 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.