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

[v4] app crash in release mode ( IOS & ANDROID ) #1824

Open
alainib opened this issue May 3, 2024 · 3 comments
Open

[v4] app crash in release mode ( IOS & ANDROID ) #1824

alainib opened this issue May 3, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@alainib
Copy link

alainib commented May 3, 2024

Bug

since i added this package and reanimated my app crash on opening on both IOS & Android, i'm not able to fix this after lot's of test

Failed to deliver inset state change to w=Window{2f8b223 u0 com.cool.preprod/com.cool.MainActivity EXITING}
   		android.os.DeadObjectException
   			at android.os.BinderProxy.transactNative(Native Method)
   			at android.os.BinderProxy.transact(BinderProxy.java:584)
   			at android.view.IWindow$Stub$Proxy.insetsControlChanged(IWindow.java:473)
   			at com.android.server.wm.WindowState.notifyInsetsControlChanged(WindowState.java:3995)
   			at com.android.server.wm.InsetsStateController.lambda$notifyPendingInsetsControlChanged$4(InsetsStateController.java:351)
   			at com.android.server.wm.InsetsStateController.$r8$lambda$An2IoiA3BeA5IWc6QwBOjKArM80(Unknown Source:0)
   			at com.android.server.wm.InsetsStateController$$ExternalSyntheticLambda3.run(Unknown Source:2)
   			at com.android.server.wm.WindowAnimator.executeAfterPrepareSurfacesRunnables(WindowAnimator.java:345)
   			at com.android.server.wm.RootWindowContainer.performSurfacePlacementNoTrace(RootWindowContainer.java:832)
   			at com.android.server.wm.RootWindowContainer.performSurfacePlacement(RootWindowContainer.java:777)
   			at com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementLoop(WindowSurfacePlacer.java:177)
   			at com.android.server.wm.WindowSurfacePlacer.performSurfacePlacement(WindowSurfacePlacer.java:126)
   			at com.android.server.wm.WindowSurfacePlacer.performSurfacePlacement(WindowSurfacePlacer.java:115)
   			at com.android.server.wm.WindowSurfacePlacer$Traverser.run(WindowSurfacePlacer.java:57)
   			at android.os.Handler.handleCallback(Handler.java:942)
   			at android.os.Handler.dispatchMessage(Handler.java:99)
   			at android.os.Looper.loopOnce(Looper.java:201)
   			at android.os.Looper.loop(Looper.java:288)
   			at android.os.HandlerThread.run(HandlerThread.java:67)
   			at com.android.server.ServiceThread.run(ServiceThread.java:44)
2024-05-03 16:27:49.270   582-603   WindowManager           system_server                        W  Exception thrown during dispatchAppVisibility Window{2f8b223 u0 com.cool.preprod/com.cool.MainActivity EXITING}
   		android.os.DeadObjectException
   			at android.os.BinderProxy.transactNative(Native Method)
   			at android.os.BinderProxy.transact(BinderProxy.java:584)
   			at android.view.IWindow$Stub$Proxy.dispatchAppVisibility(IWindow.java:536)
   			at com.android.server.wm.WindowState.sendAppVisibilityToClients(WindowState.java:3469)
   			at com.android.server.wm.WindowContainer.sendAppVisibilityToClients(WindowContainer.java:1225)
   			at com.android.server.wm.WindowToken.setClientVisible(WindowToken.java:392)
   			at com.android.server.wm.ActivityRecord.setClientVisible(ActivityRecord.java:6714)
   			at com.android.server.wm.ActivityRecord.onAnimationFinished(ActivityRecord.java:7526)
   			at com.android.server.wm.ActivityRecord.postApplyAnimation(ActivityRecord.java:5405)
   			at com.android.server.wm.ActivityRecord.commitVisibility(ActivityRecord.java:5364)
   			at com.android.server.wm.ActivityRecord.commitVisibility(ActivityRecord.java:5368)
   			at com.android.server.wm.AppTransitionController.handleClosingApps(AppTransitionController.java:1144)
   			at com.android.server.wm.AppTransitionController.handleAppTransitionReady(AppTransitionController.java:292)
   			at com.android.server.wm.RootWindowContainer.checkAppTransitionReady(RootWindowContainer.java:970)
   			at com.android.server.wm.RootWindowContainer.performSurfacePlacementNoTrace(RootWindowContainer.java:834)
   			at com.android.server.wm.RootWindowContainer.performSurfacePlacement(RootWindowContainer.java:777)
   			at com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementLoop(WindowSurfacePlacer.java:177)
   			at com.android.server.wm.WindowSurfacePlacer.performSurfacePlacement(WindowSurfacePlacer.java:126)
   			at com.android.server.wm.WindowSurfacePlacer.performSurfacePlacement(WindowSurfacePlacer.java:115)
   			at com.android.server.wm.WindowSurfacePlacer$Traverser.run(WindowSurfacePlacer.java:57)
   			at android.os.Handler.handleCallback(Handler.java:942)
   			at android.os.Handler.dispatchMessage(Handler.java:99)
   			at android.os.Looper.loopOnce(Looper.java:201)
   			at android.os.Looper.loop(Looper.java:288)
   			at android.os.HandlerThread.run(HandlerThread.java:67)
   			at com.android.server.ServiceThread.run(ServiceThread.java:44)
2024-05-03 16:27:49.714   582-602   ActivityTaskManager     system_server                        W  Activity top resumed state loss timeout for ActivityRecord{5cd4719 u0 com.cool.preprod/com.cool.MainActivity} t-1 f}}

Environment info

Library Version
@gorhom/bottom-sheet 4.6.1
react-native 0.73.5
react-native-reanimated 3.10.0
react-native-gesture-handler 2.16.1

Steps To Reproduce

app work on debug mode but crash on IOS & Android

i triple checked reanimated setup, i have done the step in babel.config.js and pod install

Reproducible sample code

i have this error even with basic example from here

https://ui.gorhom.dev/components/bottom-sheet/usage

@alainib alainib added the bug Something isn't working label May 3, 2024
@JDMathew
Copy link

JDMathew commented May 6, 2024

I'm not sure this library is compatible with reanimated version 3 according to the readme it only supports v1 & v2.

@alainib
Copy link
Author

alainib commented May 7, 2024

@JDMathew we also tested

@gorhom/bottom-sheet | 5.0.0-alpha.9
react-native | 0.73.5
react-native-reanimated | 3.10.0
react-native-gesture-handler | 2.16.1

reanimated V2 works only with reactnative 0.71 and lower
https://docs.swmansion.com/react-native-reanimated/docs/guides/compatibility/

@MuhammadMuzammilQadri
Copy link

MuhammadMuzammilQadri commented May 16, 2024

Our app is getting crashed too. We are getting the below error:
Error: [Reanimated] Native part of Reanimated doesn't seem to be initialized

When we remove the code for @gorhom/bottom-sheet, app starts running fine.

Environment Info:
@gorhom/bottom-sheet | 5.0.0-alpha.9 and 4.6.1
react-native | 0.74.0
react-native-reanimated | 3.11.0
react-native-gesture-handler | 2.16.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants