Comments (8)
Issue 31 has been merged into this issue.
Original comment by [email protected]
on 3 Sep 2013 at 6:23
from android-maps-extensions.
What is the exception?
What is the code that uses LazyMarker?
Original comment by [email protected]
on 3 Sep 2013 at 6:25
- Changed state: NeedsMoreInfo
from android-maps-extensions.
~"What is the exception?"
I am not able to reproduce it now. But at least I don't have to worry about my
app crashing...
~"What is the code that uses LazyMarker?"
There is a whole chain of calls within android-maps-extensions. That
particular getPosition() method is not called by my external project. I would
have to dig through many calls to get to the bottom of it. This is irrelevant,
exception checking is a must here.
Original comment by eazyigz
on 3 Sep 2013 at 7:33
from android-maps-extensions.
If that's from inside the lib and you are not creating LazyMarkers yourself,
then I suspect this might be after you call Marker.remove(), which makes
underlaying LazyMarker unusable in any way. After that, when
Marker.getPosition() is called for any reason, it throws NPE. Stacktrace would
help seeing if that's a memory leak in the lib.
Also, which version of the library are you using?
Original comment by [email protected]
on 3 Sep 2013 at 7:44
from android-maps-extensions.
Hello,
here is the stacktrace:
java.lang.NullPointerException
at maps.ag.bn.a(Unknown Source)
at maps.ag.bn.a(Unknown Source)
at maps.ag.an.a(Unknown Source)
at bkw.onTransact(SourceFile:167)
at android.os.Binder.transact(Binder.java:310)
at com.google.android.gms.maps.internal.IGoogleMapDelegate$a$a.addMarker(Unknown Source)
at com.google.android.gms.maps.GoogleMap.addMarker(Unknown Source)
at pl.mg6.android.maps.extensions.lazy.LazyMarker.createMarker(LazyMarker.java:198)
at pl.mg6.android.maps.extensions.lazy.LazyMarker.createMarker(LazyMarker.java:190)
at pl.mg6.android.maps.extensions.lazy.LazyMarker.setVisible(LazyMarker.java:178)
at pl.mg6.android.maps.extensions.impl.DelegatingMarker.changeVisible(DelegatingMarker.java:230)
at pl.mg6.android.maps.extensions.impl.ClusterMarker.refresh(ClusterMarker.java:60)
at pl.mg6.android.maps.extensions.impl.ClusterRefresher.refreshAll(ClusterRefresher.java:52)
at pl.mg6.android.maps.extensions.impl.ClusterRefresher$1.handleMessage(ClusterRefresher.java:31)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5293)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(Native Method)
I am using the latest version of your library (from Google Drive).
Original comment by eazyigz
on 6 Sep 2013 at 4:10
from android-maps-extensions.
I know this stacktrace isn't pointing to getPosition(), but it is a similar
deal. Just needs good exception handling.
Original comment by eazyigz
on 6 Sep 2013 at 4:42
from android-maps-extensions.
The question here is why GoogleMap.addMarker throws an exception.
I guess this can be for many reasons.
Check out these links:
http://stackoverflow.com/a/18651429/2183804
http://stackoverflow.com/a/17464628/2183804
http://stackoverflow.com/questions/17138998/layerlist-as-icon-on-marker-in-googl
e-maps-v2
https://groups.google.com/forum/#!msg/android-platform/ZFNrGcYa7h4/y4Z5U3RutCYJ
Make sure your icon is a PNG file and also you have set position in
MarkerOptions.
Original comment by [email protected]
on 6 Sep 2013 at 6:51
from android-maps-extensions.
Original comment by [email protected]
on 23 Feb 2014 at 12:07
- Changed state: Invalid
from android-maps-extensions.
Related Issues (20)
- NullPointerException when no IconDataProvider implementation specified HOT 3
- Markers with the same position always appear clustered HOT 3
- IndexOutOfBoundsException om markers remove HOT 1
- Markers are not visible. HOT 7
- cannot use snapshot() method ,how to do screenshot on googlemap v2 HOT 3
- Crashes LazyMarker.java HOT 1
- Map is unresponsive after adding a lot of markers until suspend/resume HOT 2
- Cluster ClusterMarker if they are very close together HOT 1
- GoogleMap.onMapLoadedCallback() HOT 6
- Swtich to android support library v13 HOT 3
- Extend MapFragment HOT 3
- Restructure project HOT 4
- Inhibit clustering of marker HOT 1
- NPE in calculateDistanceBetweenMarkers() HOT 2
- Draw text on markers in onCameraChange HOT 3
- Make this library work with the Google Maps for Business SDK HOT 1
- IllegalArgumentException when try to execute marker.setIcon in the onMarkerClick callback HOT 12
- getMarkers() getting different results HOT 1
- Google maps extensions does not find fragment R.id.map
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-maps-extensions.