numbersprotocol / numbersprotocol/capture-cam

Error in Xcode console when Capturing

Open
#327 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug code platform:ios
Dominant language
TypeScript
Stars
26
Forks
7
Avg merge
2d 14h
Merged PRs (30d)
10

Description

Description

When Capturing on iPhone, the following error appears after the photo is taken, no matter the photo is successfully saved later or not.

2020-12-12 08:23:42.891912+0800 App[621:124612] [assertion] Error acquiring assertion: <NSError: 0x2829f6d00; domain: RBSAssertionErrorDomain; code: 2; reason: "Client is missing required entitlement"> {
    userInfo = {
        RBSAssertionAttribute = <RBSLegacyAttribute: 0x10476be00; requestedReason: FinishTaskUnbounded; reason: FinishTaskUnbounded; flags: PreventTaskSuspend>;
    }
}
2020-12-12 08:23:42.891986+0800 App[621:124612] [ProcessSuspension]  0x10cbd7520 - ProcessAssertion() PID 621 Unable to acquire assertion for process with PID 624

The error might only happens after certain Xcode or iOS (WKWebview) updates, but it is not confirmed yet.

It might be related to background task too.

Steps to Reproduce

  1. Run the App with Xcode on real device (Xcode 12.2, iPhone, iOS13.6)
  2. Take a Capture
  3. See the debug console

Expected Behavior

  • Expected: Should be no such error.
  • Actual: The error always happens and repeats several times when taking a photo.

Logs

As above mentioned.

Environment

  • Xcode: v12.2
  • Capture: v0.11.4
  • iPhone device name: iPhone 7 Plus
  • iPhone OS: iOS 13.6

┆Issue is synchronized with this Asana task by Unito

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the capture flow using Xcode 12.2 on an iPhone running iOS 13.6 and inspect the capture and possible background-task handling mentioned in the report. Confirm whether the WKWebView or platform update is involved, then verify that taking a photo no longer produces the reported assertion error in the console.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, typescript
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.