nstudio / nativescript-audio-recorder

NativeScript plugin for recording audio.
Apache License 2.0
0 stars 1 forks source link

audioRecorder.start is broken in {N} 6.1.1 on iOS #1

Open mspusta78 opened 4 years ago

mspusta78 commented 4 years ago

Using .... iOS 13.1.3 with {N} 6.1.1. calling audioRecorder.start

I get the following: file:///node_modules/@nstudio/nativescript-audio-recorder/recorder.js:47:0: @nstudio/nativescript-audio-recorder --- DEBUG: setCategoryError: undefined

nw_flow_connected [C7.1 IPv6#461008ab.443 in_progress channel-flow (satisfied (Path is satisfied), interface: en0, ipv4, ipv6, dns)] Transport protocol connected boringssl_context_set_handshake_config(1472) [0x10775c880] set tls_handshake_config_standard boringssl_context_set_min_version(326) [0x10775c880] set 0x0301 boringssl_context_set_max_version(310) [0x10775c880] set 0x0304 boringssl_context_set_cipher_suites(844) [0x10775c880] Ciphersuite string: AEAD-AES128-GCM-SHA256:AEAD-AES256-GCM-SHA384:AEAD-CHACHA20-POLY1305-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-ECDSA-AES256-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:ECDHE-RSA-CHACHA20-POLY1305:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES256-SHA:AES256-SHA:AES128-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:DES-CBC3-SHA boringssl_context_set_remote_address(2552) [0x10775c880] Saving remote IPv6 address boringssl_session_install_association_state(1289) [0x10775c880] Client session cache miss boringssl_session_set_peer_hostname(1181) [0x10775c880] SNI boringssl_context_set_min_version(326) [C7.1:2][0x10775c880] set 0x0301 boringssl_context_set_session_ticket_enabled(441) [C7.1:2][0x10775c880] set false boringssl_context_set_false_start(411) [C7.1:2][0x10775c880] set false boringssl_context_set_enforce_ev(401) [C7.1:2][0x10775c880] set false boringssl_context_set_ats_enforced(1312) [C7.1:2][0x10775c880] set false boringssl_context_set_ats_minimum_rsa_key_size(1321) [C7.1:2][0x10775c880] set 0 boringssl_context_set_ats_minimum_ecdsa_key_size(1330) [C7.1:2][0x10775c880] set 0 boringssl_context_set_ats_minimum_signature_algorithm(1340) [C7.1:2][0x10775c880] set 0 boringssl_session_set_peer_hostname(1181) [C7.1:2][0x10775c880] SNI boringssl_context_set_cipher_suites(844) [C7.1:2][0x10775c880] Ciphersuite string: AEAD-AES128-GCM-SHA256:AEAD-AES256-GCM-SHA384:AEAD-CHACHA20-POLY1305-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-ECDSA-AES256-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:ECDHE-RSA-CHACHA20-POLY1305:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES256-SHA:AES256-SHA:AES128-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:DES-CBC3-SHA nw_protocol_boringssl_begin_connection(495) [C7.1:2][0x10775c880] early data disabled boringssl_context_info_handler(1971) [C7.1:2][0x10775c880] Client handshake started boringssl_context_message_handler(2259) [C7.1:2][0x10775c880] Writing SSL3_RT_HANDSHAKE 512 bytes boringssl_context_info_handler(1984) [C7.1:2][0x10775c880] Client handshake state: TLS client enter_early_data boringssl_context_add_handshake_message_pending(579) [C7.1:2][0x10775c880] Adding message(1) boringssl_context_info_handler(1984) [C7.1:2][0x10775c880] Client handshake state: TLS client read_server_hello boringssl_context_add_handshake_message_pending(579) [C7.1:2][0x10775c880] Adding message(2) boringssl_session_handshake_incomplete(191) [C7.1:2][0x10775c880] Early handshake return caused by SSL_ERROR_WANT_READ [2] boringssl_session_handshake_incomplete(191) [C7.1:2][0x10775c880] Early handshake return caused by SSL_ERROR_WANT_READ [2] boringssl_session_handshake_incomplete(191) [C7.1:2][0x10775c880] Early handshake return caused by SSL_ERROR_WANT_READ [2] boringssl_session_handshake_incomplete(191) [C7.1:2][0x10775c880] Early handshake return caused by SSL_ERROR_WANT_READ [2] CONSOLE LOG file:///node_modules/@nstudio/nativescript-audio-recorder/recorder.js:47:0: @nstudio/nativescript-audio-recorder --- DEBUG: setCategoryError: undefined boringssl_session_handshake_incomplete(191) [C7.1:2][0x10775c880] Early handshake return caused by SSL_ERROR_WANT_READ [2] boringssl_session_handshake_incomplete(191) [C7.1:2][0x10775c880] Early handshake return caused by SSL_ERROR_WANT_READ [2] boringssl_context_message_handler(2259) [C7.1:2][0x10775c880] Reading SSL3_RT_HANDSHAKE 122 bytes boringssl_context_info_handler(1984) [C7.1:2][0x10775c880] Client handshake state: TLS 1.3 client read_hello_retry_request boringssl_context_add_handshake_message_pending(579) [C7.1:2][0x10775c880] Adding message(2) boringssl_context_message_handler(2259) [C7.1:2][0x10775c880] Writing SSL3_RT_CHANGE_CIPHER_SPEC 1 bytes boringssl_context_info_handler(1984) [C7.1:2][0x10775c880] Client handshake state: TLS 1.3 client read_server_hello boringssl_context_info_handler(1984) [C7.1:2][0x10775c880] Client handshake state: TLS 1.3 client read_encrypted_extensions boringssl_session_handshake_incomplete(191) [C7.1:2][0x10775c880] Early handshake return caused by SSL_ERROR_WANT_READ [2] boringssl_session_handshake_incomplete(191) [C7.1:2][0x10775c880] Early handshake return caused by SSL_ERROR_WANT_READ [2] boringssl_context_message_handler(2259) [C7.1:2][0x10775c880] Reading SSL3_RT_HANDSHAKE 15 bytes boringssl_context_info_handler(1984) [C7.1:2][0x10775c880] Client handshake state: TLS 1.3 client read_certificate_request boringssl_context_message_handler(2259) [C7.1:2][0x10775c880] Reading SSL3_RT_HANDSHAKE 2805 bytes boringssl_context_info_handler(1984) [C7.1:2][0x10775c880] Client handshake state: TLS 1.3 client read_server_certificate boringssl_context_info_handler(1984) [C7.1:2][0x10775c880] Client handshake state: TLS 1.3 client read_server_certificate_verify boringssl_context_message_handler(2259) [C7.1:2][0x10775c880] Reading SSL3_RT_HANDSHAKE 264 bytes boringssl_context_copy_peer_sct_list(1004) [C7.1:2][0x10775c880] SSL_get0_signed_cert_timestamp_list returned no SCT extension data boringssl_helper_create_sec_trust_with_certificates(607) [C7.1:2][0x10775c880] SecTrustCreateWithCertificates result: 0 boringssl_helper_create_sec_trust_with_certificates(614) [C7.1:2][0x10775c880] No TLS-provided OCSP response boringssl_helper_create_sec_trust_with_certificates(621) [C7.1:2][0x10775c880] No TLS-provided SCTs boringssl_context_certificate_verify_callback(2072) [C7.1:2][0x10775c880] Asyncing for verify block boringssl_session_handshake_incomplete(191) [C7.1:2][0x10775c880] Early handshake return caused by SSL_ERROR_WANT_CERTIFICATE_VERIFY [16] Connection 7: asked to evaluate TLS Trust JavaScript call stack: ( 0 setValueForKey@[native code] 1 @file:///node_modules/@nstudio/nativescript-audio-recorder/recorder.js:53:0 2 requestRecordPermission@[native code] 3 @file:///node_modules/@nstudio/nativescript-audio-recorder/recorder.js:50:0 4 initializePromise@:1:11 5 Promise@[native code] 6 start@file:///node_modules/@nstudio/nativescript-audio-recorder/recorder.js:41:0 7 startRecorderAudio@file:///app/modalAddContent/addcontent-page.js:408:0 8 notify@file:///node_modules/tns-core-modules/data/observable/observable.js:110:0 9 _emit@file:///node_modules/tns-core-modules/data/observable/observable.js:127:0 10 tap@file:///node_modules/tns-core-modules/ui/button/button.js:216:0 11 UIApplicationMain@[native code] 12 _start@file:///node_modules/tns-core-modules/application/application.js:295:0 13 run@file:///node_modules/tns-core-modules/application/application.js:323:0 14 @file:///app/app.js:154:0 15 ./app.js@file:///app/bundle.js:332:34 16 __webpack_require__@file:///app/webpack/bootstrap:750:0 17 checkDeferredModules@file:///app/webpack/bootstrap:43:0 18 webpackJsonpCallback@file:///app/webpack/bootstrap:30:0 19 anonymous@file:///app/bundle.js:2:61 20 evaluate@[native code] 21 moduleEvaluation@:1:11 22 promiseReactionJob@:1:11 ) Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<__NSDictionary0 0x1d35fd9c0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key AVFormatIDKey.' *** First throw call stack: (0x196209c30 0x195f240c8 0x196108bd0 0x1965afce4 0x1964f00f0 0x101cc8044 0x101cc4ae4 0x101cc45e0 0x10113cf90 0x101cc37e8 0x101cc1b64 0x101cad60c 0x101935658 0x10113c134 0x10118fc68 0x101190100 0x101cc53c4 0x101cc81b4 0x1a2fd2954 0x1a14dc78c 0x1a2fd2924 0x101cc8044 0x101cc4ae4 0x101cc45e0 0x10113cf90 0x101cc37e8 0x101cc1b64 0x101cc1b64 0x101cad60c 0x101935658 0x1012dd0ec 0x1012e2d4c 0x101cc3930 0x101cc2558 0x101cc1b64 0x101cc1b64 0x101cc1b64 0x101cc1b64 0x101cad60c 0x101935658 0x1011b1c44 0x1011b16fc 0x1011b1e50 0x101cc53c4 0x101cc81b4 0x195f1fd5c 0x19a2a0b44 0x199cbd10c 0x199cbd480 0x199cbc490 0x199e76cec 0x19618467c 0x19617f31c 0x19617f8cc 0x19617f098 0x1a02e9534 0x19a29f7ac 0x101cc8044 0x101cc4ae4 0x101cc45e0 0x10113cf90 0x101cc37e8 0x101cc1b64 0x101cc1b64 0x101c\M-b\M^@\M-&

quentinderunes commented 4 years ago

I have the same issue. Has someone found any workaround ?

$ tns --version
6.5.0

    "@nstudio/nativescript-audio-recorder": {
      "version": "0.1.0",
      "resolved": "https://registry.npmjs.org/@nstudio/nativescript-audio-recorder/-/nativescript-audio-recorder-0.1.0.tgz",
      "integrity": "sha512-cOb72DEsy9CH5QAXQq9wptwJAhkr1cgeqrKRBVtCovlhfmhw367KvEEe22gHvAD3ctTH9EH2tQhVjeGBx1KxIw==",
      "requires": {
        "nativescript-permissions": "~1.3.6"
      }
    },

Thanks

trueandperfect commented 3 years ago

Any progress on this issue? I am getting the following for IOS:

ERROR: start() Error: [<__NSDictionary0 0x1d32b1c70> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key AVFormatIDKey.