-
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
Android - Crash when editing a message #3599
Comments
Triggered auto assignment to @Jag96 ( |
I can see this crash in crashlytics. The error here is
It looks like this react-native issue could be related: facebook/react-native#29063. I haven't been able to reproduce on my iPhone or on the Android emulator, so there may be more to this. cc @parasharrajat since this is partially related to the discussion going on in #3434 (comment). All that being said, this is an External issue so applying the External label. |
Triggered auto assignment to @NicMendonca ( |
Triggered auto assignment to @NikkiWines ( |
Posted to Upwork: https://www.upwork.com/jobs/~01b31c0c7bf061f50b |
@Jag96 I tried this solution and it's not fixed that issue PROPOSAL 1 How can we produce it? Why did this issue happen? How to fix it? like this
PROPOSAL 2 @Jag96 you are right Thanks |
I posted on #3691 that I was unable to reproduce an issue w/ the same error message on 1.0.73-0, since I'm unable to reproduce this on my emulator @isagoico can we get a retest of this issue for the tester on the Samsung Galaxy S21/11 on the latest E.cash version? Just to confirm it hasn't been fixed by that version |
My bad, we had retested this and forgot to update here. Issue is still ocurring to the same same tester on the same device latest build. |
@isagoico is this only reproducible for this one tester on the one device? Or can we confirm that it can be reproduced on multiple android devices? Either way though, since it's reproducible on at least one device, do we want to accept the above proposal for this one @Jag96? |
Yep! so far it has been reproducible only on 1 device for 1 tester. |
@NikkiWines I haven't had a chance to review the proposals, @aliabbasmalik8 is Proposal 1 preferred over Proposal 2? For Proposal 2 can you expand on |
YES
Proposal 2 approaches will break the selection position on android in Thanks |
Asked internally to get another set of eyes on the proposal to make sure I'm not missing any potential side effects. |
So to be clear, you're saying that the problem occurs because the And the only change in Proposal 1 is to not trim the draft before updating the state? If so, it seems reasonable. But I do wonder if a better solution would be to fix this upstream in React Native... Also, do we know the context for when + why the |
One question. If selection prop is disabled on IOS, then how do we manage cursor position there? |
@roryabraham for proposal 1, I passed
the purpose of doing this is setState takes some time to update the state so when we saved value at the backend before updating the state then the previous value saved and We can also achieve this by using this way
Selection Props have a serious problem with Texinput on IOS and it's disabled from the very start.
As you know that we are using this prop |
I'm sorry @aliabbasmalik8, I am having a lot of difficulty understanding your last comment. First, can you help me understand the race condition you're describing, and why not trimming the |
@roryabraham Now it can be resolved by updating this function like this
and 2nd point already resolved by someone else by update code from Thanks |
@roryabraham bumping @aliabbasmalik8's proposal ☝️ |
@aliabbasmalik8 I have the same question that @roryabraham had previously, why does not trimming the |
@Jag96 right now and the first point(that mentioned in the first proposal) is already resolved. |
@aliabbasmalik8 can you provide an example to explain why not trimming fixes the issue? I don't understand what the actual issue is and how not trimming the value fixes it. |
@Jag96 |
@aliabbasmalik8 thanks for the explanation, that sounds reasonable to me. @roryabraham is out this week, so @NikkiWines if you don't have any other questions I think this is good to move forward! |
No further questions from me. @NicMendonca you're good to hire @aliabbasmalik8 for this job. |
@aliabbasmalik8 can you please apply for the job in Upwork so we can start the contract? Thanks! |
@NicMendonca applied for the JOB. |
@aliabbasmalik8 hired! Feel free to spin up the PR now. Thanks! |
Paid. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
Able to edit a message
Actual Result:
App crashes after editing the message
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platform:
Where is this issue occurring?
Web
iOS
Android ✔️
Desktop App
Mobile Web
Version Number: 1.0.69-0
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
IMPORTANT NOTE: This was only reproducible constantly for 1 tester on a Samsung Galaxy S21/11. Attaching crash logs.
Crash logs
Bug5114780_Screen_Recording_20210615-160124_Expensifycash.mp4
Expensify/Expensify Issue URL: https://github.com/Expensify/Expensify/issues/167571
View all open jobs on Upwork
Upwork job: https://www.upwork.com/jobs/~01b31c0c7bf061f50b
The text was updated successfully, but these errors were encountered: