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

Opening webcam crashes applications #453

Closed
emilianavt opened this issue May 23, 2018 · 5 comments
Closed

Opening webcam crashes applications #453

emilianavt opened this issue May 23, 2018 · 5 comments

Comments

@emilianavt
Copy link

emilianavt commented May 23, 2018

Hi!

When I try to open a webcam in any of the OpenFace 2.0.0 or 2.0.1 tools, a window appears, saying it is loading the webcams. After a short while the application crashes with the following exception, with the loading window still open:

An unhandled exception of type 'System.ArgumentException' occurred in PresentationCore.dll

This is on Windows 8.1 with .NET 4.6.2. Opening a video in OpenFaceOffline.exe works very well.

@emilianavt
Copy link
Author

It stops crashing if I copy an older version (3.0) of PresentationCore.dll into the OpenFace folder. Otherwise it probably attempts to load a newer (4.0) version of the DLL which doesn't seem to be compatible.

@TadasBaltrusaitis
Copy link
Owner

That's interesting, OpenFace is compiled with .NET 4.6.2, I wonder what was causing the issue. What stage exactly was it crashing on? Does it list the available webcams?

@emilianavt
Copy link
Author

emilianavt commented May 25, 2018

It doesn't list anything, so I assume it's one of the functions used for displaying the webcam widgets that make it crash.

Edit: Actually, it stopped working with the older version of PresentationCore too. I'm not sure what exactly is going on there.

@pocketmoon
Copy link

Same here -from event viewer:
Faulting application name: OpenFaceDemo.exe, version: 1.0.0.0, time stamp: 0x5af4a5ec Faulting module name: CppInerop.dll, version: 0.0.0.0, time stamp: 0x5af4a5e1 Exception code: 0xc0000005 Fault offset: 0x00000000000b1aa0 Faulting process id: 0x1110 Faulting application start time: 0x01d3fa76a82ed285 Faulting application path: E:\development\2018\OpenFace_2.0.0_win_x64\OpenFaceDemo.exe Faulting module path: E:\development\2018\OpenFace_2.0.0_win_x64\CppInerop.dll Report Id: ead7494c-6669-11e8-85eb-e03f4977eb8b

@TadasBaltrusaitis
Copy link
Owner

Should be fixed in the new version, please re-open if persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants