Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
2.97k stars 2.48k forks source link

fix android com.facebook.jni.CppException crash #40872

Open tienifr opened 1 week ago

tienifr commented 1 week ago

Details

Fixed Issues

$ https://github.com/Expensify/App/issues/40699 PROPOSAL: https://github.com/Expensify/App/issues/40699#issuecomment-2069610317

Tests

  1. Open New dot app
  2. Login with gmail account
  3. Create Workspace
  4. Go to workspace profile> Upload photo
  5. Select any photo from device
  6. Avatar should be successfully uploaded
    • [x] Verify that no errors appear in the JS console

Offline tests

QA Steps

  1. Open New dot app
  2. Login with gmail account
  3. Create Workspace
  4. Go to workspace profile> Upload photo
  5. Select any photo from device
  6. Avatar should be successfully uploaded
    • [x] Verify that no errors appear in the JS console

PR Author Checklist

Screenshots/Videos

Android: Native https://github.com/Expensify/App/assets/113963320/cef24359-cd7e-4ffc-a947-dcb53e137662
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
tienifr commented 1 week ago

@ShridharGoel will review this PR as C+ role based on comment https://github.com/Expensify/App/issues/40699#issuecomment-2070536090

melvin-bot[bot] commented 1 week ago

@dukenv0307 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

tienifr commented 1 week ago

@ShridharGoel Can you always reproduce this bug in Android?

mountiny commented 1 week ago

@ShridharGoel can you please complete the checklist?

ShridharGoel commented 1 week ago

Hello, I'm on vacation for 2 days and will test this on Friday.

ShridharGoel commented 1 week ago

@tienifr It's difficult to replicate since it's a race condition. Can you try changing the workspace avatar multiple times?

github-actions[bot] commented 1 week ago
:test_tube::test_tube: Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! :test_tube::test_tube: Android :robot: iOS :apple:
❌ FAILED ❌ https://ad-hoc-expensify-cash.s3.amazonaws.com/ios/40872/index.html
The QR code can't be generated, because the android build failed iOS
Desktop :computer: Web :spider_web:
https://ad-hoc-expensify-cash.s3.amazonaws.com/desktop/40872/NewExpensify.dmg https://40872.pr-testing.expensify.com
Desktop Web

:eyes: View the workflow run that generated this build :eyes:

tienifr commented 1 week ago

Can you try changing the workspace avatar multiple times

I tried but still could not reproduce. Let me try again.

tienifr commented 1 week ago

@ShridharGoel Can you help review the PR once you have a chance? Thanks

ShridharGoel commented 1 week ago

Will be testing this today, I was OOO.

ShridharGoel commented 1 week ago

Reviewer Checklist

Screenshots/Videos

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
ShridharGoel commented 1 week ago

@tienifr Can you complete the author checklist and add the testing steps? We can also do some sanity testing at places where the library is used.

I've tested the workspace avatar uploading flow.

tienifr commented 3 days ago

@ShridharGoel I updated the test steps

tienifr commented 3 days ago

However, I faced an issue when running android on my device so I could not test.

tienifr commented 3 days ago

@mountiny Can you help create an ad-hoc build? Thanks

tienifr commented 2 days ago

Now I can run Android on my device and it works well

ShridharGoel commented 2 days ago

I'll test again in sometime and then approve.

On Fri, May 3, 2024, 10:12 AM Tienifr @.***> wrote:

Now I can run Android on my device and it works well

— Reply to this email directly, view it on GitHub https://github.com/Expensify/App/pull/40872#issuecomment-2092112283, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIPLJHFU4VOE576S777GC2LZAMISVAVCNFSM6AAAAABGWYHPPWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJSGEYTEMRYGM . You are receiving this because you were mentioned.Message ID: @.***>