Skip to content

Datatrans SDK crashing when scanning card using camera #22

@druzman

Description

@druzman

SDK version 3.10.1

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

Stack trace:

NSGenericException: *** -[AVCaptureSession stopRunning] stopRunning may not be called between calls to beginConfiguration and commitConfiguration
  CoreFoundation      0x18b4d4964  __exceptionPreprocess
  libobjc.A           0x1883b1810  objc_exception_throw
  AVFCapture          0x1b1b7ed54  -[AVCaptureSession stopRunning]
  Datatrans           0x10807c2f0  null
  libdispatch         0x1c4138ad8  _dispatch_call_block_and_release
  libdispatch         0x1c41527f8  _dispatch_client_callout
  libdispatch         0x1c4141464  _dispatch_lane_serial_drain
  libdispatch         0x1c4141f40  _dispatch_lane_invoke
  libdispatch         0x1c414c3e8  _dispatch_root_queue_drain_deferred_wlh
  libdispatch         0x1c414bce0  _dispatch_workloop_worker_thread
  libsystem_pthread   0x1e7f853b4  _pthread_wqthread
  libsystem_pthread   0x1e7f848bc  start_wqthread

Edit: looks like it happens if the user cancels the payment process while camera is active.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions