Your message dated Mon, 11 Mar 2024 21:24:11 +0000
with message-id <[email protected]>
and subject line Bug#1065678: fixed in josm 0.0.svn18969+dfsg2-2
has caused the Debian Bug report #1065678,
regarding josm: JOSM hangs when downloading Bing imagery, but only the first 
time in a session
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1065678: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1065678
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: josm
Version: 0.0.svn18969+dfsg-1
Severity: normal
X-Debbugs-Cc: [email protected]

Dear Maintainer,

When JOSM is instructed to download Bing background satellite and aerial 
imagery, it hangs the first time JOSM is launched on a day of map editing. 
It seems to be a key caching issue. If JOSM is then killed, and 
subsequently launched again, it downloads the Bing imagery just fine.

If enough time then elapses without launching JOSM, the situation repeats. 
For me this is usually about a day, but the timeframe is probably a lot 
shorter.

I would expect Bing background imagery to be downloaded fine every time, 
without causing JOSM to hang.


## Minimal Steps to Reproduce

The hang will happen in all ordinary usage when Bing imagry is used, but in 
order to rule out config files and settings, you can run JOSM as

   $ JAVA_OPTS="-Djosm.home=/tmp/josmhome.$$" josm --skip-plugins --debug

This prevents it from loading your personal config file or any downloaded 
plugins. As soon as the main interface loads, add a Bing layer using

   Imagery → Bing aerial imagery

If this is the *first* time the josm.home location is being used (i.e. it 
didn’t exist before), JOSM will then hang with the final debug messages
shown immediately below. JOSM then hangs and has to be killed with ^C or 
using xkill.

-----------------------8<----------------------
[...]
2024-03-08 20:12:56.115 FINE: Unsupported savable layer type: TMSLayer
2024-03-08 20:12:56.120 FINE: Contacting Server...
2024-03-08 20:12:56.120 FINE: REQUEST HEADERS: {Accept=*/*, 
Accept-Encoding=gzip, deflate}
2024-03-08 20:12:56.223 INFO: GET 
https://dev.virtualearth.net/REST/v1/Imagery/Metadata/AerialOSM?include=ImageryProviders&output=xml&key=...stripped...
 -> HTTP/1.1 200 (102 ms)
2024-03-08 20:12:56.223 FINE: RESPONSE HEADERS: {Transfer-Encoding=[chunked], 
null=[HTTP/1.1 200 OK], X-Cache=[CONFIG_NOCACHE], 
x-azure-ref=[20240308T201256Z-39saph36ah08xe5gfvn6y1z8pw000000083g0000000001pm],
 X-BM-TraceID=[cbf82a8a7dda1cbe233823c5d9cd1a91], Alt-Svc=[h3=":443"; 
ma=86400], Access-Control-Allow-Origin=[*], Access-Control-Allow-Methods=[POST, 
GET, OPTIONS], X-BM-FE-Elapsed=[5], Connection=[keep-alive], 
Access-Control-Allow-Headers=[Content-Type,X-FD-Features,X-FD-FLIGHT,PreferAnonymous],
 Date=[Fri, 08 Mar 2024 20:12:56 GMT], Cache-Control=[no-cache], 
X-AspNet-Version=[4.0.30319], X-BM-Srv=[mapsplatform-frontend-55b6b7bd84-p2lfw, 
DU00003064], Content-Encoding=[gzip], Vary=[Accept-Encoding], 
X-MS-BM-WS-INFO=[0], X-Powered-By=[ASP.NET], Content-Type=[application/xml; 
charset=utf-8]}
2024-03-08 20:12:56.223 FINE: Downloading data...
2024-03-08 20:12:56.224 INFO: Successfully loaded Bing attribution data.
[hangs, ^C]
----------------------->8----------------------

If it’s the *second* time around (within some unknown number of minutes), 
JOSM does not hang, and goes on to print messages like

-----------------------8<----------------------
2024-03-08 20:17:01.005 FINE: Unsupported savable layer type: TMSLayer
2024-03-08 20:17:01.033 FINE: Reading Bing logo from 
https://dev.virtualearth.net/Branding/logo_powered_by.png
2024-03-08 20:17:01.038 FINE: Contacting Server...
2024-03-08 20:17:01.039 FINE: REQUEST HEADERS: {Accept=*/*, 
Accept-Encoding=gzip, deflate}
2024-03-08 20:17:01.420 INFO: GET 
https://dev.virtualearth.net/Branding/logo_powered_by.png -> HTTP/1.1 200 (381 
ms; 1.17 kB)
2024-03-08 20:17:01.420 FINE: RESPONSE HEADERS: {Accept-Ranges=[bytes], 
null=[HTTP/1.1 200 OK], X-Cache=[CONFIG_NOCACHE], Alt-Svc=[h3=":443"; 
ma=86400], Cache-Control=[max-age=86400], ETag=["1da6b47d7e7e12e"], 
Last-Modified=[Thu, 29 Feb 2024 19:45:27 GMT], 
X-Azure-Ref=[0PXLrZQAAAABRV4dQ4FinSYsXKjq3EwHuTE9OMjFFREdFMTgxMgBmMTI3MDYwYi1mNDk4LTRlMjAtYjVkZi1hZWIyMzczZWM5NWU=],
 Content-Length=[1198], Date=[Fri, 08 Mar 2024 20:17:00 GMT], 
Content-Type=[image/png]}
2024-03-08 20:17:01.421 FINE: Downloading data...
2024-03-08 20:17:01.480 INFO: AbstractTileSourceLayer: estimated visible tiles: 
54, estimated cache size: 466
2024-03-08 20:17:01.484 FINE: zoomChanged(): 2
2024-03-08 20:17:01.580 INFO: AbstractTileSourceLayer: estimated visible tiles: 
54, estimated cache size: 466
2024-03-08 20:17:01.629 INFO: AbstractTileSourceLayer: estimated visible tiles: 
54, estimated cache size: 466
2024-03-08 20:17:01.631 INFO: Allocate for tile source layer: 116 MB of memory. 
Available: 3 914 MB.
2024-03-08 20:17:01.644 FINE: zoomChanged(): 14
2024-03-08 20:17:01.645 FINE: JCS - Submitting job for execution for url: 
https://ecn.t2.tiles.virtualearth.net/tiles/a30000000000000.jpeg?g=14355&pr=odbl
2024-03-08 20:17:01.646 FINE: JCS - Submitting job for execution for url: 
https://ecn.t1.tiles.virtualearth.net/tiles/a21111111111111.jpeg?g=14355&pr=odbl
2024-03-08 20:17:01.646 FINE: JCS - starting fetch of url: 
https://ecn.t2.tiles.virtualearth.net/tiles/a30000000000000.jpeg?g=14355&pr=odbl
 
2024-03-08 20:17:01.646 FINE: JCS - starting fetch of url: 
https://ecn.t1.tiles.virtualearth.net/tiles/a21111111111111.jpeg?g=14355&pr=odbl
 
2024-03-08 20:17:01.647 FINE: JCS - Submitting job for execution for url: 
https://ecn.t1.tiles.virtualearth.net/tiles/a12222222222222.jpeg?g=14355&pr=odbl
2024-03-08 20:17:01.647 FINE: JCS - starting fetch of url: 
https://ecn.t1.tiles.virtualearth.net/tiles/a12222222222222.jpeg?g=14355&pr=odbl
 
2024-03-08 20:17:01.647 FINE: JCS - starting HttpClient GET request for URL: 
https://ecn.t1.tiles.virtualearth.net/tiles/a21111111111111.jpeg?g=14355&pr=odbl
2024-03-08 20:17:01.647 FINE: JCS - starting HttpClient GET request for URL: 
https://ecn.t2.tiles.virtualearth.net/tiles/a30000000000000.jpeg?g=14355&pr=odbl
2024-03-08 20:17:01.647 FINE: JCS - Submitting job for execution for url: 
https://ecn.t3.tiles.virtualearth.net/tiles/a30000000000002.jpeg?g=14355&pr=odbl
2024-03-08 20:17:01.648 FINE: Contacting Server...
----------------------->8----------------------

And so on. The program is now fully usable.

I would guess this is a cache directory liveness issue. That’s because the 
misbehaviour can also be provoked by deleting JOSM’s cache (which is 
normally ~/.cache/JOSM) before launching JOSM with your normal prefs, 
plugins, and presets. JOSM will then hang regardless of when it’s launched: 
the hang happens when JOSM is doing its Bing cache initialization or a full 
refresh (perhaps some magic numbers for the service?)

The workaround is to launch JOSM and try and download Bing imagery, let it 
hang, then kill it and start it again. A bit annoying to have to do before 
each editing session, but it works.


   thanks for maintaining,
   Andrew


-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (900, 'testing'), (500, 'unstable-debug'), (500, 
'testing-debug'), (5, 'unstable'), (1, 'experimental-debug'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.6.15-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_USER
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages josm depends on:
ii  default-jre [java9-runtime]     2:1.17-75
ii  fonts-noto                      20201225-2
ii  jmapviewer                      2.19+dfsg-1
ii  libcommons-compress-java        1.25.0-1
ii  libgettext-commons-java         0.9.6-6
ii  openjdk-17-jre [java9-runtime]  17.0.10+7-1
ii  openjfx                         11.0.11+1-3.1
ii  proj-data                       9.3.1-1

Versions of packages josm recommends:
ii  josm-l10n  0.0.svn18969+dfsg-1

josm suggests no packages.

-- Configuration Files:
/etc/default/josm changed:


-- no debconf information

--- End Message ---
--- Begin Message ---
Source: josm
Source-Version: 0.0.svn18969+dfsg2-2
Done: Bas Couwenberg <[email protected]>

We believe that the bug you reported is fixed in the latest version of
josm, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bas Couwenberg <[email protected]> (supplier of updated josm package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 11 Mar 2024 21:54:49 +0100
Source: josm
Architecture: source
Version: 0.0.svn18969+dfsg2-2
Distribution: unstable
Urgency: medium
Maintainer: Debian GIS Project <[email protected]>
Changed-By: Bas Couwenberg <[email protected]>
Closes: 1065678
Changes:
 josm (0.0.svn18969+dfsg2-2) unstable; urgency=medium
 .
   * Add upstream patch to fix dead lock when downloading Bing imagery.
     (closes: #1065678)
Checksums-Sha1:
 bc03e6ffd8cf86f465913e189a579a800ed375d6 2270 josm_0.0.svn18969+dfsg2-2.dsc
 f0c7668620984da4cc6f8113a0954c6e33f45f8a 56896 
josm_0.0.svn18969+dfsg2-2.debian.tar.xz
 494f3a7c572d7e7d152543da92840f8bb99c8fe7 12503 
josm_0.0.svn18969+dfsg2-2_amd64.buildinfo
Checksums-Sha256:
 b110f64ea393ca0e384d5e6f033dbbff0538568d52c3f8fd2de87b6d22a5ce18 2270 
josm_0.0.svn18969+dfsg2-2.dsc
 bc1ce1ec65f3d6178ada3a4af31ed7f0ce1c80cf0e133f292083bb8247037af0 56896 
josm_0.0.svn18969+dfsg2-2.debian.tar.xz
 7d821e375d4a76c16cc0a14d82613691a86fc47465a3a7e617f1d2e642bfd292 12503 
josm_0.0.svn18969+dfsg2-2_amd64.buildinfo
Files:
 ebe84331d6a83f74ca8c8156edca5983 2270 utils optional 
josm_0.0.svn18969+dfsg2-2.dsc
 af958e837de36125683913ad5594837e 56896 utils optional 
josm_0.0.svn18969+dfsg2-2.debian.tar.xz
 33cc8766614c8bf5c35c03fd9ea37efc 12503 utils optional 
josm_0.0.svn18969+dfsg2-2_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEgYLeQXBWQI1hRlDRZ1DxCuiNSvEFAmXvcJ8ACgkQZ1DxCuiN
SvHNKA/9E3ODxHt1RybFi6dIRGplGCQkOTtPX3Ft/ibYOXgVWyKuJy1nxiW8yslM
ZbTlq+0MaM6zDKD/FHhryoUDOnS3o3axnjyTWRZufOm+fErsu2+ziOlEeEwht3we
xA/fmSjWenQZd0bFSPzgJWettfMqm/4lTEO0G1MXEme6+dh8UBHnRYppOl2oP0jY
xMznX+BC/xHOuKf/djSOgrfFyhLowTUdNziEaWeONxvmm7dDQ7qcERBdsLOaaoee
XpM2VYE0e6JtBBzx0YWsNofEGoMlyGl7hU26OnHyFhwM3DRiwxseXUoYT8AHmrw9
l7Gz4HfmmGLiprU/0C/RKkiItnA4yBSTJoTHG6ObEsi85ame4wMxwkqyta/zlwJA
36ORzZcYZdjIONKONWnWf/c+FGmZoB4zYh3WZUwpRndwaQfqdwdMwGXhMbDkcrr0
l6zWvqnm0oyRfwDu1OtaEkjoS0EgCSuZSgOl5g4RWhGXc9rJTobL9OHXBTyttuXU
1doaBKLCZcLCdQRdkGPz+1Mrc3lnvfZ1rnFS/O3a4YAdsi3B6I8R63dojJ9wo8rd
kQdVrioDN8SEcYoItMeonCgiIADlTABIBwzXSbHJlWAq9nQljPEJQyOMwBM/kIDJ
K7tYi0PGs2nrlWrYXMgJF4ELIwn5tl8UgMGzeeFndua09jVW950=
=jRF2
-----END PGP SIGNATURE-----

Attachment: pgppEjxYHKc6l.pgp
Description: PGP signature


--- End Message ---

Reply via email to