Modify

Opened 5 years ago

Closed 4 years ago

#18912 closed defect (fixed)

Sidebuttons keep increasing after using walk mode

Reported by: GhostFoxSledgehammer Owned by: jpietri
Priority: normal Milestone:
Component: Plugin mapillary Version:
Keywords: template_report Cc: Don-vip

Description

What steps will reproduce the problem?

  1. Use walk mode in mapillary.
  2. Right click on Mapillary main dialog.

What is the expected result?

PopupMenu with Play,Pause and Stop buttons appear and changes back to default buttons.

What happens instead?

Buttons keep increasing after every time walk mode is used.

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

I think this is due to mapillary image dialog being created every time Walk Mode is used

URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2020-02-26 10:50:27 +0100 (Wed, 26 Feb 2020)
Build-Date:2020-02-26 09:52:41
Revision:15937
Relative:URL: ^/trunk

Identification: JOSM/1.5 (15937 en) Windows 10 64-Bit
OS Build number: Windows 10 Home 1903 (18362)
Memory Usage: 373 MB / 989 MB (130 MB allocated, but free)
Java version: 1.8.0_241-b07, Oracle Corporation, Java HotSpot(TM) Client VM
Screen: \Display0 1920x1080
Maximum Screen Size: 1920x1080

Plugins:
+ Mapillary (1.5.20-31-g6a694d9-dirty)
+ apache-commons (35092)
+ apache-http (35092)
+ javafx-windows
+ jna (35092)
+ log4j (35092)
+ routing (35313)
+ wikipedia (1.1.3)

Map paint styles:
+ https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransport&zip=1

Last errors/warnings:
- W: Unable to request certificate of https://grca.nat.gov.tw
- W: Plugin javafx-windows requires Java version 10. The current Java version is 8. You have to update Java in order to use this plugin.
- E: unable to find dependency javafx for plugin Mapillary
- W: Region [userProfile_BLOCK_v2]  Problem verifying disk.
- W: java.net.SocketTimeoutException: Read timed out. Cause: java.net.SocketTimeoutException: Read timed out
- W: java.net.SocketTimeoutException: Read timed out. Cause: java.net.SocketTimeoutException: Read timed out
- W: java.net.SocketException: Unexpected end of file from server. Cause: java.net.SocketException: Unexpected end of file from server
- W: org.openstreetmap.josm.tools.bugreport.BugReportSender$BugReportSenderException: java.net.SocketException: Unexpected end of file from server. Cause: java.net.SocketException: Unexpected end of file from server. Cause: java.net.SocketException: Unexpected end of file from server

Attachments (3)

Screenshot (9).png (393.2 KB ) - added by GhostFoxSledgehammer 5 years ago.
18912.patch (676 bytes ) - added by taylor.smock 5 years ago.
Minimal patch, more likely to break plugins relying upon existing functionality
18912.1.patch (792 bytes ) - added by taylor.smock 5 years ago.
Add method to clear button actions. Requires plugin support.

Download all attachments as: .zip

Change History (9)

by GhostFoxSledgehammer, 5 years ago

Attachment: Screenshot (9).png added

comment:1 by taylor.smock, 5 years ago

It looks like it is because there is not currently a method to clear buttonActions before adding the new buttons.

by taylor.smock, 5 years ago

Attachment: 18912.patch added

Minimal patch, more likely to break plugins relying upon existing functionality

by taylor.smock, 5 years ago

Attachment: 18912.1.patch added

Add method to clear button actions. Requires plugin support.

comment:2 by taylor.smock, 5 years ago

Cc: Don-vip added
Summary: Sidebuttons keep increasing after using walk mode[RFC PATCH] Sidebuttons keep increasing after using walk mode

I've attached two patches, one assumes that everyone wants to clear the buttonActions when createLayout is called. The other requires the plugin to specifically call clearButtonActions() prior to creating the new layout.

comment:3 by Don-vip, 5 years ago

I'll apply the second one to avoid unexpected weird regressions in existing plugins.

comment:4 by Don-vip, 5 years ago

In 16113/josm:

see #18912 - add new method to clear button actions

comment:5 by Don-vip, 4 years ago

Summary: [RFC PATCH] Sidebuttons keep increasing after using walk modeSidebuttons keep increasing after using walk mode

comment:6 by taylor.smock, 4 years ago

Resolution: fixed
Status: newclosed

I've got a patch that fixes this issue. It might be a little while before it makes it to a release version though, but I'm going to go ahead and close this bug.

(until I rebase again, url for patch is https://gitlab.com/gokaart/josm-mapillary-plugin/-/commit/5156b48f03400e7d9732f0d8aef5263b94c94441 ).

Modify Ticket

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