Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#19865 closed defect (fixed)

[PATCH] IOOBE selecting several pictures and attempting to delete them

Reported by: anonymous Owned by: francois2
Priority: normal Milestone: 20.09
Component: Core image mapping Version:
Keywords: template_report Cc: francois2

Description

What steps will reproduce the problem?

  1. Load a bunch of pictures
  2. Select several pictures (Shift+Ricght Click)
  3. Press on the wastebasket in the pictures panel

What is the expected result?

The selected pictures should be deleted.

What happens instead?

An expected error trace pops up.

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

URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2020-09-23 14:54:56 +0200 (Wed, 23 Sep 2020)
Build-Date:2020-09-24 01:30:50
Revision:17055
Relative:URL: ^/trunk

Identification: JOSM/1.5 (17055 fr) Linux Ubuntu 18.04.5 LTS
Memory Usage: 2012 MB / 2012 MB (589 MB allocated, but free)
Java version: 1.8.0_265-8u265-b01-0ubuntu2~18.04-b01, Private Build, OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel
Screen: :0.0 1920x1080 (scaling 1.0x1.0)
Maximum Screen Size: 1920x1080
Best cursor sizes: 16x16 -> 16x16, 32x32 -> 32x32
Desktop environment: ubuntu:GNOME
Java package: openjdk-8-jre:amd64-8u265-b01-0ubuntu2~18.04
Java ATK Wrapper package: libatk-wrapper-java:all-0.33.3-20ubuntu0.1
libcommons-compress-java: libcommons-compress-java:all-1.18-1~18.04
libcommons-logging-java: libcommons-logging-java:all-1.2-2
fonts-noto: fonts-noto:-
VM arguments: [-Djosm.pref=<josm.pref>]

Plugins:
+ Mapillary (1.5.25)
+ OpeningHoursEditor (35414)
+ PicLayer (35405)
+ apache-commons (35524)
+ apache-http (35092)
+ buildings_tools (35500)
+ changeset-viewer (22)
+ continuosDownload (91)
+ ejml (35313)
+ geotools (35169)
+ indoorhelper (20bf8a3-dirty)
+ javafx-unixoid (35458)
+ jaxb (35092)
+ jna (35092)
+ jts (35122)
+ opendata (35513)
+ openjfx
+ photo_geotagging (35499)
+ photoadjust (35405)
+ reverter (35554)
+ todo (30306)
+ undelete (35521)
+ utilsplugin2 (35487)

Map paint styles:
- https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransportV2&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Styles/Sidewalks&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Modified&zip=1
- ${HOME}/Bureau/railway-station.mapcss
- https://josm.openstreetmap.de/josmfile?page=Styles/Lane_and_Road_Attributes&zip=1
- ${HOME}/Carto'Cité/Projets/1-Cloud/Île-de-France Mobilités/KeepItClean/Outils/MapCSS-JOSM-Bicycle/cycleway.mapcss
- https://github.com/igitov/forest-josm-style/archive/master.zip
- <josm.userdata>/styles/sit.mapcss

Validator rules:
+ ${HOME}/Bureau/railway-station.validator.mapcss

Last errors/warnings:
- 04386,391 E: Error reading EXIF from file: com.drew.metadata.MetadataException: Tag 'GPS Latitude' has not been set -- check using containsTag() first
- 04386,392 E: Error reading EXIF from file: com.drew.metadata.MetadataException: Tag 'GPS Latitude' has not been set -- check using containsTag() first
- 04386,393 E: Error reading EXIF from file: com.drew.metadata.MetadataException: Tag 'GPS Latitude' has not been set -- check using containsTag() first
- 04386,395 E: Error reading EXIF from file: com.drew.metadata.MetadataException: Tag 'GPS Latitude' has not been set -- check using containsTag() first
- 04386,396 E: Error reading EXIF from file: com.drew.metadata.MetadataException: Tag 'GPS Latitude' has not been set -- check using containsTag() first
- 04386,397 E: Error reading EXIF from file: com.drew.metadata.MetadataException: Tag 'GPS Latitude' has not been set -- check using containsTag() first
- 04386,398 E: Error reading EXIF from file: com.drew.metadata.MetadataException: Tag 'GPS Latitude' has not been set -- check using containsTag() first
- 04386,399 E: Error reading EXIF from file: com.drew.metadata.MetadataException: Tag 'GPS Latitude' has not been set -- check using containsTag() first
- 04690,638 E: Handled by bug report queue: java.lang.IndexOutOfBoundsException: Index: 299, Size: 297
- 04699,063 E: Handled by bug report queue: java.lang.IndexOutOfBoundsException: Index: 299, Size: 297


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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (16) of main
java.lang.IndexOutOfBoundsException: Index: 299, Size: 297
	at java.util.ArrayList.rangeCheck(ArrayList.java:659)
	at java.util.ArrayList.get(ArrayList.java:435)
	at org.openstreetmap.josm.data.ImageData.getSelectedImage(ImageData.java:117)
	at org.openstreetmap.josm.gui.layer.geoimage.ImageViewerDialog$ImageRemoveFromDiskAction.actionPerformed(ImageViewerDialog.java:315)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
	at java.awt.Component.processMouseEvent(Component.java:6539)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
	at java.awt.Component.processEvent(Component.java:6304)
	at java.awt.Container.processEvent(Container.java:2239)
	at java.awt.Component.dispatchEventImpl(Component.java:4889)
	at java.awt.Container.dispatchEventImpl(Container.java:2297)
	at java.awt.Component.dispatchEvent(Component.java:4711)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
	at java.awt.Container.dispatchEventImpl(Container.java:2283)
	at java.awt.Window.dispatchEventImpl(Window.java:2746)
	at java.awt.Component.dispatchEvent(Component.java:4711)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
	at java.awt.EventQueue$4.run(EventQueue.java:733)
	at java.awt.EventQueue$4.run(EventQueue.java:731)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Attachments (1)

fix_ioobe_remove_image.patch (1.7 KB ) - added by francois2 4 years ago.
Fix removeImages

Download all attachments as: .zip

Change History (9)

comment:1 by Don-vip, 4 years ago

Cc: francois2 added
Component: CoreCore image mapping

Could be a regression from #18119 / #18130

@François could you please take a look?

comment:2 by Don-vip, 4 years ago

Summary: Selecting several pictures and attempting to delete them produces this failure.IOOBE selecting several pictures and attempting to delete them

comment:3 by francois2, 4 years ago

Owner: changed from team to francois2
Status: newassigned

comment:4 by francois2, 4 years ago

Could not find a way to reproduce it. Is there is any missing steps before trying to delete theses images?

by francois2, 4 years ago

Fix removeImages

comment:5 by francois2, 4 years ago

Summary: IOOBE selecting several pictures and attempting to delete them[PATCH] IOOBE selecting several pictures and attempting to delete them

comment:6 by Don-vip, 4 years ago

Milestone: 20.09

comment:7 by Don-vip, 4 years ago

Resolution: fixed
Status: assignedclosed

In 17081/josm:

fix #19865 - IOOBE selecting several pictures and attempting to delete them (patch by francois2)

comment:8 by Don-vip, 4 years ago

Thanks! :)

Modify Ticket

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