Opened 6 years ago
Last modified 3 years ago
#17184 reopened defect
Memory Leaks
Reported by: | GerdP | Owned by: | GerdP |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | |
Keywords: | template_report | Cc: |
Description
What steps will reproduce the problem?
- Ctrl+N : Open new data layer
- Alt+Shift+V: Make sure Validator Panel is visible
- Draw a way without adding tags
- Upload (a popup shows that you have a way without tags)
- Press continue
- Press cancel in the following dialog
- Close all layers to get back to the "Getting Started" dialog
- Repeat steps 1-7
- Create heap dump with e.g. VisualVM and look at instances of ValidatorTreePanel
What is the expected result?
No or maybe 1 instance
What happens instead?
2 instances
Please provide any additional information below. Attach a screenshot if possible.
Working on a patch...
URL:https://josm.openstreetmap.de/svn/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2018-12-31 15:09:58 +0100 (Mon, 31 Dec 2018) Build-Date:2018-12-31 14:24:10 Revision:14620 Relative:URL: ^/trunk Identification: JOSM/1.5 (14620 de) Windows 10 64-Bit OS Build number: Windows 10 Home 1803 (17134) Memory Usage: 707 MB / 1820 MB (560 MB allocated, but free) Java version: 1.8.0_191-b12, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM Screen: \Display0 1920x1080 Maximum Screen Size: 1920x1080 Plugins: + OpeningHoursEditor (34535) + apache-commons (34506) + buildings_tools (34807) + download_along (34503) + ejml (34389) + geotools (34513) + jaxb (34506) + jts (34524) + o5m (34405) + opendata (34805) + pbf (34576) + poly (34546) + reltoolbox (34788) + reverter (34552) + utilsplugin2 (34793) Last errors/warnings: - W: No configuration settings found. Using hardcoded default values for all pools. - W: Region [TMS_BLOCK_v2] Resetting cache - W: Cannot start IPv4 remotecontrol https server on port 8112: Keystore was tampered with, or password was incorrect - W: Cannot start IPv6 remotecontrol https server on port 8112: Keystore was tampered with, or password was incorrect
Attachments (1)
Change History (28)
comment:1 by , 6 years ago
Owner: | changed from | to
---|---|
Status: | assigned → new |
comment:2 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 by , 6 years ago
Milestone: | → 19.01 |
---|
comment:4 by , 6 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
I've now learned that I have to watch the mouse cursor position when doing my tests. I see very different results in the heap dumps depending on the panels that the mouse cursor was in. So, some of the leaks which I found in #17040 still exist, esp. those in the preferences dialog. Many elements of that dialog are only freed when a new Preference Dialog is created, so they are never reused but kept for as long as JOSM runs. Still trying to find the cause...
by , 6 years ago
Attachment: | 17184.patch added |
---|
follow-up: 10 comment:6 by , 6 years ago
This patch seems to make it more likely that the add tag dialog "forgets" the keyboard. When I edit with this patch I often see
cases where the OK button is enabled but pressing enter has no effect.
comment:7 by , 6 years ago
Milestone: | 19.01 → 19.02 |
---|
comment:8 by , 6 years ago
Milestone: | 19.02 → 19.03 |
---|
comment:9 by , 6 years ago
Milestone: | 19.03 |
---|
comment:10 by , 5 years ago
Replying to GerdP:
This patch seems to make it more likely that the add tag dialog "forgets" the keyboard. When I edit with this patch I often see
cases where the OK button is enabled but pressing enter has no effect.
I notice the lost of focus almost all the time with dialogs like "download data" and "add tag". Have to recheck but think that #5280 and #13497 were not completely fixed.
comment:26 by , 4 years ago
Seems I made some progress here. My last few edit sessions didn't show any leak regarding GPX data or OSM data (after upload and closing all layers). I only used buildings_tools and utilsplugin2 and of course lots of core actions/modes, so that doesn't mean much ;)
In 14672/josm: