{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/FBSimulatorControl/issues/209","repository_url":"https://api.github.com/repos/facebook/FBSimulatorControl","labels_url":"https://api.github.com/repos/facebook/FBSimulatorControl/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/facebook/FBSimulatorControl/issues/209/comments","events_url":"https://api.github.com/repos/facebook/FBSimulatorControl/issues/209/events","html_url":"https://github.com/facebook/FBSimulatorControl/issues/209","id":133666808,"number":209,"title":"FBFramebufferVideo: getSubtractiveDecodeDuration signalled err=-12633","user":{"login":"robbertvanginkel","id":570934,"avatar_url":"https://avatars.githubusercontent.com/u/570934?v=3","gravatar_id":"","url":"https://api.github.com/users/robbertvanginkel","html_url":"https://github.com/robbertvanginkel","followers_url":"https://api.github.com/users/robbertvanginkel/followers","following_url":"https://api.github.com/users/robbertvanginkel/following{/other_user}","gists_url":"https://api.github.com/users/robbertvanginkel/gists{/gist_id}","starred_url":"https://api.github.com/users/robbertvanginkel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbertvanginkel/subscriptions","organizations_url":"https://api.github.com/users/robbertvanginkel/orgs","repos_url":"https://api.github.com/users/robbertvanginkel/repos","events_url":"https://api.github.com/users/robbertvanginkel/events{/privacy}","received_events_url":"https://api.github.com/users/robbertvanginkel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-15T09:42:22Z","updated_at":"2016-03-02T20:17:25Z","closed_at":null,"body":"When I launch a simulator with the following options:\r\n`        FBSimulatorLaunchOptions launchOptions =\r\n            FBSimulatorLaunchOptionsEnableDirectLaunch |\r\n            FBSimulatorLaunchOptionsRecordVideo |\r\n            FBSimulatorLaunchOptionsShowDebugWindow;\r\n`\r\n\r\nIt happens often that I get an error like the following:\r\n```\r\n[10:39:54.125] getSubtractiveDecodeDuration signalled err=-12633 (kFigFormatWriterError_InvalidTimestamp) (decode timestamp is less than previous sample's decode timestamp) at /SourceCache/CoreMedia/CoreMedia-1562.240/Prototypes/FormatHandlers/FigFormatWriter_QTMovie.c line 9867\r\n[10:39:54.129] FigMediaProcessorGetSampleBufferProcessor signalled err=-12785 (kFigBaseObjectError_Invalidated) (FigMediaProcessor was invalidated) at /SourceCache/CoreMedia/CoreMedia-1562.240/Prototypes/MediaConverter/FigMediaProcessor.c line 787\r\n[10:39:54.129] VTCompressionSessionGetPixelBufferPool signalled err=-12903 (kVTInvalidSessionErr) (Session was invalidated) at /SourceCache/CoreMedia_frameworks/CoreMedia-1562.240/Sources/VideoToolbox/VTCompressionSession.c line 2250\r\n2016-02-15 10:39:54.130 swoctopus[54300:4456275] 1 Time 25.790000 | Count 901 Time 25.772000 | Count 900 1\r\n[10:39:54.131] assetWriter_AddPixelBuffer signalled err=-12633 (storage->failureError) (AssetWriter has posted a failure notification) at /SourceCache/CoreMedia/CoreMedia-1562.240/Prototypes/MediaConverter/FigRemaker.c line 14257\r\n```\r\n\r\nWhich makes the video file unusable. I've tried to set `static const CMTimeScale FBFramebufferTimescale = 1000;` to a lower value. This seems helps avoid the error, but also makes the code drop a significant amount of frames. \r\n\r\nAny idea how this could be prevented?"},"comment":{"url":"https://api.github.com/repos/facebook/FBSimulatorControl/issues/comments/191408330","html_url":"https://github.com/facebook/FBSimulatorControl/issues/209#issuecomment-191408330","issue_url":"https://api.github.com/repos/facebook/FBSimulatorControl/issues/209","id":191408330,"user":{"login":"lawrencelomax","id":217883,"avatar_url":"https://avatars.githubusercontent.com/u/217883?v=3","gravatar_id":"","url":"https://api.github.com/users/lawrencelomax","html_url":"https://github.com/lawrencelomax","followers_url":"https://api.github.com/users/lawrencelomax/followers","following_url":"https://api.github.com/users/lawrencelomax/following{/other_user}","gists_url":"https://api.github.com/users/lawrencelomax/gists{/gist_id}","starred_url":"https://api.github.com/users/lawrencelomax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lawrencelomax/subscriptions","organizations_url":"https://api.github.com/users/lawrencelomax/orgs","repos_url":"https://api.github.com/users/lawrencelomax/repos","events_url":"https://api.github.com/users/lawrencelomax/events{/privacy}","received_events_url":"https://api.github.com/users/lawrencelomax/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T20:17:25Z","updated_at":"2016-03-02T20:17:25Z","body":"Nice! This sounds promising. You may have seen that in #233 there's now a Config object that can be used to change these values without updating `FBSimulatorControl` itself, since there has been quite a bit of churn getting these values correct. I'd suggest making changes to the defaults there in any PR that you make."}}