1

Topic: Client crash

Hello,

my mapper found a crashbug on vanilla client (he was using my client but seeing that it crashes, he tried on vanilla client, which also crashed, I tried it myself to see if it's from configurations or something like that, no, it still crashes)

If you embed this image http://www.nxcity.ovh/idlebg.png to any map, and save, the client crashes.

The debug mod says that the error comes from here (in editor.cpp)

if(pPixelData[p*4+3] < 250)
{
    Opaque = false;
    break;
}

Thanks in advance.

while(!Success())
    TryAgain();
Try until you succeed.

2 (edited by unsigned char* 2014-11-12 00:38:56)

Re: Client crash

Neox76, its a bug with Pixel Depth Check... the size that the teeworlds try copy in memory its more bigger than the image size... and crash.

You need add alpha channel in your image wink

3 (edited by Neox 2014-11-12 16:38:33)

Re: Client crash

unsigned char* wrote:

Neox76, its a bug with Pixel Depth Check... the size that the teeworlds try copy in memory its more bigger than the image size... and crash.

You need add alpha channel in your image wink

Thank you smile

But this should be fixed in the vanilla client itself, can you imagine hours of mapping without knowing that it will crash at the end ? ^^ I mean, for people who don't know the bug

while(!Success())
    TryAgain();
Try until you succeed.

4 (edited by unsigned char* 2014-11-12 17:19:01)

Re: Client crash

Neox76 wrote:
unsigned char* wrote:

Neox76, its a bug with Pixel Depth Check... the size that the teeworlds try copy in memory its more bigger than the image size... and crash.

You need add alpha channel in your image wink

Thank you smile

But this should be fixed in the vanilla client itself, can you imagine hours of mapping without knowing that it will crash at the end ? ^^ I mean, for people who don't know the bug

Yes xDD...

The bug was fixed on github for 0.7.0 version wink
https://github.com/teeworlds/teeworlds/ … io.cpp#L85

5

Re: Client crash

unsigned char* wrote:
Neox76 wrote:
unsigned char* wrote:

Neox76, its a bug with Pixel Depth Check... the size that the teeworlds try copy in memory its more bigger than the image size... and crash.

You need add alpha channel in your image wink

Thank you smile

But this should be fixed in the vanilla client itself, can you imagine hours of mapping without knowing that it will crash at the end ? ^^ I mean, for people who don't know the bug

Yes xDD...

The bug was fixed on github for 0.7.0 version wink
https://github.com/teeworlds/teeworlds/ … io.cpp#L85

Ah ok ^^ Good then, but the 0.7.0 version will be released in what... 5 years ? big_smile Anyway, thank you smile

while(!Success())
    TryAgain();
Try until you succeed.

6

Re: Client crash

np wink and idk... xD