Skip to content

Scan multiple-App is unresponsive, then crashes is background the app on scan multiple flow #71548

Closed

Description

@mitarachim

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.2.20-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from TestRail: https://test-management.browserstack.com/projects/2219752/folder/13176932/test-cases/41237693
Email or phone of affected tester (no customers): N/A
Issue reported by: Applause Internal Team
Device used: iPhone 15 iOS 18.5
App Component: Money Requests

There is a seperate issue here for the camera not being displayed correctly.

Action Performed:

Preconditions: Camera format on the device is set to "Most compatible"

  1. Navigate to the workspace chat
  2. Tap "+" button, "Create expense" tap "Scan multiple" icon
  3. Take 3 pictures of the receipts (or of anything)
  4. Background the app
  5. Open the app, tap the green button to take a picture
  6. Tap "Ok" on the error modal (not always shown, if not, go to step 8)
  7. Background the app again and open it again
  8. Try to tap anything on the screen
  9. "Kill" the app and reopen

Expected Result:

Camera view opens after backgrounding the app and opening it while on the "Scan multiple" flow

Actual Result:

Camera view is blank, the app is unresponsive when backgrounding the app and opening it again while on the "Scan multiple" flow. After "killing" and reopening the app it crashes

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6960014_1759201291325!scan.txt

Bug6960014_1759201291324.scan_crash.mp4

View all open jobs on GitHub

Activity

  1. added
    DeployBlockerCash
    Daily
    Bug
    DeployBlocker
    on Sep 30, 2025
  2. melvin-bot commented on Sep 30, 2025

    @melvin-bot

    Triggered auto assignment to @Christinadobrzyn (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  3. melvin-bot commented on Sep 30, 2025

    @melvin-bot

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

  4. melvin-bot commented on Sep 30, 2025

    @melvin-bot

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

  5. github-actions commented on Sep 30, 2025

    @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.
  6. JS00001 commented on Sep 30, 2025

    @JS00001
    Contributor

    Might be fixed by #71561

  7. changed the title [-]Scan multiple-App is unresponsive, then crashes is background the app on scan multiple flow[/-] [+][Hold for #71561] Scan multiple-App is unresponsive, then crashes is background the app on scan multiple flow[/+] on Sep 30, 2025
  8. 10 remaining items

  9. Julesssss commented on Sep 30, 2025

    @Julesssss
    Contributor

    Potential crash in Firebase:

    Fatal Exception: NSInvalidArgumentException
    *** -[AVCaptureDevice setActiveColorSpace:] Not supported - use activeFormat.supportedColorSpaces
    Fatal Exception: NSInvalidArgumentException
    0  CoreFoundation                 0x11a0c0 __exceptionPreprocess
    1  libobjc.A.dylib                0x31abc objc_exception_throw
    2  AVFCapture                     0x58ff8 +[AVCapturePhotoSettings photoSettingsWithFormat:]
    3  libdispatch.dylib              0x1b584 _dispatch_client_callout
    4  libdispatch.dylib              0x11728 _dispatch_lane_barrier_sync_invoke_and_complete
    5  AVFCapture                     0x4da20 -[AVCaptureFigVideoDevice setActiveColorSpace:]
    6  Foundation                     0x5be50 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKeys:count:maybeOldValuesDict:maybeNewValuesDict:usingBlock:]
    7  Foundation                     0x75cf4 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKey:key:key:usingBlock:]
    8  Foundation                     0x17e5d0 _NSSetLongLongValueAndNotify
    9  AVFCapture                     0xa64c -[AVCaptureSession _updateDeviceActiveFormatsAndActiveConnections]
    10 AVFCapture                     0x1ef88 -[AVCaptureSession _buildAndRunGraph:]
    11 AVFCapture                     0x1ed14 -[AVCaptureSession _commitConfiguration]
    12 AVFCapture                     0x1e800 -[AVCaptureSession commitConfiguration]
    13 AVFCapture                     0xcee94 -[AVCaptureVideoPreviewLayer dealloc]
    14 Foundation                     0x1e4e50 _NSKVOPerformWithDeallocatingObservable
    15 Foundation                     0x1e4bf8 NSKVODeallocate
    16 QuartzCore                     0x15fec CA::Transaction::commit()
    17 QuartzCore                     0x15938 CA::Transaction::flush_as_runloop_observer(bool)
    18 UIKitCore                      0x9e70 _UIApplicationFlushCATransaction
    19 UIKitCore                      0x9e0c __setupUpdateSequence_block_invoke_2
    20 UIKitCore                      0x9404 _UIUpdateSequenceRun
    21 UIKitCore                      0x8ab4 schedulerStepScheduledMainSection
    22 UIKitCore                      0x41e4 runloopSourceCallback
    23 CoreFoundation                 0xf92c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
    24 CoreFoundation                 0xf744 __CFRunLoopDoSource0
    25 CoreFoundation                 0xf5a0 __CFRunLoopDoSources0
    26 CoreFoundation                 0xff20 __CFRunLoopRun
    27 CoreFoundation                 0x11adc CFRunLoopRunSpecific
    28 GraphicsServices               0x1454 GSEventRunModal
    29 UIKitCore                      0x135274 -[UIApplication _run]
    30 UIKitCore                      0x100a28 UIApplicationMain
    31 Expensify                      0x411ac main + 16 (main.swift:16)
    32 ???                            0x1c0e25f08 (Missing)
    
  10. added
    Improvement
    on Sep 30, 2025
  11. Julesssss commented on Sep 30, 2025

    @Julesssss
    Contributor

    The camera not displaying is an existing issue, created a separate issue for that here.

  12. Julesssss commented on Sep 30, 2025

    @Julesssss
    Contributor

    This issue mostly exists in older builds but has become more noticable. I am able to complete the scans for most attempts even after backgrounding. Occasionally the UI becomes unresponsive, but this is not enough to block.

    Removing the deploy blocker label here.

  13. m-natarajan commented on Sep 30, 2025

    @m-natarajan
  14. changed the title [-][Hold for #71561] Scan multiple-App is unresponsive, then crashes is background the app on scan multiple flow[/-] [+]Scan multiple-App is unresponsive, then crashes is background the app on scan multiple flow[/+] on Sep 30, 2025
  15. added
    Reviewing
    Weekly
    and removed
    Daily
    on Sep 30, 2025
  16. Julesssss commented on Sep 30, 2025

    @Julesssss
    Contributor

    Found the PR that introduced this so I'm going to revert.

  17. Christinadobrzyn commented on Oct 7, 2025

    @Christinadobrzyn
    Contributor

    Looks like #71614 is in prod - should we have QA retest @Julesssss?

  18. Julesssss commented on Oct 13, 2025

    @Julesssss
    Contributor

    Yeah sounds good 👍 Asked here.

  19. m-natarajan commented on Oct 13, 2025

    @m-natarajan

    Not reproduced. iPhone 8/ v9.2.28-5 (App Store)

    Retest.71548.-.App.Store.mp4
  20. Julesssss commented on Oct 13, 2025

    @Julesssss
    Contributor

    Excellent, thank you!

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

Metadata

Metadata

Labels

BugEngineeringImprovementReviewingWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions