Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Failed to dispatch window animation state change" crash occasionally on Android #7165

Closed
brentvatne opened this issue Apr 22, 2016 · 14 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@brentvatne
Copy link
Collaborator

This is tough to reproduce, I haven't noticed any patterns that lead to the crash but I see it at least once a day. @jesseruder pointed out that it might be an Android bug and not necessarily related to react-native. Similar crash report here: #6760

Has anyone seen this on FB apps? cc @mkonicek

04-22 15:01:56.737  4821  4858 W WindowAnimator: Failed to dispatch window animation state change.
04-22 15:01:56.737  4821  4858 W WindowAnimator: android.os.DeadObjectException
04-22 15:01:56.737  4821  4858 W WindowAnimator:     at android.os.BinderProxy.transactNative(Native Method)
04-22 15:01:56.737  4821  4858 W WindowAnimator:     at android.os.BinderProxy.transact(Binder.java:503)
04-22 15:01:56.737  4821  4858 W WindowAnimator:     at android.view.IWindow$Stub$Proxy.onAnimationStopped(IWindow.java:534)
04-22 15:01:56.737  4821  4858 W WindowAnimator:     at com.android.server.wm.WindowAnimator.updateWindowsLocked(WindowAnimator.java:286)
04-22 15:01:56.737  4821  4858 W WindowAnimator:     at com.android.server.wm.WindowAnimator.animateLocked(WindowAnimator.java:678)
04-22 15:01:56.737  4821  4858 W WindowAnimator:     at com.android.server.wm.WindowAnimator.-wrap0(WindowAnimator.java)
04-22 15:01:56.737  4821  4858 W WindowAnimator:     at com.android.server.wm.WindowAnimator$1.doFrame(WindowAnimator.java:123)
04-22 15:01:56.737  4821  4858 W WindowAnimator:     at android.view.Choreographer$CallbackRecord.run(Choreographer.java:856)
04-22 15:01:56.737  4821  4858 W WindowAnimator:     at android.view.Choreographer.doCallbacks(Choreographer.java:670)
04-22 15:01:56.737  4821  4858 W WindowAnimator:     at android.view.Choreographer.doFrame(Choreographer.java:603)
04-22 15:01:56.737  4821  4858 W WindowAnimator:     at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
04-22 15:01:56.737  4821  4858 W WindowAnimator:     at android.os.Handler.handleCallback(Handler.java:739)
04-22 15:01:56.737  4821  4858 W WindowAnimator:     at android.os.Handler.dispatchMessage(Handler.java:95)
04-22 15:01:56.737  4821  4858 W WindowAnimator:     at android.os.Looper.loop(Looper.java:148)
04-22 15:01:56.737  4821  4858 W WindowAnimator:     at android.os.HandlerThread.run(HandlerThread.java:61)
04-22 15:01:56.737  4821  4858 W WindowAnimator:     at com.android.server.ServiceThread.run(ServiceThread.java:46)
@ide ide added the Android label Apr 22, 2016
@rturk
Copy link

rturk commented Apr 23, 2016

What RN version you are using?
Are you also a Navigation framework?

Why I'm asking (not sure if is related). I had a somewhat similar issue with RNRF. During app startup if try to change before the initial render is completed app will crash. Ref here
aksonov/react-native-router-flux#472

@ide
Copy link
Contributor

ide commented Apr 23, 2016

This is happening with a fairly recent version of RN, close to 0.24.

@xvalentino
Copy link
Contributor

Anyone have an idea for a workaround? Since there seems to be some kind of memory leak, is there a way we can manually call some kind of garbage collection? I need my app to be able to run all day, while it always crashes at best about every ~12 hours.

@tomazahlin
Copy link

tomazahlin commented Jul 5, 2016

Any news on this? I get this crash all the time, it happens randomly while navigating in the app. It feels like it gets worse with every newer react native version, currently using 0.28 and while the project grows. If I can provide some more info, please let me know how.

@timsuchanek
Copy link

Having the same issue!
RN 0.27.2 here

@timsuchanek
Copy link

Any updates on this? It's a serious bug which occurs a lot of times in my app.
This is the full stack:

07-19 05:56:24.567   381   765 E CameraService: disconnect: Disconnect called on already disconnected client for device 0
07-19 05:56:24.567   381   765 E CameraService: binderDied: Java client's binder died, removing it from the list of active clients
07-19 05:56:24.664  1051  1243 I OpenGLRenderer: Initialized EGL, version 1.4
07-19 05:56:24.730  1051  1243 W EGL_emulation: eglSurfaceAttrib not implemented
07-19 05:56:24.730  1051  1243 W OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xddd3e280, error=EGL_SUCCESS
07-19 05:56:24.990   687  1974 E Surface : getSlotFromBufferLocked: unknown buffer: 0xde383420
07-19 05:56:25.254   687   718 W AppOps  : Finishing op nesting under-run: uid 1000 pkg android code 24 time=0 duration=0 nesting=0
07-19 05:56:25.331   687  2280 W InputMethodManagerService: Got RemoteException sending setActive(false) notification to pid 2977 uid 10060
07-19 05:56:25.736   687   718 W WindowAnimator: Failed to dispatch window animation state change.
07-19 05:56:25.736   687   718 W WindowAnimator: android.os.DeadObjectException
07-19 05:56:25.736   687   718 W WindowAnimator:    at android.os.BinderProxy.transactNative(Native Method)
07-19 05:56:25.736   687   718 W WindowAnimator:    at android.os.BinderProxy.transact(Binder.java:503)
07-19 05:56:25.736   687   718 W WindowAnimator:    at android.view.IWindow$Stub$Proxy.onAnimationStopped(IWindow.java:534)
07-19 05:56:25.736   687   718 W WindowAnimator:    at com.android.server.wm.WindowAnimator.updateWindowsLocked(WindowAnimator.java:286)
07-19 05:56:25.736   687   718 W WindowAnimator:    at com.android.server.wm.WindowAnimator.animateLocked(WindowAnimator.java:678)
07-19 05:56:25.736   687   718 W WindowAnimator:    at com.android.server.wm.WindowAnimator.-wrap0(WindowAnimator.java)
07-19 05:56:25.736   687   718 W WindowAnimator:    at com.android.server.wm.WindowAnimator$1.doFrame(WindowAnimator.java:123)
07-19 05:56:25.736   687   718 W WindowAnimator:    at android.view.Choreographer$CallbackRecord.run(Choreographer.java:856)
07-19 05:56:25.736   687   718 W WindowAnimator:    at android.view.Choreographer.doCallbacks(Choreographer.java:670)
07-19 05:56:25.736   687   718 W WindowAnimator:    at android.view.Choreographer.doFrame(Choreographer.java:603)
07-19 05:56:25.736   687   718 W WindowAnimator:    at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
07-19 05:56:25.736   687   718 W WindowAnimator:    at android.os.Handler.handleCallback(Handler.java:739)
07-19 05:56:25.736   687   718 W WindowAnimator:    at android.os.Handler.dispatchMessage(Handler.java:95)
07-19 05:56:25.736   687   718 W WindowAnimator:    at android.os.Looper.loop(Looper.java:148)
07-19 05:56:25.736   687   718 W WindowAnimator:    at android.os.HandlerThread.run(HandlerThread.java:61)
07-19 05:56:25.736   687   718 W WindowAnimator:    at com.android.server.ServiceThread.run(ServiceThread.java:46)
07-19 05:56:25.742   687   718 W WindowAnimator: Failed to dispatch window animation state change.
07-19 05:56:25.742   687   718 W WindowAnimator: android.os.DeadObjectException
07-19 05:56:25.742   687   718 W WindowAnimator:    at android.os.BinderProxy.transactNative(Native Method)
07-19 05:56:25.742   687   718 W WindowAnimator:    at android.os.BinderProxy.transact(Binder.java:503)
07-19 05:56:25.742   687   718 W WindowAnimator:    at android.view.IWindow$Stub$Proxy.onAnimationStopped(IWindow.java:534)
07-19 05:56:25.742   687   718 W WindowAnimator:    at com.android.server.wm.WindowAnimator.updateWindowsLocked(WindowAnimator.java:286)
07-19 05:56:25.742   687   718 W WindowAnimator:    at com.android.server.wm.WindowAnimator.animateLocked(WindowAnimator.java:678)
07-19 05:56:25.742   687   718 W WindowAnimator:    at com.android.server.wm.WindowAnimator.-wrap0(WindowAnimator.java)
07-19 05:56:25.742   687   718 W WindowAnimator:    at com.android.server.wm.WindowAnimator$1.doFrame(WindowAnimator.java:123)
07-19 05:56:25.742   687   718 W WindowAnimator:    at android.view.Choreographer$CallbackRecord.run(Choreographer.java:856)
07-19 05:56:25.742   687   718 W WindowAnimator:    at android.view.Choreographer.doCallbacks(Choreographer.java:670)
07-19 05:56:25.742   687   718 W WindowAnimator:    at android.view.Choreographer.doFrame(Choreographer.java:603)
07-19 05:56:25.742   687   718 W WindowAnimator:    at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
07-19 05:56:25.742   687   718 W WindowAnimator:    at android.os.Handler.handleCallback(Handler.java:739)
07-19 05:56:25.742   687   718 W WindowAnimator:    at android.os.Handler.dispatchMessage(Handler.java:95)
07-19 05:56:25.742   687   718 W WindowAnimator:    at android.os.Looper.loop(Looper.java:148)
07-19 05:56:25.742   687   718 W WindowAnimator:    at android.os.HandlerThread.run(HandlerThread.java:61)
07-19 05:56:25.742   687   718 W WindowAnimator:    at com.android.server.ServiceThread.run(ServiceThread.java:46)

@tomazahlin
Copy link

Looks like this is only happening when running Android app in "dev" environment, but not in "production". Is there any way to see and change some dev environment settings, so I could try to enable/disable some things to see if that could maybe help?

@dslounge
Copy link

dslounge commented Aug 30, 2016

"react": "~15.2.1",
"react-native": "~0.30.0",

Getting this issue too. This happens to me on Genymotion with Hot Reload enabled, after it hot reloads after changing a stateless functional component:

08-30 18:46:39.794  3502  3534 V RenderScript: 0xe01be000 Launching thread(s), CPUs 4
08-30 18:46:39.966   728   759 W WindowAnimator: Failed to dispatch window animation state change.
08-30 18:46:39.966   728   759 W WindowAnimator: android.os.DeadObjectException
08-30 18:46:39.966   728   759 W WindowAnimator:    at android.os.BinderProxy.transactNative(Native Method)
08-30 18:46:39.966   728   759 W WindowAnimator:    at android.os.BinderProxy.transact(Binder.java:503)
08-30 18:46:39.966   728   759 W WindowAnimator:    at android.view.IWindow$Stub$Proxy.onAnimationStopped(IWindow.java:534)
08-30 18:46:39.966   728   759 W WindowAnimator:    at com.android.server.wm.WindowAnimator.updateWindowsLocked(WindowAnimator.java:286)
08-30 18:46:39.966   728   759 W WindowAnimator:    at com.android.server.wm.WindowAnimator.animateLocked(WindowAnimator.java:678)
08-30 18:46:39.966   728   759 W WindowAnimator:    at com.android.server.wm.WindowAnimator.-wrap0(WindowAnimator.java)
08-30 18:46:39.966   728   759 W WindowAnimator:    at com.android.server.wm.WindowAnimator$1.doFrame(WindowAnimator.java:123)
08-30 18:46:39.966   728   759 W WindowAnimator:    at android.view.Choreographer$CallbackRecord.run(Choreographer.java:856)
08-30 18:46:39.966   728   759 W WindowAnimator:    at android.view.Choreographer.doCallbacks(Choreographer.java:670)
08-30 18:46:39.966   728   759 W WindowAnimator:    at android.view.Choreographer.doFrame(Choreographer.java:603)
08-30 18:46:39.966   728   759 W WindowAnimator:    at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
08-30 18:46:39.966   728   759 W WindowAnimator:    at android.os.Handler.handleCallback(Handler.java:739)
08-30 18:46:39.966   728   759 W WindowAnimator:    at android.os.Handler.dispatchMessage(Handler.java:95)
08-30 18:46:39.966   728   759 W WindowAnimator:    at android.os.Looper.loop(Looper.java:148)
08-30 18:46:39.966   728   759 W WindowAnimator:    at android.os.HandlerThread.run(HandlerThread.java:61)
08-30 18:46:39.966   728   759 W WindowAnimator:    at com.android.server.ServiceThread.run(ServiceThread.java:46)
08-30 18:46:40.330  3502  3534 W OpenGLRenderer: Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
08-30 18:46:40.330  3502  3534 W OpenGLRenderer: Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
08-30 18:46:40.585   728   759 W WindowAnimator: Failed to dispatch window animation state change.
08-30 18:46:40.585   728   759 W WindowAnimator: android.os.DeadObjectException
08-30 18:46:40.585   728   759 W WindowAnimator:    at android.os.BinderProxy.transactNative(Native Method)
08-30 18:46:40.585   728   759 W WindowAnimator:    at android.os.BinderProxy.transact(Binder.java:503)
08-30 18:46:40.585   728   759 W WindowAnimator:    at android.view.IWindow$Stub$Proxy.onAnimationStopped(IWindow.java:534)
08-30 18:46:40.585   728   759 W WindowAnimator:    at com.android.server.wm.WindowAnimator.updateWindowsLocked(WindowAnimator.java:286)
08-30 18:46:40.585   728   759 W WindowAnimator:    at com.android.server.wm.WindowAnimator.animateLocked(WindowAnimator.java:678)
08-30 18:46:40.585   728   759 W WindowAnimator:    at com.android.server.wm.WindowAnimator.-wrap0(WindowAnimator.java)
08-30 18:46:40.585   728   759 W WindowAnimator:    at com.android.server.wm.WindowAnimator$1.doFrame(WindowAnimator.java:123)
08-30 18:46:40.585   728   759 W WindowAnimator:    at android.view.Choreographer$CallbackRecord.run(Choreographer.java:856)
08-30 18:46:40.585   728   759 W WindowAnimator:    at android.view.Choreographer.doCallbacks(Choreographer.java:670)
08-30 18:46:40.585   728   759 W WindowAnimator:    at android.view.Choreographer.doFrame(Choreographer.java:603)
08-30 18:46:40.585   728   759 W WindowAnimator:    at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
08-30 18:46:40.585   728   759 W WindowAnimator:    at android.os.Handler.handleCallback(Handler.java:739)
08-30 18:46:40.585   728   759 W WindowAnimator:    at android.os.Handler.dispatchMessage(Handler.java:95)
08-30 18:46:40.585   728   759 W WindowAnimator:    at android.os.Looper.loop(Looper.java:148)
08-30 18:46:40.585   728   759 W WindowAnimator:    at android.os.HandlerThread.run(HandlerThread.java:61)
08-30 18:46:40.585   728   759 W WindowAnimator:    at com.android.server.ServiceThread.run(ServiceThread.java:46)
08-30 18:46:40.585   728   759 W WindowAnimator: Failed to dispatch window animation state change.
08-30 18:46:40.585   728   759 W WindowAnimator: android.os.DeadObjectException
08-30 18:46:40.585   728   759 W WindowAnimator:    at android.os.BinderProxy.transactNative(Native Method)
08-30 18:46:40.585   728   759 W WindowAnimator:    at android.os.BinderProxy.transact(Binder.java:503)
08-30 18:46:40.585   728   759 W WindowAnimator:    at android.view.IWindow$Stub$Proxy.onAnimationStopped(IWindow.java:534)
08-30 18:46:40.585   728   759 W WindowAnimator:    at com.android.server.wm.WindowAnimator.updateWindowsLocked(WindowAnimator.java:286)
08-30 18:46:40.585   728   759 W WindowAnimator:    at com.android.server.wm.WindowAnimator.animateLocked(WindowAnimator.java:678)
08-30 18:46:40.585   728   759 W WindowAnimator:    at com.android.server.wm.WindowAnimator.-wrap0(WindowAnimator.java)
08-30 18:46:40.585   728   759 W WindowAnimator:    at com.android.server.wm.WindowAnimator$1.doFrame(WindowAnimator.java:123)
08-30 18:46:40.585   728   759 W WindowAnimator:    at android.view.Choreographer$CallbackRecord.run(Choreographer.java:856)
08-30 18:46:40.585   728   759 W WindowAnimator:    at android.view.Choreographer.doCallbacks(Choreographer.java:670)
08-30 18:46:40.585   728   759 W WindowAnimator:    at android.view.Choreographer.doFrame(Choreographer.java:603)
08-30 18:46:40.585   728   759 W WindowAnimator:    at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
08-30 18:46:40.585   728   759 W WindowAnimator:    at android.os.Handler.handleCallback(Handler.java:739)
08-30 18:46:40.585   728   759 W WindowAnimator:    at android.os.Handler.dispatchMessage(Handler.java:95)
08-30 18:46:40.585   728   759 W WindowAnimator:    at android.os.Looper.loop(Looper.java:148)
08-30 18:46:40.585   728   759 W WindowAnimator:    at android.os.HandlerThread.run(HandlerThread.java:61)
08-30 18:46:40.585   728   759 W WindowAnimator:    at com.android.server.ServiceThread.run(ServiceThread.java:46)

@jevakallio
Copy link
Contributor

jevakallio commented Oct 18, 2016

Seeing this issue a lot in conjunction with react-native-svg in Victory Native, react-native 0.35.

We have a reproducible case in https://github.com/FormidableLabs/victory-uiexplorer-native - just run the app in Genymotion or Android stock emulator, navigate to VictoryArea chart and toggle between datasets until app crashes.

@attributeyielding
Copy link

Hello all, any update on this issue ?

@hramos
Copy link
Contributor

hramos commented Jul 20, 2017

Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally!

If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:

  • Does the issue still reproduce on the latest release candidate? Post a comment with the version you tested.
  • If so, is there any information missing from the bug report? Post a comment with all the information required by the issue template.
  • Is there a pull request that addresses this issue? Post a comment with the PR number so we can follow up.

If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution.

@hramos hramos added the Icebox label Jul 20, 2017
@hramos hramos closed this as completed Jul 20, 2017
@zaguiini
Copy link

Still happening...

@roberthoenig
Copy link
Contributor

For me as well. Should be reopened.

@hramos
Copy link
Contributor

hramos commented Jul 16, 2018

If this is still happening to anyone, please submit a new issue with more information.

@facebook facebook locked as resolved and limited conversation to collaborators Jul 16, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests