Jump to content

C++ crash when a mod uses invalid preview image


Serpens
  • Pending

When a mod uses an invalid preview.tex file (tried one with 526x527 pixels) the game will crash when scrolling through mods shortly before reaching the mod with the error message you see in screenshot. When I changed the preview.tex to 128x128 , everything worked fine.

I don't think the game should crash just because of an invalid mod image.

image_crash.jpg

image_crash.png


Steps to Reproduce

Create a tex file for a mod preview image with other pixels than 128x128 (maybe different height and width is the problem, not tested) and the game will crash when scrolling through mod list shortly before reaching that mod.




User Feedback


The assertion happens when the device fails to create the texture or runs out of memory. A graphics rule was relaxed in a recent update for non power of two sized textures since the vast majority of graphics cards handle these types of textures fine with their drivers. Could you upload your client_log.txt and DxDiag.txt as well for us to review what hardware you are using? https://support.klei.com/hc/en-us/articles/360029880371-How-can-I-find-my-DxDiag-file

  • Like 1
  • Thanks 1

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...