gluonhq / maps

https://gluonhq.com/labs/maps/
GNU General Public License v3.0
137 stars 34 forks source link

Missing Times & Connection Timeouts #41

Closed dlemmermann closed 4 years ago

dlemmermann commented 4 years ago

I am trying to integrate the map into our CRM system and I notice that after a few seconds of use the map starts missing tiles, connection timeouts appear a lot, the map seems to hang. We are using Java 14 and OpenJFX 14.

We are using 2.0.0-ea+3 and attach 4.0.5.

Screenshot 2020-03-31 at 17 16 01
abhinayagarwal commented 4 years ago

Can you see any exceptions?

dlemmermann commented 4 years ago

No nothing. But I forgot to mention that this is the alpha release that I am using.

Abhinay Agarwal notifications@github.com schrieb am Mo. 27. Apr. 2020 um 20:45:

Can you see any exceptions?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gluonhq/maps/issues/41#issuecomment-620164534, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACIXWXKJSOWC7DBJSRJV6KDROXHGJANCNFSM4LXUS7HQ .

-- Dirk Lemmermann

Software & Consulting Zurich, Switzerland +41-(0)79-800-23-20 http://www.dlsc.com mailto:dlemmermann@gmail.com

abhinayagarwal commented 4 years ago

Will it be possible for you to create a SSCCE so that we can further diagnose the issue?

dlemmermann commented 4 years ago

Exception I can now see in my SSCCE is this:

Apr 28, 2020 12:10:13 PM com.gluonhq.impl.maps.tile.osm.CachedOsmTileRetriever$CacheThread doCache SEVERE: null java.net.SocketTimeoutException: Read timed out at java.base/java.net.SocketInputStream.socketRead0(Native Method) at java.base/java.net.SocketInputStream.socketRead(SocketInputStream.java:115) at java.base/java.net.SocketInputStream.read(SocketInputStream.java:168) at java.base/java.net.SocketInputStream.read(SocketInputStream.java:140) at java.base/java.io.BufferedInputStream.fill(BufferedInputStream.java:252) at java.base/java.io.BufferedInputStream.read1(BufferedInputStream.java:292) at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:351) at java.base/sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:746) at java.base/sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:689) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1610) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1515) at com.gluonhq.impl.maps.tile.osm.CachedOsmTileRetriever$CacheThread.doCache(CachedOsmTileRetriever.java:189) at com.gluonhq.impl.maps.tile.osm.CachedOsmTileRetriever$CacheThread.run(CachedOsmTileRetriever.java:156)

dlemmermann commented 4 years ago
import com.gluonhq.maps.MapView;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;

public class MapDemo extends Application {

    @Override
    public void start(Stage stage) {
        MapView view = new MapView();
        BorderPane wrapper = new BorderPane(view);
        Scene scene = new Scene(wrapper);
        stage.setScene(scene);
        stage.setTitle("Map Bug");
        stage.setWidth(1000);
        stage.setHeight(900);
        stage.centerOnScreen();
        stage.show();
    }
}
dlemmermann commented 4 years ago

This is now on desktop. There it actually works somewhat OK, but on my iPhone it freezes completely after a few pinch zoom operations.

dlemmermann commented 4 years ago

I think I found the culprit. The storage service was not there. I missed that message. Now it seems to perform and behave nicely.