Skip to content

[HOLD for payment 2023-08-10] [$1000] Android - Emoji - App crashes after selecting Emoji icon that is above the "Frequently used label" #23716

Closed

Description

@kbecciv

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:

  1. Access a conversation chat with another user.
  2. Long press on any of your messages.
  3. Tap the "emoji reaction" icon.
  4. Tap the "emoji" icon that is above the "Frequently used label".

Expected Result:

The app should not crash.

Actual Result:

The app crashes.

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: v1.3.46-0
Reproducible in staging?: y
Reproducible in production?: n
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

Bug6143286_App_crashes_after_selecting_Emoji_icon_that_is_above_the_Frequently_used_label.mp4

Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0165450f4a10937496
  • Upwork Job ID: 1684677319871397888
  • Last Price Increase: 2023-07-27

Activity

  1. OSBotify commented on Jul 27, 2023

    @OSBotify
    Contributor

    👋 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:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  2. melvin-bot commented on Jul 27, 2023

    @melvin-bot

    Triggered auto assignment to @Gonals (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

  3. hungvu193 commented on Jul 27, 2023

    @hungvu193
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    Android - Emoji - App crashes after selecting Emoji icon that is above the "Frequently used label"

    What is the root cause of that problem?

    Problem came from this line:

    import Animated, {runOnUI, _scrollTo} from 'react-native-reanimated';

    We're importing the wrong function which didn't exist.

    What changes do you think we should make in order to solve the problem?

    Remove usage of _scrollTo

     import Animated, {runOnUI} from 'react-native-reanimated'; 

    We can use this.emojiList.scrollToOffset({ offset: calculatedOffset, animated: true }) instead

    this.emojiList.scrollToOffset({ offset: calculatedOffset, animated: true })

    What alternative solutions did you explore? (Optional)

    N/A

  4. shubham1206agra commented on Jul 27, 2023

    @shubham1206agra
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    Android - Emoji - App crashes after selecting Emoji icon that is above the "Frequently used label"

    What is the root cause of that problem?

    In this line:

    import Animated, {runOnUI, _scrollTo} from 'react-native-reanimated';

    Since the react-native-reanimated is bumped to v3.4.0 in #23550. The function _scrollTo was removed, and we are forced to use scrollTo function instead. Due to this, the function not found was shown.

    What changes do you think we should make in order to solve the problem?

    Since scrollTo requires the use of useAnimatedRef for the first argument. We will first quickly migrate this component to a functional component. And replace with scrollTo since this is the function recommended by react-native-reanimated.

    What alternative solutions did you explore? (Optional)

    N/A

  5. shubham1206agra commented on Jul 27, 2023

    @shubham1206agra
    Contributor

    @Gonals BTW, this issue is also reproducible on iOS.

    And I have tested my solution. Works without any problem :)

  6. marcaaron commented on Jul 27, 2023

    @marcaaron
    Contributor

    revert fix tests well removing the blocker.

  7. stitesExpensify commented on Jul 27, 2023

    @stitesExpensify
    Contributor

    We should still switch this to a functional component so that we can upgrade our version of reanimated. Marking this external to get a C+

  8. 28 remaining items

  9. added
    Awaiting PaymentAuto-added when associated PR is deployed to production
    and removed on Aug 3, 2023
  10. changed the title [-][$1000] Android - Emoji - App crashes after selecting Emoji icon that is above the "Frequently used label"[/-] [+][HOLD for payment 2023-08-10] [$1000] Android - Emoji - App crashes after selecting Emoji icon that is above the "Frequently used label"[/+] on Aug 3, 2023
  11. melvin-bot commented on Aug 3, 2023

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  12. melvin-bot commented on Aug 3, 2023

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.49-3 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2023-08-10. 🎊

    After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

    • External issue reporter
    • Contributor that fixed the issue
    • Contributor+ that helped on the issue and/or PR

    For reference, here are some details about the assignees on this issue:

    As a reminder, here are the bonuses/penalties that should be applied for any External issue:

    • Merged PR within 3 business days of assignment - 50% bonus
    • Merged PR more than 9 business days after assignment - 50% penalty
  13. mananjadhav commented on Aug 8, 2023

    @mananjadhav
    Collaborator

    This was more of a fix related to upgrading the reanimated version and not a dev bug per say. Hence there is no offending PR.

    I also don't think we should be adding a regression test for this one. The EmojiPicker should already consist of the tests for this.

  14. jliexpensify commented on Aug 9, 2023

    @jliexpensify
    Contributor

    Great, here's a Payment Summary:

    Upworks job

  15. mananjadhav commented on Aug 10, 2023

    @mananjadhav
    Collaborator

    @jliexpensify I've raised my request on NewDot.

  16. JmillsExpensify commented on Aug 10, 2023

    @JmillsExpensify
    Contributor

    Reviewed the details for @mananjadhav. This is approved for payment in NewDot.

  17. jliexpensify commented on Aug 11, 2023

    @jliexpensify
    Contributor

    Job closed in Upworks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionDailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions