-
-
Notifications
You must be signed in to change notification settings - Fork 382
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
[BUG] Crash on projectm_create() on Windows #822
Comments
Looks like there's no active or an improperly configured (e.g. just a 1.x fixed function profile) OpenGL context. The sampler is the first object being created during construction, and we don't check the return value of the sampler allocator (not great, but should work). The crash is happening in the following line when this object is used. |
Can you provide information about the GL profile used for the context in question? Specifically, the core profile version. It should be 3.3 for projectM to work. Additionally, it may be required to initialize GLEW before creating the projectM instance, otherwise some GL functions may not be initialized properly and point to either 0 or a random address. |
I started to make an addon for Open Frameworks: https://github.com/Jonathhhan/ofxProjectM and have the same issue with Windows, while it works well with Linux. It also crashes with other functions, so it does not seem to be an openGL issue? |
It works for me now, but the solution seems a little strange: I need to use the static lib |
Fixed it, I made something wrong compiling it. I use static libs now and it works well. |
MSVC needs a static import lib to properly link DLLs at built time. This is different from the actual static library, even if both have the same That said, when building your project, always check if these things match both your code/build settings and those of projectM:
Using CMake and vcpkg with a specific triplet to build everything can help getting things straight. This is actually one of those things which are way worse than on Linux/macOS toolchains - all the possible combinations of the above. |
Please confirm the following points:
Affected Application
Third-Party Integration (Kodi, VLC, etc. - please specify below)
Affected Version
4.1.1
Operating System
Windows
Additional Application Details
Visual Studio 2022 on Windows 10.
Type of Defect
Crash (unexpected closing, OS crash dialog)
Log Output
Describe the Issue
Crash occurs when calling projectm_create()
The text was updated successfully, but these errors were encountered: