Modify

Opened 2 years ago

Last modified 2 years ago

#22496 new defect

NPE: Cannot invoke "javax.swing.text.View.changedUpdate()" on first running the newest JOSM version 18583 after installation

Reported by: anonymous Owned by: team
Priority: normal Milestone:
Component: Core Version: tested
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

What is the expected result?

Programm start

What happens instead?

"Ausnahmefehler"

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

Revision:18583
Build-Date:2022-11-01 14:35:40

Identification: JOSM/1.5 (18583 de) Windows 10 64-Bit
OS Build number: Windows 10 Pro 2009 (19044)
Memory Usage: 268 MB / 2014 MB (128 MB allocated, but free)
Java version: 17.0.5+8-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1920×1200 (scaling 1.00×1.00)
Maximum Screen Size: 1920×1200
Best cursor sizes: 16×16→32×32, 32×32→32×32
System property file.encoding: Cp1252
System property sun.jnu.encoding: Cp1252
Locale info: de_DE
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Djpackage.app-version=1.5.18583, --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:
+ PicLayer
+ imagery_offset_db (35978)
+ reverter (36011)
+ turnrestrictions (36011)
+ wikipedia

Tagging presets:
+ E:\Eigene\JOSM\Historical Objects Presets\sa_Presets_Historical_Objects-preset.xml

Last errors/warnings:
- 00014.136 W: [NODE, RELATION, CLOSEDWAY] Tar kiln: Could not get presets icon meiler.png
- 00014.137 E: Fehler beim Laden des Bildes 'meiler.png'
- 00014.137 W: [NODE, RELATION, CLOSEDWAY] Tar kiln (abandoned): Could not get presets icon meiler.png
- 00014.138 E: Fehler beim Laden des Bildes 'bunker.png'
- 00014.138 W:  Bunker: Could not get presets icon bunker.png
- 00014.139 E: Fehler beim Laden des Bildes 'bunker.png'
- 00014.139 W:  Bunker military: Could not get presets icon bunker.png
- 00014.140 E: Fehler beim Laden des Bildes 'bunker.png'
- 00014.140 W:  Bunker civil: Could not get presets icon bunker.png
- 00015.047 E: Handled by bug report queue: java.lang.NullPointerException: Cannot invoke "javax.swing.text.View.changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)" because "this.view" is null



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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (23) of main
java.lang.NullPointerException: Cannot invoke "javax.swing.text.View.changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)" because "this.view" is null
	at java.desktop/javax.swing.plaf.basic.BasicTextUI$RootView.changedUpdate(Unknown Source)
	at java.desktop/javax.swing.plaf.basic.BasicTextUI$UpdateHandler.changedUpdate(Unknown Source)
	at java.desktop/javax.swing.text.AbstractDocument.fireChangedUpdate(Unknown Source)
	at java.desktop/javax.swing.text.html.HTMLDocument.fireChangedUpdate(Unknown Source)
	at java.desktop/javax.swing.text.DefaultStyledDocument$ChangeUpdateRunnable.run(Unknown Source)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)

Attachments (0)

Change History (2)

comment:1 by skyper, 2 years ago

Summary: I got an "Ausnahmefehler" on first running the newest JOSM version 18583 after installationNPE: Cannot invoke "javax.swing.text.View.changedUpdate()" on first running the newest JOSM version 18583 after installation
Version: tested

comment:2 by taylor.smock, 2 years ago

The only way this is possible is if there is a race condition.
Unfortunately, this ticket does not give us enough information to figure out how to fix it.

For reference, the code in question giving the NPE on view is as follows:

        public void changedUpdate(DocumentEvent e, Shape a, ViewFactory f) {
            if (view != null) {
                view.changedUpdate(e, a, f);
            }
        }

The only way for view to be null is if a race condition occurs, where RootView#setView is called, and the view = null call happens in it after the view != null check but before view.changedUpdate call occurs.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to anonymous.
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 team 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.