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

GIL acquisition deadlock related to frame dimensions #48

Open
dzhoshkun opened this issue Nov 2, 2018 · 4 comments
Open

GIL acquisition deadlock related to frame dimensions #48

dzhoshkun opened this issue Nov 2, 2018 · 4 comments

Comments

@dzhoshkun
Copy link
Contributor

dzhoshkun commented Nov 2, 2018

Related PR: #33

The GIL acquisition deadlock (or so it seems from the core dump) seems to be reproducible when using somewhat unusual frame dimensions. In particular I was able to reproduce it by setting a crop region of x, y = 223, 321, width, height = 506, 607 with 5185540 configured using: cmake -D CMAKE_BUILD_TYPE=Debug -D BUILD_PYTHON=ON -D USE_NUMPY=ON -D ENABLE_NONFREE=ON -D USE_EPIPHAN_DVI2PCIE_DUO=ON -D USE_EPIPHANSDK=ON -D BUILD_PYTHON=ON -D BUILD_TESTS=ON ../../GIFT-Grab/src. And using this with BGRA captures from Epiphan DVI2PCIe Duo with the #46 branch.

Not sure why any particular frame dimensions should lead to a GIL acquisition deadlock. Could this be related to the increased processing time leading a thread to keep the GIL longer than intended?

@dzhoshkun
Copy link
Contributor Author

Also the following crop region seems to reproduce the same problem: x, y = 150, 78 and width, height = 420, 420

@dzhoshkun
Copy link
Contributor Author

But not x, y = 0, 0 and width, height = 420, 420

@dzhoshkun
Copy link
Contributor Author

Looks like this is related to unaligned memory. For instance x=1 leads to this problem, while x=32 does not.

@dzhoshkun
Copy link
Contributor Author

dzhoshkun commented Nov 2, 2018

Odd x values seem to reproduce the problem. x=2 reproduces it as well.

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