-
Notifications
You must be signed in to change notification settings - Fork 62
KTX support seems to be broken (engine SIGSEGV) #244
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
Comments
This is a test map with the ktx texture that is known to fail (load it as Note: this has nothing to do with PBR, I just hijacked this map to do some texture tests. |
@illwieckz Well, KTX texture is
Unfortunately, this texture is not supported for now. Acceptable KTX texture should have these props (https://github.com/DaemonEngine/Daemon/pull/335/files#diff-26190d20985a5f5c54f799deb59d31baR83):
|
Ok, as I said, I only produced this texture to test the feature, with the tool I had in hand, which tolds me it would be possible to have bugs. This one: https://github.com/DaemonEngine/crunch The readme says:
It would be cool to test with textures we know they are produced the right way, but in any way if the engine does not crash it's already good As an arbitrary map downloaded from a random server must not crash the engine. |
@dimhotepus on a side note related to Crunch, since you seem to have sharp eyes and good understanding of c/c++ things, would you be able to review this pull request for me? This one was submitted to upstream, but they never merge pull requests. |
@illwieckz thank you for kind words. I'll review this one after fixes for current issue are complete. At first glance looks good. |
KTX support seems to be broken, it's also possible that crunch produces bad KTX files.
Just to check this up, I produced some KTX textures with crunch and tried to load a map using them.
I got a SIGSEGV at texture loading time, complaining about SSSE3 stuff.
In any way, no one seems to use this image format with Dæmon engine.
It fails on the
Com_Memcpy()
call there (line 172):Daemon/src/engine/renderer/tr_image_ktx.cpp
Lines 162 to 175 in 11278ed
What I see on console:
GDB backtrace:
The text was updated successfully, but these errors were encountered: