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 2020-10-23 00:00:00Z and 2020-10-24 00:00:00Z
Avatar
is the new chat at least disableable?
Avatar
Дядя Женя 2020-10-23 00:52:47Z
I've fixed margin and backgrounds already, waiting for merge
Avatar
126b3ca M Roaming Ruins, M Multeasymap, M Sunny Side Up - ddnet-maps
Avatar
6006c9d smooth camera - TsFreddie 6332f90 Merge #3115 - bors[bot]
13:36
be23e92 Remove one particle component - Jupeyy 56cc8ae Merge #3175 - bors[bot]
Avatar
6414d8d Fix float loops - Jupeyy f74c3e5 Merge #3176 - bors[bot]
Avatar
@Learath2 @Deleted User We have someone who has the hang at specific part of map:@noby Can you guys help with debugging?
Avatar
how can i help
Avatar
Run it with debugger in Debug build until it hangs, then have one of them look into it remotely
Avatar
i dont wanna give ppl access to my pc
14:02
i can try to run it with debuger in a bit
Avatar
i had the hang btw i dont think it was noby
Avatar
i havent joined that server
Avatar
@louis did u downgrade you driver again btw?
Avatar
oh I mixed up your names because htey have same color and length 😄
Avatar
and both from usa
Avatar
i mean i upgraded it from broken vers then the new one was also broken so i downgraded to one in the middle
Avatar
so all 3 broken
14:05
nice
Avatar
btw idk how to load a debug or smth
Avatar
so i dont have to run wit debugger?
Avatar
i have no idea but on vs i ran with debugx64 or smth
14:05
and it says this
Avatar
@noby no 😄 except u get a hang too, which i doubt 😛
Avatar
[2020-10-23 09:03:47][demo_recorder]: Recording to 'demos/auto/race/Multeasymap_tmp_30148.demo' The thread 0x4fe4 has exited with code 0 (0x0). [2020-10-23 09:04:07][demo_recorder]: Stopped recording [2020-10-23 09:04:18][client]: disconnecting. reason='unknown' [2020-10-23 09:04:18][demo_recorder]: Stopped recording [2020-10-23 09:04:18][demo_recorder]: Stopped recording The thread 0x6448 has exited with code 0 (0x0). The thread 0x4454 has exited with code 0 (0x0). avcore\audiocore\client\audioclient\audioclientcore.cpp(1907)\AUDIOSES.DLL!00007FFE739610EF: (caller: 000000006C81FF21) ReturnHr(1) tid(6908) 80070057 The parameter is incorrect. 'DDNet.exe' (Win32): Unloaded 'C:\Windows\System32\avrt.dll' The thread 0x695c has exited with code 0 (0x0). The thread 0x5acc has exited with code 0 (0x0). The thread 0x6050 has exited with code 0 (0x0). The thread 0x74a0 has exited with code 0 (0x0). The thread 0x4950 has exited with code 0 (0x0). The thread 0xbec has exited with code 0 (0x0). The thread 0x23a0 has exited with code 0 (0x0). The thread 0x1918 has exited with code 0 (0x0). The thread 0x77b0 has exited with code 0 (0x0). The thread 0x5108 has exited with code 0 (0x0). The thread 0x58f0 has exited with code 0 (0x0). The program '[30148] DDNet.exe' has exited with code 0 (0x0).
14:06
idk if im doing it ri ght
Avatar
i proably wont since i have old client but i could try anyway after this round if itd help
Avatar
i honsetly doubt anyone except intel and windows will have this bug
Avatar
oh i dont have windows
Avatar
even if the bug is inside the audioclientcore, it might still be related to intel
Avatar
but do have intel processor
Avatar
some of the devs have intel too, but on linux
Avatar
i have osx
Avatar
i know 😄
Avatar
nvm its not with thata audio thing
14:09
if i just launch client and exit it shows up too
Avatar
oh ok
14:09
well if you really want to debug, you need a debugger and a debug build, but i already tried that with that other person who had the same bug
14:09
only a driver update fixed the hang
Avatar
i mean i can constantly reproduce it as long as that server is up but idk how to debug
Avatar
@Deleted User would your gfx_debug help to find issues?
Avatar
they can try, maybe intel reports something bad
14:10
@louis do you know how to open a client with a .cfg?
14:11
just put the wanted settings in cfg? but idk how to run it
Avatar
you need to create a link/shortcut whatever and put -f test.cfg behind the path in the properties of the shortcut
14:12
or shift rghtlick open power shell here
14:12
and then ./DDNet.exe -f test.cfg
Avatar
ok ill try
Avatar
inside test.cfg put dbg_gfx 1
Avatar
btw i can only reproduce on the server thats about to restart soon so
Avatar
it will probably always work on that map
Avatar
yea it might be
Avatar
Or ./DDNet.exe “dbg_gfx 1”
Avatar
what server isit
14:15
ill try it just in case
Avatar
good to know @Learath2 😄
Avatar
ok i did that
14:16
./DDNet.exe “dbg_gfx 1”
14:16
now what
14:16
idek if it works
Avatar
in the console it should show enabled opengl debug
14:16
[gfx]: Enabled OpenGL debug mode
Avatar
@louis when does it hang
14:17
i joined the server and it seems normal
Avatar
beginning of maap when i try to do the filter
Avatar
ok i made it past hte start line
14:17
ill try with new client
14:17
the ./DDNet.exe “dbg_gfx 1” didnt seem to work for me
14:17
do i put a .cfg file with thaat line in the saame folder as ddnet.exe
Avatar
theoretically its also possible intel doesnt support that extension xd
Avatar
i passed start line with new client too on the server
14:18
:X
14:18
eh ig i cant help then
Avatar
@louis are you using opengl 3.0 or 3.3?
14:18
im using opengl tho
Avatar
you checked opengl 3.3?
Avatar
oh not in the vs build nvm
14:20
ok now i do and ran it but doesnt show the [gfx] thing
Avatar
ah btw
14:20
u need nightly for that
14:20
sry xD
14:20
i have steam betaa
14:20
can i just do it in there
Avatar
just press f1 and see if that option exists
Avatar
I don't think it's in the beta yet
Avatar
dbg_gfx 1
Avatar
no it doesnt
Avatar
it should be in nightly
Avatar
ok where do iget nightly
Avatar
wasnt it merged 1-2 days ago
14:21
if you have steam nightly it should work, let me check
Avatar
@deen we still don't save symbols for releases, do we?
Avatar
in steam beta the option is there
Avatar
yes, no symbols
14:22
regular Release build
Avatar
its not in there for me
14:22
ill just download it from that link
Avatar
if we talk about
Avatar
ye i had that
Avatar
I think we are veering off course here. @louis since you have visual studio I assume you built your own client, does the hang happen on your build too?
Avatar
its there, or is the windows nightly not up to date @deen ?
Avatar
yes learath2
14:24
i mean i just cloned the current github/ddnet code then ran ddnet.exe from it
Avatar
Did you build the latest version? From github?
Avatar
And did you switch configuration to Debug, before building?
14:25
like this?
14:25
if so then yes
Avatar
Yep, so if you get the game to hang, can you alt+tab out?
Avatar
yeah i did
14:26
im pretty sure nothing happened in the debug console tho
14:26
ill try again
14:28
ok im tabbed out now what
Avatar
pause in debugger
Avatar
let me check how to pause in vs
Avatar
if i tab back in the screen flashses black and off and i can still hear sounds/ shoot my gun lol
Avatar
the green arrow should be a pause button now
Avatar
It feels awfully like the render thread is stuck in a loop
Avatar
oh there waas a blue pause button
Avatar
yes it feels like it
Avatar
that said "break all"
Avatar
but i already checked xD
Avatar
ok now what
14:29
it opened a place in the code
Avatar
you need to find the gfx thread now
Avatar
Amazing, my visual studio doesn't work. I love how "foolproof" these IDEs are. Really glad I spent 20G to install a dud
Avatar
lol do i just continue and pause till i find something with gfx
Avatar
Nah, there should be a view somewhere that lists the threads
Avatar
well it's one of the thread_run threads
14:32
the thread im on now has some gfx stuff
Avatar
nice then show the callstack
Avatar
english plz
14:33
14:33
Avatar
mh it's just running a buffer as always
Avatar
cmd_render is btw old graphic stack
14:34
honestly, pls try the dbg_gfx 1
14:34
maybe it actually shows something useful
Avatar
oh i was misspelling dbg_gfx thats why i didnt find it
Avatar
@louis what is your gfx_opengl_major btw?
14:36
or what is the name of the map
14:36
even if 10000 triangles arent the world, its also not nothing
Avatar
Need to restart computer to install an application that exists completely in userspace.
14:37
its 3
Avatar
ok and map name?=
Avatar
its Multeasymap but its not the halloween version
Avatar
ok ty
Avatar
how do i go backwards in cd
14:39
nvm xd
14:40
ok
14:40
i was playing with dbg_gfx 1
14:40
and it froze
14:41
now what
Avatar
look in the console
14:41
if it shows smth
14:41
where can i find the non halloween version btw
14:41
its horrible xD
Avatar
idk the powershell console doesnt show anything
14:41
im not running it thru vs btw
Avatar
yes, if the console doesnt show anything, then nothing is wrong
Avatar
btw, can you quickly summorize some stuff, were there ppl playing, were you zooming?
zoozer 1
14:44
https://cdn.discordapp.com/attachments/293493549758939136/769206776066867260/unknown.png this image says the primcount is over 10k, and i cannot reproduce that
Avatar
there were some afk nobos but not a buncha people on my screen or anything
14:44
i was default zooz walking around spawn
zooz 1
Avatar
mhh i really think a tool like ubsan or asan would find this in 5 seconds xD
Avatar
how do i use those
Avatar
i honestly dunno if they are easy to compile under windows
Avatar
use flag -fsanitize=address for asan and -fsanitize=undefined for ubsan
Avatar
if its complicated i probably wont be able to lol
Avatar
Let me try building with asan and ubsan
14:48
I'll tell you if it's hard or easy
Avatar
would be nice @Learath2 😄
Avatar
Maybe it's something weird with your custom entities feelsamazingman @louis
Avatar
will be interesting how the value of 10k comes in, must be either a underflow/overflow or a stack/buffer overflow
Avatar
maybe nouis has custom hacked client 👀
justatest 1
Avatar
[quakenet] Ryozuki BOT 2020-10-23 14:51:15Z
test
Avatar
autocrashed for wearing a santa hat when it's october
Avatar
[quakenet] Ryozuki BOT 2020-10-23 14:52:14Z
antiping shouldnt predict non-frozen players if you have >200 ping, since its useless
Avatar
it should be a setting
14:52
i dont find it useless
Avatar
[quakenet] Ryozuki BOT 2020-10-23 14:52:32Z
u dont get it
14:52
antiping for non-frozen works fine if
14:52
the ping is less than 200
14:52
at 200 it gets crazy
Avatar
its not like there is a magical cutoff at 200
14:52
it just gets gradually worse as ping increases
Avatar
[quakenet] Ryozuki BOT 2020-10-23 14:52:59Z
well its around there
Avatar
some people still find it useful
14:53
well past 200
Avatar
[quakenet] Ryozuki BOT 2020-10-23 14:53:14Z
if u use antiping for servers where u have less than 100 ping u use it to have the 0 ping feeling
14:53
and tees wont teleport
14:53
but when u are on a 200ping server tees do teleport
Avatar
i mostly play on servers between 100-250 ping and i think antiping helps alot
14:53
¯\_(ツ)_/¯
14:53
u get used to the teleporting
Avatar
for dummy drag its still nice
Avatar
[quakenet] Ryozuki BOT 2020-10-23 14:53:50Z
it could trigger someones epilepsia
Avatar
he said non frozen tho
Avatar
[quakenet] Ryozuki BOT 2020-10-23 14:53:54Z
im not joking
Avatar
for afk drag its nice
Avatar
[quakenet] Ryozuki BOT 2020-10-23 14:54:04Z
xd
14:54
yeah for afk yes
Avatar
dont zooz on noby's server if you're worried about that, fair warning
Avatar
[quakenet] Ryozuki BOT 2020-10-23 14:54:15Z
but if others move it gets messy
Avatar
dont zooz on my server at all
troll 1
Avatar
[quakenet] Ryozuki BOT 2020-10-23 14:54:49Z
make screen be grey tones
14:54
then zooz on noby
14:54
no epilepsy
Avatar
[quakenet] Ryozuki BOT 2020-10-23 14:55:07Z
:troll:
14:55
:monkaLaugh:
14:55
rip
Avatar
@ryozuki pls send me ur IP address
Avatar
[quakenet] Ryozuki BOT 2020-10-23 14:55:24Z
ryozuki.xyz
Avatar
I broke the damn IDE, now I need to reclone the project because there is no way to find where tf it stores "CMakeSettings.json"
Avatar
need to ban for zoozering
Avatar
Amazing tool so far
Avatar
[quakenet] Ryozuki BOT 2020-10-23 14:55:37Z
Learath2 windows?
Avatar
i though ryo is banned
Avatar
[quakenet] Ryozuki BOT 2020-10-23 14:55:45Z
im on irc bumm
Avatar
cheater
Avatar
did u actually get banned from dc?
14:55
@ryo
14:55
lmao
14:55
why
Avatar
[quakenet] Ryozuki BOT 2020-10-23 14:56:00Z
i told u in dm
14:56
why u wouldnt trust my dm
Avatar
[quakenet] Ryozuki BOT 2020-10-23 14:56:06Z
lmao
Avatar
i dont remember u saying the reason but rip
14:56
abuse
Avatar
[quakenet] Ryozuki BOT 2020-10-23 14:56:26Z
i was rude
14:56
according to someone
Avatar
beware if you make a mistake in your CMakeSettings.json there is no way to fix it
Avatar
pls dont start drama now ty
Avatar
[quakenet] Ryozuki BOT 2020-10-23 14:56:40Z
yeah noby
14:56
dont start
14:56
drama
Avatar
im just asking .-.
Avatar
we are currently debugging something
Avatar
[quakenet] Ryozuki BOT 2020-10-23 14:56:59Z
what are you debugging?
Avatar
we try to find a overflow in windows
Avatar
nouis client freezes on a certain server
Avatar
[quakenet] Ryozuki BOT 2020-10-23 14:57:50Z
a needle in the hay
Avatar
ubsan and asan dont show anything in linux with gl 3.0, so really impossible to reproduce
14:58
still possible that the driver itself creates the overflow
Avatar
[quakenet] Ryozuki BOT 2020-10-23 14:58:30Z
when i used valgrind time ago
14:58
i saw mem leaks involving the driver stuff
14:58
_dri stuff
14:58
iirc
Avatar
but if its inside the .so its not from teeworlds
14:58
or at client close?
Avatar
[quakenet] Ryozuki BOT 2020-10-23 14:58:58Z
yeah
14:59
idk if its at client close
14:59
obj:/usr/lib/dri/*_dri.so
14:59
DDraceNetwork, a cooperative racing mod of Teeworlds - ddnet/ddnet
14:59
thats why i made this file
14:59
cuz drivers and stuff had leaks
14:59
outside tw
Avatar
ok 😄
Avatar
[quakenet] Ryozuki BOT 2020-10-23 15:00:52Z
that emoji looks funny on terminal
15:01
😂
Avatar
ive had valgrind report leaks in really weird places before tho fwiw
15:01
like inside of printf under normal use conditions
Avatar
inside printf is unlikely, printf doesn't allocate or free anything
Avatar
sometimes valgrind just cant track these stuff
Avatar
it was one of those stdio functions
15:02
snprintf or prinf or something
Avatar
valgrind just hooks malloc and free, it can't really miss much of anything
Avatar
rlly? o_0
15:02
i could be misremembering which utility did this but i was pretty sure it was valgrind
Avatar
there actually could be an issue in the version of glibc you were using
15:03
not like glibc developers are aliens that don't ever make mistakes
Avatar
[quakenet] Ryozuki BOT 2020-10-23 15:04:04Z
glibc are gods
Avatar
that could be true too, i think it was on my old laptop when it happened
Avatar
[quakenet] Ryozuki BOT 2020-10-23 15:04:07Z
mistakes are for humans
Avatar
[quakenet] Ryozuki BOT 2020-10-23 15:04:37Z
you can always search a bug tracker
Avatar
(or it was some rlly weird error i made in my code that only was caught upon the printf? seems unlikely if u only pass it variables but idk)
Avatar
[quakenet] Ryozuki BOT 2020-10-23 15:04:48Z
Security vulnerabilities of GNU Glibc : List of all related CVE security vulnerabilities. CVSS Scores, vulnerability details and links to full CVE details and references.
15:05
"GNU Libc current is affected by: Mitigation bypass. The impact is: Attacker may guess the heap addresses of pthread_created thread"
15:05
funny stuff
15:05
Avatar
am i right that printf("%s\n", fn()); this could show as being a leak that originates within printf but char *arg = fn(); printf("%s\n", arg); this couldnt?
15:06
like if it was improperly freed it would show the leak as coming from somewhere else
15:06
assuming that fn returns memory that it allocates
15:07
always crash at this spot, a lot easier to reproduce if opengl is off i found out, and cant reproduce on LAN same map as far as i know
Avatar
ok
Avatar
[quakenet] Ryozuki BOT 2020-10-23 15:08:05Z
nice book
Avatar
@louis can u try the 2 images i posted
15:10
thx ryo
Avatar
@noby I don't think that would show as one originating in printf, your allocation will be done before the call into printf
Avatar
true i guess
Avatar
@Deleted User howd u get that second picture
15:17
the project properties thing
Avatar
yes
15:18
for the ddnet client
15:18
on the right isnt there a list?
15:18
DDnet DDNET-server
15:18
and so on
15:18
rightclick ddnet
Avatar
After downloading 5 extra gigabytes and having to restart the editor 10 times, I have managed to get a asan build of ddnet
Avatar
[quakenet] Ryozuki BOT 2020-10-23 15:22:55Z
i wonder what they do to use so much space
15:23
i wonder if CLion supports msvc
15:24
its a way better ide
15:24
but paid
Avatar
r u on windows rn @Learath2 ?
Avatar
xd i cant even fin dit
Avatar
It's apparently not a concern. The last time I was complaining about space told me I'm a poor peasant if I don't have an extra couple hundred gigabytes of free space on my ssd/hdd and an internet connection that is slow
15:24
@Deleted User yeah on windows rn
Avatar
@louis send picture of the whole IDE xD
Avatar
ohh
Avatar
[quakenet] Ryozuki BOT 2020-10-23 15:25:06Z
its hilarious you need to download the entire visual studio to get the compiler toolchain or whathever it is
Avatar
its a direct cmake build
15:25
ok
Avatar
Ryozuki, you can have MSVC without visual studio as part of the windows sdk
Avatar
@louis open CmakeLists.txt and find target_compile_options(${target} PRIVATE /wd4800) # Implicit conversion of int to bool.
15:26
dublicate that line and change the thing after PRIVATE to /fsanitize=address
Avatar
don't
15:26
that breaks everything
Avatar
oh
15:26
why that
Avatar
it won't link, it will break your IDE
Avatar
wtf xD
Avatar
[quakenet] Ryozuki BOT 2020-10-23 15:27:03Z
lol
Avatar
@louis you need to modify your Visual Studio installation first
15:27
This thing in your start menu
Avatar
just build a SLN with cmake honestly xD
15:27
then u can modify everything
15:27
i did learath
15:28
i had the sanitizer thing enabled i think
Avatar
Did you install ASan?
15:28
Okay delete that line
Avatar
You need to add it somewhere else to get it properly linking
15:28
right click CMakeLists.txt
15:28
select CMake Settings
Avatar
CMake Settings for DDNet then
15:30
Duplicate the first configuration
15:30
The third button is duplicate
15:30
After that click Edit JSON
15:31
Then you add "addressSanitizerEnabled": true to the new configuration
15:31
like this
15:32
i think i did it
Avatar
Now choose the new configuration you created up top
Avatar
u mean the file next to green run button?
Avatar
The one to the left of the file
15:34
It should prolly say x64-Debug right now
15:35
wait lol
15:35
Avatar
you probably made a typo in the json, show json
Avatar
{ "configurations": [ { "name": "x64-Debug", "generator": "Ninja", "configurationType": "Debug", "inheritEnvironments": [ "msvc_x64_x64" ], "buildRoot": "${projectDir}\\out\\build\\${name}", "installRoot": "${projectDir}\\out\\install\\${name}", "cmakeCommandArgs": "", "buildCommandArgs": "-v", "ctestCommandArgs": "", "variables": [] }, { "name": "x64-Debug-Copy", "generator": "Ninja", "configurationType": "Debug", "buildRoot": "${projectDir}\\out\\build\\${name}", "installRoot": "${projectDir}\\out\\install\\${name}", "cmakeCommandArgs": "", "buildCommandArgs": "-v", "ctestCommandArgs": "", "inheritEnvironments": [ "msvc_x64_x64" ], "variables": [] "addressSanitizerEnabled": true } ] }
Avatar
you need a , after []
15:38
ok
15:38
now do i run ddnet
Avatar
I think so, fingers crossed it should build and run
Avatar
fingers crossed its just the driver thats buggy xddd, jk
Avatar
Why would you even want that? 😄
15:39
We should use a kernel 0day to monkey patch intels buggy ass drivers
Avatar
bcs then we just need to disable intel on windows xD
15:40
or wait for the windows update or smth
15:44
15:44
it says this idk
15:44
i couldnt select a startup item
Avatar
scroll down a bit
15:45
hm
15:45
wait let me make sure i had it instalaled
Avatar
yeah this happened to me too, after modifying my installation 3-4 times
15:45
it just worked
15:45
Visual Studio and Windows are more akin to a carpenters hammer than Linux
Avatar
just restart everything, turn off electricity, turn off the local internet, and windows will work
Avatar
You need to hit it really hard a couple dozen times and it sometimes does the job, sometimes completely breaks your work and you need to start over
Avatar
maybe it has to be /fsanitize=address instead of -fsanitize=address ?
Avatar
enableAddressSanitizer does the correct one for clang-cl
Avatar
huh, @Learath2 knows how to work with msvc's cmake integration
15:47
I know who to ask next time 😄
Avatar
but all options of MSVC compiler always begin with / as far as i know
Avatar
I learned a bit of it right now to help louis, the only person who can reproduce the bug 😄
15:48
@Comrade well, VS handles it
15:48
if the correct version is / it will use /
Avatar
it seems it passes the wrong option directly to cl.exe 😄
Avatar
It obviously recognizes the option so it tries to link clang_rt
Avatar
The only times I froze similar to louis is when I was connecting dummy, seems random though (edited)
Avatar
cl: Command line warning D9002: ignoring unknown option '-fsanitize=address'
15:50
that's MSVC definitely, not Clang (edited)
15:50
only Microsoft's compiler has these stupid numeric errors 😄
Avatar
ok im adding some random modifications to vs hopefully it fixes it
Avatar
Ah I found a foolproof way to get it to work
15:51
You use cmake, instead of VSs god awful cmake integration
Avatar
can't he just use cmake for it?
Avatar
cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release .. nmake i use this always instead of broken VS 😄
15:53
only Windows SDK is needed as @Learath2 said
Avatar
the cmake gui is even easier
Avatar
ok what do i do
Avatar
just open select vs, finished
15:57
xd
15:58
download cmake
15:58
run cmake-gui.exe select ddnet root folder as source directory select ddnet build directory as source_dir/build click configure select vs
15:58
wait
15:58
1h
Avatar
(beware when devs say something is easy. it's not :P)
Avatar
click generate
15:59
click open project
15:59
Avatar
  • Open CMake (cmake-gui) and select the source code directory and the empty build directory.
  • Press Configure button.
  • Select generator matching your Visual Studio version. If you want to build 64-bit version, use Win64 generator.
  • You can now change build options in the CMake window. Press Configure button again when you're done.
  • Press Generate button.
  • Press Open Project button. It should open Visual Studio with the generated solution.
16:00
step by step 😄
Avatar
eeeeeezzzzzzzzzz
16:01
vs will also automatically update when cmakelist changes
Avatar
it overrides many things configured in CMake
16:02
build type for example
16:02
so it's better to configure everything in solution properties inside VS
16:03
Windows is so unfriendly platform for developers and so many people still use it 😄
Avatar
[quakenet] Ryozuki BOT 2020-10-23 16:04:39Z
maybe windows dev dont even use cmake
16:04
they use the ide directly
Avatar
yes, many of them use that XML trash generated by VS
Avatar
but cmake uses the ide correctly 😄
16:05
uuh is it supposed to look all red
Avatar
[quakenet] Ryozuki BOT 2020-10-23 16:05:28Z
and many windows dev dont even use c++, they are into c#
Avatar
ban
16:05
c# is java in green
Avatar
@louis just hit Generate and then Open Project
Avatar
[quakenet] Ryozuki BOT 2020-10-23 16:06:00Z
what does in green mean
Avatar
its a german thiing probably
16:06
but i just use it in english
16:06
xD
16:06
it means basically, its the same
Avatar
but C# is still much better than Java 😄
16:06
i think
Avatar
yes
16:07
bcs its impossible todo worse xd
Avatar
[quakenet] Ryozuki BOT 2020-10-23 16:07:07Z
i prefer c# over java too
16:07
i only used it for terraria plugins tho
Avatar
i programmed in c# with xna when i was like 16 or smth
16:07
then java minecraft plugins xxD
Avatar
[quakenet] Ryozuki BOT 2020-10-23 16:07:54Z
i also did some mc thingies xd
Avatar
but when i switched to c++ and assembly
16:08
it opened a new world for me
Avatar
[quakenet] Ryozuki BOT 2020-10-23 16:08:19Z
the elite
16:08
now u gotta become hipster
16:08
and join rust
16:08
facebook and microsoft are hiring rust compiler engineers btw
16:08
to improve it
Avatar
i want a c syntaxed, rust safe, range based programming language, so no more logic errors or anything else
Avatar
We made louis spend so much time on this, we still didn't even get it to build 😦
16:10
oki open project now what
Avatar
select vs2019
16:10
16:10
on right side there is DDnet project
16:10
rightclick that, make it default start porject
16:10
then add the thing in the image
Avatar
@louis did you select Visual Studio 2019 Win64 as generator?
16:11
otherwise it's 32-bit build
16:11
i selected x64
Avatar
currently only available for 32 bit builds
Avatar
ok i think i got it
Avatar
@plsplsplslol huh
16:13
(bottom right of the screenshot)
Avatar
yes
Avatar
MSVC ASan is 32-bit only? oh come on... 😄
Avatar
I think it's fine since 16.7
16:14
⌚ This post was updated on August 12, 2020 with more information on known issues and how to successfully use the VS debugger with this experience.  Special thanks to Jim Radigan and Matthew McGovern for providing the content for this blog post.
16:14
Do you maybe have an older VS?
Avatar
well, inline assembly is not available in 64-bit MSVC as well, so who knows
16:16
im on 16.4
16:16
ill updaate
Avatar
see you tomorrow then 😄
Avatar
[quakenet] Ryozuki BOT 2020-10-23 16:16:22Z
rip
Avatar
btw, just saw, i even added a dbg msg that says "Requested OpenGL debug mode, but the driver does not support the required extension" if debug mode is not supported
Avatar
by the way, what if ASan in MSVC is totally useless, so all this is just a waste of time?
Avatar
then we tried at least
Avatar
and UBSan is not available at all there
Avatar
tbh, i tried the exact spots the intel users had the crashes in
16:22
with ubsan and asan and valgrind, nothing
16:22
its either something windows or something driver specific
16:23
but no reports from nvidia or amd users yet 😄
Avatar
wow i have to restart computer to apply vs updates
Avatar
Is there a way to contact Intel GPU driver team?
16:31
@louis yeah, learath2 complained about the same before
Avatar
@deen it can still be a overflow
16:32
16:32
i dont understand and cannot reproduce a primcount of 10k here
Avatar
that is not a typical overflow value
16:32
or you mean some multiplication overflowing?
Avatar
maybe a buffer overflow
16:33
writing stuff inside the buffer
Avatar
can be completly unrelated to the graphic things
Avatar
so we're one step forward it seems, that's nice
Avatar
maybe nvidia and amd are just dropping these invalid commands or smth
Avatar
yeah, that was my hope, that we're doing something wrong, but some drivers are more tolerant of that
16:34
because then it's something we can fix
16:34
I've been running asan+ubsan for days now locally, haven't found anything more interesting than what I reported
Avatar
I find my self tabbing in and out a lot when sharing server ips with friends or similar. A button in the server menu that copys the address to clipboard would come in handy :)
Avatar
ok hi im back
16:39
16:39
what do i do
Avatar
is that the crash or smth @louis ?
16:41
it askss me to do that before i run ddnet
Avatar
can u cancel it? xd
16:42
16:43
@Learath2
Avatar
Heh, I had the same error at work yesterday 😄
16:43
but I didn't know the solution
Avatar
@louis try a from-scratch build?
Avatar
sounds like it crashed there or smth xd
Avatar
I have absolutely no idea 😦
16:44
Why must life be this difficult?
Avatar
i was thinking it would be awkward to choose a name that someone else already had and find that you already have good times on all novice maps. maybe warn players when they choose a name like "your name already has over 50 points on it"?
16:51
i get this when i try to cmake the source files from the github
Avatar
show the output from the windows below stop button
Avatar
u forgot to fill the ddnet-libs
Avatar
how do i do that
16:56
Precompiled libraries and headers of the dependencies of DDNet - ddnet/ddnet-libs
16:56
?
16:56
do i just put this in the same folder or
Avatar
follow the instructions in ddnet README
16:58
To clone this repository with full history and external libraries (~350 MB): git clone --recursive https://github.com/ddnet/ddnet
DDraceNetwork, a cooperative racing mod of Teeworlds - ddnet/ddnet
Avatar
[quakenet] Ryozuki BOT 2020-10-23 16:58:40Z
if you did get the sources with git then u can do git submodule init --update
16:58
or osmething like that
16:59
git submodule update --init --recursive
16:59
i always get it the other way around
Avatar
update --init
Avatar
I don't think I'll ever try anything on windows again, I spent 4 hours of valuable time to accomplish nothing
kek 3
Avatar
windows best
f4 1
Avatar
[quakenet] Ryozuki BOT 2020-10-23 17:01:40Z
😂
Avatar
[quakenet] Ryozuki BOT 2020-10-23 17:02:02Z
Learath2 isnt using nmake easier
Avatar
when will fl studio support linux :(
Avatar
ryo how is it going on the banned side of things
monkalaugh 1
Avatar
[quakenet] Ryozuki BOT 2020-10-23 17:02:30Z
cool i guess
17:02
how is it there
Avatar
I tried with nmake too
Avatar
[quakenet] Ryozuki BOT 2020-10-23 17:02:54Z
discord emojis dont translate to irc sadge
17:03
😰
Avatar
what about normal emojis
Avatar
[quakenet] Ryozuki BOT 2020-10-23 17:03:24Z
they do
Avatar
[quakenet] Ryozuki BOT 2020-10-23 17:03:32Z
if they have unicode representation iguess
17:03
👺
17:03
oh
17:03
this looks funny
17:03
17:04
some look good some not
17:04
Learath2 the trusth is probs that windows wants you to use c# and forget about c stuff
17:04
their c# tooling is way better
Avatar
[ddnet] <jao> you are unbanned now
Avatar
[quakenet] Ryozuki BOT 2020-10-23 17:05:23Z
nice troll
Avatar
I have never, in my entire life worked with such horrible tooling
Avatar
I think part of it comes from unfamiliarity
Avatar
[quakenet] Ryozuki BOT 2020-10-23 17:06:03Z
@noby did u know irc shows that as a one liner
Avatar
VS includes 5 incompatible copies of clang, 2 incompatible copies of MSVC
lol 1
Avatar
[quakenet] Ryozuki BOT 2020-10-23 17:06:51Z
wedym by incompatible
Avatar
hi [ddnet] <jao> you are unbanned now
Avatar
[quakenet] Ryozuki BOT 2020-10-23 17:06:59Z
can u actually use llvm in windows?
17:07
"[ddnet] <Ravie> [ddnet] <jao> you are unbanned now" it looks like this in irc
Avatar
yes. they have a drop-in replacement
Avatar
The 7 aforementioned compilers each link to 15 different clang_rt libraries each
Avatar
@Ravie @jao please stop trolling
Avatar
So 7 * 15 clang_rt pieces
17:07
If you want to link it in debug mode you can only use msvc to link to clang_rt
17:07
clang-cl can only do release mode
Avatar
what trolling lol
Avatar
that's what a troll would say
Avatar
but if you link in release mode lld will still get confused and use /MDd for some reason
17:08
god knows why
Avatar
[quakenet] Ryozuki BOT 2020-10-23 17:08:33Z
whats MDd
17:08
i dont know windows flags
Avatar
@jao sry, meant noby
justatest 4
17:08
link with debug libs?
17:08
dynamically
Avatar
Defines _DEBUG, _MT, and _DLL and causes the application to use the debug multithread-specific and DLL-specific version of the run-time library. It also causes the compiler to place the library name MSVCRTD.lib into the .obj file.
17:09
It's like I'm trying to build a sand castle using dry sand
17:12
@heinrich5991 the first 2 hours was unfamiliarity, now that I'm intimately familiar with VSs internals and how it butchered clang to make it fit in it's archaic structure I'm allowed to be pissed at the shitty tooling microsoft pushes on people
Avatar
kek now im getting c++ ads on yotube
17:13
time to learn c++
Avatar
[quakenet] Ryozuki BOT 2020-10-23 17:15:06Z
:justatest:
Avatar
didn't work
17:17
ok i got past the memset not found thing
17:17
now what
Avatar
now see the callstack
17:18
then u know why it crashed
Avatar
ddnet wont even run
17:18
it says that first
Avatar
oh
17:19
i couldnt run asan with gcc, it also crashed directly, so dunno xd
17:19
cant @Learath2 just build you a debug executable
Avatar
I broke mine too, been trying to get it to build again for the last hour
Avatar
oh xD
Avatar
@louis more info when you click on details?
17:20
or can you ignore it with the checkmark?
Avatar
yeah i ignored it
17:20
hopefully it doesnt implode my laptop or something
17:20
but ddnet runs
Avatar
great, then get it to hang like before I guess
Avatar
ok its spazzing out what do i do, do i pause it?
17:23
like the ddnet froze and all that
Avatar
no asan error written?
Avatar
where do i look for thaat
Avatar
in the vs output probably
17:25
bottom right
17:25
idk what this is
Avatar
can you upload the whole output?
17:26
well it keeps spamming that if i freeze or not
17:26
even when im on main menu
17:27
might be that stuff from earlier
Avatar
oh
Avatar
call stack for one of them?
17:27
this is call stack when client is freezing
17:28
well its paused rn
Avatar
but no call stack of the Access violation?
Avatar
yeah but thats not the crash 😄
17:28
well now he already ignored it xD
Avatar
i think the access thing is because i ignored the memset thing
17:29
idk arent there call stack graphics stuff there? it could be that
Avatar
if it would crash there it'd be easy to reproduce on linux
17:29
they question is, what memset fails potentially
17:30
the memset could e.g. be inside the intel driver xd
17:33
is the client not crashing with opengl 3.3 @louis ?
17:33
you mentioned smth like that
Avatar
ye its harder to get it to freeze
17:34
but i remember it freezing sometimes it hink
Avatar
yeah sounds alot like a overflow somewhere
Avatar
Probably not related, but who knows: ``` src/base/math.h:50:11: runtime error: left shift of negative value -32 #0 0x5576c009dbc2 in i2fx(int) /media/ddnet/src/base/math.h:50:11 #1 0x5576c008eec2 in CLayerQuads::NewQuad(int, int, int, int) /media/ddnet/src/game/editor/layer_quads.cpp:49:22 #2 0x5576c0004aa3 in CEditor::Init() /media/ddnet/src/game/editor/editor.cpp:6434:18 #3 0x5576bf4c7328 in CClient::Run() /media/ddnet/src/engine/client/client.cpp:3073:13 #4 0x557...
Avatar
i wonder what happens if i just comment out random things and see if it works
Avatar
most are outdated and dont show useful stuff, the best (renderdoc) only works with gl 3.3
17:38
maybe the nvidia and amd tools are good... but wont work on intel
17:38
I think I did it
Avatar
@louis you could try disabling some things like antiping and cl_predict 0
17:39
i will after i eat, brb
Avatar
@Learath2 ?
Avatar
btw, i couldnt reproduce at the same spot same map on LAN while it almost always worked on the ddnet srv, so it might be serverside but idk
Avatar
I think it's timing related
17:42
so one thread has to write garbage just at the correct time
17:42
gfx_asyncrender_old 0 might fix it then
Avatar
5d6b5ea rename method for consistentcy - 12pm
Avatar
hm, I got it building with asan, I got it running with asan
Avatar
nice
Avatar
I'm not sure if it worked though 😛
Avatar
it might be prediction related. Seems to happen when louis jumped through freeze
17:46
I set LIBGL_ALWAYS_SOFTWARE=true on Linux and can feel a short hang every time I jump throuhg freeze
17:46
not visible in fps graph, so might be related
Avatar
okay it doesn't work, it slows down the executable alright but it doesn't report anything ever
Avatar
@louis tried vsync on?
Avatar
[quakenet] Ryozuki BOT 2020-10-23 17:55:17Z
Learath2 maybe the ddnet is perfect
Avatar
Ryozuki I thought so too, so I added a bug, that didn't show up either
Avatar
ok im back
Avatar
[quakenet] Ryozuki BOT 2020-10-23 18:10:03Z
hi back im dad
Avatar
Дядя Женя 2020-10-23 18:11:59Z
Make a vote in announcements for channel to post "looking for teammate" messages
Avatar
@deen still crashes with cl_predict 0 and antiping off
18:13
kek
18:13
its that one specific spot in the map
18:13
ill record a short vid
Avatar
hi dad im banned ... oh wait, that's you. kek
Avatar
Attaching and editing stuff on the forum is a real pain btw. Attachments randomly get lost.
18:15
only some parts freeze me (at the end of this clip i got frozen)
Avatar
forum is dead
Avatar
maybe it's consistent? X amount of time, X amount of times through freeze (edited)
Avatar
no if i just join at the start and jump thru that part it freezes too
18:19
only thing consistent so far is location
18:19
ill see if it crasshes if i spec it
18:19
ye it does, if i go into spec and put my spec camera around that area it crashes as well
Avatar
where to post mapres then jao?
Avatar
@deen can you dig deeper into it, bcs i cannot repr, maybe its some prediction code that is broken? (edited)
Avatar
stuff just gets lost in the mess of showroom.
Avatar
more people will see it than the 3 people who still use forum
Avatar
forum is good tho
18:22
its neatly searchable + alr has a bunch
18:22
id post it in both
18:23
if u cant attach maybe try creating an imgur album or smth
Avatar
@louis ur video is broken for me xD
18:23
i'll just download it xD
18:23
ok seems like discord is broken
Avatar
I overwrite 1000 bytes on the stack and this program doesn't crash
Avatar
@louis try going spec and looking around the rest of the map, make sure it's only that spot, you're getting closer to the starting line, which I noticed would cause me to freeze for a split second (same with the finish line)
18:25
but, it would only happen when I ran over them, which you're not
Avatar
maybe the demo recorder?
Avatar
Yea, maybe that issue I had was related to the video recorder client, I don't remember it happening to me recently
Avatar
@Skeith just crasshed
Avatar
which he apparently is on the demo recorder client
Avatar
specced around the map befrehand, didnt rly freeze
Avatar
which i think is the issue, cause i was having weird freezing issues as well when i used it in the past
Avatar
isnt video recorder in normal steam
Avatar
should
Avatar
Oh yea, true.
18:28
Wonder why it stopped freezing for me then, I've only had issues with dummy (edited)
18:29
I think @Zukita ? was having issues with crashing as well, somewhat recently
Avatar
Okay, I'm done, they just said ASan is supported to gloat, it is not supported at all
18:30
I'll go drown in sorrow
feelsbadman 2
Avatar
mhh :/
18:31
dr memory is broken af too under windows sadly
Avatar
it can't possibly work properly with the hacks msvcrt does
Avatar
set ASAN_OPTIONS= windows_hook_rtl_allocators=true
18:32
claims this post:
18:32
⌚ This post was last updated on January 31st, 2020.  We are pleased to announce AddressSanitizer (ASan) support for the MSVC toolset. ASan is a fast memory error detector that can find runtime memory issues such as use-after-free and perform out of bounds checks.
Avatar
OMG IT WORKED
Avatar
what did u do
Avatar
I am unsure
Avatar
xd
Avatar
I forced it to link with static msvcrt
18:47
I forced it to link the static versions of the clang_rt pieces
18:47
and I added /fsanitize=address
Avatar
then, now we only need to give it louis
18:47
xd
Avatar
ᶰ°Konͧsti 2020-10-23 19:40:47Z
trols
Avatar
tip: remove the frame
Avatar
and the tee
Avatar
Дядя Женя 2020-10-23 21:30:25Z
and less margin ^^
21:30
(merge my pr)
Avatar
!screenshot-20201023@233252

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 if it works standalone, system.c especially
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existin...
Avatar
whats the current state btw
21:43
did louis test the build?
Avatar
Дядя Женя 2020-10-23 21:51:44Z
@deen does it mean you have an api for getting player's points?
Avatar
I think @Zukita ? was having issues with crashing as well, somewhat recently
Ye. Crashes twice on a good day.
Avatar
yes, points are now in info2
Avatar
Fixes #3109.

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 if it works standalone, system.c especially
  • [x] Considered possible null pointers and out of bounds array indexing
  • [x] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-address...
Avatar
oh, forgot about the clang-format. how does that work?
Avatar
r u on windows?
Avatar
then just install clang-format and run ./scripts/fix_style.py
Avatar
thanks, it worked
Exported 786 message(s)