06:56 <+bridge> [ddnet] Theres something wrong with the shotgun pull prediction I think 06:56 <+bridge> [ddnet] after like the 3rd shot, the prediction is pretty messed up 06:57 <+bridge> [ddnet] (with high ping) 07:04 <+bridge> [ddnet] Because in the server there was a physic change in shotgun @deen 07:58 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/981436612061855826/unknown.png 10:15 < Darwin1999> Hey sup 10:15 <+Darwin1999> Do you guys have female friends? 11:54 <+bridge> [ddnet] cl_show_others what does this affect? doesnt seem to work for me 11:57 <+bridge> [ddnet] should have the same effect as /showothers, I think 13:15 <+bridge> [ddnet] hello, i am setting up vscode for ddnet. what extensions do you use? 13:17 <+bridge> [ddnet] maybe @Learath2 or @Ryozuki use vscode? 13:17 <+bridge> [ddnet] I do, I'm about to move to vim tho 13:17 <+bridge> [ddnet] I only have the C/C++ extension pack from microsoft when working with ddnet 16:42 <+bridge> [ddnet] vim with language server protocol? i want to use the "go to declaration" feature to jump to the implementation of a function. in particular i wanted to hack on the draw hookcoll function. but vscode only gives me hints when i hover code like the type of a variable. normally i use vim for small code snippets. but i fail at setting it up as an ide 16:42 <+bridge> [ddnet] i use vscodium 16:44 <+bridge> [ddnet] vscodium not an ide :hollande: 16:44 <+bridge> [ddnet] i used archlinux version of vscode now vscodium. when i ctlr click on a function nothing happens. or when i right click and then "go to implementation" 16:45 <+bridge> [ddnet] weird 16:46 <+bridge> [ddnet] learath im also interested in a working vim setup for ddnet 16:46 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/981569456469868594/unknown.png 16:46 <+bridge> [ddnet] i use this and have 0 problems 16:47 <+bridge> [ddnet] i used clangd and "c/c++ themes" i think 16:48 <+bridge> [ddnet] i'll try the other stuff when i'm home 16:52 <+bridge> [ddnet] I haven't gotten one yet, so you'll have to wait on that, but @Ryozuki has a setup, you could ask him 16:53 <+bridge> [ddnet] I only have the c++ pack my microsoft as I said and go to definition works fine for me 16:53 <+bridge> [ddnet] s\/my/by/ 16:54 <+bridge> [ddnet] ^^ 16:55 <+bridge> [ddnet] ok, do you use vscode by microsoft or vscodium? 17:05 <+bridge> [ddnet] you need to use ctag to fasten search 17:38 <+bridge> [ddnet] I use chad neovim that has native LSP support 17:38 <+bridge> [ddnet] I press gd over a function and i go to its definition 17:39 <+bridge> [ddnet] Check out nvim-lspconfig 17:57 <+bridge> [ddnet] Hey! I got segfault when touching the startline on Back in the days. Happened on latest master `9dd46eb`. Here's a backtrace from the coredump. Don't know if it says anything, but I can send more if needed. 17:57 <+bridge> [ddnet] 17:58 <+bridge> [ddnet] ``` 17:58 <+bridge> [ddnet] Core was generated by `./DDNet'. 17:58 <+bridge> [ddnet] Program terminated with signal SIGSEGV, Segmentation fault. 17:58 <+bridge> [ddnet] #0 0x0000563224f92cea in std::_Rb_tree_node* std::_Rb_tree, std::less, std::allocator >::_M_copy, st> 17:58 <+bridge> [ddnet] [Current thread is 1 (Thread 0x7f6cd717d980 (LWP 14588))] 17:58 <+bridge> [ddnet] (gdb) bt full 17:58 <+bridge> [ddnet] #0 0x0000563224f92cea in std::_Rb_tree_node* std::_Rb_tree, std::less, std::allocator >::_M_copy, st> 17:58 <+bridge> [ddnet] No symbol table info available. 17:58 <+bridge> [ddnet] #1 0x0000563224f9eb1b in CGameClient::IntersectCharacter(vector2_base, vector2_base, vector2_base&, int) () 17:58 <+bridge> [ddnet] No symbol table info available. 17:58 <+bridge> [ddnet] #2 0x0000563224f7c93f in CPlayers::RenderHookCollLine(CNetObj_Character const*, CNetObj_Character const*, int, float) () 17:58 <+bridge> [ddnet] No symbol table info available. 17:58 <+bridge> [ddnet] #3 0x0000563224f0af98 in CGhost::OnRender() [clone .part.0] () 17:58 <+bridge> [ddnet] No symbol table info available. 17:58 <+bridge> [ddnet] #4 0x0000563224f99192 in CGameClient::OnRender() () 17:58 <+bridge> [ddnet] No symbol table info available. 17:58 <+bridge> [ddnet] #5 0x0000563224ea461c in CClient::Render() () 17:58 <+bridge> [ddnet] No symbol table info available. 17:58 <+bridge> [ddnet] #6 0x0000563224ead4c8 in CClient::Run() () 17:58 <+bridge> [ddnet] No symbol table info available. 17:58 <+bridge> [ddnet] #7 0x0000563224e3e60a in main () 17:58 <+bridge> [ddnet] No symbol table info available. 17:58 <+bridge> [ddnet] (gdb) 17:58 <+bridge> [ddnet] ``` 17:58 <+bridge> [ddnet] https://github.com/ddnet/ddnet/issues/1 17:58 <+bridge> [ddnet] https://github.com/ddnet/ddnet/issues/2 17:58 <+bridge> [ddnet] https://github.com/ddnet/ddnet/issues/3 17:58 <+bridge> [ddnet] https://github.com/ddnet/ddnet/issues/4 17:58 <+bridge> [ddnet] https://github.com/ddnet/ddnet/issues/5 17:58 <+bridge> [ddnet] https://github.com/ddnet/ddnet/issues/6 17:59 <+bridge> [ddnet] https://github.com/ddnet/ddnet/pull/7 18:14 <+bridge> [ddnet] Do any of you use any note taking software? I’m looking for something open source, cross platform(iOS) and with support for handwritten notes 18:23 <+bridge> [ddnet] This backtrace smells a little fishy, I can't see how anything in `IntersectCharacter` can lead to a `std::_Rb_tree::_M_copy` happening 18:25 <+bridge> [ddnet] Idk about handwrriten but i use obsidian 18:25 <+bridge> [ddnet] https://obsidian.md/ 18:25 <+bridge> [ddnet] Though, there aren't many things in the code that'd even be using an underlying `std::_Rb_tree`. It's almost definitely one of the `std::set`s 18:26 <+bridge> [ddnet] This looks very nice and it seems to support handwritten notes too 18:27 <+bridge> [ddnet] Its the best 18:27 <+bridge> [ddnet] Hn recomnends it too 18:27 <+bridge> [ddnet] :TOOBASED: 18:28 <+bridge> [ddnet] Well apparently it doesn't directly support them, but it can embed images, hm that is a little jank but I'm sure I can write a plugin to work around it 18:39 <+bridge> [ddnet] does obsidian also handle images? 18:40 <+ChillerDragon> @coldrun vscodium by default does not have all the extensions probably due to some libre filtering i use th aur package "code-marketplace" together with community/code to get the juicy ms c++ extensions 18:42 <+ChillerDragon> @Learath2 did you try paper? 18:42 <+bridge> [ddnet] Like actual paper? I'd like to browse and filter notes easily, very annoying with physical paper 18:43 <+ChillerDragon> yea 18:43 <+ChillerDragon> idk works for me. Guess you write much more 18:43 <+bridge> [ddnet] I don't write much, because I find it's annoying to manage paper notes. That's why I'm looking for something different 18:44 <+ChillerDragon> iOS lol 18:44 <+ChillerDragon> if you are fully sucked into the apple universe they probably have something 18:44 <+bridge> [ddnet] I only use an ipad because the competitors are several light years behind in tablets 18:45 <+ChillerDragon> or do you also need it to run on non apple systems? 18:45 <+bridge> [ddnet] I need it to run on my desktop which is linux 18:45 <+ChillerDragon> im sure ipads can run some nice apple pen supporting note apps 18:45 <+ChillerDragon> oh yikers 18:45 <+ChillerDragon> then u fked 18:45 <+ChillerDragon> vnc into your ipad from linux then hrhrhrhr 18:45 <+bridge> [ddnet] Obsidian seems to have a nice plugin for excalidraw and excalidraw supports apple pen, so all is good 18:46 <+ChillerDragon> @Jupstar got more hot stocks for me? 19:04 <+bridge> [ddnet] I tried to build DDNet for android but I am getting this error `cp: cannot stat 'build/outputs/bundle/release/DDNet-release.aab': No such file or directory` 19:05 <+bridge> [ddnet] I tried to build it with `./scripts/android/cmake_android.sh arm64 DDNet Release` 19:05 <+bridge> [ddnet] and I generated libs with `./scripts/compile_libs/gen_libs.sh ../tmp android` and copied them to ddnet-libs in root dir 19:08 <+bridge> [ddnet] also when generating the libs I got `cp: cannot stat 'compile_libs/png/build_android_arm/libpng16.a': No such file or directory ` `cp: cannot stat 'compile_libs/png/build_android_arm64/libpng16.a': No such file or directory` 19:14 <+bridge> [ddnet] Seems it’s not open source, how could you 19:15 <+bridge> [ddnet] Hmm, do you want any other info? I have had it happen around 10 times now. All in the same spot. 19:15 <+bridge> [ddnet] If you can reproduce it, can you try with a full debug build? 19:16 <+bridge> [ddnet] I had it compiled with `-DCMAKE_BUILD_TYPE=Debug` what else am I supposed to change/add? 19:18 <+bridge> [ddnet] Uh, why is the symbol table info missing then? :/ 19:19 <+bridge> [ddnet] Hm, can you do `readelf -S ./DDNet | grep -i debug` 19:20 <+bridge> [ddnet] ``` 19:20 <+bridge> [ddnet] [30] .debug_aranges PROGBITS 0000000000000000 00387860 19:20 <+bridge> [ddnet] [31] .debug_info PROGBITS 0000000000000000 00387950 19:20 <+bridge> [ddnet] [32] .debug_abbrev PROGBITS 0000000000000000 00387ed3 19:20 <+bridge> [ddnet] [33] .debug_line PROGBITS 0000000000000000 0038804a 19:20 <+bridge> [ddnet] [34] .debug_str PROGBITS 0000000000000000 00388264 19:20 <+bridge> [ddnet] [35] .debug_ranges PROGBITS 0000000000000000 00388690 19:20 <+bridge> [ddnet] ``` 19:22 <+bridge> [ddnet] Okay, I’m confused. `gdb ./DDNet` does that load the symbol table properly? 19:23 <+bridge> [ddnet] Seems like it 19:23 <+bridge> [ddnet] ``` 19:23 <+bridge> [ddnet] Reading symbols from DDNet... 19:23 <+bridge> [ddnet] (gdb) 19:23 <+bridge> [ddnet] ``` 19:24 <+bridge> [ddnet] Maybe try getting it to crash within gdb, see if we get a better backtrace 19:31 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/981611016007843850/gdb.log 19:32 <+bridge> [ddnet] Aha, I see the issue now, there is a useless copy there. It probably reveals an underlying bug though 19:33 <+bridge> [ddnet] @c0d3d3v ^^ your new `std::set` is the culprit 19:34 <+bridge> [ddnet] @kiwq since you can reproduce, can you try a quick fix? 19:37 <+bridge> [ddnet] i think we should instantiate some `std::set` everywhere to detect more bugs 😄 19:37 <+bridge> [ddnet] Ok, this copy is a very old bug, the trying to copy `std::set` is just revealing the issue 19:38 <+bridge> [ddnet] Don't think so, I don't even know where to begin. Sorry :/ 19:38 <+bridge> [ddnet] oh lol true, sadge 19:38 <+bridge> [ddnet] @kiwq nono I'll give the fix, I just want you to try it 19:38 <+bridge> [ddnet] i tought it was it xd 19:39 <+bridge> [ddnet] check this out https://github.com/zadam/trilium 19:39 <+bridge> [ddnet] Ah perfect, go ahead send whatever :D 19:39 <+bridge> [ddnet] https://logseq.com/ 19:45 <+bridge> [ddnet] @kiwq Try this please 19:45 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/981614475092299776/test.patch 19:45 <+bridge> [ddnet] In the root folder where you are compiling from, you can just do `patch -p1 < test.patch` 19:50 <+bridge> [ddnet] unsupported macOS build, no iOS build, but the second one you sent looks exactly like what I need 19:51 <+bridge> [ddnet] Seems to have worked, thanks :) 19:51 <+bridge> [ddnet] Yay 20:09 <+bridge> [ddnet] o.O touching the startline is fine for me. Can you reproduce it multiple times? 20:09 <+bridge> [ddnet] https://cdn.discordapp.com/attachments/293493549758939136/981620499522158622/unknown.png 20:10 <+bridge> [ddnet] why can you not copy a set in C++? 20:10 <+bridge> [ddnet] copy shouldnt cause crash if there is no destructor 20:11 <+bridge> [ddnet] I think you need some players, I got it quite consistently on the crowded Back in the days server. 20:11 <+bridge> [ddnet] tho copying a std::set if not needed is reall ynot nice code style 20:11 <+bridge> [ddnet] its a heap object after all 20:11 <+bridge> [ddnet] The copy shouldn't be there either way. I didn't investigate what's actually broken 20:12 <+bridge> [ddnet] yes I also agree that it should not be there... xD but I'm curious whats the reason for a crash. I'm not so familiar with this kind of C++ concepts 20:15 <+bridge> [ddnet] probably a completly unrelated memory corruption somewhere else 20:15 <+bridge> [ddnet] use asan 20:15 <+bridge> [ddnet] and u will know 20:16 <+bridge> [ddnet] I think so too 20:17 <+bridge> [ddnet] @kiwq if you have a minute can you try asan without the patch? 20:17 <+bridge> [ddnet] maybe its a config? 20:17 <+bridge> [ddnet] 20:17 <+bridge> [ddnet] but if u can reproduce it, try to build with asan (ddnet github page tells you how) 20:18 <+bridge> [ddnet] You basicly have to run this in an empty build dir: 20:18 <+bridge> [ddnet] `CC=clang CXX=clang++ CXXFLAGS="-fsanitize=address,undefined -fsanitize-recover=address,undefined -fno-omit-frame-pointer" CFLAGS="-fsanitize=address,undefined -fsanitize-recover=address,undefined -fno-omit-frame-pointer" cmake -DCMAKE_BUILD_TYPE=Debug .. && make -j$(nproc)` 20:18 <+bridge> [ddnet] 20:18 <+bridge> [ddnet] then you can start DDnet like this: 20:18 <+bridge> [ddnet] `UBSAN_OPTIONS=log_path=./SAN:print_stacktrace=1:halt_on_errors=0 ASAN_OPTIONS=log_path=./SAN:print_stacktrace=1:check_initialization_order=1:detect_leaks=1:halt_on_errors=0 ./DDNet` 20:18 <+bridge> [ddnet] Thats at least how I build and run with Asan 20:23 <+ChillerDragon> @heinrich5991 why do chat messages no longer show up in server log? 20:24 <+bridge> [ddnet] stalkerdragon is angry 20:24 <+ChillerDragon> yes 20:25 <+bridge> [ddnet] i think rn is no good time for new stock, wait 2 weeks 20:25 <+ChillerDragon> ok 20:25 <+bridge> [ddnet] nvidia will soon have new GPU reveal 20:25 <+ChillerDragon> i just bought some oil stonk warren buffet bought too 20:25 <+bridge> [ddnet] could buy now and sell directly after that reveal 20:25 <+ChillerDragon> reveal is priced in 20:26 <+bridge> [ddnet] as soon as AMD will show their GPUs at the end of the year it will probs drop again 20:26 <+ChillerDragon> xd 20:27 <+bridge> [ddnet] yeah AMD's 6950 is faster or around as fast as rtx 3090 20:27 <+bridge> [ddnet] 20:27 <+bridge> [ddnet] so i assume nvidia pushes so fast bcs AMD can deliver smth similar 20:27 <+bridge> [ddnet] i mean nvidia wants to release a 600 watt GPU as customer GPU XD 20:27 <+bridge> [ddnet] that clearly says smth 20:27 <+ChillerDragon> i think they belive electricity will be free 20:28 <+bridge> [ddnet] its pretty free in summer 😄 20:28 <+ChillerDragon> but in the summer i do not need an heater 20:28 <+bridge> [ddnet] around 3cents / kwh if u got a roof and some skill to install solar panels 20:28 <+ChillerDragon> pf 20:28 <+ChillerDragon> u wanna do some flips on my roof mr skill? 20:28 <+bridge> [ddnet] yes 20:28 <+ChillerDragon> nice 20:28 <+ChillerDragon> i buy u some icecream 20:28 <+bridge> [ddnet] now that germany has the 9€ ticket 20:28 <+bridge> [ddnet] lets go to muinch 20:28 <+ChillerDragon> tru 20:29 <+ChillerDragon> pog 20:29 <+ChillerDragon> i have a nice floor u can sleep on 20:29 <+bridge> [ddnet] perfect 20:29 <+bridge> [ddnet] i love hard floors 20:29 <+ChillerDragon> but i got no soloar panel 20:29 <+ChillerDragon> how much are they? 20:29 <+bridge> [ddnet] dunno rn but usually around 100€ per 400Wh peak 20:30 <+ChillerDragon> not sure if u can still say that the kwh is still 3cents then xd 20:30 <+ChillerDragon> why do i even use you as financial advisor 20:30 <+bridge> [ddnet] they work for at least 20 years 20:30 <+bridge> [ddnet] so its around 3cents 20:30 <+ChillerDragon> oh 20:30 <+ChillerDragon> thzats why i use u as financial advisor 20:30 <+ChillerDragon> u do the maffs 20:30 <+bridge> [ddnet] I took a quick look at libstdc++ and I don't really see how a crash could even happen at the mentioned function, so it is likely some other issue 20:33 <+bridge> [ddnet] You basicly have to run this in an empty build dir: 20:33 <+bridge> [ddnet] `CC=clang CXX=clang++ CXXFLAGS="-fsanitize=address,undefined -fsanitize-recover=address,undefined -fno-omit-frame-pointer" CFLAGS="-fsanitize=address,undefined -fsanitize-recover=address,undefined -fno-omit-frame-pointer" cmake -DCMAKE_BUILD_TYPE=Debug .. && make -j$(nproc)` 20:33 <+bridge> [ddnet] 20:33 <+bridge> [ddnet] then you can start DDnet like this: 20:33 <+bridge> [ddnet] `UBSAN_OPTIONS=log_path=./SAN:print_stacktrace=1:halt_on_errors=0 ASAN_OPTIONS=log_path=./SAN:print_stacktrace=1:check_initialization_order=1:detect_leaks=1:halt_on_errors=0 ./DDNet` 20:33 <+bridge> [ddnet] Thats at least how I build and run with Asan 20:33 <+bridge> [ddnet] @kiwq 20:39 <+bridge> [ddnet] @kiwq how was your client open / you on the map, till the crash happened 20:40 <+bridge> [ddnet] @kiwq how long was your client open / you on the map, till the crash happened 20:41 <+bridge> [ddnet] just a random guess... maybe one more mem_zero over a characterCore that was copied there... 20:57 <+bridge> [ddnet] https://drive.google.com/file/d/1kPpCVzq6D7HpesqZkqSaLn0GRbykx18d/view 21:49 <+bridge> [ddnet] Well, I'm unable to replicate it myself now. :/ Guessing somethings weird with my system? 21:50 <+bridge> [ddnet] Just opened the game, connected and then touched the start line. 22:20 <+bridge> [ddnet] have you tried moinmoin, or bookstack or tiddlywiki? i wanted to use them as notetaking, but all... not for me 22:21 <+bridge> [ddnet] ^ 22:22 <+bridge> [ddnet] I might take a look, but I'll probably use logseq 22:22 <+bridge> [ddnet] I need to find a way to sync things though :/ 22:23 <+bridge> [ddnet] imo, best way to take note is paper 22:23 <+bridge> [ddnet] otherwise, i just forget 22:25 <+bridge> [ddnet] did you make it work? 22:26 <+bridge> [ddnet] no xD I am remaking fng to ddnet code it was a side project until zogtib returned 22:31 <+bridge> [ddnet] good luck xD 23:36 <+bridge> [ddnet] pfff, i don't wanna work tonight, so i'll move on with some ddnet issues 🙂