-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[$250] mWeb - Reports - App crashes when using device´s back button after a search on "Reports" #57169
Comments
Triggered auto assignment to @bfitzexpensify ( |
Job added to Upwork: https://www.upwork.com/jobs/~021892972906702803151 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ikevin127 ( |
🔄 This could be caused by the new search UI implementation:
cc @luacmartins @SzymczakJ Wdyt, is this issue related or it was happening before the new search UI implementation ? Note: Also feels like there's 2 issues here, OP mentions that after you type something, you tap the soft keyboard Enter key then UI looks like no search was performed, whereas in my video below I actually tapped on the search suggestion and this way search was actually performed - but the navigation back bug / crash happens regardless of this. I remember reviewing this issue where we did some work on the mWeb side for tapping search page soft keyboard Enter: details where we clarified behaviour can be seen in this comment, but the new Search UI implementation might've removed that logic since search is not happening on the same page, resulting in the OP behaviour regarding search not actuallly being performed when tapping the soft keyboard Enter button. 🟢 I can consistently reproduce the issue, here's the video and error:
|
I've looked into this a bit and the crash occurs when <Animated.View exiting={FadeOutRight}>
<ChildComponent />
{condition && <ChildComponent />}
<ChildComponent />
</Animated.View> When I hardcode
I think this happens because As a workaround, we can wrap child elements with a <Animated.View exiting={FadeOutRight}>
<View>
<ChildComponent />
{condition && <ChildComponent />}
<ChildComponent />
</View>
</Animated.View> The original BTW this issue is also reproducible in desktop Chrome with a narrow layout. |
@tomekzaw I thought this was the issue we fixed last week. Could you take a look into this please? |
I've asked @m-bert from Reanimated team to take a closer look |
Thank you! ❤ |
🔄 Not overdue, we're actively looking into this. More details in #57169 (comment). |
Hi! @CyberAndrii, if you've managed to track down this issue, do you, by chance, have smaller reproduction that we could look at? Expensify is quite complex app and there are many things happening that make it harder to find what really causes this problem. I agree that it might be the case that we modify DOM directly in Reanimated, but I don't understand why this issue happens only after modifying text input (if you go back without making any changes into it, app won't crash). Having simpler reproduction would definitely help 😅 |
📣 @m-bert! 📣
|
I tested this one a few days back and found the problem related with the addition of another freezeWrapper in SearchPage: App/src/pages/Search/SearchPage.tsx Line 55 in 4fe7c70
|
Unfortunately, I don't have a smaller reproduction app. But yeah, another important detail is that this page is wrapped in a App/src/libs/Navigation/AppNavigator/FreezeWrapper/index.tsx Lines 7 to 26 in 4fe7c70
|
I was able to reproduce it in Reanimated example app with |
@ikevin127 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@luacmartins What do you think about @m-bert's solution and PR for a fix in I'd say it looks promising for fixing this issue, but since to me the issue seems critical and merging the reanimated PR & updating E/App's reanimated version might take a while, what do you think about adding a patch to fix the issue in the meantime ? Michał Bert should author the patch PR and I'll make sure to review it so we can fix this issue asap 👍 |
I'm not sure if it'll take that long, since the PR is already in review and SWM owns reanimated 😄 @m-bert @tomekzaw please correct me if I'm wrong and you also think we should apply a patch instead of waiting for the reanimated PR to be merged. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Hi!
I think it wouldn't take long to merge this PR, but I'm not sure about the release (maybe @tomekzaw could say more about it). Also, it would be great if someone could test these changes in Expensify App. My test case in Reanimated works, but Expensify App still crashes at the same steps and at this point I'm not sure what actually breaks. |
hmm so it seems like we still haven't found the root cause of the issue. We should keep investigating! |
♻ Looking for a proposal that can identify the root cause and suggest a solution that fixes the issue. |
@ikevin127 Are you still able to reproduce the crash? I am not able to reproduce the crash on the latest main using both staging & non-staging servers
|
@bfitzexpensify @ikevin127 this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@NJ-2020 it seems that it doesn't happen anymore. As far as I can see @Kicu removed |
Thanks |
🟢 I confirm that the issue is not reproducible anymore in staging (v9.1.9-6) nor develop (v9.1.9-6) latest main. |
Nice. I think we can close this issue then. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Issue not reproducible during KI retests. (First week) |
@ikevin127 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@luacmartins I agree! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.1.2-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Motorola MotoG60 - Android 12 - Chrome
App Component: Search
Action Performed:
Expected Result:
User should be able to return to expenses list after using device´s back button.
Actual Result:
App crashes when using device´s back button after triggering a search on "Reports" section.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6748765_1740038286838!log.txt
https://github.com/user-attachments/assets/264fa9f1-3a31-4d19-9802-6e4617c02fb2
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @ikevin127The text was updated successfully, but these errors were encountered: