Guild icon
DDraceNetwork
Development / bugs
Report client & server bugs, especially but not limited to release candidates.
Between 2023-11-20 00:00:00Z and 2023-11-21 00:00:00Z
Avatar
on last beta hook disappears some time, and always when hold under block
Avatar
Avatar
deen
@] @影 Can you check if https://ddnet.org/ddnet-7508.zip works fine?
@! xlays_ ^ can you test that client to see if that fixes your FPS? would be really neat
Avatar
Avatar
lolkildal
on last beta hook disappears some time, and always when hold under block
@trml related to https://github.com/ddnet/ddnet/pull/7506 ? (edited)
This also simplifies the code a bit, and further separates ping calculations from the the margin (e.g. so it does not count towards ping spikes calculated in CSmoothTime). Checklist Tested the ch...
Avatar
Don't think so, but will test later today, not immediately sure what could have caused it (edited)
Avatar
I couldn't reproduce the issue @lolkildal is it only on some maps, at some locations?
Avatar
Avatar
deen
I couldn't reproduce the issue @lolkildal is it only on some maps, at some locations?
I don't think so, it happens on any map anywhere. the only thing that must be met is that they must be under each other, the difference in coordinates must not be more than .03. i checked this with strong and weak.
Avatar
Avatar
]
@Jupstar ✪ Hi moderators and admins, I'm having problems running the DDraceNetwork game, since and yesterday. My game is running at 10 fps, as if the video driver was not recognized, can you help me?
it happens to me too
12:35
i normally get 10k fps but sometimes it gets 10fps max
12:36
i reopen the game a couple times then it fixes
Avatar
@Rotarite Can you check if it works fine with https://ddnet.org/ddnet-7508.zip ?
Avatar
Avatar
Rotarite
i normally get 10k fps but sometimes it gets 10fps max
If it's only sometimes it's a different problem
13:10
The guys here never have more than 10
13:10
Literally
Avatar
hi after update i have so many micro lag how its fix fps is stable ping too (edited)
Avatar
Avatar
Learath2
It's in the console, you can enable it by doing cl_show_console 1 on windows and restarting the game
what now? xd??
Avatar
Avatar
wats
what now? xd??
Alternative to #5154. Closes #5150. If you want to open the client with a console window, instead create a new shortcut with the following target: cmd /c "C:\path\to\your\DDNet.exe" You ...
Avatar
Oh ok, then just show us the logs in f1
Avatar
why does my game crash in skin loading? after the newest update
Avatar
Avatar
Nooback
why does my game crash in skin loading? after the newest update
crash = closing, or does it say "crash" is there a crash dump in %appdata%/ddnet/dumps?
Avatar
@Jupstar ✪ there is a crash report
Avatar
Avatar
Nooback
@Jupstar ✪ there is a crash report
can u share it here
Avatar
Avatar
wats
idk
You need to show one where a slow download happens
Avatar
Avatar
Nooback
Click to see attachment 🖼️
0x000000073e524452: ?? ??:0 0x0000000140031c82: CGraphics_Threaded::CopyTextureFromTextureBufferSub(unsigned char*, unsigned long long, unsigned long long, unsigned char*, unsigned long long, unsigned long long, unsigned long long, unsigned long long, unsigned long long, unsigned long long, unsigned long long) at src/engine/client/graphics_threaded.cpp:707 (inlined by) CGraphics_Threaded::LoadSpriteTextureImpl(CImageInfo&, int, int, unsigned long long, unsigned long long) at src/engine/client/graphics_threaded.cpp:370 0x0000000140031dbc: CGraphics_Threaded::LoadSpriteTexture(CImageInfo&, CDataSprite*) at src/engine/client/graphics_threaded.cpp:383 [...] src/game/client/components/skins.cpp:308 0x00000001400ea112: CGameClient::OnInit() at src/game/client/gameclient.cpp:272 0x0000000140028a1d: CClient::Run() at src/engine/client/client.cpp:2853 0x000000014033a2bf: main at src/engine/client/client.cpp:4580 0x00000001400013b1: __tmainCRTStartup at src/mingw-w64-v10.0.0/mingw-w64-crt/crt/crtexe.c:323 0x00000001400014c6: WinMainCRTStartup at src/mingw-w64-v10.0.0/mingw-w64-crt/crt/crtexe.c:178 0x000000073e777344: ?? ??:0 0x000000073f5526b1: ?? ??:0
16:37
seems like one of your skins causes a segfault i dunno why, I also dunno what changed lately, @Robyt3 BUT, if you only have few custom skins, you could maybe send then
Avatar
I have exactly 3428 skin files...
kek 1
justatest 1
Avatar
uff
Avatar
binary search!
Avatar
Or do a bisect basically, move your skin files to a different folder, then keep adding half of the remaining skins
Avatar
after deleting duplicates(by name)
Avatar
Avatar
Robyt3
Or do a bisect basically, move your skin files to a different folder, then keep adding half of the remaining skins
so no idea what caused it?
16:39
I mean it was working before latest update
Avatar
I can take a closer look later, but if this is caused by a single skin then it would be very helpful to have it
16:40
Maybe it's just out of memory though?
Avatar
no skins work
Avatar
Avatar
Robyt3
Maybe it's just out of memory though?
Out of memory have crash handler, no?
Avatar
Avatar
Nooback
no skins work
Have you tried without any skins? Do you get the same crash log when you start without skins?
Avatar
Avatar
Nooback
no skins work
just said it
Avatar
Avatar
Mʎɹ シ
Out of memory have crash handler, no?
Not sure, but it's possible that the crash handler can't run due to out of memory either
Avatar
Avatar
Nooback
just said it
u can also compress the skins and upload them if u want
Avatar
I'm adding the skins rn, seems like no problems, I'm at Q now
Avatar
ok 😄
16:49
this may be the culprit
Avatar
it is one of the skins
Avatar
crashes when loading a Grayscale image
Avatar
it crashes from W to Z
16:52
in my skins
Avatar
it would also be fine if u send this subset
Avatar
one of the W skins
17:06
I'm lazy to go through those
17:06
but one of these causes the crash
Avatar
ty
17:07
"WhiteD"
Avatar
took me so long to take for real that .zip file is only 1/10 smaller than the folder
Avatar
Avatar
Nooback
took me so long to take for real that .zip file is only 1/10 smaller than the folder
PNGs are already very well compressed
17:08
and zip also isnt the best compressing format 😄
Avatar
Avatar
Jupstar ✪
"WhiteD"
^ this is the skin btw
Avatar
does someone has the invisible hook bug?
Avatar
Avatar
Cøke
does someone has the invisible hook bug?
i heard it before
17:09
maybe bcs stopper?
17:10
very hard to play like this
Avatar
i could swear i read this today
17:10
but cant find rn
Avatar
i had it last night
Avatar
Avatar
lolkildal
on last beta hook disappears some time, and always when hold under block
^
Avatar
Avatar
Jupstar ✪
^ this is the skin btw
you were right, also no problem rn since I have same skin, just with different name
Avatar
Avatar
Jupstar ✪
^
ok good
Avatar
@Robyt3 in case u want to debug is indeed greyscale
Avatar
Avatar
Cøke
Click to see attachment 🖼️
@deen map : flux
Avatar
@] @影 @! xlays_ @sceinders https://discord.com/channels/252358080522747904/757720336274948198/1175933063730053160 one of you has to test this, nobody from the dev team has a computer where it happens. Thanks 😉
Avatar
Avatar
Jupstar ✪
@Robyt3 in case u want to debug is indeed greyscale
Looks like this skin was previously considered unsupported and failed to load cleanly, now it crashes because either we don't handle greyscale correctly or 16 bit color depth
Avatar
Avatar
Robyt3
Looks like this skin was previously considered unsupported and failed to load cleanly, now it crashes because either we don't handle greyscale correctly or 16 bit color depth
he defs don't handle greyscale at all xd i think i wrote a converter once
17:39
to convert anything to RGBA
17:39
in graphics class
Avatar
Can you set libpng to convert to RGBA maybe? (edited)
Avatar
can't remember tbh 😄
17:41
png_set_gray_to_rgb
Avatar
The crash log is weird though, it crashes in free for me
Avatar
well thats not rgba tho xd
Avatar
png_set_expand() shall set transformation in png_ptr such that paletted images are expanded to RGB, grayscale images of bit-depth less than 8 are expanded to 8-bit images and tRNS chunks are expanded to alpha channels.
17:43
Not for this image with 16 bit depth though
Avatar
i could have thought i told libpng to only use 8bit depth
17:45
png_set_strip_16(pPNGStruct);
Avatar
LibPNGGetImageFormat returns IMAGE_FORMAT_RGBA for the greyscale image so we get random memory corruption because the size 4 is used instead of 2, as we simply don't handle greyscale (2 channels) right now
Avatar
Avatar
Robyt3
LibPNGGetImageFormat returns IMAGE_FORMAT_RGBA for the greyscale image so we get random memory corruption because the size 4 is used instead of 2, as we simply don't handle greyscale (2 channels) right now
mh was that changed?
18:51
there should have been this call LibPNGSetImageFormat(ImageFormat, ColorType);
Avatar
That doesn't seem to handle channels=2 either
18:52
The wrong color channel count was being used for loading images that use an indexed color palette, which was causing the loading to fail with the error "bytes in row incorrect". N...
Avatar
what even is the second channel for?
18:52
is this still greyscale?
Avatar
Greyscale + Alpha
18:53
libpng says there are two channels
Avatar
ah yeah
18:54
there is PNG_COLOR_TYPE_GRAY_ALPHA
18:55
if(ColorType == PNG_COLOR_TYPE_GRAY && BitDepth < 8) png_set_expand_gray_1_2_4_to_8(pPNGStruct);
18:55
oh no
18:55
that's only bit depth?
18:55
or component count 😄
Avatar
only if bit depth < 8 and channel = 1
Avatar
anyway, there must be some function to disable this xD
Avatar
I'll open the PR very soon
Avatar
smth like: png_set_gray_to_rgb
18:56
that API is really horrible looking over it now
18:56
the function names are all so random (edited)
Avatar
For now I'll just fix the crash but don't allow actually loading grey scale images in the client
Avatar
yeah
Avatar
Client doesn't allow loading 1 channel images either
18:57
And everything gets converted to RGBA anyway
18:58
Quiz: How many // ignore_convention comments are still in the code? (without checking ofc)
Avatar
289
Avatar
Teeworlds code maybe kek
Avatar
oh
18:59
so u want to say it's very low
18:59
5
18:59
xd
Avatar
pretty close
18:59
4
Avatar
4, you'll see in the PR
19:04
btw the WhiteD skin has an alpha channel but actually a completely white background color so it would look completely broken even if it could be loaded successfully
Avatar
the biggest problem was to allow unknown formats to be handled as RGBA. i should have made it more fail safe
19:08
"unknown" it a sense that it is not handled
Exported 126 message(s)