Skip to content

Instantly share code, notes, and snippets.

@Shruti360
Created April 29, 2014 13:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shruti360/232bfa8a246434202485 to your computer and use it in GitHub Desktop.
Save Shruti360/232bfa8a246434202485 to your computer and use it in GitHub Desktop.
Java.Lang.IllegalStateException: This ViewTreeObserver is not alive, call getViewTreeObserver() again
at Android.Runtime.JNIEnv.CallVoidMethod (intptr,intptr,Android.Runtime.JValue[]) [0x00063] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.12-series/a1e3982a/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:507
at Android.Views.ViewTreeObserver.RemoveOnGlobalLayoutListener (Android.Views.ViewTreeObserver/IOnGlobalLayoutListener) [0x0002d] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.12-series/a1e3982a/source/monodroid/src/Mono.Android/platforms/android-17/src/generated/Android.Views.ViewTreeObserver.cs:877
at at Java.Interop.EventHelper.RemoveEventHandler<Android.Views.ViewTreeObserver/IOnGlobalLayoutListener, Android.Views.ViewTreeObserver/IOnGlobalLayoutListenerImplementor> (System.WeakReference&,System.Func`2<Android.Views.ViewTreeObserver/IOnGlobalLayoutListenerImplementor, bool>,System.Action`1<Android.Views.ViewTreeObserver/IOnGlobalLayoutListener>,System.Action`1<Android.Views.ViewTreeObserver/IOnGlobalLayoutListenerImplementor>) <0x001c3>
at Android.Views.ViewTreeObserver.remove_GlobalLayout (System.EventHandler) [0x0000d] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.12-series/a1e3982a/source/monodroid/src/Mono.Android/platforms/android-17/src/generated/Android.Views.ViewTreeObserver.cs:970
at AndroidApplication90.Activity1.ViewTreeObserver_GlobalLayout (object,System.EventArgs) [0x00008] in c:\Users\admin\Downloads\AndroidApplication90\AndroidApplication90\Activity1.cs:42
at Android.Views.ViewTreeObserver/IOnGlobalLayoutListenerImplementor.OnGlobalLayout () [0x0000d] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.12-series/a1e3982a/source/monodroid/src/Mono.Android/platforms/android-17/src/generated/Android.Views.ViewTreeObserver.cs:352
at Android.Views.ViewTreeObserver/IOnGlobalLayoutListenerInvoker.n_OnGlobalLayout (intptr,intptr) [0x00009] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.12-series/a1e3982a/source/monodroid/src/Mono.Android/platforms/android-17/src/generated/Android.Views.ViewTreeObserver.cs:316
at at (wrapper dynamic-method) object.da53e0ce-e11e-41e6-a58e-02f2c6ef433b (intptr,intptr) <IL 0x00011, 0x0003b>
at --- End of managed exception stack trace ---
at java.lang.IllegalStateException: This ViewTreeObserver is not alive, call getViewTreeObserver() again
at at android.view.ViewTreeObserver.checkIsAlive(ViewTreeObserver.java:713)
at at android.view.ViewTreeObserver.removeOnGlobalLayoutListener(ViewTreeObserver.java:522)
at at mono.android.view.ViewTreeObserver_OnGlobalLayoutListenerImplementor.n_onGlobalLayout(Native Method)
at at mono.android.view.ViewTreeObserver_OnGlobalLayoutListenerImplementor.onGlobalLayout(ViewTreeObserver_OnGlobalLayoutListenerImplementor.java:29)
at at android.view.ViewTreeObserver.dispatchOnGlobalLayout(ViewTreeObserver.java:808)
at at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1768)
at at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1004)
at at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5481)
at at android.view.Choreographer$CallbackRecord.run(Choreographer.java:749)
at at android.view.Choreographer.doCallbacks(Choreographer.java:562)
at at android.view.Choreographer.doFrame(Choreographer.java:532)
at at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735)
at at android.os.Handler.handleCallback(Handler.java:730)
at at android.os.Handler.dispatchMessage(Handler.java:92)
at at android.os.Looper.loop(Looper.java:137)
at at android.app.ActivityThread.main(ActivityThread.java:5103)
at at java.lang.reflect.Method.invokeNative(Native Method)
at at java.lang.reflect.Method.invoke(Method.java:525)
at at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
at at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at at dalvik.system.NativeStart.main(Native Method)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment