-
Notifications
You must be signed in to change notification settings - Fork 3k
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] IOS - App freezes when user uploaded messages and image while offline #16591
Comments
Triggered auto assignment to @jliexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Reproduced this on iPhone 13. |
Job added to Upwork: https://www.upwork.com/jobs/~01907c5dc79c397c99 |
Current assignee @kadiealexander is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak ( |
Triggered auto assignment to @danieldoglas ( |
I can take it :) |
📣 @koko57 You have been assigned to this job by @mountiny! |
Not overdue! |
is this bounty available? |
@danieldoglas, @eVoloshchak, @koko57, @kadiealexander Whoops! This issue is 2 days overdue. Let's get this updated quick! |
I cannot recreate this issue on v1.2.92-2 |
@kbecciv can you please retest? |
@koko57 do you think we can work on an upstream fix for this? |
@danieldoglas Would be ideal, but it seems to be a tough one. I'm still investigating what can be done here. Regarding the issue - for now the only working workaround solution (not ideal though) is |
@danieldoglas As I dug deeper into this persisting RCTModalHostViewController issue I've found a hint that may finally lead me to finding the real cause of this issue. It probably won't require any change in RN. I need to test it thoroughly and hopefully tomorrow I'll be able to tell if it's working. |
Thanks for keeping the progress here @koko57 |
ProposalPlease restate the problem that we are trying to solve in this issue.When attaching an image or document, the app freezes right after the attachment preview modal closes - the whole screen is unresponsive and the input loses focus. The app needs to be reopened. What is the root cause of that problem?UITransitionView with RCTModalHostViewController is not removed from the view hierarchy when the modal is dismissed (although the onDIsmiss is called). Found a bunch of similar issues, but solutions proposed in the discussions either didn’t apply or didn’t work for our case (just a few of them here): facebook/react-native#29973 These comments were the most closely related to our issue: The - (void)didMoveToWindow
{
[super didMoveToWindow];
// In the case where there is a LayoutAnimation, we will be reinserted into the view hierarchy but only for aesthetic
// purposes. In such a case, we should NOT represent the <Modal>.
if (!self.userInteractionEnabled && ![self.superview.reactSubviews containsObject:self]) {
return;
}
[self ensurePresentedOnlyIfNeeded];
} What changes do you think we should make to solve the problem?I think this bug can be fixed without touching this calculateEmojiSuggestion() {
if (!this.state.value) {
this.setState({
suggestedEmojis: [],
highlightedEmojiIndex: 0,
colonIndex: -1,
shouldShowSuggestionMenu: false,
isEmojiPickerLarge: true,
});
return;
} |
@koko57 got it, that makes sense to me. Let's spin up a PR and test it. :) |
@danieldoglas @eVoloshchak @koko57 @kadiealexander this issue is now 4 weeks old and preventing us from maintaining WAQ, can you:
Thanks! |
Current assignee @eVoloshchak is eligible for the Internal assigner, not assigning anyone new. |
@danieldoglas, @eVoloshchak, @koko57, @kadiealexander Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Today making my PR - testing changes on all devices now |
PR ready for review :) |
@danieldoglas, @eVoloshchak, @koko57, @kadiealexander Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
This was merged already @kadiealexander can you arrange the payment for @eVoloshchak ? |
@eVoloshchak I've sent you an Upwork contract here, please let me know when you accept! |
@kadiealexander, accepted, thank you |
Payment sorted! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
After uploading a photo and writing a message, the conversation should scroll when user back online
Actual Result:
App freezes when user uploaded messages and image while offline
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.90.4
Reproducible in staging?: Yes
Reproducible in production?: yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Bug5995040_freeze_ios_27.03.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: