-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Crash when building mesh from certain .map files #38
Comments
Hm, I can't seem to reproduce this (on Windows). Can you post a map file and a folder of textures that can reproduce this? |
I've made an example project and tested it, it indeed crashes with the same error. I've tested it on two computers so far. Here is the project: test.zip |
@codecat this is probably because the buf[255] array is overflowing. A minimal
|
Nice catch! Thanks for the tip 😊 |
Rebuilding the mesh with a "bad" .map file reliably causes godot to crash with the following error:
The issue (from my testing) seems to be entirely preventable in Trenchbroom itself. The crash only happens when a parent folder is loaded in the "texture collection" panel in the "faces" tab in TB. For example, if I have the following folder structure in my project:
selecting all the child folders works flawlessly, but if I include
epic textures
in the TB menu, it causes a crash when building the mesh in godot.I have verified this by editing the generated .map file using a text editor, removing the parent folder from
"_tb_textures"
fixes the crash:The text was updated successfully, but these errors were encountered: