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

Missing textures within vlayer slots cause segfaults #941

Open
Jigoku opened this issue Nov 10, 2019 · 1 comment

Comments

@Jigoku
Copy link
Member

@Jigoku Jigoku commented Nov 10, 2019

Problem:
Game crashes with segfault when selecting a non existing vlayer texture in the editor.


Reproduce:

  1. Create a vlayered texture as you would for blendmapping:
    /vlayer <slot # of custom texture>

  2. Delete the layered texture from map config (vslot / vlayer still exists within map file)

  3. Game crashes when scrolling past the vslot texture

Full backtrace here:
https://gist.github.com/Jigoku/8d173f4b4ffe8108cf70747a7176063c

@triage-new-issues triage-new-issues bot added the triage label Nov 10, 2019
@Jigoku

This comment has been minimized.

Copy link
Member Author

@Jigoku Jigoku commented Nov 10, 2019

I believe this also happens due to removed texture entries in the maps config. So might not be related to only vlayer, others such as vcolour etc might produce the same crash once a vslot is created whilst the texture config used by that slot has later been removed.

There doesn't seem to be a way to manually remove a vslot from a map file, but as a work around to stop the saved map crashing you can duplicate a texture in the map config several times so that it reoccupies the missing vslot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.