Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash in simulator #5

Open
riderx opened this issue Dec 2, 2021 · 1 comment
Open

Crash in simulator #5

riderx opened this issue Dec 2, 2021 · 1 comment

Comments

@riderx
Copy link
Contributor

riderx commented Dec 2, 2021

Hello i use your lib in the module :
https://github.com/riderx/capacitor-screen-recorder

And when I do all my test I don't have bug in real device, only in simulator I get this when I stop record:

2021-12-02 19:46:15.174475+0000 App[69887:24283180] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '*** -[AVAssetWriterInput markAsFinished] Cannot call method when status is 0'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff203fbbb4 __exceptionPreprocess + 242
	1   libobjc.A.dylib                     0x00007fff2019ebe7 objc_exception_throw + 48
	2   AVFCore                             0x00007fff5e605fb8 -[AVAssetWriterInputHelper markCurrentPassAsFinished] + 0
	3   AVFCore                             0x00007fff5e6013dc -[AVAssetWriterInput markAsFinished] + 135
	4   Wyler                               0x0000000103d84d18 $s5Wyler14ScreenRecorderC13stoprecording12errorHandleryys5Error_pc_tF + 456
	5   CapacitorScreenRecorder             0x0000000103a9b04e $s23CapacitorScreenRecorder0bC6PluginC4stopyySo13CAPPluginCallCF + 78
	6   CapacitorScreenRecorder             0x0000000103a9b265 $s23CapacitorScreenRecorder0bC6PluginC4stopyySo13CAPPluginCallCFTo + 53
	7   Capacitor                           0x0000000103bf9803 $s9Capacitor0A6BridgeC12handleJSCall4callyAA0D0V_tFyycfU_ + 995
	8   Capacitor                           0x0000000103bee4b8 $sIeg_IeyB_TR + 40
	9   libdispatch.dylib                   0x000000010457aa28 _dispatch_call_block_and_release + 12
	10  libdispatch.dylib                   0x000000010457bc0c _dispatch_client_callout + 8
	11  libdispatch.dylib                   0x000000010458260f _dispatch_lane_serial_drain + 858
	12  libdispatch.dylib                   0x00000001045832fe _dispatch_lane_invoke + 436
	13  libdispatch.dylib                   0x000000010458f59b _dispatch_workloop_worker_thread + 900
	14  libsystem_pthread.dylib             0x00007fff6bff208f _pthread_wqthread + 326
	15  libsystem_pthread.dylib             0x00007fff6bff101b start_wqthread + 15
)
libc++abi: terminating with uncaught exception of type NSException
dyld4 config: DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot DYLD_LIBRARY_PATH=/Users/martindonadieu/Library/Developer/Xcode/DerivedData/App-cnszyybfrywcdrgkjwvyoaxxgpgy/Build/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libMainThreadChecker.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib DYLD_FRAMEWORK_PATH=/Users/martindonadieu/Library/Developer/Xcode/DerivedData/App-cnszyybfrywcdrgkjwvyoaxxgpgy/Build/Products/Debug-iphonesimulator
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '*** -[AVAssetWriterInput markAsFinished] Cannot call method when status is 0'
CoreSimulator 776.4 - Device: iPad Pro (11-inch) (3rd generation) (DE57B786-D494-4DD5-AFBD-3A1FE5C766CB) - Runtime: iOS 15.0 (19A339) - DeviceType: iPad Pro (11-inch) (3rd generation)
terminating with uncaught exception of type NSException
(lldb) 

It seems it never started, since no popup to allow record show, and when stop it try to stop something who doesn't exist

@riderx
Copy link
Contributor Author

riderx commented Dec 3, 2021

Fixed here : #8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant