java.lang.IllegalStateException: onMeasure() did not set the measured dimension by calling setMeasuredDimension()

Game Development | johnyX | 5 months ago
  1. 0

    Sudden shutdown with IllegalStateException without doing anything

    Game Development | 5 months ago | johnyX
    java.lang.IllegalStateException: onMeasure() did not set the measured dimension by calling setMeasuredDimension()
  2. 0

    Sudden shutdown with IllegalStateException without doing anything

    Stack Overflow | 5 months ago | BlackJack
    java.lang.IllegalStateException: onMeasure() did not set the measured dimension by calling setMeasuredDimension()
  3. 0

    Sudden app shutdown without doing any activity, throws IllegalStateException onMeasure()

    Stack Overflow | 4 months ago | BlackJack
    java.lang.IllegalStateException: onMeasure() did not set the measured dimension by calling setMeasuredDimension()
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    SurfaceView onMeasure() did not set the measured dimension by calling setMeasuredDimension()

    Stack Overflow | 2 years ago | Fantom789
    java.lang.IllegalStateException: onMeasure() did not set the measured dimension by calling setMeasuredDimension()
  6. 0

    Uncaught exception causing premature app shutdown - Xamarin Forums

    xamarin.com | 1 year ago
    java.lang.IllegalStateException: onMeasure() did not set the measured dimension by calling setMeasuredDimension()

  1. ajinkya_w 8 times, last 2 months ago
1 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

    onMeasure() did not set the measured dimension by calling setMeasuredDimension()

    at android.view.View.measure()
  2. Android Platform
    FrameLayout.onMeasure
    1. android.view.View.measure(View.java:15293)
    2. android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:617)
    3. android.widget.RelativeLayout.onMeasure(RelativeLayout.java:399)
    4. android.view.View.measure(View.java:15288)
    5. android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:617)
    6. android.widget.RelativeLayout.onMeasure(RelativeLayout.java:399)
    7. android.view.View.measure(View.java:15288)
    8. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4876)
    9. android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
    10. android.view.View.measure(View.java:15288)
    11. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4876)
    12. android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1396)
    13. android.widget.LinearLayout.measureVertical(LinearLayout.java:681)
    14. android.widget.LinearLayout.onMeasure(LinearLayout.java:574)
    15. android.view.View.measure(View.java:15288)
    16. android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4876)
    17. android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
    17 frames
  3. Android
    PhoneWindow$DecorView.onMeasure
    1. com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2397)
    1 frame
  4. Android Platform
    ActivityThread.main
    1. android.view.View.measure(View.java:15288)
    2. android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:1974)
    3. android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1217)
    4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1390)
    5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1113)
    6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4481)
    7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:725)
    8. android.view.Choreographer.doCallbacks(Choreographer.java:555)
    9. android.view.Choreographer.doFrame(Choreographer.java:525)
    10. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:711)
    11. android.os.Handler.handleCallback(Handler.java:615)
    12. android.os.Handler.dispatchMessage(Handler.java:92)
    13. android.os.Looper.loop(Looper.java:137)
    14. android.app.ActivityThread.main(ActivityThread.java:4867)
    14 frames
  5. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:511)
    2 frames
  6. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1007)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:774)
    2 frames
  7. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame