-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Brave Ads crash when parsing country code from subdivision targeting code #12030
Comments
@jsecretan this issue occurs on startup if subdivision targeting is supported and we fail to fetch the region from the This crash just takes down the ads service, which is restarted. All non regional ads will be delivered as expected. |
Added |
The test plan from brave/brave-core#6812 has been updated. Removing QA/Blocked. |
Verification passed on
Verified test plan from brave/brave-core#6812 Verified status code was overridden to 304 for
Verified state targeted ads were not shown and there was not crash:
Observed the log for crashes. There was no crash. The ads were not initialized again(expected). Verified state targeted ads were shown when getstate override was turned off:
Verified passed with
Verified test plan from brave/brave-core#6812 Used Charles to re-write catalog and response status code for Confirmed override for response status code:
Verified state targeted ads were not shown and there was not crash:
Observed the log for crashes. There was no crash. The ads were not initialized again(expected). Verified state targeted ads were shown when
Verification passed on
Verified test plan from brave/brave-core#6812 Verified status code was overridden to 304 for
Verified state targeted ads were not shown and there was not crash:
Observed the log for crashes. There was no crash. The ads were not initialized again(expected). Verified state targeted ads were shown when getstate override was turned off:
|
https://brave.sp.backtrace.io/p/brave/debug?time=all&filters=(_deleted%3D0%2C(callstack%2Cregex%2C%22(BatAds%7CAdsService%7CAdsImpl%7CConfirmationsImpl)%22)%2C(ver%2Cregex%2C%22(86.1%7C85.1%7C84.1%7C83.1)%22))&fingerprint=ac19dfa91b020a713c95f120f69321d8d29e9882182ec81c71ab50c8cbbc8ea8
[00] std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::basic_string
[01] ads::locale::GetCountryCode
[02] ads::SubdivisionTargetingFrequencyCap::DoesAdSupportSubdivisionTargetingCode
[03] ads::SubdivisionTargetingFrequencyCap::DoesRespectCap
[04] ads::SubdivisionTargetingFrequencyCap::ShouldExclude
[05] ads::AdsImpl::GetEligibleAds
[06] ads::AdsImpl::OnServeAdNotificationFromParentCategories
[07] ads::database::table::CreativeAdNotifications::OnGetCreativeAdNotifications(mojo::StructPtr<ads_database::mojom::DBCommandResponse>, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > > > const&, std::__1::function<void
[08] bat_ads::OnRunDBTransaction(std::__1::function<void
[09] bat_ads::mojom::BatAdsClient_RunDBTransaction_ForwardToCallback::Accept
[10] mojo::InterfaceEndpointClient::HandleValidatedMessage
[11] mojo::internal::MultiplexRouter::ProcessIncomingMessage
[12] mojo::internal::MultiplexRouter::Accept
[13] mojo::Connector::DispatchMessage
[14] mojo::Connector::ReadAllAvailableMessages
[15] base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl
[16] base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork
[17] base::MessagePumpDefault::Run
[18] base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run
[19] content::UtilityMain
[20] content::ContentMainRunnerImpl::Run
[21] service_manager::Main
[22] content::ContentMain
[23] ChromeMain
[24] main
The text was updated successfully, but these errors were encountered: