Giter Club home page Giter Club logo

Comments (12)

broady avatar broady commented on May 18, 2024

Hey Jonas, this is fixed in head. I will release v0.2.1 soon.

from android-maps-utils.

MichaelEvans avatar MichaelEvans commented on May 18, 2024

Any ETA on that release? :)

from android-maps-utils.

broady avatar broady commented on May 18, 2024

Sorry about that. You might have noticed a lack of activity from me :)

I've been swamped while launching this project: http://g.co/santatracker

I'll get to this ASAP. I'll need to make sure any other changes made
between the last release are suitable for a point release.

from android-maps-utils.

MichaelEvans avatar MichaelEvans commented on May 18, 2024

No problem, I figured there were more pressing matters :) (PS: Santa Tracker is awesome.)

No problem, thanks for this library! Will there be a bit of a change log for 0.2 -> 0.3?

from android-maps-utils.

ericpanorel avatar ericpanorel commented on May 18, 2024

Ughhh... Yeah I got this one too... I would like to elaborate more on how the crash happens.
1.) Works well when map is loaded (in a MapFragment).
2.) "Switch" to another activity (non-map) within my App
3.) "Swtich back" to my map Activity ... boom
... My code has a potential to update the markets anytime (called by the host Activity).

from android-maps-utils.

choefele avatar choefele commented on May 18, 2024

First of all thanks for this library.

I have this issue too. I'm loading my data from a server in batches and call addItems() followed by cluster() each time a new batch arrives. This all happens on the main thread. See here.

It works for a few batches then eventually crashes with a ConcurrentModificationException.

Removing PreCachingAlgorithmDecorator from ClusterController's mAlgorithm property and using NonHierarchicalDistanceBasedAlgorithm directly avoids this issue.

I'm using head (f862ec3). Also tried tag 0.2, but this version has the same issue.

Stack trace:

01-07 21:49:35.841: W/dalvikvm(10120): threadid=30: thread exiting with uncaught exception (group=0xa61f2908)
01-07 21:49:35.841: E/AndroidRuntime(10120): FATAL EXCEPTION: Thread-371
01-07 21:49:35.841: E/AndroidRuntime(10120): java.util.ConcurrentModificationException
01-07 21:49:35.841: E/AndroidRuntime(10120):    at java.util.ArrayList$ArrayListIterator.next(ArrayList.java:569)
01-07 21:49:35.841: E/AndroidRuntime(10120):    at com.google.maps.android.clustering.algo.NonHierarchicalDistanceBasedAlgorithm.getClusters(NonHierarchicalDistanceBasedAlgorithm.java:90)
01-07 21:49:35.841: E/AndroidRuntime(10120):    at com.google.maps.android.clustering.algo.PreCachingAlgorithmDecorator.getClustersInternal(PreCachingAlgorithmDecorator.java:83)
01-07 21:49:35.841: E/AndroidRuntime(10120):    at com.google.maps.android.clustering.algo.PreCachingAlgorithmDecorator.access$0(PreCachingAlgorithmDecorator.java:73)
01-07 21:49:35.841: E/AndroidRuntime(10120):    at com.google.maps.android.clustering.algo.PreCachingAlgorithmDecorator$PrecacheRunnable.run(PreCachingAlgorithmDecorator.java:106)
01-07 21:49:35.841: E/AndroidRuntime(10120):    at java.lang.Thread.run(Thread.java:856)

from android-maps-utils.

broady avatar broady commented on May 18, 2024

@choefele ouch - good catch.

from android-maps-utils.

broady avatar broady commented on May 18, 2024

This should fix that one:
1845be4

Cutting a release today/tomorrow.

from android-maps-utils.

broady avatar broady commented on May 18, 2024

0.2.1 is cut, and uploaded to sonatype. It will hit mvn central soon.

from android-maps-utils.

broady avatar broady commented on May 18, 2024

ba64fb9
7766100

from android-maps-utils.

landanurm-droogcompanii avatar landanurm-droogcompanii commented on May 18, 2024

defaultclusterrendererexception

Sorry for my English.

I've got this exception. I use standard renderer and algorithm (don't customize them).

from android-maps-utils.

PauloLinhares09 avatar PauloLinhares09 commented on May 18, 2024

Isso pode ser resolvido criando uma nova thread para fazer o while na lista de markers.
Em seguida é só voltar para a UI Thread quando for executar algum ação de UI como mMarker.remove() ou mMarker.setPosition(), por exemplo.

from android-maps-utils.

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.