-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash issue #125
Comments
Any updates about this issue? I have the same issue, it's often crash my app, please fix it |
@Lozz-off @lpdevcoding please share which SDK version you're using, steps to reproduce, and any additional information such as a sample project, APIs used causing this crash, or endpoints requested. |
@aokj4ck I'm using the latest release v1.0.0-rc.8, i don't have steps for reproducing, just getting the same stacktrace in firebase console |
The same issue occurs with me, where you able to solve it? @Lozz-off @lpdevcoding |
@RanaHossamA do you see any differences in your stack trace? Are you able to provide more information on the actions and conditions that occur before this crash? |
@aokj4ck I am currently using MapboxSearch 1.0.0-rc.8 and MapboxMaps 10.17.0. I am also facing this crash, I am doing reversegeocoding you can see below code for reference: Also check the below image for reference: Note: Due to some requirements we can't update MapboxMaps to 11 version series. So I have to stick to MapboxSearch 1.0.0-rc.8. |
@rajshekhar16 I think the cause of your crash is that your @lpdevcoding please be sure to own your PlaceAutocomplete instances in class or struct variables so that they are not deallocated after your functions exit. |
com.mapbox.common.Worker 2
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000008
0
MapboxSearch
mapbox::search::SearchRequestsRegistry::remove(unsigned long long) + 12
1
MapboxSearch
std::__1::__function::__func<mapbox::search::SearchOnline::retrieve(unsigned long long, mapbox::search::RequestOptions, mapbox::search::SearchResult, std::__1::function<void (mapbox::search::SearchResponse&&)>)::$_2, std::__1::allocator<mapbox::search::SearchOnline::retrieve(unsigned long long, mapbox::search::RequestOptions, mapbox::search::SearchResult, std::__1::function<void (mapbox::search::SearchResponse&&)>)::$_2>, void (mapbox::search::SearchResponse&&)>::operator()(mapbox::search::SearchResponse&&) + 52
2
MapboxSearch
std::__1::__function::__func<unsigned long long mapbox::search::SearchSession::sendRequest<mapbox::search::SearchSession::retrieve(std::__1::weak_ptrmapbox::search::SearchSession, unsigned long long, mapbox::search::RequestOptions, mapbox::search::SuggestAction, std::__1::function<void (mapbox::search::SearchResponse&&)>)::$_3>(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator> const&, std::experimental::optional<std::__1::vector<unsigned char, std::__1::allocator>>, mapbox::search::SearchSession::retrieve(std::__1::weak_ptrmapbox::search::SearchSession, unsigned long long, mapbox::search::RequestOptions, mapbox::search::SuggestAction, std::__1::function<void (mapbox::search::SearchResponse&&)>)::$_3&&)::'lambda'(nonstd::expected_lite::expected<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator>, mapbox::util::variant<mapbox::search::ConnectionError, mapbox::search::HttpError, mapbox::search::InternalError, mapbox::search::RequestCancelled>>&&), std::__1::allocator<unsigned long long mapbox::search::SearchSession::sendRequest<mapbox::search::SearchSession::retrieve(std::__1::weak_ptrmapbox::search::SearchSession, unsigned long long, mapbox::search::RequestOptions, mapbox::search::SuggestAction, std::__1::function<void (mapbox::search::SearchResponse&&)>)::$_3>(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator> const&, std::experimental::optional<std::__1::vector<unsigned char, std::__1::allocator>>, mapbox::search::SearchSession::retrieve(std::__1::weak_ptrmapbox::search::SearchSession, unsigned long long, mapbox::search::RequestOptions, mapbox::search::SuggestAction, std::__1::function<void (mapbox::search::SearchResponse&&)>)::$_3&&)::'lambda'(nonstd::expected_lite::expected<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator>, mapbox::util::variant<mapbox::search::ConnectionError, mapbox::search::HttpError, mapbox::search::InternalError, mapbox::search::RequestCancelled>>&&)>, void (nonstd::expected_lite::expected<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator>, mapbox::util::variant<mapbox::search::ConnectionError, mapbox::search::HttpError, mapbox::search::InternalError, mapbox::search::RequestCancelled>>&&)>::operator()(nonstd::expected_lite::expected<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator>, mapbox::util::variant<mapbox::search::ConnectionError, mapbox::search::HttpError, mapbox::search::InternalError, mapbox::search::RequestCancelled>>&&) + 680
3
MapboxCommon
mapbox::common::TaskSequence::scheduleTask(unsigned long long, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l>>>)::'lambda'()::operator()() const + 604
4
MapboxCommon
void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct>, mapbox::common::ThreadedSchedulerBase::makeSchedulerThread(unsigned long, mapbox::base::WeakPtrmapbox::common::Scheduler, mapbox::common::ThreadServiceType)::$_0>>(void*) + 784
5
libsystem_pthread.dylib
_pthread_start + 148
6
libsystem_pthread.dylib
thread_start + 8
The text was updated successfully, but these errors were encountered: