Guild icon
DDraceNetwork
Development / bugs
Report client & server bugs, especially but not limited to release candidates.
Between 2023-03-29 00:00:00Z and 2023-03-30 00:00:00Z
Avatar
I couldn't start ddnet on my windows
15:34
the last message it showed was setting up some vulkan stuff
15:34
it's probably a known issue
15:34
but it would be nice if it could be resolved without the user looking something up
15:35
computer has a intel onboard graphics card and a nvidia graphics card
Avatar
Did setting opengl by hand get it to work?
Avatar
I didn't know what to do at the time and I just gave up on it instead
15:35
was trying to show the game to someone
15:36
I can try that now I guess
Avatar
its probably a bad driver install
Avatar
ddnet is the only game having a problem with it. does factorio use directx?
15:39
perhaps we can try to detect that driver problem and fall back to older opengl when vulkan crashes at start?
Avatar
DDNet doesn't use DirectX does it
Avatar
apparently it does
Avatar
Avatar
heinrich5991
perhaps we can try to detect that driver problem and fall back to older opengl when vulkan crashes at start?
it already does that
15:39
its probably a very broken setup u have there, where it says it has vulkan
Avatar
it's apparently a real-world setup
15:40
I didn't change anything wrt. that
Avatar
anyway u can try detecting your issue, maybe u'll find something out
Avatar
ah yea, factorio uses directx, you're right
Avatar
i can just tell ya we have a fallback system which was also tested
Avatar
does it fall back to opengl if vulkan initialization crashes ddnet?
Avatar
well vulkan initialization should not crash in first place
Avatar
should not, but maybe it does there?
Avatar
is your windows up to date?
Avatar
I'll check whether I have crash logs
15:42
maybe it lags a couple of months behind
Avatar
maybe try that first before wasting your time
Avatar
ok
Avatar
updated, didn't change what happens
16:17
it works with gfx_gl_major 1; gfx_backend opengl
16:18
with vulkan it fails like this: 2023-03-29 18:06:39 I engine: running on windows-win64-amd64 2023-03-29 18:06:39 I engine: arch is little endian 2023-03-29 18:06:39 I engine: operation system version: Windows 10.0.19041.2546 2023-03-29 18:06:39 I storage: added path '$USERDIR' ('C:\Users\<user>\AppData\Roaming/Teeworlds') 2023-03-29 18:06:39 I storage: added path '$DATADIR' ('data') 2023-03-29 18:06:39 I storage: added path '$CURRENTDIR' ('C:\Users\<user>\Downloads\DDNet-16.8-win64') 2023-03-29 18:06:39 I discord: error initializing discord instance, error=4 2023-03-29 18:06:39 I http: libcurl version 7.84.0 (compiled = 7.84.0) 2023-03-29 18:06:39 I console: executing 'settings_ddnet.cfg' 2023-03-29 18:06:39 I chatresp: No such command: gfx_opengl_major. 2023-03-29 18:06:39 I chatresp: No such command: gfx_3d_texture_analysis_done. 2023-03-29 18:06:39 I client: starting... 2023-03-29 18:06:39 I sdl: SDL version 2.0.16 (compiled = 2.0.20) 2023-03-29 18:06:39 I gfx: Created Vulkan 1.1 context.
Avatar
so where does it crash
Avatar
it's not creating a crash dump, so I assume it doesn't crash?
Avatar
i dunno
Avatar
I looked into the dumps folder, didn't see anything there
Avatar
if it doesnt crash what else does it do, maybe attach a debugger
16:20
the drmingw cant catch everything
Avatar
I guess I have to install msvs to get a debugger?
Avatar
does gdb not work without msvs?
Avatar
I actually don't know. it's a relatively plain install of windows, I haven't installed any debuggers
16:21
maybe I can install x64dbg
16:21
that was kind of lean
Avatar
What does this x86-64 assembly code do? What is interrupt 41? MOV ECX, 0x7 INT 0x29
16:57
it seems the vulkan driver is intentionally killing the process
16:58
perhaps because of an assert
Avatar
have u tried the latest driver?
17:02
what even is ur GPU?
Avatar
even if I'm not on latest drivers, it would be nice if the fallback worked
17:07
because opengl1.1 works, but it doesn't fall back to that automatically
Avatar
yeah but if a newer driver works that sounds fine enough
Avatar
I think it'd be better if people can start ddnet without going to a website for troubleshooting
17:08
I mean I gave up
17:08
and I wanted to show the game to someone
17:08
I'm literally a developer
Avatar
i think u dont want to share your hardware info bcs u seem to hide it intentionally
Avatar
random people will not go to discord or the wiki to debug it
17:08
I can check my hardware specs, second
Avatar
well then they cant use ddnet bad for them
Avatar
I don't hide it intentionally, it's just a PITA to get them
Avatar
we cant solve every issue in this world or better: i dont want to do it if u have the motivation go ahead
Avatar
I'll create an issue to track it
Avatar
to me this sounds like a job for nvidia developers, except u can provide clear evidence that its our issue
17:10
steam ppl should at least have an opengl option when starting
Avatar
Maybe an error we are not catching? If the assert is in the gpu driver then maybe we are not supposed to ever make it there?
Avatar
we always have this discussion
Avatar
Yes ok, you don't care. I'm curious
Avatar
but anyway if its a call in the setup it must be ez to catch with an debugger
18:56
well sadly heinrich isnt interested in sharing hardware info
Avatar
You suspect it's too old? But it does have a vk driver so can't be that old
Avatar
i'd like to know if its current driver too
18:57
nvidia supports gpus that are from before 2016
Avatar
I have a feeling that you're going to say that this is an old GPU and you're not interested, once I find out what it actually is
19:23
but let's see, I'll boot into windows
Avatar
i have the feeling u dont share it so it sounds like its a common issue xD
Avatar
I don't share it because I don't have access to it while I'm on linux
19:23
which is where I chat with you
Avatar
u cannot use the card on linux?
Avatar
I'm using the intel graphics card here
19:24
I haven't tried
19:24
I don't have a use for it on linux
19:24
every time I send some diagnostics, I have to save my current state and reboot to windows
Avatar
anyway then dont do it the only thing i am partially interested is, what vk call causes it
19:25
based on that i'd base my decision if its potentially interesting
19:25
e.g. if the call has a error return that we might not handle as learath suggested
Avatar
Avatar
heinrich5991
I'm using the intel graphics card here
I think lspci should still show the make and model, no?
Avatar
lspci doesn't show it
19:30
maybe I blacklisted the driver
19:30
I didn't see your message and already rebooted
19:30
it's indeed an amd card, not an nvidia one 😮
19:31
maybe I just don't understand my computer ^^
19:31
"Radeon RX Vega M GL", not sure if there's supposed to be a number, I didn't see any
Avatar
Avatar
heinrich5991
lspci doesn't show it
Huh, I thought lspci is waaaay below the level of drivers and just shows you the raw pci bus enumeration
Avatar
in ddnet client with opengl it should show all information
19:32
in f1
Avatar
anything else I should collect?
Avatar
the card is also rather new, and should even have a open source driver
19:34
well if u somehow can maybe a proper stack trace and if u have time install latest driver so we at least can see if its fixable
19:35
apparently its one of those APUs that is inside a intel cpu
19:35
interesting they additionally have a intel igpu too
Avatar
so I don't even have an intel gpu?
19:35
hmm
Avatar
i dunno maybe not
Avatar
lspci says I have: 00:02.0 VGA compatible controller: Intel Corporation HD Graphics 630 (rev 04)
19:35
or is that some compat of the amd card?
Avatar
I'd be extremely surprised if it was
Avatar
Avatar
heinrich5991
"Radeon RX Vega M GL", not sure if there's supposed to be a number, I didn't see any
where did you grab this?
Avatar
device manager
19:36
also on the page selling my computer
19:36
so, do we have debug symbols for releases?
Avatar
That I don't know. I think we should but I don't want to mislead
19:37
latest driver i find is from 2021
19:37
mhh
19:37
and the product is from 2018
Avatar
The AMD Radeon RX Vega M GL or Radeon RX Vega 870 (according to Dell) is an integrated GPU in the slower Intel Kaby-Lake-G SoC. It combines a Kaby-Lake processor, a Vega graphics card and 4 GB HBM2 memory on a single package
(edited)
Avatar
that's some nice 3 years support lol
Avatar
That is an interesting product
19:38
An AMD gpu and a intel kaby lake cpu on one board (edited)
Avatar
Avatar
Learath2
That I don't know. I think we should but I don't want to mislead
those contain .exe files. do I need to execute those or are the debug symbols compatible with the actual release?
Avatar
@heinrich5991 if u back on linux maybe look in the client if it also calls the GPU inside it intel or AMD maybe lspci just assumes it wrongly or whatever reasons there could be
Avatar
2023-03-29 21:39:44 I gfx: GPU vendor: Intel 2023-03-29 21:39:44 I gfx: GPU renderer: Mesa Intel(R) HD Graphics 630 (KBL GT2) 2023-03-29 21:39:44 I gfx: GPU version: 4.6 (Compatibility Profile) Mesa 23.0.0
Avatar
but "Prozessorgrafik ‡ Intel® HD-Grafik 630" they say they also have intel hd graphics
Avatar
I'm guessing they are just the exact same executables before "strip" so I guess if you just run them they should work? Though no pdb file so idk how we do it on windows, I think even gdb on mingw doesn't use dwarf
Avatar
so nvm
Avatar
guess I'll reboot and figure out whether x64dbg supports debug symbols in exe files
Avatar
wait
Avatar
waiting
Avatar
is your stack trace from official build?
Avatar
yes
Avatar
then we already have the stack trace i guess
Avatar
I'm not entirely sure, there might be ASLR and I don't see the mappings, unfortunately
Avatar
How do we decode them btw? I wasn't paying attention when you added the drmingw stuff
Avatar
ah yeah
19:41
thats a problem maybe
Avatar
Avatar
Learath2
How do we decode them btw? I wasn't paying attention when you added the drmingw stuff
we print the module offset
19:41
but we can only decode the ddnet calls
Avatar
I guess I'm just gonna try rebooting, ok?
Avatar
no dlls
19:42
your choice, dont want to force u to use a bad OS
19:46
in Windows there is also a "Default GPU" setting.. maybe the intel gpu at least works xD
19:58
I added the mappings
19:59
how do I resolve them to an address now?
Avatar
what kind of symbol is it
19:59
symload/loadsym for pdbs and such
Avatar
Avatar
heinrich5991
how do I resolve them to an address now?
parse_drmingw.sh has all the calculation
20:01
lets see
Avatar
$ winedump -f /tmp/DDNet.exe | grep -E -o "image base[ ]*0x[0-9A-Fa-f]*" | grep -E -o "[0-9A-Fa-f]+" | tail -1 140000000
Avatar
/home/deen/isos/ddnet/ddnet-source/src/engine/client/backend/vulkan/backend_vulkan.cpp:3772
20:07
if i done it right
20:07
its this
Avatar
got the same line
20:08
so probbly
Avatar
so probably vkGetPhysicalDeviceProperties fails for whatever reason
Avatar
DDraceNetwork, a free cooperative platformer game. Contribute to ddnet/ddnet development by creating an account on GitHub.
Avatar
yep but thats no vk call, so i assume that is simply the compiler optimizing stuff away
20:12
e.g. like "the next call that will happen after this executed"
Avatar
ah
20:16
that sounds like a call that shouldn't panic ^^
Avatar
physicalDevice must be a valid VkPhysicalDevice handle https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceProperties.html which we get from vkEnumeratePhysicalDevices(m_VKInstance, &DevicesCount, vDeviceList.data()); "Otherwise, pPhysicalDeviceCount must point to a variable set by the user to the number of elements in the pPhysicalDevices array, and on return the variable is overwritten with the number of handles actually written to pPhysicalDevices. If pPhysicalDeviceCount is less than the number of physical devices available, at most pPhysicalDeviceCount structures will be written, and VK_INCOMPLETE will be returned instead of VK_SUCCESS, to indicate that not all the available physical devices were returned." interesting part "VK_INCOMPLETE will be returned instead of VK_SUCCESS, to indicate that not all the available physical devices were returned" but we still check if at least one device that was returned is available
20:16
but also it sounds like it will only return valid GPUs
20:16
so yeah it should not panic
20:16
the only panic would be that no GPU is returned but we catch that
Avatar
I need to leave for some time
Avatar
have a nice one
Exported 167 message(s)