Giter Club home page Giter Club logo

Comments (14)

robmikh avatar robmikh commented on May 18, 2024

Do you have a minimal version of the code that reproduces this error? Otherwise, please collect a process dump and we can take a look.

from windows.ui.composition-win32-samples.

gileli121 avatar gileli121 commented on May 18, 2024

How to collect process dump with visual studio 2019?

from windows.ui.composition-win32-samples.

robmikh avatar robmikh commented on May 18, 2024

Once you see the unhandled exception message from your screenshot, go to Debug->Save Dump As. Please make sure you select "Minidump with Heap" when saving.

from windows.ui.composition-win32-samples.

gileli121 avatar gileli121 commented on May 18, 2024

OK, I will do it when it will happen again and upload here the dump.
Thanks

from windows.ui.composition-win32-samples.

robmikh avatar robmikh commented on May 18, 2024

It's been a few months since any activity, so I'm going to close this issue. Please reopen it with the crash dump if you see it again.

from windows.ui.composition-win32-samples.

yjlintw avatar yjlintw commented on May 18, 2024

Dmp file (Googld Drive)

I'm having the same problem. The dmp file is too big so I put it on google drive. Hope this will help.

from windows.ui.composition-win32-samples.

robmikh avatar robmikh commented on May 18, 2024

Hey @yjlintw, do you have the same symptoms as the above? Looking at the dump, this won't be a failfast and should throw an exception that you should be able to catch. Are you able to do so?

For some reason I'm not able to recognize the error code that triggers the exception, not sure if there's an issue with the dump or there's some other issue going on. Are you able to reliably reproduce this error? Can you share more about the scenario? Is it always with a certain window? All windows? Does it ever succeed?

We may need to get this reproducing locally to make progress.

from windows.ui.composition-win32-samples.

yjlintw avatar yjlintw commented on May 18, 2024

I don't have the try/catch statement initially. After adding that, I'm able to catch it.

It happens when I stop the capture and then start the capture again. It could happen to all windows, but it does not always happens. It happens every now and then.

My originally implementation was resizing the captured window -> stop capture -> start capture. I now resize the texture instead, which I think is a better implementation anyway, and it helps me get around this error.

from windows.ui.composition-win32-samples.

glemselenselv avatar glemselenselv commented on May 18, 2024

I'm sorry to revive this kinda old thread, but I see similar fatal exceptions when I try to capture child windows or dialogs. I haven't read anything in the offical reference about whether the API supports top-level windows only so I wonder if this is even possible.

@robmikh, could you please confirm/deny my assumption?

from windows.ui.composition-win32-samples.

robmikh avatar robmikh commented on May 18, 2024

That is to be expected. Thanks for a calling that out as far as the documentation goes, we should update it. We only support the capture of top level windows.

from windows.ui.composition-win32-samples.

EricBallard avatar EricBallard commented on May 18, 2024

Just an FYI - I was encountering this issue when trying to capture a window using DirectX 12, in the application settings - after changing to DirectX 11 (Legacy) I was able to capture the window without issue.

from windows.ui.composition-win32-samples.

robmikh avatar robmikh commented on May 18, 2024

Correct, the Direct3D11CaptureFramePool does not support 11-on-12. We need to do some work to support Direct3D 12.

from windows.ui.composition-win32-samples.

tianyouhui avatar tianyouhui commented on May 18, 2024

interop_factory->CreateForWindow() always crash while begin to capture window zoom->settings, is there something wrong?
image

from windows.ui.composition-win32-samples.

robmikh avatar robmikh commented on May 18, 2024

I'm guessing it's because the window is a tool window. The general rule of thumb is that if it's in alt+tab, you should be able to capture it.

from windows.ui.composition-win32-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.