You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Freezes when going back and forth between activites #2018
This also seem to happen if i moved the map first and then click on a button which opens the new activity. I don't see any information in the Log regarding this. I suspected this may be a memory issue when opening the map several times, so i even tried to make the mapview static, but with same result. I suspect now that some state is getting set when you move the map, but i have no idea what causes the crash.
Was able to reproduce this occasionally with following setup:
Genymotion - Google Nexus 5.0.0 image - 0.0.1-SNAPSHOT
Actions:
Open activity with MapView, scroll-zoom actions like a maniac, open other Activity containing a MapView. Application becomes unresponsive and screens turns black. Only option is to kill-app by swiping it from recents.
Used Activities:
StyledMapActivity - SearchMapActivity
The plan is to remove 3764b051e4c9944ddbc3bcc9c8fd1beb8a28451e from 2018-shared-sqlite and then merge @ljbade's fix into master. We can then cherrypick that commit into release-android-0.1.0 so that both master and release-android-0.1.0 have it and a SNAPSHOT can be rolled because release-android-0.1.0 does not have the geojsonvt stuff.
Concurrently @lucaswoj@mikemorris will work on getting geojsonvt working again so that regular Android development can continue on master.
Awsome work !! I would like to test this out but i get the following build error:
deps/run_gyp geojsonvt.gyp -Iconfig.gypi --depth=. -Goutput_dir=. --generator-output=./build -f make
make -C build install
CXX(target) Release/obj.target/geojsonvt/src/geojsonvt.o
CXX(target) Release/obj.target/geojsonvt/src/geojsonvt_clip.o
CXX(target) Release/obj.target/geojsonvt/src/geojsonvt_convert.o
CXX(target) Release/obj.target/geojsonvt/src/geojsonvt_simplify.o
CXX(target) Release/obj.target/geojsonvt/src/geojsonvt_tile.o
LIBTOOL-STATIC Release/libgeojsonvt.a
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: Release/obj.target/geojsonvt/src/geojsonvt.o is not an object file (not allowed in a library)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: Release/obj.target/geojsonvt/src/geojsonvt_clip.o is not an object file (not allowed in a library)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: Release/obj.target/geojsonvt/src/geojsonvt_convert.o is not an object file (not allowed in a library)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: Release/obj.target/geojsonvt/src/geojsonvt_simplify.o is not an object file (not allowed in a library)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: Release/obj.target/geojsonvt/src/geojsonvt_tile.o is not an object file (not allowed in a library)
make[3]: *** [Release/libgeojsonvt.a] Error 1
make[2]: *** [install] Error 2
make[1]: *** [config/android-arm-v7.gypi] Error 2
make: *** [android-lib] Error 2
@erf We are tracking that in #2348. For now you can test out the release-android-v0.1.0 branch, where we cherry-picked the fix, to essentially be based off of an older version of master that builds fine.
Activity
erf commentedon Aug 12, 2015
This also seem to happen if i moved the map first and then click on a button which opens the new activity. I don't see any information in the Log regarding this. I suspected this may be a memory issue when opening the map several times, so i even tried to make the mapview static, but with same result. I suspect now that some state is getting set when you move the map, but i have no idea what causes the crash.
erf commentedon Aug 12, 2015
I just made a simple example now on latest 4025da6 and this seem to work now! I close this for now.
erf commentedon Aug 12, 2015
This issue is back after i added loading mapView as a fragment described in #2042
tobrun commentedon Aug 17, 2015
Was able to reproduce this occasionally with following setup:
Genymotion - Google Nexus 5.0.0 image - 0.0.1-SNAPSHOT
Actions:
Open activity with MapView, scroll-zoom actions like a maniac, open other Activity containing a MapView. Application becomes unresponsive and screens turns black. Only option is to kill-app by swiping it from recents.
Used Activities:
StyledMapActivity - SearchMapActivity
Full stacktrace - code
erf commentedon Aug 17, 2015
I think the app crashes when trying to open a new activity whilst the MapView is still loading tiles.
Threading issue?
ljbade commentedon Aug 17, 2015
I also wonder if it is related to state saving.
ljbade commentedon Aug 17, 2015
@kkaefer Is there anything in the C++ layer to be aware of when there are multiple instances of a map?
kkaefer commentedon Aug 17, 2015
@ljbade it should be possible and I'm not aware of an issues, but of course there could be bugs when using multiple instances.
incanus commentedon Aug 18, 2015
We are handling multiple maps in iOS ok right now.
ljbade commentedon Aug 18, 2015
Hmm going to have to create a simple test app to see if I can reproduce it.
@incanus Do you recall if there were any specific fixes/changes that perhaps did not make it to Android to enable multiple maps?
tobrun commentedon Aug 18, 2015
@ljbade a simple test app can be found here
51 remaining items
bleege commentedon Sep 16, 2015
The plan is to remove 3764b051e4c9944ddbc3bcc9c8fd1beb8a28451e from
2018-shared-sqliteand then merge @ljbade's fix intomaster. We can then cherrypick that commit intorelease-android-0.1.0so that bothmasterandrelease-android-0.1.0have it and a SNAPSHOT can be rolled becauserelease-android-0.1.0does not have thegeojsonvtstuff.Concurrently @lucaswoj @mikemorris will work on getting
geojsonvtworking again so that regular Android development can continue onmaster./cc @jfirebaugh
incanus commentedon Sep 16, 2015
Refs #2344 re:
geojsonvtproblems introduced.bleege commentedon Sep 16, 2015
Merged. Now the cherrypick to
release-android-0.1.0.incanus commentedon Sep 16, 2015
Speculatively fixed in #2345.
erf commentedon Sep 16, 2015
Awsome work !! I would like to test this out but i get the following build error:
incanus commentedon Sep 16, 2015
@erf We are tracking that in #2348. For now you can test out the
release-android-v0.1.0branch, where we cherry-picked the fix, to essentially be based off of an older version ofmasterthat builds fine.erf commentedon Sep 16, 2015
Ok, thanks!
erf commentedon Sep 17, 2015
i checked out the 'release-android-v0.1.0' branch, built it and tried it with my test app here: https://github.com/erf/mapbox-drawer-glitch/tree/open-activity-whilst-scrolling
It seems to work much better now, however i experienced a crash after going back and forth between the activites a few times, in the log i only got these:
mapbox#2018 - Adding basic second activity that displays a map
mapbox#2018 - Toolbar on Second Activity with back button support
mapbox#2018 - Making Launch 2nd Activity draw menu item not checkable
mapbox#2018 - Changing Second Activity style to Emerald
mapbox#2018 - Cleaning