Skip to content

Crash - FaceLivenessDetectionViewModel.sendFinalVideoEvent() #148

@GLSinthu

Description

@GLSinthu

Describe the bug

Experiencing crashes upon completing liveness

Fatal Exception: NSInternalInconsistencyException
*** -[AVAssetWriter finishWritingWithCompletionHandler:] Cannot call method when status is 2

          Fatal Exception: NSInternalInconsistencyException
0  CoreFoundation                 0x83418 (Missing UUID bcb3a1a3fbb430ad84c1a8cd109db6b9)
1  libobjc.A.dylib                0x15e88 (Missing UUID 40f98ce47dd733cd98168f582ab7201b)
2  AVFCore                        0xff730 (Missing UUID 8a6fa7b46c44354395467b3266661c2c)
3  AVFCore                        0xf5c60 (Missing UUID 8a6fa7b46c44354395467b3266661c2c)
4  App                            0x2e058 FaceLivenessDetectionViewModel.sendFinalVideoEvent() + 48 (VideoChunker.swift:48)
5  App                            0x2b2e4 thunk for @escaping @callee_guaranteed @Sendable () -> () (<compiler-generated>)
6  libdispatch.dylib              0x4160 (Missing UUID acb07c9c5e683f53b8e38b778f2da919)
7  libdispatch.dylib              0x7610 (Missing UUID acb07c9c5e683f53b8e38b778f2da919)
8  libdispatch.dylib              0x1b59c (Missing UUID acb07c9c5e683f53b8e38b778f2da919)
9  libdispatch.dylib              0x1a164 (Missing UUID acb07c9c5e683f53b8e38b778f2da919)
10 libdispatch.dylib              0x7104 (Missing UUID acb07c9c5e683f53b8e38b778f2da919)
11 libdispatch.dylib              0x15df4 (Missing UUID acb07c9c5e683f53b8e38b778f2da919)
12 libdispatch.dylib              0x165f8 (Missing UUID acb07c9c5e683f53b8e38b778f2da919)
13 libsystem_pthread.dylib        0x4c40 (Missing UUID 46e25446017937db91818cb0d0330bf6)
14 libsystem_pthread.dylib        0x1488 (Missing UUID 46e25446017937db91818cb0d0330bf6)

Steps To Reproduce

Does not consistently reproduce

Expected behavior

No crash

Swift Liveness Version

1.2.12

Xcode version

15.4

Is this a regression?

Yes

Regression additional context

No response

OS Version

Most users affected are on iOS 18

Device

iPhone

Specific to simulators

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions