View Issue Details

IDProjectCategoryView StatusLast Update
0031466Marketplace ExtensionsGoogle Mobile AdsPublic2019-10-29 14:02
ReporterMark AlexanderAssigned ToDavid Clarke 
PriorityHighSeverityB - MajorReproducibility100%
Status ResolvedResolutionFixed 
PlatformAndroidOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0031466: Google Mobile Ads: Consent form show function gives an exception
DescriptionThis is using v3.1.9.

If you try to use the google function "GoogleMobileAds_ConsentFormShow", no form is shown and the console output shows the following exception:

10-26 19:47:00.730 23657 23715 I yoyo : Attempting to show consent form.
10-26 19:47:00.730 23657 23715 I yoyo : InvocationTargetException thrown trying to call method GoogleMobileAds_ConsentFormShow on GooglePlayAdsExtension
10-26 19:47:00.730 23657 23715 I yoyo : Target exception: Can't create handler inside thread Thread[GLThread 21731,5,main] that has not called Looper.prepare(). Cause: null. Stack trace:
10-26 19:47:00.730 23657 23715 I yoyo : java.lang.RuntimeException: Can't create handler inside thread Thread[GLThread 21731,5,main] that has not called Looper.prepare()
10-26 19:47:00.730 23657 23715 I yoyo : at android.os.Handler.<init>(Handler.java:205)
10-26 19:47:00.730 23657 23715 I yoyo : at android.os.Handler.<init>(Handler.java:118)
10-26 19:47:00.730 23657 23715 I yoyo : at android.app.Dialog.<init>(Dialog.java:123)
10-26 19:47:00.730 23657 23715 I yoyo : at android.app.Dialog.<init>(Dialog.java:149)
10-26 19:47:00.730 23657 23715 I yoyo : at com.google.ads.consent.ConsentForm.<init>(ConsentForm.java:76)
10-26 19:47:00.730 23657 23715 I yoyo : at com.google.ads.consent.ConsentForm.<init>(ConsentForm.java:45)
10-26 19:47:00.730 23657 23715 I yoyo : at com.google.ads.consent.ConsentForm$Builder.build(ConsentForm.java:208)
10-26 19:47:00.730 23657 23715 I yoyo : at com.nocturnegames.microscopemadness.GooglePlayAdsExtension.GoogleMobileAds_ConsentFormShow(GooglePlayAdsExtension.java:802)
10-26 19:47:00.730 23657 23715 I yoyo : at java.lang.reflect.Method.invoke(Native Method)
10-26 19:47:00.730 23657 23715 I yoyo : at com.yoyogames.runner.RunnerJNILib.CallExtensionFunction(RunnerJNILib.java:1187)
10-26 19:47:00.730 23657 23715 I yoyo : at com.yoyogames.runner.RunnerJNILib.Process(Native Method)
10-26 19:47:00.730 23657 23715 I yoyo : at com.nocturnegames.microscopemadness.DemoRenderer.onDrawFrame(DemoRenderer.java:560)
10-26 19:47:00.730 23657 23715 I yoyo : at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1575)
10-26 19:47:00.730 23657 23715 I yoyo : at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1270)
Steps To ReproduceRun the project linked-to in the comments on Android
After passing the initial consent form showing, tap through to the main menu
In the main menu, tap the Options button (bottom left)
Now tap the "Ads" button to show the consent form and change the settings
Note that nothing happens and the output window shows an exception error.
TagsNo tags attached.
2.x Runtime Found In2.2.4.372
2.x Runtime Verified In

Activities

David Clarke

2019-10-28 15:41

Developer   ~0065059

Ensuring that the call to display the consent form is always being executed on the UI thread.