Skip to content

Latest android release builds are instantly crashing due to JS errors #51454

Closed

Description

@hannojg

Slack thread: https://margelo.slack.com/archives/C05LX9D6E07/p1729847485394869

After releasing 9.0.54-0 we are experiencing constant crashes of the android app when build in release mode:

E  FATAL EXCEPTION: mqt_native_modules (Ask Gemini)
                                                                                                    Process: com.expensify.chat.e2edelta, PID: 27253
                                                                                                    com.facebook.react.common.JavascriptException: Error: Exception in HostFunction: Could not enqueue microtask because they are disabled in this runtime, js engine: hermes, stack:
                                                                                                    setImmediate@1:527723
                                                                                                    setDriver@1:1660584
                                                                                                    LocalForage@1:1659118

Steps to reproduce:

  • Build the app for android in release mode and run
  • Try to run the latest staging app from google play

Activity

  1. hannojg commented on Oct 25, 2024

    @hannojg
    ContributorAuthor

    @kirillzyusko can you comment here, so you can be assigned for this?

  2. self-assigned this
    on Oct 25, 2024
  3. kirillzyusko commented on Oct 25, 2024

    @kirillzyusko
    Contributor

    Yes, sure
    Commenting to be assigned to this task 👀

  4. added
    DeployBlockerCashThis issue or pull request should block deployment
    and removed
    DeployBlockerCashThis issue or pull request should block deployment
    on Oct 25, 2024
  5. melvin-bot commented on Oct 25, 2024

    @melvin-bot

    Triggered auto assignment to @MonilBhavsar (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

  6. melvin-bot commented on Oct 25, 2024

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  7. github-actions commented on Oct 25, 2024

    @github-actions
    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.
  8. added
    DeployBlockerCashThis issue or pull request should block deployment
    and removed on Oct 25, 2024
  9. melvin-bot commented on Oct 25, 2024

    @melvin-bot

    Current assignee @MonilBhavsar is eligible for the Engineering assigner, not assigning anyone new.

  10. 9 remaining items

  11. hannojg commented on Oct 25, 2024

    @hannojg
    ContributorAuthor

    Did you figure what the root cause is, like why did turning it on caused this crash? Or is that something you're still working on understanding @WoLewicki ? (just very curious about this super weird bug)

  12. WoLewicki commented on Oct 25, 2024

    @WoLewicki
    Contributor

    Yeah, for now we managed to get to a point that:

    It also happens on debug, but does not crash the app, that's why we didn't spot it since it's just a native crash. Now we are trying to understand why the flag for queueMicrotask is not enabled and if it should be at all.

  13. Beamanator commented on Oct 28, 2024

    @Beamanator
    Contributor
  14. Beamanator commented on Oct 28, 2024

    @Beamanator
    Contributor

    CP completed - @hannojg are you online to give it a test?

  15. hannojg commented on Oct 28, 2024

    @hannojg
    ContributorAuthor

    @kirillzyusko can you test please

  16. Beamanator commented on Oct 28, 2024

    @Beamanator
    Contributor

    @kirillzyusko confirmed here that the crash is not happening anymore!

  17. added and removed on Oct 28, 2024
  18. mountiny commented on Oct 28, 2024

    @mountiny
    Contributor

    Resolved

  19. mountiny commented on Oct 28, 2024

    @mountiny
    Contributor

    To close the loop, we are going to look into re-enabling the bridgeless mode on android in the original issue #48163

    And also discussing here

  20. melvin-bot commented on Oct 29, 2024

    @melvin-bot

    ⚠️ Looks like this issue was linked to a Deploy Blocker here

    If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

    If a regression has occurred and you are the assigned CM follow the instructions here.

    If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions