WP8 InvalidOperationException caused by AdMob

637 views
Skip to first unread message

deh...@googlemail.com

unread,
Jan 3, 2014, 11:41:44 AM1/3/14
to google-adm...@googlegroups.com
I just started using AdMob as an ad provider using the Windows Phone 8 AdMob SDK with the current version (6.5.11).

The following exception is thrown and would normally cause an app to crash, if the exception is not handled in "App.xaml.cs" in the method "Application_UnhandledException":

InvalidOperationException: FrameworkDispatcher.Update has not been called. Regular FrameworkDispatcher.Update calls are necessary for fire and forget sound effects and framework events to function correctly. See http://go.microsoft.com/fwlink/?LinkId=193853 for details.
   at Microsoft.Xna.Framework.FrameworkDispatcher.AddNewPendingCall(ManagedCallType callType, UInt32 arg)
   at Microsoft.Xna.Framework.UserAsyncDispatcher.AsyncDispatcherThreadFunction()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

This exception is seemingly caused by only some ads, but I don't now which.
The fix seems easy (calling FrameworkDispatcher.Update every 50 milliseconds), but I don't won't to use that, because it causes terrible battery drain.
Please fix your SDK so that this is not needed or tell me what ads I have to blog that this does not occur, or I will not be able to use AdMob.


My guess is, that this is the same exception as was described here:

https://groups.google.com/forum/#!topic/google-admob-ads-sdk/vw61ZdJALYo


Also over a month ago it was said that version 6.5.12 would fix a different bug:

https://groups.google.com/d/msg/google-admob-ads-sdk/qFu4jfecX_g/WhO-mhZpvogJ

I can confirm this is a bug, it will be fixed with 6.5.12 which I think I will be able to release before next Monday.
--
Tuna

Eternal sunshine of the opensource mind.

It has now been over 2 months since that update should have been released according to that post and the ad control is still not refreshing ads.

deh...@googlemail.com

unread,
Jan 3, 2014, 11:57:21 AM1/3/14
to google-adm...@googlegroups.com
woah,
reading through the posts concering Windows Phone 8 I noticed that this bug was already reported nearly 3 months ago for the SDK version 6.5.9 here:
https://groups.google.com/d/msg/google-admob-ads-sdk/uvtkYbersak/geyTujgza2AJ

Seems like the sdk is not going to be in a usable state anytime soon.....

Oh well, I guess I'll use other ad providers, the ads I got through AdMob in my tests were pretty bad anyway..

CasualGames.nu

unread,
Feb 18, 2014, 1:39:02 PM2/18/14
to google-adm...@googlegroups.com
I have the same issue and I can see that it happens more and more.

I have not been able to reproduce it myself but I get crash reports from some users which have the exact same trace as you do.

Until this issue is resolved I will remove all Admob ads as its not stable enough.

Rolando Javier Berrú Beltrán

unread,
Mar 10, 2014, 3:14:29 PM3/10/14
to google-adm...@googlegroups.com

I'm having the same issue and don't know what to do. I think I'll have to remove the ads until the sdk is updated, please, if u have any other solution, tell us!
Reply all
Reply to author
Forward
0 new messages