Modify

Opened 2 years ago

Closed 21 months ago

#22777 closed defect (needinfo)

IllegalArgumentException: offsetLimit must be after current position in MaxLengthDocumentFilter.replace

Reported by: cosborne0731@… Owned by: cosborne0731@…
Priority: normal Milestone:
Component: Core Version:
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

  1. dont know

What is the expected result?

I tried to upload a changeset

What happens instead?

The changeset was uploaded, but it also gave me an error.

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

my username is BeardmanOsborne, the changeset is Changeset: 133177586

perhaps the issue is with Chinese characters?

Revision:18646
Build-Date:2023-01-30 15:15:00

Identification: JOSM/1.5 (18646 en) Windows 11 64-Bit
OS Build number: Windows 10 Pro 2009 (22621)
Memory Usage: 1788 MB / 8144 MB (768 MB allocated, but free)
Java version: 17.0.6+10-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 3840×2160 (scaling 2.50×2.50)
Maximum Screen Size: 3840×2160
Best cursor sizes: 16×16→64×64, 32×32→64×64
System property file.encoding: Cp1252
System property sun.jnu.encoding: Cp1252
Locale info: en_US
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Djpackage.app-version=1.5.18646, --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:
+ Mapillary (2.1.1)
+ apache-commons (36034)
+ buildings_tools (36011)
+ terracer (35978)

Last errors/warnings:
- 211500.538 E: Handled by bug report queue: java.lang.IllegalArgumentException: offsetLimit must be after current position
- 211521.118 E: Handled by bug report queue: java.lang.IllegalArgumentException: offsetLimit must be after current position
- 211521.262 E: Handled by bug report queue: java.lang.IllegalArgumentException: offsetLimit must be after current position
- 211529.057 E: Handled by bug report queue: java.lang.IllegalArgumentException: offsetLimit must be after current position
- 211546.881 E: Handled by bug report queue: java.lang.IllegalArgumentException: offsetLimit must be after current position
- 211546.884 E: Handled by bug report queue: java.lang.IllegalArgumentException: offsetLimit must be after current position
- 211570.245 E: Handled by bug report queue: java.lang.IllegalArgumentException: offsetLimit must be after current position
- 211570.375 E: Handled by bug report queue: java.lang.IllegalArgumentException: offsetLimit must be after current position
- 211578.320 E: Handled by bug report queue: java.lang.IllegalArgumentException: offsetLimit must be after current position
- 211756.115 E: Handled by bug report queue: java.lang.IllegalArgumentException: offsetLimit must be after current position



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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (31) of main
java.lang.IllegalArgumentException: offsetLimit must be after current position
	at java.desktop/java.awt.font.LineBreakMeasurer.nextOffset(Unknown Source)
	at java.desktop/java.awt.font.LineBreakMeasurer.nextLayout(Unknown Source)
	at java.desktop/javax.swing.text.TextLayoutStrategy.sync(Unknown Source)
	at java.desktop/javax.swing.text.TextLayoutStrategy.removeUpdate(Unknown Source)
	at java.desktop/javax.swing.text.FlowView.removeUpdate(Unknown Source)
	at java.desktop/javax.swing.plaf.basic.BasicTextFieldUI$I18nFieldView.removeUpdate(Unknown Source)
	at java.desktop/javax.swing.text.View.forwardUpdateToView(Unknown Source)
	at java.desktop/javax.swing.text.FlowView$LogicalView.forwardUpdateToView(Unknown Source)
	at java.desktop/javax.swing.text.View.forwardUpdate(Unknown Source)
	at java.desktop/javax.swing.text.FlowView$LogicalView.forwardUpdate(Unknown Source)
	at java.desktop/javax.swing.text.View.removeUpdate(Unknown Source)
	at java.desktop/javax.swing.text.FlowView.removeUpdate(Unknown Source)
	at java.desktop/javax.swing.plaf.basic.BasicTextFieldUI$I18nFieldView.removeUpdate(Unknown Source)
	at java.desktop/javax.swing.plaf.basic.BasicTextUI$RootView.removeUpdate(Unknown Source)
	at java.desktop/javax.swing.plaf.basic.BasicTextUI$UpdateHandler.removeUpdate(Unknown Source)
	at java.desktop/javax.swing.text.AbstractDocument.fireRemoveUpdate(Unknown Source)
	at java.desktop/javax.swing.text.AbstractDocument.handleRemove(Unknown Source)
	at java.desktop/javax.swing.text.AbstractDocument$DefaultFilterBypass.replace(Unknown Source)
	at java.desktop/javax.swing.text.DocumentFilter.replace(Unknown Source)
	at org.openstreetmap.josm.gui.tagging.ac.MaxLengthDocumentFilter.replace(MaxLengthDocumentFilter.java:41)
	at java.desktop/javax.swing.text.AbstractDocument.replace(Unknown Source)
	at java.desktop/javax.swing.text.JTextComponent.setText(Unknown Source)
	at org.openstreetmap.josm.gui.widgets.JosmComboBox.setText(JosmComboBox.java:203)
	at org.openstreetmap.josm.gui.io.BasicUploadSettingsPanel.tableChanged(BasicUploadSettingsPanel.java:422)
	at java.desktop/javax.swing.table.AbstractTableModel.fireTableChanged(Unknown Source)
	at java.desktop/javax.swing.table.AbstractTableModel.fireTableDataChanged(Unknown Source)
	at org.openstreetmap.josm.gui.io.UploadDialogModel.fireTableDataChanged(UploadDialogModel.java:54)
	at org.openstreetmap.josm.gui.io.UploadDialogModel.put(UploadDialogModel.java:145)
	at org.openstreetmap.josm.gui.io.UploadDialog.propertyChange(UploadDialog.java:570)
	at java.desktop/java.beans.PropertyChangeSupport.fire(Unknown Source)
	at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
	at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
	at java.desktop/java.awt.Component.firePropertyChange(Unknown Source)
	at org.openstreetmap.josm.gui.io.ChangesetManagementPanel.itemStateChanged(ChangesetManagementPanel.java:187)
	at java.desktop/javax.swing.JComboBox.fireItemStateChanged(Unknown Source)
	at java.desktop/javax.swing.JComboBox.selectedItemChanged(Unknown Source)
	at java.desktop/javax.swing.JComboBox.contentsChanged(Unknown Source)
	at java.desktop/javax.swing.AbstractListModel.fireContentsChanged(Unknown Source)
	at org.openstreetmap.josm.gui.widgets.JosmComboBoxModel.setSelectedItem(JosmComboBoxModel.java:149)
	at java.desktop/javax.swing.JComboBox.setSelectedItem(Unknown Source)
	at org.openstreetmap.josm.gui.io.ChangesetManagementPanel.refreshCombo(ChangesetManagementPanel.java:274)
	at org.openstreetmap.josm.gui.io.ChangesetManagementPanel.lambda$changesetCacheUpdated$0(ChangesetManagementPanel.java:280)
	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.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.WaitDispatchSupport$2.run(Unknown Source)
	at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source)
	at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.desktop/java.awt.WaitDispatchSupport.enter(Unknown Source)
	at java.desktop/java.awt.Dialog.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 java.desktop/java.awt.Dialog.setVisible(Unknown Source)
	at org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor.lambda$doBeginTask$3(PleaseWaitProgressMonitor.java:255)
	at org.openstreetmap.josm.gui.progress.swing.PleaseWaitProgressMonitor.lambda$doInEDT$0(PleaseWaitProgressMonitor.java:113)
	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 (3)

comment:1 by taylor.smock, 2 years ago

Owner: changed from team to cosborne0731@…
Status: newneedinfo

perhaps the issue is with Chinese characters?

Maybe?

If you can reproduce, it would be appreciated if you could tell us (a) what you were typing, (b) what was in the text field you were editing, and (c) the text selection you were replacing or the cursor location.

I wasn't able to reproduce with the given information, unfortunately.

I used the source tag from the changeset you mentioned to try and reproduce, During a ride on Feb 25, 2023, I recorded a GPX trace and uploaded it to OSM (the trace filename is 2023_02_25_13_20_Sat.gpx). 地圖疊加層來自 Bing Aerial Maps。在 2023 年 2 月 25 日的一次騎行中,我記錄了 GPX trace並上傳到 OSM。 (trace 文件名是 2023_02_25_13_20_Sat.gpx)。

comment:2 by taylor.smock, 2 years ago

Summary: Not exactly sure what happenedIllegalArgumentException: offsetLimit must be after current position in MaxLengthDocumentFilter.replace

comment:3 by taylor.smock, 21 months ago

Resolution: needinfo
Status: needinfoclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain cosborne0731@….
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.