1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-27 17:28:41 +00:00
luanti/src/client
Auke Kok 3e30731c1a Prevent SIGFPE on entity tile loading issue. (#5178)
While experimenting with entities I ran into this unresolvable
error where the server is sending some texture that the client
crashes on. The crash prevents the client from ever reconnecting,
resulting in a server that has to use clearobjects.

We shouldn't crash but just ignore the object and move on.

```
0x00000000004dc0de in TextureSource::generateImagePart (this=this@entry=0x7118eb0, part_of_name="[applyfiltersformesh",
    baseimg=@0x7fffffffbe98: 0x9f1b010) at /home/sofar/git/minetest/src/client/tile.cpp:1744
    1744					u32 xscale = scaleto / dim.Width;
    (gdb) bt
    #0  0x00000000004dc0de in TextureSource::generateImagePart (this=this@entry=0x7118eb0, part_of_name="[applyfiltersformesh",
        baseimg=@0x7fffffffbe98: 0x9f1b010) at /home/sofar/git/minetest/src/client/tile.cpp:1744
```

After reconnecting, the client now can connect without issues
and displays an error message:

```
ERROR[Main]: generateImagePart(): Illegal 0 dimension for part_of_name="[applyfiltersformesh", cancelling.
ERROR[Main]: generateImage(): Failed to generate "[applyfiltersformesh"
ERROR[Main]: Irrlicht: Invalid size of image for OpenGL Texture.
```
2017-02-05 23:59:18 -08:00
..
clientlauncher.cpp Also support X11 icon for minetest copies installed via make install (#4407) 2016-08-20 21:26:44 +02:00
clientlauncher.h Refactor logging 2015-10-14 01:03:54 -04:00
CMakeLists.txt Initial Gamepad support 2016-06-03 19:42:57 +02:00
inputhandler.h Initial Gamepad support 2016-06-03 19:42:57 +02:00
joystick_controller.cpp Initial Gamepad support 2016-06-03 19:42:57 +02:00
joystick_controller.h Initial Gamepad support 2016-06-03 19:42:57 +02:00
keys.h Add zoom, tweakable with zoom_fov, default key: Z (like optifine) 2016-08-10 12:18:25 +02:00
tile.cpp Prevent SIGFPE on entity tile loading issue. (#5178) 2017-02-05 23:59:18 -08:00
tile.h Add hardware node coloring. Includes: 2017-01-23 07:27:12 +01:00