MathewSachin / Captura

Capture Screen, Audio, Cursor, Mouse Clicks and Keystrokes
https://mathewsachin.github.io/Captura/
MIT License
9.51k stars 1.79k forks source link

SharpDXException: D2DERR_RECREATE_TARGET/RecreateTarget #492

Open neatgz opened 4 years ago

neatgz commented 4 years ago

Describe the bug Click the 'Record' button, an error message appeared. It says 'SharpDX.SharpDXException: HRESULT: [0x8899000C], Module: [SharpDX.Direct2D1], ApiCode: [D2DERR_RECREATE_TARGET/RecreateTarget], '

To Reproduce Steps to reproduce the behavior:

  1. Captura-Portable v9.0.0-beta3.1
  2. Open 'captura.exe'
  3. Click the 'Record' button, an error message appeared.

Screenshots 捕获

Desktop (please complete the following information):

Additional context Thanks a lot !

saberbin commented 4 years ago

SharpDX.SharpDXException: HRESULT: [0x8899000C], Module: [SharpDX.Direct2D1], ApiCode: [D2DERR_RECREATE_TARGET/RecreateTarget], Message: 存在可以恢复的演示错误。调用方需要重新创建、重新渲染整个帧,并重新尝试显示。

at SharpDX.Result.CheckError() at DesktopDuplication.Direct2DEditorSession.EndDraw() at DesktopDuplication.Direct2DEditor.GenerateFrame() at Screna.Recorder.<>c__DisplayClass14_0.b2() at System.Threading.Tasks.Task`1.InnerInvoke() at System.Threading.Tasks.Task.Execute() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Screna.Recorder.d14.MoveNext()

ldh999 commented 4 years ago

Try change the mouse cursor to default in WIN 10.

MathewSachin commented 4 years ago

@ldh999 Can you provide me with a cursor for which recording fails. I really want to fix this issue but have no other leads right now.

neatgz commented 4 years ago

My win 10 was newly installed, I did not change any mouse cursor settings. my dpi was 200%, maybe it is the reason? (change to 100%, same error) my graphics driver was the newest. 批注 2020-02-24 094906

Yugikira commented 4 years ago

My friends and I encountered similar issue. Here is my case and solution. I use ffmpeg to record while I download ffmpeg from its official site instead using the download function integerated in Caputra. The same warning came out. After I add the ffmpeg.exe to the environment path, the issue gone.

ghost commented 4 years ago

I happened the same error in Win10.

MathewSachin commented 4 years ago

Does anyone get this error on 1080p or lesser resolutions? I've only gotten reports of this error happening on larger screens.

If this is true, or even not, I think I should scale down the video to 1080p by default. 1080p is most probable to have hardware encoders available on every system.