#8770 closed defect (fixed)
JOSM calls lsb-release for every single action
Reported by: | anonymous | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | Cc: |
Description
JOSM recently became virtually unusable. It hangs on any action, if opening a dialog or closing it. I tracked it down to frequent calls to lsb-release, which in turn calls apt-cache policy which takes a few seconds on my system with many sources.
This behavior is extremely annoying, and I can't see any reason at all, why lsb-release should be called for what I'm doing.
Attachments (0)
Change History (6)
comment:3 by , 11 years ago
while the patch caches the lsb-results, why does every action call buildOSDescription in the first place?
follow-up: 5 comment:4 by , 11 years ago
The "every single action" part is over-reacted, as the initial priority.
Maybe related to wms requests.
comment:5 by , 11 years ago
Replying to Don-vip:
The "every single action" part is over-reacted, as the initial priority.
Maybe related to wms requests.
No. Just opening the "Add Property" dialog triggered it. Or closing it...
comment:6 by , 11 years ago
Ok, it's triggered with this stacktrace:
Version.getAgentString(boolean) line: 238 Version.getAgentString() line: 218 Preferences.updateSystemProperties() line: 1334 Preferences.save() line: 592 Preferences.put(String, String) line: 554 WindowGeometry.remember(String) line: 255
It's because system properties are updated each time we save preferences, we save preferences each time a preference is set, and a number of dialogs see their size/position stored in preferences. Caching the OS details request is fine, nothing to do more IMHO.
Your system info please.