You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$250] mWeb - Reports - App crashes when using device´s back button after a search on "Reports" #57169
changed the title [-]mWeb - Reports - App crashes when using device´s back button after a search on "Reports"[/-][+][$250] mWeb - Reports - App crashes when using device´s back button after a search on "Reports"[/+]on Feb 21, 2025
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 has an exiting animation and contains a conditional child component. Simplified example:
When I hardcode condition to true, it crashes with a slightly different message:
Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
I think this happens because react-native-reanimated modifies the DOM directly, causing React to fail when applying changes from its virtual DOM. The crash no longer occurs when I comment out this lines.
As a workaround, we can wrap child elements with a View so that Animated.View doesn't have conditional child components:
Activity
melvin-bot commentedon Feb 20, 2025
Triggered auto assignment to @bfitzexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.[-]mWeb - Reports - App crashes when using device´s back button after a search on "Reports"[/-][+][$250] mWeb - Reports - App crashes when using device´s back button after a search on "Reports"[/+]melvin-bot commentedon Feb 21, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021892972906702803151
melvin-bot commentedon Feb 21, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ikevin127 (
External)ikevin127 commentedon Feb 22, 2025
🔄 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:
screen-20250221-182536.mp4
Screen.Recording.2025-02-21.at.18.27.04.mov
andriivitiv commentedon Feb 22, 2025
I've looked into this a bit and the crash occurs when
Animated.Viewhas anexitinganimation and contains a conditional child component. Simplified example:When I hardcode
conditiontotrue, it crashes with a slightly different message:I think this happens because
react-native-reanimatedmodifies the DOM directly, causing React to fail when applying changes from its virtual DOM. The crash no longer occurs when I comment out this lines.As a workaround, we can wrap child elements with a
Viewso thatAnimated.Viewdoesn't have conditional child components:The original
Animated.Viewcode in Expensify/App is here, and child components are here.BTW this issue is also reproducible in desktop Chrome with a narrow layout.
luacmartins commentedon Feb 24, 2025
@tomekzaw I thought this was the issue we fixed last week. Could you take a look into this please?
24 remaining items
m-bert commentedon Mar 6, 2025
@NJ-2020 it seems that it doesn't happen anymore. As far as I can see @Kicu removed
FreezeWrapperin this commit, so it doesn't crash.NJ-2020 commentedon Mar 6, 2025
Thanks
ikevin127 commentedon Mar 6, 2025
🟢 I confirm that the issue is not reproducible anymore in staging (v9.1.9-6) nor develop (v9.1.9-6) latest main.
luacmartins commentedon Mar 6, 2025
Nice. I think we can close this issue then.
melvin-bot commentedon Mar 7, 2025
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
mvtglobally commentedon Mar 7, 2025
Issue not reproducible during KI retests. (First week)
melvin-bot commentedon Mar 10, 2025
@ikevin127 Whoops! This issue is 2 days overdue. Let's get this updated quick!
ikevin127 commentedon Mar 10, 2025
@luacmartins I agree!
[Web LA] Fix interaction with `react-freeze` (software-mansion#7114)