Interrupted during GADSignals creation. Not visible Ads.

313 views
Skip to first unread message

Сергей Шаимов

unread,
Sep 16, 2014, 2:17:17 PM9/16/14
to google-adm...@googlegroups.com
Sorry, for the English, when I run the application many times, it appears periodically error log is shown below, advertising is not (visible) seen as long as a few times does not restart the application that because of this error may not be able to start. What do I do?

Thanks for any help ...

------

Version:
(this.getPackageManager().getPackageInfo("com.google.android.gms", 0).versionName)   =   5.0.89 (1307510-032)

LOG:
09-16 21:48:41.265: W/Ads(16849): Interrupted during GADSignals creation.
09-16 21:48:41.265: W/Ads(16849): java.lang.InterruptedException
09-16 21:48:41.265: W/Ads(16849):     at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:975)
09-16 21:48:41.265: W/Ads(16849):     at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1282)
09-16 21:48:41.265: W/Ads(16849):     at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:207)
09-16 21:48:41.265: W/Ads(16849):     at zn.a(SourceFile:147)
09-16 21:48:41.265: W/Ads(16849):     at zn.b(SourceFile:180)
09-16 21:48:41.265: W/Ads(16849):     at aeg.a(SourceFile:120)
09-16 21:48:41.265: W/Ads(16849):     at afv.run(SourceFile:14)
09-16 21:48:41.265: W/Ads(16849):     at afx.run(SourceFile:30)
09-16 21:48:41.265: W/Ads(16849):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
09-16 21:48:41.265: W/Ads(16849):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
09-16 21:48:41.265: W/Ads(16849):     at java.lang.Thread.run(Thread.java:856)

Eric Leichtenschlag

unread,
Sep 17, 2014, 8:59:26 PM9/17/14
to google-adm...@googlegroups.com
This issue used to crash the app on older versions of the SDK. Now, as you can see, the SDK is catching it and logging it instead.

Eric Leichtenschlag

unread,
Sep 17, 2014, 9:02:48 PM9/17/14
to google-adm...@googlegroups.com
Are you seeing this happening on first request, or ad refresh? And is the SDK attempting to refresh afterwards?

Сергей Шаимов

unread,
Sep 18, 2014, 2:32:10 AM9/18/14
to google-adm...@googlegroups.com
1. Use: Google Play services - version 19
2. I run the application many times (from Eclipse), and then get this error
3.
The logic of the application when there is internet, application launches advertising when no internet - disables:

public void GetAdMob(boolean isConnected)
{
    LinearLayout lAds = (LinearLayout)findViewById(R.id.mAds);
    lAds.removeAllViewsInLayout();
   
    if (adView != null) {
        Log.d("adView.destroy()", "adView.destroy()");
       
        adView.destroy();
        Log.d("GetAdMob_Destroy", " "+adView);
        adView = null;
   
    }
   
    if (!isConnected) {lAds.setVisibility(View.GONE); return; }
   
    lAds.setVisibility(View.VISIBLE);

    AdSize bannerSize = AdSize.BANNER;
 
    adView = new AdView(this);
    adView.setAdUnitId("ca-app-pub-xxxxxxxxxxxxxxxx");
    adView.setAdSize(bannerSize);

    lAds.addView(adView);

    adRequest = new AdRequest.Builder()
    .addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
    .addTestDevice("C5B7A01CED6DF2A685238C5858DC2E78")
    .build();

    adView.loadAd(adRequest);

     
}


Function started from BroadcastReceiver

---------------------------------------------------------------------------
---------------------------------------------------------------------------



четверг, 18 сентября 2014 г., 4:02:48 UTC+3 пользователь Eric Leichtenschlag написал:

Сергей Шаимов

unread,
Sep 18, 2014, 3:14:30 PM9/18/14
to google-adm...@googlegroups.com


четверг, 18 сентября 2014 г., 9:32:10 UTC+3 пользователь Сергей Шаимов написал:

ADD LOGS:
Very rarely
 09-18 20:54:28.410: I/Ads(26089): Starting ad request.
09-18 20:54:28.430: W/Ads(26089): Too many background threads already running. Aborting task.  Current pool size: 10
09-18 20:54:28.430: W/Ads(26089): java.util.concurrent.RejectedExecutionException: Task afx@41174fe0 rejected from java.util.concurrent.ThreadPoolExecutor@4112aa08[Running, pool size = 10, active threads = 10, queued tasks = 0, completed tasks = 0]
09-18 20:54:28.430: W/Ads(26089):     at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:1967)
09-18 20:54:28.430: W/Ads(26089):     at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:782)
09-18 20:54:28.430: W/Ads(26089):     at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1303)
09-18 20:54:28.430: W/Ads(26089):     at afw.a(SourceFile:26)
09-18 20:54:28.430: W/Ads(26089):     at zk.a(SourceFile:505)
09-18 20:54:28.430: W/Ads(26089):     at aao.onTransact(SourceFile:81)
09-18 20:54:28.430: W/Ads(26089):     at android.os.Binder.transact(Binder.java:297)
09-18 20:54:28.430: W/Ads(26089):     at com.google.android.gms.internal.aq$a$a.a(Unknown Source)
09-18 20:54:28.430: W/Ads(26089):     at com.google.android.gms.internal.au.a(Unknown Source)
09-18 20:54:28.430: W/Ads(26089):     at com.google.android.gms.ads.AdView.loadAd(Unknown Source)
09-18 20:54:28.430: W/Ads(26089):     at su.test.MainActivity.GetAdMob(MainActivity.java:989)
09-18 20:54:28.430: W/Ads(26089):     at su.test.MainActivity.onCreate(MainActivity.java:133)
09-18 20:54:28.430: W/Ads(26089):     at android.app.Activity.performCreate(Activity.java:4492)
09-18 20:54:28.430: W/Ads(26089):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
09-18 20:54:28.430: W/Ads(26089):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)
09-18 20:54:28.430: W/Ads(26089):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
09-18 20:54:28.430: W/Ads(26089):     at android.app.ActivityThread.access$600(ActivityThread.java:123)
09-18 20:54:28.430: W/Ads(26089):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
09-18 20:54:28.430: W/Ads(26089):     at android.os.Handler.dispatchMessage(Handler.java:99)
09-18 20:54:28.430: W/Ads(26089):     at android.os.Looper.loop(Looper.java:137)
09-18 20:54:28.430: W/Ads(26089):     at android.app.ActivityThread.main(ActivityThread.java:4424)
09-18 20:54:28.430: W/Ads(26089):     at java.lang.reflect.Method.invokeNative(Native Method)
09-18 20:54:28.430: W/Ads(26089):     at java.lang.reflect.Method.invoke(Method.java:511)
09-18 20:54:28.430: W/Ads(26089):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
09-18 20:54:28.430: W/Ads(26089):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
09-18 20:54:28.430: W/Ads(26089):     at dalvik.system.NativeStart.main(Native Method)

Often repeated this error, the application runs, but advertising is not visible
09-18 22:47:48.106: W/Ads(28828): Interrupted during GADSignals creation.
09-18 22:47:48.106: W/Ads(28828): java.lang.InterruptedException
09-18 22:47:48.106: W/Ads(28828):     at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:975)
09-18 22:47:48.106: W/Ads(28828):     at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1282)
09-18 22:47:48.106: W/Ads(28828):     at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:207)
09-18 22:47:48.106: W/Ads(28828):     at zn.a(SourceFile:147)
09-18 22:47:48.106: W/Ads(28828):     at zn.b(SourceFile:180)
09-18 22:47:48.106: W/Ads(28828):     at aeg.a(SourceFile:120)
09-18 22:47:48.106: W/Ads(28828):     at afv.run(SourceFile:14)
09-18 22:47:48.106: W/Ads(28828):     at afx.run(SourceFile:30)
09-18 22:47:48.106: W/Ads(28828):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
09-18 22:47:48.106: W/Ads(28828):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
09-18 22:47:48.106: W/Ads(28828):     at java.lang.Thread.run(Thread.java:856)

09-18 22:47:48.116: W/Ads(28828): Interrupted during GADSignals creation.
09-18 22:47:48.116: W/Ads(28828): java.lang.InterruptedException
09-18 22:47:48.116: W/Ads(28828):     at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:975)
09-18 22:47:48.116: W/Ads(28828):     at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1282)
09-18 22:47:48.116: W/Ads(28828):     at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:207)
09-18 22:47:48.116: W/Ads(28828):     at zn.a(SourceFile:147)
09-18 22:47:48.116: W/Ads(28828):     at zn.b(SourceFile:180)
09-18 22:47:48.116: W/Ads(28828):     at aeg.a(SourceFile:120)
09-18 22:47:48.116: W/Ads(28828):     at afv.run(SourceFile:14)
09-18 22:47:48.116: W/Ads(28828):     at afx.run(SourceFile:30)
09-18 22:47:48.116: W/Ads(28828):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
09-18 22:47:48.116: W/Ads(28828):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
09-18 22:47:48.116: W/Ads(28828):     at java.lang.Thread.run(Thread.java:856)

When turns off the application and delete from the list of running applications, and run the shortcut, then this error (the application can start with 2 times, then works fine, but with advertising bugs repeated again and again)
09-18 20:58:53.610: D/ViewRootImpl(168): pckname = su.test
09-18 20:58:53.710: E/JavaBinder(168): !!! FAILED BINDER TRANSACTION !!!
09-18 20:58:53.710: W/ActivityManager(168): Exception when starting activity su.test/.SplashScreen
09-18 20:58:53.710: W/ActivityManager(168): android.os.TransactionTooLargeException
09-18 20:58:53.710: W/ActivityManager(168):     at android.os.BinderProxy.transact(Native Method)
09-18 20:58:53.710: W/ActivityManager(168):     at android.app.ApplicationThreadProxy.scheduleLaunchActivity(ApplicationThreadNative.java:660)
09-18 20:58:53.710: W/ActivityManager(168):     at com.android.server.am.ActivityStack.realStartActivityLocked(ActivityStack.java:615)
09-18 20:58:53.710: W/ActivityManager(168):     at com.android.server.am.ActivityStack.startSpecificActivityLocked(ActivityStack.java:724)
09-18 20:58:53.710: W/ActivityManager(168):     at com.android.server.am.ActivityStack.resumeTopActivityLocked(ActivityStack.java:1614)
09-18 20:58:53.710: W/ActivityManager(168):     at com.android.server.am.ActivityStack.completePauseLocked(ActivityStack.java:1040)
09-18 20:58:53.710: W/ActivityManager(168):     at com.android.server.am.ActivityStack.activityPaused(ActivityStack.java:952)
09-18 20:58:53.710: W/ActivityManager(168):     at com.android.server.am.ActivityManagerService.activityPaused(ActivityManagerService.java:4131)
09-18 20:58:53.710: W/ActivityManager(168):     at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:371)
09-18 20:58:53.710: W/ActivityManager(168):     at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:1548)
09-18 20:58:53.710: W/ActivityManager(168):     at android.os.Binder.execTransact(Binder.java:338)
09-18 20:58:53.710: W/ActivityManager(168):     at dalvik.system.NativeStart.run(Native Method)
09-18 20:58:53.710: W/ActivityManager(168): Force removing ActivityRecord{4181e3c8 su.test/.SplashScreen}: app died, no saved state

Eric Leichtenschlag

unread,
Sep 18, 2014, 7:31:10 PM9/18/14
to google-adm...@googlegroups.com
Too many background requests sounds like you're calling GetAdMob() too often. I also see you're creating a new AdView every time you call GetAdMob(). I think you could minimize these warnings by Initializing an AdView once, and relying on ad refreshes to refresh ads instead of calling loadAd too often.

Thanks,
Eric

Сергей Шаимов

unread,
Sep 19, 2014, 3:17:40 AM9/19/14
to google-adm...@googlegroups.com
Eric, thanks for the answer.
I have simplified the function and put it in:
Override
protected void onCreate (Bundle savedInstanceState)

And now, BroadcastReceiver only controls the visibility of advertising, ie lAds.setVisibility (View.VISIBLE); or lAds.setVisibility (View.GONE);

As well:
adView.destroy ();
adView.resume ();
adView.pause ();
Placed in the ground according to the official instructions

When testing an application on a real device, disable / enable the Internet from time to time there is an error in the logs that begin on:

Interrupted during GADSignals creation. .....

At the same time, advertising is no longer displayed, no matter what I did, to a complete stop and restart the application. I beg you to help deal with this situation. What could be the problem, what are the solutions to the problem?


пятница, 19 сентября 2014 г., 2:31:10 UTC+3 пользователь Eric Leichtenschlag написал:

Eric Leichtenschlag

unread,
Sep 22, 2014, 4:38:39 PM9/22/14
to google-adm...@googlegroups.com
Could you share a minimal sample that reproduces the problem with at least some reliability?

Сергей Шаимов

unread,
Sep 23, 2014, 5:35:01 AM9/23/14
to google-adm...@googlegroups.com

The following code is much less errors, but still have them, this is especially noticeable when "Eclipse" test and run again the same application test on the tablet, android 4.0.4, in more detail, and additional data and logs I cited here:
http://stackoverflow.com/questions/25976362/periodically-not-visible-ads-in-admob-with-google-play-service

-----------

in xml code:

    <LinearLayout
           android:id="@+id/mAds"
           android:layout_gravity="center"
           android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical" >
    </LinearLayout>
   
-------------------------------------------
   
   
   
    private AdView adView;

   
    @Override
    protected void onCreate(Bundle savedInstanceState) {
       
        super.onCreate(savedInstanceState);
       
        setContentView(R.layout.activity_glav);
       
       
        // Create an ad.
        adView = new AdView(this);
        adView.setAdSize(AdSize.BANNER);
        adView.setAdUnitId("ca-app-pub-xxxxxxxxxxxxxxxxxxxxxxxxx");

    // Add the AdView to the view hierarchy.
        LinearLayout layout = (LinearLayout) findViewById(R.id.mAds);
        layout.addView(adView);

        // Create an ad request. Check logcat output for the hashed device ID to
        // get test ads on a physical device.
        AdRequest adRequest = new AdRequest.Builder()
            .addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
            .addTestDevice("C5B7A01CED6DF2A685238C5858DC2E78")
            .addTestDevice("F663B929F099EBAF582B2E5B456AC17F")
            .addTestDevice("800B433D87CCE2981DC9EDB3567837E4")
            .addTestDevice("436427894BF87C12932A362A40381A01")
            .build();

        // Start loading the ad in the background.
        adView.loadAd(adRequest);
       
}


        @Override
        protected void onDestroy() {
            if (adView != null) {
                  // Destroy the AdView.
                  adView.destroy();
                }
                super.onDestroy();
           
        }
       
        @Override
        protected void onResume() {
            super.onResume();

            if (adView != null) {
              adView.resume();
            }
        }

        @Override
        protected void onPause() {
            // TODO Auto-generated method stub

            if (adView != null) {
                adView.pause();
              }
              super.onPause();
        }
       
       
        =================================================

More often there were errors about with this code:
(and it slows down a little more than the work application)



XML:
<com.google.android.gms.ads.AdView
     xmlns:ads = "http://schemas.android.com/apk/res-auto"
     android:id = "@ + id / adView"
     android:layout_width = "match_parent"
     android:layout_height = "wrap_content"
     ads:adUnitId = "ca-app-pub-xxxxxxxxxxxxxxxxxxxxxxxxx"
     ads:adSize = "@ string / AdSizeDependingOnDevice" />

other folder "Value - ":
<string name = "AdSizeDependingOnDevice"> BANNER </ string>

or

<string name = "AdSizeDependingOnDevice"> FULL_BANNER </ string>


code:

......onCreate ..........

AdView adView = (AdView) this.findViewById (R.id.adView);
     AdRequest adRequest = new AdRequest.Builder ()
     .addTestDevice (AdRequest.DEVICE_ID_EMULATOR)
     .addTestDevice("C5B7A01CED6DF2A685238C5858DC2E78")
       .addTestDevice("F663B929F099EBAF582B2E5B456AC17F")
       .addTestDevice("800B433D87CCE2981DC9EDB3567837E4")
       .addTestDevice("436427894BF87C12932A362A40381A01")
     .build ();
adView.loadAd (adRequest);

and

Override
public void onPause () {
   adView.pause ();
   super.onPause ();
}

Override
public void onResume () {
   super.onResume ();
   adView.resume ();
}

Override
public void onDestroy () {
   adView.destroy ();
   super.onDestroy ();
}

as it did not change the code, errors, or more or less, but were
http://stackoverflow.com/questions/25976362/periodically-not-visible-ads-in-admob-with-google-play-service




понедельник, 22 сентября 2014 г., 23:38:39 UTC+3 пользователь Eric Leichtenschlag написал:

Eric Leichtenschlag

unread,
Sep 24, 2014, 10:00:18 PM9/24/14
to google-adm...@googlegroups.com
I'll ask the SDK development team to take a closer look at why this might be happening.

Thanks,
Eric

Сергей Шаимов

unread,
Sep 25, 2014, 3:01:53 AM9/25/14
to google-adm...@googlegroups.com
Eric, thank you for your attention, I hope that the developers SDK, find and fix the problem quickly.

четверг, 25 сентября 2014 г., 5:00:18 UTC+3 пользователь Eric Leichtenschlag написал:

Eric Leichtenschlag

unread,
Oct 2, 2014, 12:07:30 PM10/2/14
to google-adm...@googlegroups.com
An update on this issue, there will be a fix for the next major release.

Thanks,
Eric

Сергей Шаимов

unread,
Oct 2, 2014, 12:19:13 PM10/2/14
to google-adm...@googlegroups.com
This is good news! Thank you, Eric!

четверг, 2 октября 2014 г., 19:07:30 UTC+3 пользователь Eric Leichtenschlag написал:
Reply all
Reply to author
Forward
0 new messages