Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webcamoid virtual camera crashes when used by Qt's capture code #55

Open
j-schultz opened this issue Jun 16, 2020 · 5 comments
Open

Webcamoid virtual camera crashes when used by Qt's capture code #55

j-schultz opened this issue Jun 16, 2020 · 5 comments

Comments

@j-schultz
Copy link

Summary

First off, this might be the same issue as webcamoid/webcamoid#231 but I'm not sure, as this is about another application using Webcamoid's virtual camera, not Webcamoid itself.

When creating a Webcamoid virtual camera on Windows 10, applications making use of Qt's camera capture code crash when trying to start that camera. Since Webcamoid itself is built using Qt, you should not have any issues using the default Qt multimedia webcam example to reproduce this issue.

Steps to Reproduce

  1. Create virtual camera in Webcamoid
  2. Run the Qt multimedia webcam example
  3. Select the camera
  4. Observe crash

Suggestions and tips

I contacted Qt support because I suspected the issue is on their end, however they say the problem is in the filter provided by webcamoid as it crashes at
pVideoControl->GetFrameRateList(pPin, iIndex, size, &listSize, &frameRates);

Your Environment

  • Webcamoid information: 8.7.1 64-bit
  • Operating System information: Windows 10 Professional 64-bit, version 1909
@hipersayanX
Copy link
Member

I won't waste my time writing code just to test this bug, just give me some very simple, ready and easy to use code. Also, this issue is 1 year old, and it was probably fixed already.

@j-schultz
Copy link
Author

As I said, just running the webcam example that ships with Qt (multimedia/declarative-camera, using Qt 5.15 here) itself is enough to trigger the bug. Since Webcamoid is written in Qt, I thought you would have have that example ready but I can zip it up and upload it if you don't.

The problem is still there in the latest stable release, Webcamoid 8.8.0. I also tried the latest daily build and noticed that things changed quite a bit there. After installing the AkVirtualCamera through Webcamoid, I can still observe the same crash in the Qt camera example, and on top of that Webcamoid now freezes when it's relaunched. After uninstalling AkVirtualCamera, Webcamoid itself also works again.

I understand AkVirtualCamera is a separate project, and the problem is more likely to be found in AkVirtualCamera than Webcamoid itself, so I guess this issue should be moved over?

@hipersayanX hipersayanX reopened this Oct 25, 2021
@hipersayanX hipersayanX transferred this issue from webcamoid/webcamoid Oct 25, 2021
@hipersayanX
Copy link
Member

Ok, I've transferred the issue here. I will check later.

@hipersayanX
Copy link
Member

Apparently its dying when calling to DllCanUnloadNow without ever calling to any of the other entry points.

Screenshot_20211025_174055

@hipersayanX
Copy link
Member

My bad, it was running the OBS camera which btw was also crashing too. Here's the log for AkVirtualCamera, it crash when it tries to enumerate the media types.

@hipersayanX hipersayanX transferred this issue from webcamoid/akvirtualcamera Oct 29, 2023
@hipersayanX hipersayanX transferred this issue from another repository Dec 15, 2023
@hipersayanX hipersayanX transferred this issue from webcamoid/webcamoid Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants