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

[Run Error]An uncaught exception occurred: Failed to load texture #75

Closed
bowmanonjupiter2 opened this issue Sep 24, 2023 · 7 comments
Closed
Labels
bug Something isn't working waiting for answer

Comments

@bowmanonjupiter2
Copy link

Win11, i7 13700K, RTX 3060Ti
"cmake .. -DCMAKE_BUILD_TYPE=Release", RUN OK
"cmake --build . --config Release -j8 ", WARNING: "MSVCRT.lib(initializers.obj): warning LNK4098: defaultlib 'libcmt.lib' conflicts with use of other libs; use /NODEFAUL
TLIB:library"

Run Release/alien.exe
Error: An uncaught exception occurred: Failed to load texture

@TheBarret
Copy link

TheBarret commented Sep 24, 2023

Just my 2 cents;

Warning LNK4098:

You can try specifying the /NODEFAULTLIB linker option followed by the specific library that is causing the conflict.
For example, if libcmt.lib is causing the conflict, you can use /NODEFAULTLIB:libcmt.lib in your linker options.
Make sure to review your project's settings and dependencies to ensure that the correct libraries are linked.

@chrxh
Copy link
Owner

chrxh commented Sep 24, 2023

Could be a problem with OpenGL or OpenGL-CUDA interoperability. Have you checked the troubleshooting section in https://alien-project.org/downloads.html?
If you already have, could you then start alien with the parameter -d and post the log.txt?

I think the linker warning should not be the problem. I have it too, but have yet to investigate it.

@ccyberrain
Copy link

I have the same issue on Win11, RTX 3070, CUDA 12.2.2, MSVC v143.

Log.txt contains the following output:
2023-10-18 14-57-36: DEBUG mode
2023-10-18 14-57-36: set full screen mode

@ccyberrain
Copy link

I found a solution: the folder resources needs to be copied to */alien/build/Release
Afterwards, the application runs as expected.

@chrxh
Copy link
Owner

chrxh commented Oct 18, 2023

Actually you should start ALIEN from the build directory via .\Release\alien.exe as described in the readme. In this case you don't need to copy the resource folder.

@chrxh
Copy link
Owner

chrxh commented Oct 18, 2023

I've updated the readme to make it clearer.

@chrxh chrxh closed this as completed Oct 18, 2023
@bowmanonjupiter2
Copy link
Author

thanks will try and let you know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting for answer
Projects
None yet
Development

No branches or pull requests

4 participants