-
Notifications
You must be signed in to change notification settings - Fork 18
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
build with latest version of MS Build Tools 2022 (17.10.1) causes call to get_frame() to seg fault #47
Comments
I have tried to reproduce the issue with full Visual Studio installation versions 17.9.6 and 17.10.2. Everything seems to work well with Python 3.7 and 3.12. Could you please provide:
|
I even tried wiping the computer and starting from scratch and got the same result, the only thing that worked was the different version of build tools. Other info:
|
Unfortunately, I'm still unable to reproduce the issue even with exactly the same environment and camera you have. But quick Google query has found that something similar is happening to others: Could you please try the recommended Microsoft solution? |
tried adding the flag D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR to extra_compile_args in setup.py and that worked 👍 , doesn't quite make sense to me though that you didn't need the flag if using the same build env (14.40.33810) |
If you add me I can create a PR for the flag addition or you can, the change was
|
I'm glad that defining the macro works for you.
Thus we won't apply the proposed patch. It might be reconsidered later when more users report the problem and nothing else helps... Back to your problem:
|
Thanks for your interest Tom but I can't devote any more time to this problem as the computer in question is being used by others on my team to develop software that uses the camera, so now that I have a work around I/we have to move on. To answer your questions though:
|
I am still having this issue and i cannot find anything that works. I downgraded to 17.2 ms build tools, re-ran build/install of pyvcam and it still gets hung up on get_frame(). I also tried the extra arg but that also did not work. I am using: python: 3.10.10 |
Has there been any resolution to this issue? I'm running into this problem as well. |
This took me a while to figure out but it appears to fail when trying to lock the mutex in start_seq
PyVCAM/src/pyvcam/pvcmodule.cpp
Line 768 in 9398c28
The build of the module all completes and installs without error, it just failed to work.
Downgrading to MS Build Tools 2022 17.2.1 fixes this.
This was tested on a windows 11 machine 64bit, you can download the Build Tools for Spring 2022 LTSC | 17.2
from here
https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-history#updating-your-installation-to-a-specific-release
The text was updated successfully, but these errors were encountered: