Comments (8)
would love to get some help with this, ASAP(during work hours) as this might be blocking development. 🙏🏼
from mapbox-search-android.
Hey @LaurieWuAndroid,
Very sorry to hear that you've faced with this issue.
As I see, you're using quite an old version of Maps SDKv9.6.1
and we don't guarantee compatibility with the new Search SDK.
Will you be able to migrate to Maps v10
and pick one of the latest versions of the Maps SDK https://github.com/mapbox/mapbox-maps-android/releases?
Also, I'm curious why are you initializing Search SDK on a IO dispatcher? Any reason for that?
applicationScope.launch(dispatcher.io()) {
MapboxSearchSdk.initialize(
this@HatchApplication,
getString(hatch.features.rewards.R.string.mapbox_access_token),
DefaultLocationProvider(this@HatchApplication)
)
}
from mapbox-search-android.
Hi @DzmitryFomchyn thanks for the speedy response! I tried to switch to higher mapbox version(10.2.0, 10.5.0), it results in build error Unable to make private void java.util.concurrent.CopyOnWriteArrayList.writeObject(java.io.ObjectOutputStream) throws java.io.IOException accessible: module java.base does not "opens java.util.concurrent" to unnamed module @29fc2153
In response to your question on IO dispatcher, we're trying to init the sdk off the main thread, so that process doesn't block user input and freeze the app.
from mapbox-search-android.
Unable to make private void java.util.concurrent.CopyOnWriteArrayList.writeObject(java.io.ObjectOutputStream) throws java.io.IOException accessible: module java.base does not "opens java.util.concurrent" to unnamed module @29fc2153
Hmm, that's a very strange bug and we haven't seen this before in any of Mapbox SDKs. Could you please share a full error log? Also, it would be very helpful if you could share a test project that shows this bug.
In response to your question on IO dispatcher, we're trying to init the sdk off the main thread, so that process doesn't block user input and freeze the app
Did you notice that Search SDK initialization slows down app startup?
from mapbox-search-android.
Hmm, that's a very strange bug and we haven't seen this before in any of Mapbox SDKs. Could you please share a full error log? Also, it would be very helpful if you could share a test project that shows this bug.
We had to revert a chunk of code for now to unblock development, thus this issue is not as urgent now. I love the idea, though not sure if my schedule allows. I will try my best to follow up on this as I find more info.
Did you notice that Search SDK initialization slows down app startup?
Not that I noticed, since this code was already implemented, but it is also good practice to have any initialization that might take a long time to be in the background thread.
from mapbox-search-android.
I will try my best to follow up on this as I find more info.
@LaurieWuAndroid should we close it for now then? Feel free to reopen as new info is encountered.
from mapbox-search-android.
I will try my best to follow up on this as I find more info.
@LaurieWuAndroid should we close it for now then? Feel free to reopen as new info is encountered.
I'm okay with that 😃, thank you!
from mapbox-search-android.
I'm closing the issue. Feel free to reopen it or create a new one if you have more questions.
from mapbox-search-android.
Related Issues (20)
- House/street address format based on country specific HOT 6
- MapBox Search panel like on IOS HOT 1
- Should be compatible to integrate with Modern UI (JetPack Compose) HOT 2
- Place Autocomplete 401 error: The feature is not enabled HOT 3
- Your app uses https://api.mapbox.com/geocoding/v5 to get recommendations after using AddressAutofill, somehow after integrating your modules in my project it uses https://api.mapbox.com/autofill because of that I can't get recommendations to search HOT 7
- Branch protection on main not adhering to best practices
- PR #160 merged without successful status checks (mapbox-search-android)
- Autofill not work until Number and char is filled HOT 1
- Crash in production: java.lang.UnsatisfiedLinkError: dlopen failed: library "libmapbox-common.so" not found HOT 5
- Loader not showing on second search in places auto complete activity HOT 1
- SDK is entirely unusable without location permission
- Failed to build when using 11.0.0 and MapBox Search 1.0.0-rc7 HOT 11
- PR #172 merged without successful status checks (mapbox-search-android)
- AddressAutofill suggestions is not working HOT 1
- SearchBox returns incorrect Data HOT 2
- Search result titles not visible in search results view HOT 2
- PR #192 merged without review (mapbox-search-android)
- PR #192 merged without successful status checks (mapbox-search-android)
- Favorite item not persisted between app sessions in SearchPlaceBottomSheetView
- Network data provider
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 mapbox-search-android.