Modify

Opened 2 years ago

Closed 2 years ago

#21795 closed defect (duplicate)

IAE/NSME in AreaSelector

Reported by: anonymous Owned by: team
Priority: normal Milestone:
Component: Plugin areaselector Version:
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

  1. Install areaselector plugin
  2. Use Tools -> Area Selection
  3. Click on image imported with piclayer plugin (PNG file)

What is the expected result?

Area is detected

What happens instead?

Plugin crashes

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

The first stack trace results when JOSM is started with: java -jar josm-tested.jar
It's caused by the plugin trying to access Java internals which are not for public use. This can be allowed but then another error is thrown.

The second stack trace results when JOSM is started with: java --add-exports=java.desktop/sun.awt.image=ALL-UNNAMED -jar josm-tested.jar
Looks like to plugin is incompatible with current JOSM versions.

Frist stack trace:

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2022-01-02 21:24:43 +0100 (Sun, 02 Jan 2022)
Revision:18360
Build-Date:2022-01-02 20:26:19
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (18360 en) Windows 10 64-Bit
OS Build number: Windows 10 Pro 2009 (19042)
Memory Usage: 308 MB / 8124 MB (74 MB allocated, but free)
Java version: 17.0.1+12-39, Oracle Corporation, OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1920×1080 (scaling 1.00×1.00) \Display1 2560×1440 (scaling 1.00×1.00)
Maximum Screen Size: 2560×1440
Best cursor sizes: 16×16→32×32, 32×32→32×32
System property file.encoding: UTF-8
System property sun.jnu.encoding: Cp1252
Locale info: en_US
Numbers with default locale: 1234567890 -> 1234567890
Dataset consistency test: No problems found

Plugins:
+ PicLayer (1.0.1)
+ areaselector (368)
+ austriaaddresshelper (1597341117)
+ ejml (35893)
+ log4j (35893)

Last errors/warnings:
- 00001.299 W: extended font config - overriding 'filename.Myanmar_Text=mmrtext.ttf' with 'MMRTEXT.TTF'
- 00001.306 W: extended font config - overriding 'filename.Mongolian_Baiti=monbaiti.ttf' with 'MONBAITI.TTF'
- 00007.445 W: Unable to request certificate of https://roottest-g3.pkioverheid.nl
- 00009.308 W: Unable to request certificate of https://roottest-g3.pkioverheid.nl
- 00018.522 W: Unable to request certificate of https://grca.nat.gov.tw
- 00037.060 W: Cannot lock cache directory. Will not use disk cache
- 00083.189 E: Handled by bug report queue: java.lang.IllegalAccessError: class boofcv.io.image.ConvertBufferedImage (in unnamed module @0x7a503f9) cannot access class sun.awt.image.ByteInterleavedRaster (in module java.desktop) because module java.desktop does not export sun.awt.image to unnamed module @0x7a503f9



=== STACK TRACE ===
Thread: AWT-EventQueue-0 (24) of main
java.lang.IllegalAccessError: class boofcv.io.image.ConvertBufferedImage (in unnamed module @0x7a503f9) cannot access class sun.awt.image.ByteInterleavedRaster (in module java.desktop) because module java.desktop does not export sun.awt.image to unnamed module @0x7a503f9
	at boofcv.io.image.ConvertBufferedImage.convertFrom(ConvertBufferedImage.java:319)
	at org.openstreetmap.josm.plugins.areaselector.ImageAnalyzer.detectCannyArea(ImageAnalyzer.java:690)
	at org.openstreetmap.josm.plugins.areaselector.ImageAnalyzer.getArea(ImageAnalyzer.java:151)
	at org.openstreetmap.josm.plugins.areaselector.AreaSelectorAction.createArea(AreaSelectorAction.java:197)
	at org.openstreetmap.josm.plugins.areaselector.AreaSelectorAction$1.run(AreaSelectorAction.java:150)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:741)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

Second stack trace:

Thread: AWT-EventQueue-0 (24) of main
java.lang.NoSuchMethodError: 'void org.openstreetmap.josm.gui.tagging.ac.AutoCompletingComboBox.setPossibleAcItems(java.util.Collection)'
	at org.openstreetmap.josm.plugins.areaselector.AddressDialog.<init>(AddressDialog.java:129)
	at org.openstreetmap.josm.plugins.areaselector.AreaSelectorAction.createArea(AreaSelectorAction.java:260)
	at org.openstreetmap.josm.plugins.areaselector.AreaSelectorAction$1.run(AreaSelectorAction.java:150)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:741)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

Attachments (0)

Change History (2)

comment:1 by anonymous, 2 years ago

Just noticed that the second exception was already reported to the plugin authors at https://github.com/JOSM/areaselector/issues/47

comment:2 by taylor.smock, 2 years ago

Component: CorePlugin areaselector
Resolution: duplicate
Status: newclosed
Summary: Crash when trying to use areaselector pluginIAE/NSME in AreaSelector

Closed as duplicate of #21511.
The first problem should be fixed in the master branch (see https://github.com/JOSM/areaselector/commit/a05f32558b760ad4273a21c7adfe7c97d77cd1bf ).
The second problem should be fixed in the master branch (see https://github.com/JOSM/areaselector/commit/28efff2dbcd5a77f6896819cf0a0eff1eac5bcf5 ).

Someone just needs do a release. I don't have permissions for that, and I'll ping #21511 for that.

See also #21226.

Modify Ticket

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