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

[$1000] Settings - There is a lag when transitioning between Account settings #47716

Open
1 of 6 tasks
lanitochka17 opened this issue Aug 20, 2024 · 27 comments
Open
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@lanitochka17
Copy link

lanitochka17 commented Aug 20, 2024

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.0.22-5
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team

Action Performed:

  1. Navigate to https://staging.new.expensify.com/
  2. Log in with a new Gmail account
  3. Navigate to Account settings - About
  4. Click on "Inbox"
  5. Click on "Account settings"

Expected Result:

I should be able to navigate smoothly

Actual Result:

The app freezes after opening Account settings again on specific pages. Affects most of the pages on Account settings. The freeze can last from 2-5 seconds to a point where you have to restart the browser. Sometimes the app returns to normal after you click

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6576947_1724150629250.bandicam_2024-08-20_12-36-16-922.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021846341339697727091
  • Upwork Job ID: 1846341339697727091
  • Last Price Increase: 2024-10-23
Issue OwnerCurrent Issue Owner: @s77rt
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Aug 20, 2024
Copy link

melvin-bot bot commented Aug 20, 2024

Triggered auto assignment to @jliexpensify (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.

@lanitochka17
Copy link
Author

@jliexpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@codewaseem
Copy link
Contributor

I think same as #47041

@jliexpensify jliexpensify changed the title Settings - The app freezes after opening Account settings again on specific pages [WAITING ON #47041] Settings - The app freezes after opening Account settings again on specific pages Aug 21, 2024
@jliexpensify
Copy link
Contributor

Thanks @codewaseem - I think the root cause might be the same, as these issues are similar. I'll put a hold on this one, and then get Applause to re-test once #47041 is resolved.

@jliexpensify jliexpensify added Monthly KSv2 and removed Daily KSv2 labels Aug 21, 2024
Copy link

melvin-bot bot commented Sep 3, 2024

@jliexpensify this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

@jliexpensify
Copy link
Contributor

Waiting on other PR

@jliexpensify jliexpensify added the retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause label Oct 1, 2024
@jliexpensify
Copy link
Contributor

@lanitochka17 can you re-test please? #47041 has been deployed to production and I can't reproduce this issue anymore,

@isagoico
Copy link

isagoico commented Oct 7, 2024

I'm still able to reproduce the issue on my side on 9.0.45-2. There's a notable freeze when navigating to About.

slow.mp4

@adhorodyski
Copy link
Contributor

@isagoico I'm able to only get 1/10 of this hang on my end, though performance profiling shows ~500ms is spent on setting up Lottie. I can also get rid of this hang completely when removing the animated sections.

Could you please record a Chrome profiling session for us? Steps are here:

@isagoico
Copy link

isagoico commented Oct 8, 2024

@adhorodyski Tried again today and the freeze is not as notable as when I reproduced back here.

I recorded the Profile here Profile.zip.

@adhorodyski
Copy link
Contributor

Screenshot 2024-10-09 at 13 45 44

Yup, looks like this is the same thing on your end.

@adhorodyski
Copy link
Contributor

adhorodyski commented Oct 10, 2024

I've found this PR that postpones setting the asset so it delays the initiation - we can see the same in the Hermes trace as well. Looks like this was desired to offload this & now we're just experiencing it each time we load this page?

useEffect(() => {
        setAnimationFile(source.file);
    }, [setAnimationFile, source.file]);

This block runs each time we mount this component to the screen so it might be that we just re-run the whole internal pipeline for Lottie.

My assumption is that we started offloading this to get the gains elsewhere and now we're "paying the price" for it, is that right?

@adhorodyski
Copy link
Contributor

@jliexpensify the issue we're waiting for is closed now, what action can we take in this one?

@jliexpensify
Copy link
Contributor

Hi @adhorodyski - hmm so I guess if this issue is still reproducible, we should dig into this further and try and fix the root cause. So we'd need to treat this as a separate issue to #47041.

The other consideration is how bad this issue is, and whether it can actually be widely and consistently reproduced. If it's a niche issue, then maybe we can consider not fixing it? But we should probably bring this up publicly before making any decisions around it.

@adhorodyski
Copy link
Contributor

adhorodyski commented Oct 15, 2024

It can be consistently reproduced, though I'd say it's not worth spending time on it at the moment unless we get more reports of this actually being problematic. I'm experiencing a 115-200ms (mac m1 pro) lag now due to this animation which is not that big of a deal (?)

cc @mountiny curious about your opinion on this? I only want to prevent us chasing a 100ms lag on a settings page, but can dive deeper into this if we consider this being important (though we intentionally offloaded this lag to the subpages before).

If no one can reproduce the big UI hangs anymore the issue is not about 'freezing the app', but rather 'experiencing a slight lag' which seems like a smaller priority thing.

@adhorodyski
Copy link
Contributor

Here's how big of a lag I'm getting on the JS thread (2 visits, ~117ms each):

Screenshot 2024-10-15 at 16 29 40

@mountiny
Copy link
Contributor

Hmm tough one. I would say we can make this external for $1000 and see if anyone can fix it in a root. I agree it might not be worth it having an agency worker on this, if we are only reproducing the lag

@jliexpensify jliexpensify changed the title [WAITING ON #47041] Settings - The app freezes after opening Account settings again on specific pages [$1000] Settings - The app freezes after opening Account settings again on specific pages Oct 16, 2024
Copy link

melvin-bot bot commented Oct 16, 2024

⚠️ Could not update price automatically because there is no linked Upwork Job ID. The BZ team member will need to update the price manually in Upwork.

@jliexpensify jliexpensify added the External Added to denote the issue can be worked on by a contributor label Oct 16, 2024
Copy link

melvin-bot bot commented Oct 16, 2024

Job added to Upwork: https://www.upwork.com/jobs/~021846341339697727091

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 16, 2024
Copy link

melvin-bot bot commented Oct 16, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @s77rt (External)

@melvin-bot melvin-bot bot added Daily KSv2 and removed Monthly KSv2 labels Oct 16, 2024
@jliexpensify
Copy link
Contributor

Posted here

@jliexpensify jliexpensify changed the title [$1000] Settings - The app freezes after opening Account settings again on specific pages [$1000] Settings - There is a lag when transitioning between Account settings Oct 16, 2024
@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

@melvin-bot melvin-bot bot added the Overdue label Oct 19, 2024
@s77rt
Copy link
Contributor

s77rt commented Oct 19, 2024

Not overdue. Looking for proposals

@melvin-bot melvin-bot bot removed the Overdue label Oct 19, 2024
@jliexpensify jliexpensify removed the retest-weekly Apply this label if you want this issue tested on a Weekly basis by Applause label Oct 22, 2024
@melvin-bot melvin-bot bot added the Overdue label Oct 22, 2024
@s77rt
Copy link
Contributor

s77rt commented Oct 22, 2024

Same ^

@melvin-bot melvin-bot bot removed the Overdue label Oct 22, 2024
Copy link

melvin-bot bot commented Oct 23, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@Anaslancer
Copy link

@s77rt Let me confirm this error? It seems like we should fix the loading duration of the animations?

@s77rt
Copy link
Contributor

s77rt commented Oct 23, 2024

@Anaslancer More specifically we are looking to understand why the app becomes laggy then fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
Development

No branches or pull requests

9 participants