question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Inline-content ads are empty

See original GitHub issue

Description

Inline-content ads are empty

Steps to reproduce

  1. install 1.36.63
  2. launch Brave
  3. tap through onboarding
  4. restart (to pick up Griffin Brave News seed)
  5. open a new-tab page
  6. tap to Show Brave News
  7. swipe down
  8. look for the BAT-icon-marked ads

Actual result

They are empty, without content.

example example
Screenshot_20220124-121928 <video src="https://user-images.githubusercontent.com/387249/150859504-9420b29d-eadb-45fe-88f5-b77632a48593.mp4">

Expected result

Should have a heading/title, source attribution, and of course the larger content image.

Issue reproduces how often

100%

Device details

  • Install type (ARM, x86): arm64
  • Device type (Phone, Tablet, Phablet): Google Pixel XL phone
  • Android version: 9.0

Brave version

1.36.63, Chromium 97.0.5692.99

cc @alexsafe @srirambv @btlechowski @mattmcalister

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
petemillcommented, Jan 27, 2022

This seems like 2 separate issues

  1. Getting a blank ad where the fields are blank but the ad itself isn’t null (the log of fields with empty entries are coming from an ads library, not brave news)

  2. Crashing because a callback isn’t getting called. This looks like it’s occuring in the ads library here:


void AdsImpl::GetInlineContentAd(const std::string& dimensions,
                                 GetInlineContentAdCallback callback) {
  if (!IsInitialized()) {
    BLOG(0, "AdsImpl::GetInlineContentAd not connected");
    callback(/* success */ false, dimensions, {});
    return;
  }
  BLOG(0, "AdsImpl::GetInlineContentAd start async");
  inline_content_ad_serving_->MaybeServeAd(
      dimensions, [=](const bool success, const std::string& dimensions,
                      const InlineContentAdInfo& ad) {
                        BLOG(0, "AdsImpl::GetInlineContentAd end async");
        callback(success, dimensions, ad);
      });
}

I had to refresh a few times to get the crash but when I did get the crash I received the “start async” line but not the “end async” line:

[17143:259:0126/162021.666646:ERROR:ads_service_impl.cc(1139)] ads service impl start async
[17143:259:0126/162021.738178:FATAL:brave_news.mojom.cc(2244)] Check failed: !connected. BraveNewsController::GetDisplayAdCallback was destroyed without first either being run or its corresponding binding being closed. It is an error to drop response callbacks which still correspond to an open interface pipe.
Read more comments on GitHub >

github_iconTop Results From Across the Web

InlineTextContent - Android Developers
BasicText(text = text, inlineContent = inlineContent) ... Google uses cookies to deliver its services, to personalize ads, and to analyze traffic.
Read more >
How to Add Inline Content Ads to WordPress - WPExplorer
Lear how to easily add inline content ads to WordPress to generate ... In that case, select the blank option to remove any...
Read more >
Inline Content Block in Template - Salesforce Stack Exchange
In order to check if the Firstname field was empty or not you would need to write some form of AMPScript to check...
Read more >
Create and Manage Creatives - LinkedIn | Microsoft Learn
On creation, it can be dynamic Ad content (follower, job, spotlight), text, or a reference to InMail Content or post (image, video, article, ......
Read more >
Haven't had ads, nor payout, in 4 months - Brave Community
... Failed to save creative inline content ads state [03 Feb 2022, ... am:ERROR:credentials_promotion.cc(503)] Token list empty [07 Feb 2022 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found