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.

Blank screen after few seconds

See original GitHub issue

Plugin Version

google_mobile_ads: ^0.13.5

Steps to Reproduce

I am not sure how to reproduce this, I have a lot of code and it started happening after I added googleads-mobile-flutter to it. I know it is very hard to determine what is happening without reproducing the error, but at least someone could have a clue about this problem.

Expected results: Application runs normal and ads shown.

Actual results: Widgets get “blank” after some seconds, everything works normal (i.e. buttons, methods, classes).

Issue Really seems like some rendering problem. I also thought could be some memory leak or something, but memory test on dev tools does not point it. Also I read something about android garbage collector and flutter embedding. I only happens when ads are active (if user gets premium it stops happening). Seems that it occurs when webview is destroyed (log: “W/Ads (13786): 004 The webview is destroyed. Ignoring action.”)

Logs
[✓] Flutter (Channel stable, 2.5.3, on macOS 11.6 20G165 darwin-arm, locale en-BR)
    • Flutter version 2.5.3 at /Users/brunoandrade/Dev/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 18116933e7 (4 weeks ago), 2021-10-15 10:46:35 -0700
    • Engine revision d3ea636dc5
    • Dart version 2.14.4

[!] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/brunoandrade/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses

[!] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 13.1, Build version 13A1030d
    ✗ CocoaPods not installed.
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)

[✓] VS Code (version 1.62.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.28.0

[✓] Connected device (3 available)
    • M2003J15SC (mobile) • 0fe657a70502 • android-arm64  • Android 11 (API 30)
    • macOS (desktop)     • macos        • darwin-arm64   • macOS 11.6 20G165 darwin-arm
    • Chrome (web)        • chrome       • web-javascript • Google Chrome 95.0.4638.69

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
maheshmnjcommented, Nov 17, 2021

But this then also doesn’t compile and throws errors related to Kotlin version.

Running on Windows with an Android virtual device. Using Flutter Stable channel. Thanks.

@mattf80 please file this as a separate issue to track.

1reaction
brunodmncommented, Nov 16, 2021

Hi @brunodmn, Thanks for filing the issue. I can understand creating a reproducible code might not be easy, But can you please provide some more info

  • Is this issue reproducible only with a specific ad/ device/ or Platform (IOS)
  • Does this issue occur on a newly created sample app with an ad too?
  • Can you please try to determine the reproducible steps, and whether this occurs 100% of the time or is intermittent?

On a side note, can you please try upgrading to the latest plugin 0.13.6, and see if you are still able to reproduce the issue?

Thanks

Hi @maheshmnj, it happens every time, some times after few seconds, sometimes few minutes. I’ve noticed if I try to login with Google (firebase_auth/google_sign_in) it happens right away. I have tried with Android only. I don’t think it’s with some specific ad, I tried removing banner and keeping intersticial, and the other way around, same results. I did upgrade to latest version 0.13.6 and it keeps going. I will create a new app and try to reproduce by today, I’ll keep you posted. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

My monitor goes blank for a few seconds and then comes ...
My monitor goes blank for a few seconds and then comes back on it slowly gets worse . I am running windows 10...
Read more >
Screen Goes Black for a Second: 4 Ways to Fix Your PC Monitor
If your computer screen goes black for a second and then comes back, you should definitely update or reinstall your graphics card drivers....
Read more >
Why Does My Monitor Keep Going Black - How To Fix It
A black screen might occur when Windows 10 loses its connection to the display. The Windows key + Ctrl + Shift + B...
Read more >
[SOLVED] Monitor randomly goes black (2022) - Driver Easy
Try these fixes: · Check your video cable · Check your computer power settings · Update your graphics driver · Factory reset your...
Read more >
How to fix black screen problems on Windows 10
If the black screen still appears, press and hold the power button for about 10 seconds to shut down the device. Then press...
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