Skip to content
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

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

Closed
hannojg opened this issue Oct 25, 2024 · 20 comments
Closed

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

hannojg opened this issue Oct 25, 2024 · 20 comments
Assignees

Comments

@hannojg
Copy link
Contributor

hannojg commented Oct 25, 2024

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
@hannojg
Copy link
Contributor Author

hannojg commented Oct 25, 2024

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

@mountiny mountiny self-assigned this Oct 25, 2024
@kirillzyusko
Copy link
Contributor

Yes, sure
Commenting to be assigned to this task 👀

@mountiny mountiny added DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 and removed DeployBlockerCash This issue or pull request should block deployment labels Oct 25, 2024
Copy link

melvin-bot bot commented Oct 25, 2024

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

Copy link

melvin-bot bot commented Oct 25, 2024

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

Copy link
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.

@mountiny mountiny added DeployBlockerCash This issue or pull request should block deployment and removed Engineering labels Oct 25, 2024
Copy link

melvin-bot bot commented Oct 25, 2024

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

Copy link

melvin-bot bot commented Oct 25, 2024

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

Copy link

melvin-bot bot commented Oct 25, 2024

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

Copy link
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.

@mountiny
Copy link
Contributor

Sorry for the pings, i can handle it with @kirillzyusko

@kirillzyusko
Copy link
Contributor

Me and @WoLewicki figured out that this crash is caused by #48160

At this point of time I don't think I can help here a lot so it's better to assign this issue to @WoLewicki

@WoLewicki told me, that he will try to figure out, what exactly triggers a crash - if he'll be able to fix it he'll prepare a PR. If it takes a lot of time then he will simply disable bridgeless mode temporarily.

@hannojg
Copy link
Contributor Author

hannojg commented Oct 25, 2024

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)

@WoLewicki
Copy link
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.

@Beamanator
Copy link
Contributor

Requesting CP to get this fixed up, since the revert PRs have been merged:

@melvin-bot melvin-bot bot added the Overdue label Oct 28, 2024
@Beamanator
Copy link
Contributor

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

@hannojg
Copy link
Contributor Author

hannojg commented Oct 28, 2024

@kirillzyusko can you test please

@Beamanator
Copy link
Contributor

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

@Beamanator Beamanator removed the DeployBlockerCash This issue or pull request should block deployment label Oct 28, 2024
@mountiny mountiny added Daily KSv2 and removed Hourly KSv2 labels Oct 28, 2024
@melvin-bot melvin-bot bot removed the Overdue label Oct 28, 2024
@mountiny
Copy link
Contributor

Resolved

@mountiny
Copy link
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

Copy link

melvin-bot bot commented Oct 29, 2024

⚠️ 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
Projects
None yet
Development

No branches or pull requests

7 participants