Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.tw/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2023-07-20 00:00:00Z and 2023-07-21 00:00:00Z
02:16
43c779e Remove mods who have are no longer in the ddnet discord - Vy0x2 58c15f1 Remove the seperate teams since its shared across all mods - Vy0x2 88698cf Merge pull request #263 from Vy0x2/patch-1 - murpii
Avatar
@Ryozuki whats team -1
Avatar
im not ryo so idk if i'm not picking up on some injoke but team -1 is not real
03:23
it underflows in the command (edited)
03:23
and in practice a team below 0 cannot exist
Avatar
i saw team -1 in ddstats
Avatar
the game handles teams internally with an array
03:30
which can't have negative indices
03:30
inherently
03:30
it might be placeholder or some dumb shit
Avatar
Avatar
cyberFighter
@Ryozuki whats team -1
It’s spectator mode
Avatar
e0976f3 A Killa2, A Killa4, A Killa5 - ddnet-maps
Avatar
Port of DDNet 9 to the Nintendo DS (kinda). Contribute to headshot2017/ddnet-nds development by creating an account on GitHub.
Avatar
ws-client BOT 2023-07-20 07:23:40Z
<Jupstar> nice xd what opengl does a NDS even support?
Avatar
nintendo ds? none
07:27
this looks like only chat lol
Avatar
ws-client BOT 2023-07-20 07:30:50Z
<Jupstar> with 3ds it could actually work with graphics
07:30
<Jupstar> i guess
Avatar
Avatar
ws-client
<Jupstar> nice xd what opengl does a NDS even support?
none, this is a console-only program (edited)
07:32
the NDS has 2D and 3D hardware, but the latter is nothing like opengl
07:33
even though libnds offers an opengl-like syntax for the 3D hardware
Avatar
ws-client BOT 2023-07-20 07:33:41Z
<Jupstar> NDS was really smth special :D
Avatar
ws-client BOT 2023-07-20 07:34:33Z
<Jupstar> cool :D
07:34
<Jupstar> WiFi controller
Avatar
dswifi 0.4.2
Avatar
can we get prediction on bullets/doors/grabbers/freeze things/blaster dudes
07:46
some things maybe hard but like, bullets and doors? how hard could that be?
07:46
i can be seen as inside a bullet but i brush way behind the back of where a bullet just was and i freeze
07:46
it's annoyinh
Avatar
ws-client BOT 2023-07-20 07:48:05Z
<Jupstar> go ahead
07:48
<Jupstar> xd
Avatar
im too cave man to do it
07:51
i just complain and hit rock with stick (edited)
Avatar

Checklist

  • [ ] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-ad...
Avatar

Checklist

  • [ ] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-ad...
Avatar
Avatar
cyberFighter
@Ryozuki whats team -1
i guess spectator ye, i dont change any data, i just show what master reports
08:23
altho i filter (connecting)
08:23
cuz they are annoying
08:35
i didnt really need a backend yet so its just frontend xd
08:35
AGPL-3 ofc
Avatar
ws-client BOT 2023-07-20 08:43:28Z
<Jupstar> was about to steal it, good that u choose AGPL
Avatar
u can steal it
08:43
provided u provide the source when u distribute the stolen code
08:43
isnt it great
08:44
it allows others to steal from ur steal
08:44
its epic
Avatar
ws-client BOT 2023-07-20 08:44:28Z
<Jupstar> 0% rust
08:44
<Jupstar> not worth to steal
Avatar
i know Sadge
08:44
but i havent needed a backend yet
08:44
as i said xD
08:44
the web itself queries the master and processes everything on the client
08:45
unless it does SSR
Avatar
ChillerDragon: How to debug the integration test when I just get this output: [*] launch server [*] launch client 1 Terminated Terminated [*] shutting down server [*] shutting down client1 [*] shutting down client2 Error: Process completed with exit code 143. Already made some more changes so valgrind/san log files are also printed to the CI, but it seems like the script terminates even sooner. Currently trying to get this branch to work: https://github.com/Robyt3/ddnet/tree/Graphics-Buffer-Refactoring @Jupstar ✪ Somehow integration test with valgrind fails without a useful error message after adding more assertions for graphics buffer allocation, so maybe we actually found some bug.
Avatar
ws-client BOT 2023-07-20 08:51:29Z
<Jupstar> @Robyt3 can u indicate where then i can take a look
08:52
<Jupstar> or what command
08:52
<Jupstar> with graphics buffer you mean the command buffer?
Avatar
Seems like launching the first client with valgrind should already fails, but then it should call the fail() function in the script to print results anyway
08:53
Yeah, I mean the command buffer. What the commit does: "When memory for a command or data in the command buffer cannot be allocated in CGraphics_Threaded::AddCmd and CGraphics_Threaded::AllocCommandBufferData the command buffer is cleared so it should always be possible to allocated memory successfully on the second try. Therefore assertions are added and the return values and inconsistent checks of the functions are removed."
Avatar
ws-client BOT 2023-07-20 08:55:27Z
<Jupstar> sounds reasonable
08:55
<Jupstar> and where does it assert in your tests?
Avatar
I wish I knew that
08:56
For some reason the log doesn't say more
08:56
It should print the contents of a bunch of files, but it just says "Terminated"
Avatar
ee0f3b4 Update simplified_chinese.txt - By622 2e39c23 Merge pull request #6896 from By622/patch-2 - def-
Avatar
ws-client BOT 2023-07-20 08:57:17Z
<Jupstar> doesnt our dbg_assert print smth to stdout first?
08:59
<Jupstar> yeah weird, can't you run valgrind in your VM? is probably easier than using CI for that
Avatar
We redirect stdout/stderr to files. Maybe somethings goes wrong between redirecting and printing, I'll try to just patch that out (edited)
Avatar
@heinrich5991 https://ddstats.org/
View DDNet / Teeworlds Statistics.
09:08
i think colors are better now
Avatar
yes, defintely better now 🙂
09:21
why pagination though :p
Avatar
@Jupstar ✪ Locally it also crashes but there is only one valgrind warning in the client log: ==7110== Warning: set address range perms: large range [0x59c87040, 0x159c8703f) (undefined)
09:22
Logs in the CI also has this warning before the termination
Avatar
ws-client BOT 2023-07-20 09:24:55Z
<Jupstar> @Robyt3 what i dont get is tho: the stuff that uses command buffers are single threaded and probably not related to SDL2 events, why should it only crash under valgrind :D
Avatar
@Ryozuki nit: the unit for kilobytes is "kB", "KB" or "KiB", not "kb" (edited)
Avatar
i see xd
09:27
ill edit later
Avatar
Avatar
heinrich5991
why pagination though :p
perfomance on mobile
09:28
i also plan on adding filters
Avatar
ws-client BOT 2023-07-20 09:28:17Z
<Jupstar> add virtual table
09:28
<Jupstar> then u dont need pages
Avatar
I don't understand why valgrind terminates, it's only a warning and there is no warning-as-errors for valgrind as far as I can tell
Avatar
ws-client BOT 2023-07-20 09:29:01Z
<Jupstar> how do we run valgrind?
Avatar
Avatar
ws-client
<Jupstar> add virtual table
good idea virtual tables
Avatar
valgrind --tool=memcheck --gen-suppressions=all --suppressions=../memcheck.supp --track-origins=yes
Avatar
ws-client BOT 2023-07-20 09:30:12Z
<Jupstar> mh my valgrind script at home looks different, but can't tell rn. But yeah should not just crash, u can make valgrind write to a file
Avatar
ws-client BOT 2023-07-20 09:31:20Z
<Jupstar> lmao searching valgrind on discord is not very successful xD all prs include that word
Avatar
looks like they use smth else?
09:33
whats tools/clippy
Avatar
Avatar
Jupstar ✪
valgrind --show-reachable=yes --show-possibly-lost=yes --error-limit=no --log-fd=2 --track-fds=yes --trace-children=yes --redzone-size=256 --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose --log-file=valgrind-out.txt --fair-sched=yes ./DDNet
@Robyt3
Avatar
ah u meant lints
09:34
not clippy itself xd
Avatar
you don't need to disable clippy, you could just not rnu it ^^
09:34
if you don't like it at all
09:34
(many of the suggestions on Jupstar's repo were good, not sure if I said that already)
Avatar
wondering about useless transmute
Avatar
ws-client BOT 2023-07-20 09:35:49Z
<Jupstar> which ones @heinrich5991 i found them rather useless
09:36
<Jupstar> well the unwrap_or_else and string stuff maybe
Avatar
Avatar
Ryozuki
wondering about useless transmute
After rust-lang/rust#69189, the following check returns true for types, where only the lifetimes differ: &'a T == &'b T rust-clippy/clippy_lints/src/transmute.rs Lines 303 to 307 in...
Avatar
ws-client BOT 2023-07-20 09:36:44Z
<Jupstar> for bit more perf xd
Avatar
perhaps due to these false-positives @Ryozuki
Avatar
i mean a lint is useless if u dont give it value i guess
Avatar
ws-client BOT 2023-07-20 09:37:51Z
<Jupstar> but matches! is defs smth i would not use for a single matche
09:37
<Jupstar> match
09:38
<Jupstar> that looks so ugly xD
Avatar
yeah i guess, works better gor nested matches
09:38
for
Avatar
link to the PR again?
Avatar
unwrap or else is defs a perf improvement
Avatar
ws-client BOT 2023-07-20 09:39:14Z
<Jupstar> depends
09:39
<Jupstar> if the compiler is too stupid to see it yes
09:39
<Jupstar> i'd mainly use it when the or path is a panic
Avatar
yes, that one is okay. taking &str instead of &String is also good. using '\n' instead of "\n" is also good in replace. I personally like for _ in container.iter()for _ in &container. removing clone() is good
09:41
for the rest, leaving it as-is would be fine for me
Avatar
and the const fn
Avatar
ws-client BOT 2023-07-20 09:42:41Z
<Jupstar> i mean most can't hurt so idc
09:43
<Jupstar> but stuff like if let ... vs .is_some or simiar are always annoying
Avatar
@heinrich5991 u dont agree with using fromstr trait?
Avatar
not needed for private code, for public code it adds API guarantees so shouldn't be warned about
09:43
(the const fn)
Avatar
Avatar
Ryozuki
@heinrich5991 u dont agree with using fromstr trait?
where do I see that?
Avatar
the same pr
09:43
he impl to string without the trait
Avatar
ws-client BOT 2023-07-20 09:44:04Z
<Jupstar> impl ToString for SkinToUploadDB {
09:44
<Jupstar> this?
Avatar
ws-client BOT 2023-07-20 09:44:15Z
<Jupstar> yeah clever that it saw it
09:44
<Jupstar> if this is always good dunno
Avatar
also i always impl copy for enums
09:44
and whenever i can rlt
09:44
rly
Avatar
Avatar
Ryozuki
he impl to string without the trait
you said fromstr 😄
09:44
couldn't find it
Avatar
ye my bad
09:44
xd
Avatar
implementing ToString is always wrong, no?
09:44
you should implement Display instead
Avatar
hmm idk actually
Avatar
ws-client BOT 2023-07-20 09:45:08Z
<Jupstar> @Ryozuki for such stuff its indeed nice to have a tool. bcs that's pure tryhard to me :D
Avatar
then you can also use it in format strings
09:45
and you get ToString for free
Avatar
ws-client BOT 2023-07-20 09:45:38Z
<Jupstar> @Ryozuki when fix pr
Avatar
the lint just said tostring tho
09:45
i didnt think about display
09:45
i rarely impl it xd
Avatar
I've never implemented ToString, but often Display
09:46
what talk about
Avatar
https://doc.rust-lang.org/std/string/trait.ToString.html
This trait is automatically implemented for any type which implements the Display trait. As such, ToString shouldn’t be implemented directly: Display should be implemented instead, and you get the ToString implementation for free.
A trait for converting a value to a String.
Avatar
ye makes sense
Avatar
ws-client BOT 2023-07-20 09:47:02Z
<Jupstar> @heinrich5991 bug report to clippy
09:47
<Jupstar> xd
Avatar
ill keep in mind
Avatar
ws-client BOT 2023-07-20 09:48:00Z
<Jupstar> @Ryozuki do u run clippy at save?
09:48
<Jupstar> i really would need it to be conviced by it. i hate when i have to run external tools by hand
09:48
<Jupstar> just to find mostly useless fixes
Avatar
i changed vscode to use clippy ye
09:49
its a settings
Avatar
ws-client BOT 2023-07-20 09:49:18Z
<Jupstar> ok nice
Avatar
just change check to clippy
Avatar
ws-client BOT 2023-07-20 09:49:50Z
<Jupstar> should try it soon™
Avatar
but default clippy doesnt enable all lints btw
Avatar
ws-client BOT 2023-07-20 09:50:01Z
<Jupstar> when i am finally motivated to fix unused warnings xD
09:50
<Jupstar> i use urs except the documentation one as test
09:50
<Jupstar> and disable the ones i dislike
Avatar
Avatar
Ryozuki
but default clippy doesnt enable all lints btw
because some have false-positives ^^
Avatar
i disable type complexity and too many args
09:51
rust types just tend to be complex often xd
Avatar
ryo vscoder?
Avatar
ws-client BOT 2023-07-20 09:51:48Z
<Jupstar> when he is alone and nobody watches he uses vscode
09:51
but the internet sees emacs
Avatar
u got me
09:52
nah but i use vim sometimes
Avatar
im guipilled
Avatar
windowspilled
Avatar
In 20 years I switch to lapce
09:53
When it's finally stable
Avatar
Same with Wayland xdd
Avatar
honestly vscode is rlt good
09:53
there werent that good editors before
09:53
atom was a ram hog
Avatar
yea nothing universal at least
Avatar
LSP was a game changer
Avatar
Lapce is blazingly fast and that convinces me. But it has no debugger support and I'm no terminal tryharder
Avatar
whenever someone in this chat says blazingly fast i take it with extra salt
Avatar
it rly is fast
09:56
lapce is like vscode but no ks
09:56
js
09:56
its all rust
Avatar
ws-client BOT 2023-07-20 09:56:21Z
<Jupstar> yeah and from what i read they embedd plugins as wasm modules into the editor
Avatar
just compsre startup time
Avatar
ws-client BOT 2023-07-20 09:56:36Z
<Jupstar> so they can maybe make the API a bit slimmer
Avatar
the ui needs improvement tho
Avatar
ws-client BOT 2023-07-20 09:57:31Z
<Jupstar> they apparently changed the editor recently
09:57
<Jupstar> to their own
Avatar
never heard of lapce
09:57
is it some undoubtedly epic rust thing
Avatar
ws-client BOT 2023-07-20 09:58:23Z
<Jupstar> when i tested it a month ago, what surprised me how fast it could determine the phantom code (e.g. type definitions : i32) compared to vscode
09:58
<Jupstar> was basically instant while writing
Avatar
what is it
Avatar
ws-client BOT 2023-07-20 09:58:45Z
Lightning-fast and Powerful Code Editor written in Rust - GitHub - lapce/lapce: Lightning-fast and Powerful Code Editor written in Rust
09:58
<Jupstar> its vscode in rust
Avatar
oh awesome
Avatar
Avatar
Jupstar ✪
@Robyt3
Even that didn't give any more information before the crash :/ The last line in the log is most likely unrelated warning
Avatar
custom ui >_>
10:00
druid needs adoption if it's gonna be any good... maybe this predates it tho
Avatar
Avatar
Robyt3
Even that didn't give any more information before the crash :/ The last line in the log is most likely unrelated warning
Wow. Did u find some valgrind bug lmao
10:01
It sounds like their VM is crashing
Avatar
pretty neat. certainly looks really.... something... at high DPI
10:03
and the custom window is a big red flag
10:03
use a native window & request custom decorations
Avatar
ws-client BOT 2023-07-20 10:03:43Z
<Jupstar> windows problems
Avatar
ws-client BOT 2023-07-20 10:03:59Z
<Jupstar> bcs for me it works
10:04
<Jupstar> xd
Avatar
that's using your brain right there
Avatar
ws-client BOT 2023-07-20 10:04:34Z
<Jupstar> also nobody said that thing is stable lmao
Avatar
ye it needs lot of work
10:06
i wanna use this when it's awesome
10:08
this is it w/o custom title bar
10:08
i hope they know they can do better than that
Avatar
ws-client BOT 2023-07-20 10:09:21Z
<Jupstar> i hope you join their dev team, that gives me an even better editor ;)
Avatar
i wish but idk about the rusts
Avatar
ws-client BOT 2023-07-20 10:09:47Z
<Jupstar> its ez af, starting is the hardest
Avatar
@Ryozuki did you know most distributions of vscode aren't open-source?
Avatar
the arch linux distribution is though
Avatar
i know about vscodium
Avatar
are you using a closed-source variant? :p
Avatar
sadly im using the original ye
Avatar
ws-client BOT 2023-07-20 10:11:17Z
<Jupstar> i'm using codium
Avatar
i used to have problems woth the extension market thing
10:11
and i forgot to change back
Avatar
ws-client BOT 2023-07-20 10:11:53Z
<Jupstar> to me a bigger problem is that extensions are not sandboxed
Avatar
I don't like that people are using proprietrary editors again
Avatar
does the acc system work on vscodium? i also remember hearing it was several versions behind
Avatar
ws-client BOT 2023-07-20 10:12:14Z
<Jupstar> why do i want to log into my IDE xd
troll 1
Avatar
sync settings
10:12
it's awesome for my laptop
Avatar
ws-client BOT 2023-07-20 10:12:48Z
<Jupstar> mh ok, i try to not change any settings and instead use workspaces per project
Avatar
ws-client BOT 2023-07-20 10:13:33Z
<Jupstar> u should try ddnet's vscode workspace xd i never tried it under windows
10:13
<Jupstar> i wonder if it even works
Avatar
yeah workspaces are kind of a joke
10:13
i am using real vscodes
10:13
smells like zaza at 4:13 am
10:13
neighbors
Avatar
ws-client BOT 2023-07-20 10:14:08Z
DDraceNetwork, a free cooperative platformer game. Contribute to ddnet/ddnet development by creating an account on GitHub.
10:14
<Jupstar> the requirement list is long xD
10:14
<Jupstar> the workspace directly gives u targets to build with ASAN etc.
10:15
<Jupstar> so it's actually quite nice
Avatar
neat. i never use vscode for the cpp
10:15
it doesn't work with my toolchain. i might be able to make it work but qt creator does it so well that i would never want to
Avatar
ws-client BOT 2023-07-20 10:15:57Z
<Jupstar> do what suits you best ;)
Avatar
Valgrind segfaults so hard that vgdb can't catch it dying feelsbadman
10:16
ouch
Avatar
ws-client BOT 2023-07-20 10:17:11Z
<Jupstar> looks for bug haunts before reporting xdd maybe redhat has some open
10:17
<Jupstar> look*
Avatar
haunts?
Avatar
ws-client BOT 2023-07-20 10:18:02Z
<Jupstar> bounties
10:19
like the mediocre ketchup
Avatar
chillerdragon BOT 2023-07-20 10:23:21Z
Yeah debugging integration tests is a big pain. I can not give you any nice trix from ma phone. I barley even remember how the whole thing works. If you still haven’t figured it out when I get home I can have a look :) (@Robyt3)
ChillerDragon: How to debug the integration test when I just get this output: [*] launch server [*] launch client 1 Terminated Terminated [*] shutting down server [*] shutting down client1 [*] shutting down client2 Error: Process completed with exit code 143. Already made some more changes so valgrind/san log files are also printed to the CI, but it seems like the script terminates even sooner. Currently trying to get this branch to work: https://github.com/Robyt3/ddnet/tree/Graphics-Buffer-Refactoring @Jupstar ✪ Somehow integration test with valgrind fails without a useful error message after adding more assertions for graphics buffer allocation, so maybe we actually found some bug.
10:23
Is it in the CI only?
Avatar
Also crashes in my Ubuntu VM
10:24
But only with Valgrind
Avatar
@Robyt3 after which changes?
Avatar
have you tried that the previous commit works?
Avatar
No, but good idea, the CI is running to test if it's exactly this commit: https://github.com/Robyt3/ddnet/tree/Graphics-Buffer-Refactoring-2
10:36
<Jupstar> i remember drama with heinrich xDD
Avatar
@Robyt3 do you have any suggestions on how to remove the code duplication of the smooth zooming code from https://github.com/ddnet/ddnet/pull/6885 ? Making it its own class does not really work since some functions (ZoomMouseTarget) are quite different and need a lot of members of CEditor (edited)
Avatar
is size_t the right type for the width of a texture? why is it a different type depending on the cpu architecture? maybe uint32_t would fit better?
Avatar
ws-client BOT 2023-07-20 10:38:32Z
<Jupstar> well so or so, yes at least an unsigned type. however u32 has a limit of 4GB
10:38
<Jupstar> GPUs indeed support more
Avatar
you want to be able to load textures with widths larger than 4 billion pixels?
10:39
that doesn't make sense to me
Avatar
ws-client BOT 2023-07-20 10:39:40Z
<Jupstar> i want to write software that follows a certain logic
10:39
<Jupstar> does std::vector need size_t?
10:40
<Jupstar> do you want to allocate memory bigger than 4gb in ddnet?
Avatar
yes. because it's a generic array that should support allocations larger than 4GB on 64 bit systems
Avatar
ws-client BOT 2023-07-20 10:40:40Z
<Jupstar> then i say the same about GPU textures
Avatar
I don't see why it's beneficial to support different widths on 32 bit vs 64 bit systems
10:41
I see why it's useful to support different array lengths on 32 bit vs 64 bit
Avatar
ws-client BOT 2023-07-20 10:41:30Z
<Jupstar> but when u run through a texture u dont have a width of u32
10:41
<Jupstar> u have an index of u32
Avatar
Avatar
marmare_314
@Robyt3 do you have any suggestions on how to remove the code duplication of the smooth zooming code from https://github.com/ddnet/ddnet/pull/6885 ? Making it its own class does not really work since some functions (ZoomMouseTarget) are quite different and need a lot of members of CEditor (edited)
You could add a struct that contains all the smooth zoom variables and logic for one axis and then use two objects of those structs for the X and Y axis. Your struct can have a pointer to CEditor so it can use the shared editor functions as well (edited)
Avatar
Avatar
ws-client
<Jupstar> u have an index of u32
I don't understand what you mean by this
Avatar
ws-client BOT 2023-07-20 10:43:15Z
<Jupstar> u do width * height
Avatar
ah
10:43
so we're getting bitten by C's implicit conversions
10:43
I see
10:44
yea, if you want to account for all calculations that you can do with width and height, size_t makes sense
10:45
still a bit weird to me to use size_t for e.g. SubOffsetX but I guess it's okay
Avatar
ws-client BOT 2023-07-20 10:45:53Z
<Jupstar> well these kind of offsets are always look from (0, 0)
10:46
<Jupstar> so always positive
Avatar
yes, unsigned makes sense to me
10:46
but I like fixed-width integers better
10:46
because they don't depend on the CPU architecture you're compiling for
Avatar
Looks like the commit I initially expected is not causing the issue
Avatar
ws-client BOT 2023-07-20 10:47:41Z
<Jupstar> yes, that makes sense, i'd always use them for stuff where i dont directly interact with raw memory, i guess
10:50
<Jupstar> @heinrich5991 do you dislike auto?
Avatar
for some reason I like it less in C++ than in rust
Avatar
ws-client BOT 2023-07-20 10:51:42Z
<Jupstar> ok
Avatar
perhaps due to the automatic type conversions in C++? idk
Avatar
ws-client BOT 2023-07-20 10:51:52Z
<Jupstar> was about to say that i feel like in rust i type types more rarely
10:52
<Jupstar> we could enable a compiler flag to disallow most conversions
10:52
<Jupstar> but is probs lot of work :D
10:52
<Jupstar> (implicit ones)
Avatar
Wanna place your bets? Will it be the size_t change or the other changes causing Valgrind to crash?
10:54
<Jupstar> this one
10:54
<Jupstar> xd
10:55
<Jupstar> to me none of the changes make sense to me to cause crashes :D
Avatar
Avatar
Robyt3
Wanna place your bets? Will it be the size_t change or the other changes causing Valgrind to crash?
let's do the first one, for fun
Avatar
ws-client BOT 2023-07-20 10:58:48Z
<Jupstar> have u ever tried the changes without valgrind? XD
Avatar
yes, the both in the CI and on Ubuntu the integration test worked without Valgrind
10:59
final test is running now, we should have the answer shortly
Avatar
When starting the DDNet client in a Windows VM, even opening the f1 console is hard, because it somehow repeats the key very often. Typing in there is also not really possible. I typed "gfx", pressing each of the three keys once and in order, and the result was: !"gfxgfxgfxgf"
Avatar
ws-client BOT 2023-07-20 10:59:47Z
<Jupstar> then i'll claim we have a negative width or height somewhere and valgrind tries to allocates huge chunks of memory now
10:59
<Jupstar> (size_t)-1
11:00
<Jupstar> then it simply says nah
Avatar
Avatar
ws-client
<Jupstar> then i'll claim we have a negative width or height somewhere and valgrind tries to allocates huge chunks of memory now
that's my explanation also
11:00
Looks like it's confirmed, the size_t change causes the crash
11:01
master with Valgrind works, with just the size_t commit it doesn't work
11:02
Guess I'll add asserts for negative width and height everywhere to catch this...
Avatar
ws-client BOT 2023-07-20 11:03:17Z
<Jupstar> is it only at loading?
11:03
<Jupstar> mh ok menu background map... u could disable that
Avatar
I guess that might be a point in favor of signed integer types in C/C++
Avatar
ws-client BOT 2023-07-20 11:03:59Z
<Jupstar> then u can maybe exclude all buffers
11:04
<Jupstar> a point in favor?
11:04
<Jupstar> that it causes undefined behavior?
Avatar
no, signed→unsigned is not UB
11:04
that this implicit conversion creates integers that the programmer didn't intend to place there
Avatar
ws-client BOT 2023-07-20 11:04:56Z
<Jupstar> yeah but u are clearly not supposed to pass negative values to the functions xD
11:05
<Jupstar> to me this is one of the reasons i dislike google's weird developer guide
11:06
roby such a potty mouth
Avatar
ws-client BOT 2023-07-20 11:06:19Z
<Jupstar> xD
Avatar
what do u normally do about this? surely this isn't the first bot wave
Avatar
does C has isize
11:06
for pointer offsets
Avatar
ws-client BOT 2023-07-20 11:06:44Z
<Jupstar> it does
11:06
<Jupstar> at least cpp
11:07
<Jupstar> ssize_t
11:07
<Jupstar> i think
Avatar
Avatar
Ewan
what do u normally do about this? surely this isn't the first bot wave
first bot wave
Avatar
ws-client BOT 2023-07-20 11:08:08Z
<Jupstar> but i think u are supposed to use ptrdiff_t for ptr calc xd
Avatar
ws-client BOT 2023-07-20 11:20:25Z
<Jupstar> @Robyt3 ping me when u found smth. i'm really interested what texture ever writes negative values here... the only thing that i could theoretically imagine is the font textures :D
11:20
<Jupstar> maybe the entity numbers
11:20
<Jupstar> but anything else should be handled by the png loader already
Avatar
@Jupstar ✪ in CopyTextureFromTextureBufferSub: SrcSubOffsetX is negative or zero (edited)
Avatar
ws-client BOT 2023-07-20 11:25:17Z
<Jupstar> who is the caller?
Avatar
in CopyTextureFromTextureBufferSub*
11:26
Did get a backtrace yet, guess it just run the headless client with gdb
Avatar
ws-client BOT 2023-07-20 11:27:03Z
<Jupstar> u can also just run the client normally
11:27
<Jupstar> the assert will happen without valgrind
11:27
<Jupstar> so some asset wants to read negative data
11:27
<Jupstar> interesting
11:27
<Jupstar> some sprite to be precise
Avatar
It's from skin loading
Avatar
ws-client BOT 2023-07-20 11:28:09Z
<Jupstar> xdd
11:28
<Jupstar> who would have thought
Avatar
Looks like a false alarm though
11:29
The assertions was wrong, offset is zero which is allowed
Avatar
ws-client BOT 2023-07-20 11:29:44Z
<Jupstar> ah ok
Avatar
wow weird i am getting a graphics related segfault when changing skin loading stuff
11:29
it's kind of a kink in the hose
11:29
of getting this cool async skin thing working
Avatar
ws-client BOT 2023-07-20 11:30:12Z
<Jupstar> did u use mutex?
11:30
i just meant
11:30
maybe similar to what roby is going thru rn
Avatar
ws-client BOT 2023-07-20 11:31:20Z
<Jupstar> ah, sounded like you use the graphics class from a different thread
11:32
<Jupstar> just watch out to not use graphics functions that use a member state
11:32
<Jupstar> maybe u can make all functions static that you use
😃 1
11:32
<Jupstar> to be sure no member variable was used
Avatar
nevermind, it's actually not even the size_t change according to the CI santatrollet
Avatar
ws-client BOT 2023-07-20 11:34:08Z
<Jupstar> i tell ya its the name string check xDD
11:34
<Jupstar> strings always evil 😂
Avatar
Avatar
Ewan
Click to see attachment 🖼️
robyt3 doesnt do intercourse, he looks at you and finds some random thing about your body that'd odd and then tries to fix it LOL
11:36
irl bug fixer
11:36
confirm ?
Avatar
strings are not evil in rust
Avatar
8c2d224 Update traditional_chinese.txt - By622 19e36b6 Update traditional_chinese.txt - By622 69b5c62 Merge pull request #6895 from By622/patch-1 - Robyt3
Avatar
Avatar
ws-client
<Jupstar> i tell ya its the name string check xDD
It's the string length check... nouis
Avatar
Avatar
Ryozuki
Click to see attachment 🖼️
Me
12:24
I've started to write intermediate logic steps aswell to help with this
Avatar
Avatar
Ryozuki
Click to see attachment 🖼️
Oh my god
12:31
When I do this I try so hard to keep track of what’s going on that I can’t properly form a sentence
12:31
Maybe just make a noise in response
12:31
The focus 🧠
12:33
actually writing UML when I’m spitballing helps too but usually I don’t expect to need it
12:33
then i need it
12:33
the online editors are handy
Avatar
my uml is rust code
12:34
joke joke
12:34
i rarely do uml
Avatar
Maybe i print out this comic and tap it when someone asks my attention while im braining
12:36
i can’t i think that is “sperg behavior”
Avatar
ws-client BOT 2023-07-20 12:50:54Z
<Jupstar> @Robyt3 LOL did u find out why exactly?
12:51
<Jupstar> do we load a lol .png file?
12:51
<Jupstar> doesnt the check need to be <= 3 anyway?
Avatar
Avatar
Ewan
Click to see attachment 🖼️
clickbait for accounts system poggers2
Avatar
it’s real and it’s everywhere and it’s often
Avatar
@Jupstar ✪ image_null = Image("null", "") image_particles = Image("particles", "particles.png") image_game = Image("game", "game.png") ...
13:01
For whatever reason we have image_null that has an empty filename
13:01
It's used in set_tee = SpriteSet("tee", image_null, 8, 4)
Avatar
ws-client BOT 2023-07-20 13:02:38Z
<Jupstar> very huge troll
13:03
<Jupstar> and funny that this can kill valgrind xD
Avatar
ChillerDragon BOT 2023-07-20 16:56:49Z
jopsti bringing da trol to serious githubbing
Avatar
chiller bringing da trol to serious bots
Avatar
ChillerDragon BOT 2023-07-20 16:58:21Z
wot bots
Avatar
many xd
Avatar
ChillerDragon BOT 2023-07-20 16:58:27Z
no proof
Avatar
chillerdragon: when fix mouse select
Avatar
ChillerDragon BOT 2023-07-20 16:58:43Z
jopsti
Avatar
chillerdragon: when fix teams
Avatar
ChillerDragon BOT 2023-07-20 16:58:45Z
go bottom left
16:58
click cogwheel
Avatar
lol its a setting
Avatar
ChillerDragon BOT 2023-07-20 16:58:55Z
deactivate emoji_picker
Avatar
to fix selection? XD
Avatar
ChillerDragon BOT 2023-07-20 16:58:59Z
reload page
Avatar
WTF XDD
Avatar
ChillerDragon BOT 2023-07-20 16:59:01Z
xd
16:59
yes
16:59
good "fix"
Avatar
the emoji picker breaks mouse selection
16:59
epic
Avatar
ChillerDragon BOT 2023-07-20 16:59:13Z
yes
16:59
nobodi oose it ani way
Avatar
i love this page
Avatar
ChillerDragon BOT 2023-07-20 16:59:25Z
kill it with fire
Avatar
burn the fire
Avatar
ChillerDragon BOT 2023-07-20 16:59:39Z
🔥
Avatar
ws-client BOT 2023-07-20 17:00:08Z
<ChillerDragon> did u try?
17:00
<ChillerDragon> selecting works soo good
Avatar
omg selecting text in a browser works good now
17:00
omg such an epic feature
Avatar
ws-client BOT 2023-07-20 17:00:37Z
<ChillerDragon> 🚀
17:01
<ChillerDragon> blazingly customizable chat app
Avatar
epic
17:02
can it also disable x11?
Avatar
ChillerDragon BOT 2023-07-20 17:07:13Z
axaxaxax
Avatar
only elon musk fans use 🚀 unironically
Avatar
and ppl that want to visit ✪ Jup-Star ✪
Avatar
what is that
Avatar
a star 🌟
17:21
called Jup
Avatar
thats crazy
Avatar
ChillerDragon BOT 2023-07-20 17:38:19Z
@Davide still can not join ger10
17:40
👍 👁 and ✔ are the only emotes i use unironically
17:40
and ofc 🙈
Avatar
Avatar
ChillerDragon
wot bots
xd sure chillerbot.png is lyfe
Avatar
ws-client BOT 2023-07-20 17:50:06Z
<ChillerDragon> justatest
Avatar

Checklist

  • [X] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addres...
Avatar
1c02377 Init variables used by goto_switch and goto_tele - ChillerDragon e7d27ec Merge pull request #6898 from ChillerDragon/pr_init_goto_vars - Robyt3
Avatar
Dynamic Flowmap demo at 60fps in viewport. I've added bubbles to the rougher water. No simulations. No geometry nodes. Just a shader. #b3d #blender #blender3d #blendercommunity #blenderEevee #3dart #cgi #3dcgi #procedural
Likes
2755
Retweets
323
Avatar
lazy hypercube #b3d #geometrynodes
Likes
300
19:24
blender twitter xd
19:25
ジオメトリーノード紹介! 【Wrap Master - オブジェクトに巻き付け】 https://t.co/ikbFv6jJZd 「包帯」と「ロープ」、「布地」を巻き付けることができます。 多くの項目でしっかり自分好みに調整することが可能です! #Blender初心者 #blender3d #geometrynode
Likes
490
19:25
procedural stuff is amazing
Avatar
21bbc8b Improve filename length check for images - Robyt3 b432feb Add assertion in CGraphics_Threaded::LoadTextureRawSub - Robyt3 3134d42 Extract CGraphics_Threaded::FreeTextureIndex function - Robyt3 a96242b Extract CGraphics_Threaded::FindFreeTextureIndex function - Robyt3 78e2306 Add assertions for graphics command buffer allocation - Robyt3 58927cd Use size_t more in engine graphics - Robyt3 5c00dd3 Merge pull request #6899 from Robyt3/Graphics-Buffer-Refactoring - def-
21:43
Looks like someone's busy coding on GitHub! 😄👨💻
Avatar
Looks like someone's busy coding on GitHub! 😄👨💻
Avatar
Avatar
Ewan
Click to see attachment 🖼️
i would say smth to clyde but i kind of like not being muted
Avatar
i don't think u can in this server
22:13
has to be enabled by admins
Exported 494 message(s)