-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 - Expense - App crashes when uploading a PDF receipt after uploading a photo receipt #49349
Comments
Triggered auto assignment to @greg-schroeder ( |
Triggered auto assignment to @carlosmiceli ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
We think that this bug might be related to #wave-collect - Release 1 |
ongoing slack convos: |
Reopening to handle this update and fix the issue |
|
Some logs from the crash |
Asked SWM to look into this |
@j-piasecki @blazejkustra Who is working on this one? Can they please comment so I can assign them? thanks! |
I believe @Guccio163 is currently investigating this. |
That's right, I'm Wiktor Gut from SWM, please assign me this issue |
Hi, I'm just letting you know that it can take a little more time, I've reproduced this bug on current main; It can be not a package, but implementation problem - there are also similar bugs reported here encountered when updating RN from 0.71 to 0.74.5 |
Interesting, we were not able to reproduce with many tries after revert Thanks for the update |
I understand, it is really non-deterministic - sometimes it goes after 4th try and sometimes doesn't break after 20th, this is the main reason why it takes time because is hard to test 🐢 |
Hi 👋 , I'm dropping by to let you know how the investigation is going; Fortunately problem proved to be linked to the reverted PR (version 6.7.5 of react-native-pdf library) and doesn't occur on current main - it turned out to be a local problem of android studio on my laptop when changing branches (solved today). Unfortunately, there are numerous issues linked to the 6.7.5 version crash (f.ex. wonday/react-native-pdf#830 and wonday/react-native-pdf#833). Some are left untouched and some contain solutions which doesn't work in our case. I'll keep investigating further with @j-piasecki 's help, we'll do out best to find the best suiting solution 🔜 |
📣 @andrewhamili! 📣
|
Hi 👋, I'm coming with some sort of conclusion, though not the perfect ending that we searched for; The problem itself lies somewhere inside the new version of the library. Logs analysis and search:Bug is inconsistent both in occurrence and causes what makes debugging noticeably harder; inconsistent occurrence was mentioned earlier and when it comes to causes, logs show one of 3 causes for crash:
Moreover logs produced by pdf library (blue ones) doesn't show anything unusual in terms of opening/closing documents, below comparison of logs without crash and resulting in crash. Both situations are chains
We suspect that it is caused by some sort of race condition within the native implementation, but it's really hard to notice when logs don't show anything strange. Library problem:Incorrect behaviour of the app is caused by the Purpose of reverted PR:The whole purpose of @WoLewicki 's PR which was reverted to prevent this crash was to bump the library from Solution:Leave the PR reverted and keep the cc @mountiny, WDYT? |
discussed in Slack here and we agreed that it's not worth spending more time here and we do not need to bump the library so until we would really need to use something from the newer version, we can pass |
Rather than closing this outright, can we reopen it, make it a monthly, and put it on HOLD for the upstream issue? That way this investigation isn't forgotten and we can upgrade the lib when the upstream issues are fixed (i.e: to remove patches and keep it up-to-date in case of security vulnerabilities and such) |
I think we should actually close this, though, now that #vip-vsb is paused/closed/archived though, yes? That seems to be the conclusion per https://expensify.slack.com/archives/C03U7DCU4/p1727723600645479 Lemme know if you disagree or you think this could fit in a different project @roryabraham! |
@greg-schroeder @mountiny 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! |
Adding this to the newdot quality project and keeping it open so we can follow up in future once upstream is fixed @greg-schroeder feel free to unassign as there is nothing to do for you now |
waiting |
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.36-1
Reproducible in staging?: Y
Reproducible in production?: N/A - new feature, doesn't exist in prod
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
App will not crash.
Actual Result:
App crashes when uploading a PDF receipt after uploading a photo receipt.
Workaround:
Unknown
Platforms:
Screenshots/Videos
1709.txt
Bug6606744_1726589183407.w_017c4be1d3a760522847c336971d21d3662a4686-2024-09-17_16_06_16.995.mp4
Bug6606744_1726588963019!International_Money_Transfer__Send_Money_Abroad_with_Wise__ex-TransferWise_.pdf
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: