Code Monkey home page Code Monkey logo

Comments (18)

louwers avatar louwers commented on June 26, 2024

I cannot reproduce the problem, but this style is also known to be malfunctioning. Try with another tile source please.

from maplibre-native.

chjaeggi avatar chjaeggi commented on June 26, 2024

Did you use a real pixel device? Not an emulated one?
Me and my colleagues can reproduce it independent of a particular style on these phones.

There are other styles causing this issue even more like this:
https://demotiles.maplibre.org/styles/osm-bright-gl-terrain/style.json

and not so frequent but still explorable especially when pinch to zoom closely:
https://demotiles.maplibre.org/style.json

please note those are styles provided in your demo application.

How should we proceed, please advise,

Cheers
C

from maplibre-native.

louwers avatar louwers commented on June 26, 2024

I tested on a Samsung S10 and a Google Pixel 7.

What version of OkHttp are you using?

Does the error occur if you don't set the HTTP client?

from maplibre-native.

chjaeggi avatar chjaeggi commented on June 26, 2024

The one mentioned in the discussion, let's see:

implementation("com.squareup.okhttp3:okhttp:4.11.0")

Without the client I am not able to fetch the style, am I?

from maplibre-native.

louwers avatar louwers commented on June 26, 2024

@chjaeggi It is not needed, it will fall back to the default ok http client (it is a dependency).

Edit: The 10.2.0 release used OkHttp 4.10.0, so it should be compatible. But you might want to try removing it.

from maplibre-native.

chjaeggi avatar chjaeggi commented on June 26, 2024

I removed everything related to OKHttp, it really seems an issue with your code accessing disk (as the device is getting hot after a time, not sure about that as I/O could relate to network communication)

from maplibre-native.

louwers avatar louwers commented on June 26, 2024

Can you provide more output?

Does it happen on other phones too?

What Android version are you using?

We do benchmarking and Android UI tests on Pixel devices and we have not encountered this issue.

from maplibre-native.

chjaeggi avatar chjaeggi commented on June 26, 2024

At the moment all I have is this:

2024-02-20 16:45:20.705 15143-15375 recomposesample         ch.exmple.mapslibrecomposesample     E  PIXEL: ioctl err: 1
2024-02-20 16:45:20.715 15143-15375 recomposesample         ch.exmple.mapslibrecomposesample     E  PIXEL: ioctl err: 1
2024-02-20 16:45:20.732 15143-15375 recomposesample         ch.exmple.mapslibrecomposesample     E  PIXEL: ioctl err: 1
2024-02-20 16:45:20.749 15143-15375 recomposesample         ch.exmple.mapslibrecomposesample     E  PIXEL: ioctl err: 1
2024-02-20 16:45:20.764 15143-15375 recomposesample         ch.exmple.mapslibrecomposesample     E  PIXEL: ioctl err: 1
2024-02-20 16:45:20.784 15143-15375 recomposesample         ch.exmple.mapslibrecomposesample     E  PIXEL: ioctl err: 1
2024-02-20 16:45:20.799 15143-15375 recomposesample         ch.exmple.mapslibrecomposesample     E  PIXEL: ioctl err: 1

... errors counting heavily up

There is not more output besides that line unfortunately.

Other phones yes: each pixel we tested so far (Pixel 8 Pro, Pixel Foldable, Pixel 5 and Pixel 4)
Version Android 13 and 14.

from maplibre-native.

louwers avatar louwers commented on June 26, 2024

One last thing you could try is to use an AppCompatActivity instead of a ComponentActivity, since that is what is used for all our testing.

from maplibre-native.

chjaeggi avatar chjaeggi commented on June 26, 2024

hey there thanks for the support! Unfortunately no success either with an AppCompatActivity and
theme <style name="Theme.MapsLibreComposeSample" parent="Theme.AppCompat.NoActionBar" />.

Same error still.

It really is strange that you cannot observe these events on none of your pixel phones

from maplibre-native.

chjaeggi avatar chjaeggi commented on June 26, 2024

I assume while looking at the code those errors can only originate from the:
MapboxGLSurfaceView class which does the heavy lifting and also the error occurs when wandering around the map

from maplibre-native.

chjaeggi avatar chjaeggi commented on June 26, 2024

any updates?

from maplibre-native.

louwers avatar louwers commented on June 26, 2024

@chjaeggi Can you try this? I just built it myself and ran it on a clean Pixel 8 Pro (no error). https://drive.google.com/file/d/1FVM4ypLjiRaVxE4jUJuwJRhIj6v_-MKx/view?usp=sharing

If it works there is something wrong with your build setup. If it doesn't work there is probably something wrong with your devices...

from maplibre-native.

louwers avatar louwers commented on June 26, 2024

animated location indicator

This might be what is making the phone hot. I'll merge this today and release a new pre-release, maybe you could see if that fixes it. #2182

from maplibre-native.

chjaeggi avatar chjaeggi commented on June 26, 2024

What release number would that be? Is it merged already? Thanks for the help

from maplibre-native.

louwers avatar louwers commented on June 26, 2024

Thhat is a build from main, so the upcoming 11.0.0 release.

from maplibre-native.

chjaeggi avatar chjaeggi commented on June 26, 2024

sorry for the hassle i generate. any update when this will be released? I have a hard time to debug with all thoses errors and I would love to test the new release. Is there a way I can locally build one myself?

from maplibre-native.

louwers avatar louwers commented on June 26, 2024

@chjaeggi No problem. The 11.0.0 release is scheduled for the end of this month.

You can build the library with ./gradlew assemble in platform/android. Make sure to clone the submodules. https://github.com/maplibre/maplibre-native/blob/main/platform/android/DEVELOPING.md#getting-the-source

from maplibre-native.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.