Skip to content

[HOLD https://github.com/Expensify/App/issues/102514] [Sentry: APP-JB3] HybridApp iOS AVCaptureSession stopRunning crash still active after #97103 #99850

Open

Description

@mountiny

Sentry

https://expensify.sentry.io/issues/APP-JB3

Impact (snapshot at filing)

  • Users (last 14d): 25
  • Events (last 14d): 25
  • Last seen: ongoing, fired within the hour of filing
  • Platform: iOS HybridApp
  • Mechanism: nsexception
  • Culprit: CameraSession.checkIsActive

Release breakdown over the last 14 days, production only:

Release Users
9.4.53-10 4
9.4.57-3 4
9.4.60-2 3
9.4.51-1 3
9.4.56-3 2
9.4.59-5 2
9.4.55-4 2
9.4.61-4 1
9.4.58-4 1
9.4.44-6 1

Why this is a new issue rather than a comment

[Sentry: APP-JB3] HybridApp iOS AVCaptureSession stopRunning during CameraSession.configure
tracked this signature and was closed and paid on 2026-08-25. The crash did not stop. It is spread
across ten production releases in the current window, including 9.4.61-4 and 9.4.60-2, so it is not
confined to old builds that predate the fix.

Error

NSGenericException: *** -[AVCaptureSession stopRunning] stopRunning may not be called between
calls to beginConfiguration and commitConfiguration

Suspected cause

stopRunning is reached while a configuration transaction is still open, so the session is torn down
between beginConfiguration and commitConfiguration. The culprit moved from
CameraSession.configure in the earlier report to CameraSession.checkIsActive, which suggests the
guard added for the configure path does not cover the activity check path, or that the two run
concurrently on different queues.

Reproduction

Unknown — see the events linked from the Sentry issue. Backgrounding or dismissing the receipt
scanner while the camera is still configuring is the most likely trigger given the throw site.

Related

Issue OwnerCurrent Issue Owner: @suneox

Activity

  1. self-assigned this
    on Aug 30, 2026
  2. melvin-bot commented on Sep 2, 2026

    @melvin-bot

    @mountiny Whoops! This issue is 2 days overdue. Let's get this updated quick!

  3. melvin-bot commented on Sep 3, 2026

    @melvin-bot

    @mountiny Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  4. melvin-bot commented on Sep 3, 2026

    @melvin-bot

    @mountiny Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  5. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Sep 3, 2026
  6. melvin-bot commented on Sep 3, 2026

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @brunovjk (External)

  7. melvin-bot commented on Sep 3, 2026

    @melvin-bot

    Unable to auto-create job on Upwork. The BZ team member should create it manually for this issue.

  8. brunovjk commented on Sep 8, 2026

    @brunovjk
    Contributor

    Should we seek for proposals here, @mountiny? Thanks.

  9. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Sep 10, 2026
  10. 44 remaining items

  11. changed the title [-][Sentry: APP-JB3] HybridApp iOS AVCaptureSession stopRunning crash still active after #97103[/-] [+][HOLD https://github.com/Expensify/App/issues/102514] [Sentry: APP-JB3] HybridApp iOS AVCaptureSession stopRunning crash still active after #97103[/+] on Oct 1, 2026
  12. melvin-bot commented on Oct 6, 2026

    @melvin-bot

    @ZhenjaHorbach Huh... This is 4 days overdue. Who can take care of this?

  13. melvin-bot commented on Oct 8, 2026

    @melvin-bot

    @ZhenjaHorbach 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

  14. melvin-bot commented on Oct 12, 2026

    @melvin-bot

    @ZhenjaHorbach 10 days overdue. I'm getting more depressed than Marvin.

  15. ZhenjaHorbach commented on Oct 13, 2026

    @ZhenjaHorbach
    Contributor

    Not overdue
    @suneox already has a fix

    @mountiny
    Let's assign @suneox to this issue!

  16. removed
    Help WantedApply this label when an issue is open to proposals by contributors
    on Oct 13, 2026
  17. suneox commented on Oct 14, 2026

    @suneox
    Contributor

    65. Not overdue
    @suneox already has a fix
    @mountiny
    Let's assign @suneox to this issue!

    @mountiny I think this assignment was meant for #102742. That's the one where I reproduced the crash and proposed the PageNavigator fix in Slack, this issue is on hold for the V5 upgrade. Could you assign me to #102742? Thanks!

  18. ZhenjaHorbach commented on Oct 14, 2026

    @ZhenjaHorbach
    Contributor

    Oh
    Sorry
    I'm stupid
    Wrong issue 😂

  19. yusufdeveloper2903 commented on Oct 19, 2026

    @yusufdeveloper2903
    Contributor

    @mountiny Hi! Just to clarify the status here: ZhenjaHorbach approved my proposal (#99850 (comment)) right before the decision to move to V5, and the issue went on hold before I was assigned.

    Since my fix lived in the V4 patch that #102898 removes, I understand there is no frontend/native work left here and this issue is only for confirming that APP-JB3 stops after V5 ships. Is that right?

  20. melvin-bot commented on Oct 19, 2026

    @melvin-bot

    @suneox Huh... This is 4 days overdue. Who can take care of this?

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

Metadata

Metadata

Labels

DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorMonthlyKSv2Overdue

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions