{"action":"created","issue":{"url":"https://api.github.com/repos/react-native-community/react-native-camera/issues/1823","repository_url":"https://api.github.com/repos/react-native-community/react-native-camera","labels_url":"https://api.github.com/repos/react-native-community/react-native-camera/issues/1823/labels{/name}","comments_url":"https://api.github.com/repos/react-native-community/react-native-camera/issues/1823/comments","events_url":"https://api.github.com/repos/react-native-community/react-native-camera/issues/1823/events","html_url":"https://github.com/react-native-community/react-native-camera/issues/1823","id":364659071,"node_id":"MDU6SXNzdWUzNjQ2NTkwNzE=","number":1823,"title":"Error: An error occurred while recording a video.","user":{"login":"watadarkstar","id":3059371,"node_id":"MDQ6VXNlcjMwNTkzNzE=","avatar_url":"https://avatars3.githubusercontent.com/u/3059371?v=4","gravatar_id":"","url":"https://api.github.com/users/watadarkstar","html_url":"https://github.com/watadarkstar","followers_url":"https://api.github.com/users/watadarkstar/followers","following_url":"https://api.github.com/users/watadarkstar/following{/other_user}","gists_url":"https://api.github.com/users/watadarkstar/gists{/gist_id}","starred_url":"https://api.github.com/users/watadarkstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/watadarkstar/subscriptions","organizations_url":"https://api.github.com/users/watadarkstar/orgs","repos_url":"https://api.github.com/users/watadarkstar/repos","events_url":"https://api.github.com/users/watadarkstar/events{/privacy}","received_events_url":"https://api.github.com/users/watadarkstar/received_events","type":"User","site_admin":false},"labels":[{"id":194397263,"node_id":"MDU6TGFiZWwxOTQzOTcyNjM=","url":"https://api.github.com/repos/react-native-community/react-native-camera/labels/Bug","name":"Bug","color":"fc2929","default":false},{"id":418407441,"node_id":"MDU6TGFiZWw0MTg0MDc0NDE=","url":"https://api.github.com/repos/react-native-community/react-native-camera/labels/iOS","name":"iOS","color":"c7def8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-09-27T21:24:18Z","updated_at":"2018-10-10T21:33:26Z","closed_at":null,"author_association":"NONE","body":"**Description**\r\n\r\nSome of our users (iPhone X iOS 12.0) get this error sometimes where the camera cannot record the video, the error says: `Error: An error occurred while recording a video.] framesToPop: 1, code: 'E_RECORDING_FAILED'`. \r\n\r\nI'm just wondering what might cause this error? Is the camera locked up or something? I saw the code that throws this error and I'm wondering why it might throw such an error. For the effected users it probably only happens less than 20% of the time.\r\n\r\n**Relevant line of code:** \r\n\r\nhttps://github.com/react-native-community/react-native-camera/blob/e2c49e04eb4c3e1bb897828cad575b068b5e5183/ios/RN/RNCamera.m#L921\r\n\r\n**Version**\r\n\r\n\"react-native-camera\": \"^1.1.4\", \r\nAND\r\n\"react-native-camera\": \"^1.3.0\",\r\n\r\n**Full log:**\r\n\r\n`Instabug - REACT LOG: 2018-09-27 12:49:33.384 [error][tid:com.facebook.react.JavaScript] { [Error: An error occurred while recording a video.] framesToPop: 1, code: 'E_RECORDING_FAILED', nativeStackIOS: [ '0 flyreel 0x00000001023a74a0 RCTFBQuickPerformanceLoggerConfigureHooks + 699744', '1 flyreel 0x0000000102350654 RCTFBQuickPerformanceLoggerConfigureHooks + 343828', '2 flyreel 0x0000000102402ec8 RCTFBQuickPerformanceLoggerConfigureHooks + 1075080', '3 AVFoundation 0x000000020b38771c <redacted> + 88', '4 AVFoundation 0x000000020b3877b0 <redacted> + 36', '5 libdispatch.dylib 0x0000000204cd36c8 <redacted> + 24', '6 libdispatch.dylib 0x0000000204cd4484 <redacted> + 16', '7 libdispatch.dylib 0x0000000204cb3b44 <redacted> + 1012', '8 CoreFoundation 0x000000020522a1bc <redacted> + 12', '9 CoreFoundation 0x0000000205225084 <redacted> + 1964', '10 CoreFoundation 0x00000002052245b8 CFRunLoopRunSpecific + 436', '11 GraphicsServices 0x0000000207498584 GSEventRunModal + 100', '12 UIKitCore 0x0000000231b4f558 UIApplicationMain + 212', '13 flyreel 0x0000000102058b98 flyreel + 19352', '14 libdyld.dylib 0x0000000204ce4b94 <redacted> + 4' ], userInfo: { NSUnderlyingError: { code: '-16418', nativeStackIOS: [ '0 flyreel 0x00000001023a74a0 RCTFBQuickPerformanceLoggerConfigureHooks + 699744', '1 flyreel 0x00000001023a768c RCTFBQuickPerformanceLoggerConfigureHooks + 700236', '2 flyreel 0x0000000102350654 RCTFBQuickPerformanceLoggerConfigureHooks + 343828', '3 flyreel 0x0000000102402ec8 RCTFBQuickPerformanceLoggerConfigureHooks + 1075080', '4 AVFoundation 0x000000020b38771c <redacted> + 88', '5 AVFoundation 0x000000020b3877b0 <redacted> + 36', '6 libdispatch.dylib 0x0000000204cd36c8 <redacted> + 24', '7 libdispatch.dylib 0x0000000204cd4484 <redacted> + 16', '8 libdispatch.dylib 0x0000000204cb3b44 <redacted> + 1012', '9 CoreFoundation 0x000000020522a1bc <redacted> + 12', '10 CoreFoundation 0x0000000205225084 <redacted> + 1964', '11 CoreFoundation 0x00000002052245b8 CFRunLoopRunSpecific + 436', '12 GraphicsServices 0x0000000207498584 GSEventRunModal + 100', '13 UIKitCore 0x0000000231b4f558 UIApplicationMain + 212', '14 flyreel 0x0000000102058b98 flyreel + 19352', '15 libdyld.dylib 0x0000000204ce4b94 <redacted> + 4' ], userInfo: {}, message: 'underlying error', domain: 'NSOSStatusErrorDomain' }, NSLocalizedRecoverySuggestion: 'Try recording again.', AVErrorRecordingSuccessfullyFinishedKey: false, NSLocalizedDescription: 'Cannot Record' }, domain: 'AVFoundationErrorDomain', line: 18, column: 1599, sourceURL: 'https://d1wp6m56sqw74a.cloudfront.net/%40flyreel%2Fflyreel%2F0.1.0%2Fe71783c7d8e43d9320fcbdb91e9d4620-26.0.0-ios.js' }`"},"comment":{"url":"https://api.github.com/repos/react-native-community/react-native-camera/issues/comments/428740277","html_url":"https://github.com/react-native-community/react-native-camera/issues/1823#issuecomment-428740277","issue_url":"https://api.github.com/repos/react-native-community/react-native-camera/issues/1823","id":428740277,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODc0MDI3Nw==","user":{"login":"SimonErm","id":33630884,"node_id":"MDQ6VXNlcjMzNjMwODg0","avatar_url":"https://avatars1.githubusercontent.com/u/33630884?v=4","gravatar_id":"","url":"https://api.github.com/users/SimonErm","html_url":"https://github.com/SimonErm","followers_url":"https://api.github.com/users/SimonErm/followers","following_url":"https://api.github.com/users/SimonErm/following{/other_user}","gists_url":"https://api.github.com/users/SimonErm/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonErm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonErm/subscriptions","organizations_url":"https://api.github.com/users/SimonErm/orgs","repos_url":"https://api.github.com/users/SimonErm/repos","events_url":"https://api.github.com/users/SimonErm/events{/privacy}","received_events_url":"https://api.github.com/users/SimonErm/received_events","type":"User","site_admin":false},"created_at":"2018-10-10T21:33:26Z","updated_at":"2018-10-10T21:33:26Z","author_association":"COLLABORATOR","body":"Maybe related: https://stackoverflow.com/questions/3495879/error-when-capturing-camera-and-audio-input#3498981 . Do you youse GoogleVision features?"}}
{"actor":{"display_login":"SimonErm"}}