-
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
[HOLD Expensify/react-native-fast-image#6] [$1000] Attachment preview keeps loading forever when cycle between image and pdf #16046
Comments
Triggered auto assignment to @stephanieelliott ( |
Bug0 Triage Checklist (Main S/O)
|
It sounds like this is similar to #15922? However the endless spinner and image flickering seem to be unique to Android so will treat this as separate. |
Job added to Upwork: https://www.upwork.com/jobs/~01e756be997448cf18 |
Triggered auto assignment to @lschurr ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
Triggered auto assignment to @danieldoglas ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Image previews keep loading forever and sometimes image shows briefly and disappears when switching quickly between PDF and image. What is the root cause of that problem?It's the use of What changes do you think we should make in order to solve the problem?We need to remove this line App/src/components/ImageView/index.native.js Line 213 in 8304865
isLoading already defaults to true in the component, and it's already reset to true here if the image url changes (the imageHeight and imageWidth are also reset properly there as well). So that line is redundant and causes this bug.
Please note this is the same approach that was used to fix the issue earlier in here. What alternative solutions did you explore? (Optional)NA ResultWorking well after the fix: Screen.Recording.2023-03-20.at.22.15.32.mov |
ProposalPlease re-state the problem that we are trying to solve in this issue.Attachment preview keeps loading forever when cycle between image and pdf What is the root cause of that problem?App/src/components/ImageView/index.native.js Lines 227 to 228 in b0b31d1
But if From the above code, we can see our This issue expresses the same problem, but this is caused by our What changes do you think we should make in order to solve the problem?Here is why the author Here is why the author He explained that he didn’t completely delete We should remove + eventEmitter.receiveEvent(viewId,
+ FastImageViewManager.REACT_ON_LOAD_START_EVENT,
+ new WritableNativeMap());
- requestManager
- .asFile()
- .onlyRetrieveFromCache(true)
- ...
- .submit(); _after.mp4What alternative solutions did you explore? (Optional)But to be honest, we encountered too many problems on [NSURLCache setSharedURLCache:[[NSURLCache alloc] initWithMemoryCapacity:100 * 1024 * 1024
diskCapacity:500 * 1024 * 1024
diskPath:nil]]; |
@tienifr removing Screen_Recording_20230322_233847_New.Expensify.mp4 |
@hellohublot Could you show the working result from your proposal? |
@hellohublot Thanks for the update! I still need to get what solution you propose. Could you explain more about that? |
@hellohublot Thanks for the update! I'm still unsure about removing the |
No, what actually App/patches/react-native-fast-image+8.6.3.patch Lines 176 to 201 in 10d3d52
Our |
@danieldoglas, @hellohublot, @mollfpr, @stephanieelliott Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Not overdue |
Changing this to weekly while we wait for the other PR. |
Still waiting on merge of #18997 |
@stephanieelliott I'll be OOO for 2 weeks. I'll unassign myself from this issue in case there's progress, can you please add |
Still waiting on merge of #18997. Will wait to pull un engineer once there is progress |
This is still on hold for the other PRs. |
Still on hold for of #18997 |
Still on hold for #18997 |
Still held on the other issue. |
Still blocked on #18997 |
Ok so it looks like the blocking PR was held on Expensify/react-native-fast-image#6, which was closed in favor of an upstream PR which. has still not been merged. However, I just re-tested this and it seems to be resolved now -- perhaps this was fixed by the move to expo-image or #30905 which was recently merged? If so, I think we can pay this out based on the PR that was merged: Expensify/react-native-fast-image#5 I was only able to test via simulator, so would love for someone else to test this to make sure it's resolved. Tagging in @kavimuru to see if we can re-test the action steps on this issue to see if it still persists> |
Tried a few other simulator devices and still unable to repro. Closing this as resolved but feel free to reopen if you can reproduce. |
@stephanieelliott reporting bonus is pending #16046 (comment) |
OH! Yes I still need to issue payment on this one don't I. Ok, considering that this issue resulted in Expensify/react-native-fast-image#5 being created, reviewed and merged, and the PR described in the proposal (#18997) was created and reviewed before being put on hold, I think we should pay out the full amount on this one. That would make the payment summary for this issue:
Upwork job is here: https://www.upwork.com/jobs/~01825fa7d9e9517278 |
All paid, thank you! |
$1,000 payment approved for @mollfpr based on summary above. |
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:
Previews should show correctly
Actual Result:
previews keep loading forever and sometimes image shows briefly and disappears (glitch)
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.86-1
Reproducible in staging?: y
Reproducible in production?: y
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:
bug.mp4
az_recorder_20230316_120442.1.mp4
Expensify/Expensify Issue URL:
Issue reported by: @situchan
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1678644450224539
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: