Getting several crashes in com.mopub.common.Preconditions.checkStateInternal


#1

Hi,

I have an Android app in the market and we are using MoPub. We are receiving a lot of crashes in a class from the MoPub SDK. Here is the stack trace:
Fatal Exception: java.lang.IllegalStateException: Illegal state.
at com.mopub.common.Preconditions.checkStateInternal(Preconditions.java:255)
at com.mopub.common.Preconditions.checkState(Preconditions.java:52)
at com.mopub.mraid.MraidController.getRootView(MraidController.java:838)
at com.mopub.mraid.MraidController.access$1200(MraidController.java:54)
at com.mopub.mraid.MraidController$7.run(MraidController.java:524)
at com.mopub.mraid.MraidController$ScreenMetricsWaiter$WaitRequest.countDown(MraidController.java:385)
at com.mopub.mraid.MraidController$ScreenMetricsWaiter$WaitRequest.access$400(MraidController.java:371)
at com.mopub.mraid.MraidController$ScreenMetricsWaiter$WaitRequest$1$1.onPreDraw(MraidController.java:407)
at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:1014)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2560)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1487)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7450)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:920)
at android.view.Choreographer.doCallbacks(Choreographer.java:695)
at android.view.Choreographer.doFrame(Choreographer.java:631)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:906)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7229)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

Can anyone help with this?

Best regards,
Fernando Jorge Teixeira


#2

Hi @fjorge1,

Thanks for reaching out! We resolved this crash in MoPub SDK version 4.10. I’d recommend updating to the latest version of the SDK and you should no longer see this crash.

Thanks!