DLL Wrapper on BMS 4.37 Server - Ubuntu 22.04
-
-
Update from the front.
6 hrs and every things goes well. I think we can say that we found a situation better than before.
It seems strange but i fill that the change more impacting was to put the server in an isolated environment with a stable and static situation in the bubble where the server is in ramp. Maybe this avoid to get the exception and go in CTD.
Let me know what do y think. If we can consider stable i will work on a dedicated post to share parameter and configuration of this…journey.
thanks again a lot to all supporting me in these days of fight to BMS Team and the creator of magic DLL that allow this.
Gundam
(below the view from Stacer performance tool) -
Update.
This time i tried with Theater Balkan (1st campain) with 2 client connected. Same configuration and server in RAMP in an isolated airport. In this scenario we add a package for a DEAD mission with SDB.
We flew till the FLOT without problem. After 20 minuts of flights and close to the actions, suddently we got the blue signal from the client and saw that the server was gone in CTD.
Let me know for any suggestion. i don’t know if it is related to Linux but maybe not.
Next try, i will make the same mission with Windows server hosting (my PC ).
Below the log details under user\log. (the error seem the same type).Thanks,
Gundam
================================== CRASHLOG =====================================
Falcon BMS.exe caused an EXCEPTION_ACCESS_VIOLATION in:
000000000491AC03 Falcon BMS.exe
Exception handler called in UnhandledExceptionHandler.
Read from location 0000000000000000 caused an access violation.
Bytes at CS:RIP: 49 8B 0C C2 48 85 C9 74 0A F3 0F 10 81 E8 01 00Registers:
RAX=0x0000000000000000 RBX=0x00000000374a0a50 RCX=0x0000000000000000 RDX=0x00000000ffffffff
RSI=0x0000000000000000 RDI=0x000000000eec7958 RBP=0x0000000039dafbd0 RSP=0x0000000039dafaa0
RIP=0x000000000491ac03 FLG=0x0000000000010246
R8=0x0000000000000064 R9=0x0000000000000000 R10=0x0000000000000000 R11=0x0000000039dafa30
R12=0x0000000004fe5c00 R13=0x0000000004fe5ab8 R14=0x000000003a280050 R15=0x0000000000363050
CS=0x0033 DS=0x002B SS=0x002B ES=0x0000 FS=0x0000 GS=0x0000Call Stack:
0033:000000000491AC03 Falcon BMS.exe
0033:00000000044FD99C Falcon BMS.exe
0033:00000000044FE84A Falcon BMS.exe
0033:0000000004A6DB05 Falcon BMS.exeTop of Stack:
0x0000000039DAFAA0: 00000000374A0A50 0000000039DAFBD0 0000000000000000 0000000000000000 P.J7…9…
0x0000000039DAFAC0: 00000000374A0A50 00000000044FD99C 000000003A2290B0 0000000000000000 P.J7…O…":…
0x0000000039DAFAE0: 0000000000000000 000000017002A382 0000000021CA4050 0000000004BE2E58 …p…P@.!..X…
0x0000000039DAFB00: 0000000004FE5C00 000000003984F5F0 000000007593E110 000000003739FD10 …9…u…97…
0x0000000039DAFB20: 00000000000103C9 0000000004BEA5DF 000000001B69CB30 0000000004BD53A7 …0.i…S…
0x0000000039DAFB40: 0000000000000000 0000000039DAFB58 0000000000000002 000000007593E110 …X…9…u…
0x0000000039DAFB60: 0000000000000020 0000000039962190 0000000000000000 0000000004FE7AF8 …!.9…z…
0x0000000039DAFB80: 0000000004FE5AB8 0000000000000053 0000000000000000 000000017005F464 .Z…S…d…p…
0x0000000039DAFBA0: 0000000000000000 00000000399CBF90 000000000EEC7958 0000000041A80000 …9…Xy…A…
0x0000000039DAFBC0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 …
0x0000000039DAFBE0: 0000000000000000 0000000000000053 0000000039DAFCB9 00000000044FE84A …S…9…J.O…
0x0000000039DAFC00: 000000000EEC7958 0000000000000000 000000007593E110 0000000004FE7AF8 Xy…u…z…
0x0000000039DAFC20: 0000000004FE7AF8 000000001B69E3F0 0000000000000000 000000001DCDBF90 .z…i…
0x0000000039DAFC40: 000000000EEC7958 0000000000000000 0000000041A00000 0000000000000000 Xy…A…
0x0000000039DAFC60: 4059000000000000 0000000000000000 0000000041200000 0000000000000000 …Y@… A…
0x0000000039DAFC80: 408F400000000000 0000000000000000 0000000042C80000 0000000000000000 …@.@…B…
0x0000000039DAFCA0: 0000000042480000 0000000000000000 0000000000000000 0000000000000000 …HB…
0x0000000039DAFCC0: 0000000000000000 0000000000000000 0000000042480000 000000000062D9D1 …HB…b…
0x0000000039DAFCE0: 000000000062D9D1 0000000000000004 0000000000000001 0000000000000000 …b…
0x0000000039DAFD00: 0000000021CA4050 0000000039962190 0000000039DAFE20 0000000004A6DB05 P@.!..!.9… …9…
0x0000000039DAFD20: 0000000000000000 0000000000000000 0000000000000001 000000007593E110 …u…
0x0000000039DAFD40: 0000000000000000 000000000000000A 0000000000000080 0000000000000000 …
0x0000000039DAFD60: 0000000000000000 0000000000140000 0000000004FE7AF8 00000000600B8C30 …z…0…`…
0x0000000039DAFD80: 0000000000000000 000000005AB46B50 0000000039F30050 0000000000140000 …Pk.Z…P…9…
0x0000000039DAFDA0: 0000000000000000 0000000039DAFDF8 0000000000000000 0000030000000400 …9…
0x0000000039DAFDC0: 0000000000000000 0000000000000000 0000000000000000 0000000039DAFE28 …(…9…
0x0000000039DAFDE0: 0000000000000000 0000000039F50050 0000000F17342044 000000051942BB3D …P…9…D 4…=.B…
0x0000000039DAFE00: 0000000F172DA77E 000000007B0741A3 0000000000000000 0000000000000000 ~.-…A.{…
0x0000000039DAFE20: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 …
0x0000000039DAFE40: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 …
0x0000000039DAFE60: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 …
0x0000000039DAFE80: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 …
0x0000000039DAFEA0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 …
0x0000000039DAFEC0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 …
0x0000000039DAFEE0: 0000000004A6D750 0000000000000000 0000000000000000 0000000004517ECD P…~Q…
0x0000000039DAFF00: 0000000000000000 0000000000000000 0000000000000000 0000000004A6D750 …P…
0x0000000039DAFF20: 0000000000000000 0000000039DAEC10 0000000039DAEC10 0000000000000005 …9…9…
0x0000000039DAFF40: 0000000004A6D440 0000000004EB5889 0000000000000000 000000003984F650 @…X…P…9…
0x0000000039DAFF60: 0000000000000000 0000000000000000 0000000000000000 000000007B62C629 …).b{…
0x0000000039DAFF80: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 …
0x0000000039DAFFA0: 0000000000000000 000000017005FB57 0000000000000000 0000000000000000 …W…p…
0x0000000039DAFFC0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 …
0x0000000039DAFFE0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 …
While Drawing LOD 259 (this may only be a coincidence if the call stack is not the LOD drawing code)================================================================================
TLS frame allocator:
15792 allocations with 31333776 bytes [0]
0 allocations with 0 bytes [1]
Renderer command count: 2092
Object at RCX(0000000000000000)================================================================================
Compiler Options:
_MSC_VER=1934 WINVER=0x601 _WIN32_WINNT=0x601 _WIN32_WINDOWS=0x601
NTDDI_VERSION=0x6010000 _WIN32_IE=0x800 ANSI _M_AMD64 AMD64 _WIN64 Release*System Information:
‘C:\Falcon_BMS\Bin\x64\Falcon BMS.exe’, run by root.
Error occurred at 22:41:06 on 2023-01-08.
Version: Falcon BMS 4.37.0 (x64) 322
Game is Campaign type Networked
Theater terrain path: ‘C:\Falcon_BMS\Data\Add-On Balkans\Terrdata\Balkans’
Operating System: Windows 10 (10.0.19043) Platform 2 .
Computer Name: VMI1145874 Domain: VMI1145874.
6 logical processor(s), type 8664.
CPU: AMD EPYC 7282 16-Core Processor . AuthenticAMD. Stepping: 0 Model: 1 Family: F.
32% memory in use:
16002 MB physical memory
10871 MB physical memory free
16002 MB paging file
10871 MB paging file free
134217728 MB user address space
134217728 MB user address space freeModule List:
C:\windows\system32\D3DCOMPILER_47.dll, loaded at 0x0000000000650000 - 4410168 bytes - TimeDateStamp 0x a0795b26 - File date is 23:28:52 on 2021-09-06
C:\Falcon_BMS\Bin\x64\d3d11.dll, loaded at 0x0000000000a90000 - 316416 bytes - TimeDateStamp 0x 5ffaa72f - File date is 08:05:20 on 2021-01-10
C:\windows\system32\d3dx11_43.dll, loaded at 0x0000000000af0000 - 276832 bytes - TimeDateStamp 0x 4bf70c01 - File date is 08:41:02 on 2010-05-26
C:\Falcon_BMS\Bin\x64\Falcon BMS.exe, loaded at 0x0000000004470000 - 180050944 bytes - TimeDateStamp 0x 63ac0fc4 - File date is 10:43:34 on 2022-12-28
C:\windows\system32\opengl32.dll, loaded at 0x000000007a850000 - 2400 bytes - TimeDateStamp 0x e6fdfb9 - File date is 13:05:26 on 2023-01-07
C:\windows\system32\kernelbase.dll, loaded at 0x000000007b000000 - 894742 bytes - TimeDateStamp 0x 0 - File date is 13:05:24 on 2023-01-07
C:\windows\system32\kernel32.dll, loaded at 0x000000007b600000 - 2220248 bytes - TimeDateStamp 0x 0 - File date is 13:05:24 on 2023-01-07Environment Variables:
0: <SHELL=/bin/bash>
1: <GTK_IM_MODULE=ibus>
2: <LANGUAGE=en_US:>
3: <SSH_AUTH_SOCK=/tmp/ssh-XXXXXXs8s92G/agent.1261>
4: <XMODIFIERS=@im=ibus>
5: <SSH_AGENT_PID=1345>
6: <LOGNAME=root>
7: <XDG_SESSION_TYPE=x11>
8: <PULSE_SCRIPT=/etc/xrdp/pulse/default.pa>
9: <LANG=en_US.UTF-8>
10: <XRDP_SOCKET_PATH=/run/xrdp/sockdir>
11: <XRDP_PULSE_SOURCE_SOCKET=xrdp_chansrv_audio_in_socket_10>
12: <CLUTTER_IM_MODULE=ibus>
13: <XDG_SESSION_CLASS=user>
14: <USER=root>
15: <XRDP_SESSION=1>
16: <XRDP_PULSE_SINK_SOCKET=xrdp_chansrv_audio_out_socket_10>
17: <SHLVL=1>
18: <XDG_SESSION_ID=c7>
19: <XDG_RUNTIME_DIR=/run/user/0>
20: <XDG_DATA_DIRS=/usr/share/gnome:/root/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop>
21: <DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/0/bus>
22: <UID=0>
23: <_=/usr/bin/xfce4-session>
24: <SESSION_MANAGER=local/vmi1145874.contaboserver.net:@/tmp/.ICE-unix/1363,unix/vmi1145874.contaboserver.net:/tmp/.ICE-unix/1363>
25: <PANEL_GDK_CORE_DEVICE_EVENTS=0>
26: <DISPLAY=:10.0>
27: <DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1=1>
28: <__GL_SHADER_DISK_CACHE=1>
29: <__GL_SHADER_DISK_CACHE_PATH=/root/WINE_GAMES>
30: <__NV_PRIME_RENDER_OFFLOAD=1>
31: <__GLX_VENDOR_LIBRARY_NAME=nvidia>
32: <__VK_LAYER_NV_optimus=NVIDIA_only>
33: <LD_LIBRARY_PATH=/root/.local/share/lutris/runners/wine/lutris-7.2-2-x86_64/lib:/root/.local/share/lutris/runners/wine/lutris-7.2-2-x86_64/lib64:/lib/x86_64-linux-gnu:/lib/i386-linux-gnu:/lib:/lib64:/lib32:/lib64:/usr/lib:/usr/lib64:/usr/lib32:/usr/lib64:/usr/lib/i386-linux-gnu:/usr/lib/x86_64-linux-gnu:/root/.local/share/lutris/runtime/Ubuntu-18.04-i686:/root/.local/share/lutris/runtime/steam/i386/lib/i386-linux-gnu:/root/.local/share/lutris/runtime/steam/i386/lib:/root/.local/share/lutris/runtime/steam/i386/usr/lib/i386-linux-gnu:/root/.local/share/lutris/runtime/steam/i386/usr/lib:/root/.local/share/lutris/runtime/Ubuntu-18.04-x86_64:/root/.local/share/lutris/runtime/steam/amd64/lib/x86_64-linux-gnu:/root/.local/share/lutris/runtime/steam/amd64/lib:/root/.local/share/lutris/runtime/steam/amd64/usr/lib/x86_64-linux-gnu:/root/.local/share/lutris/runtime/steam/amd64/usr/lib>
34: <WINEDEBUG=-all>
35: <DXVK_LOG_LEVEL=none>
36: <WINEARCH=win64>
37: <WINE=/root/.local/share/lutris/runners/wine/lutris-7.2-2-x86_64/bin/wine>
38: <WINE_MONO_CACHE_DIR=/root/.local/share/lutris/runners/wine/lutris-7.2-2-x86_64/mono>
39: <WINE_GECKO_CACHE_DIR=/root/.local/share/lutris/runners/wine/lutris-7.2-2-x86_64/gecko>
40: <GST_PLUGIN_SYSTEM_PATH_1_0=/root/.local/share/lutris/runners/wine/lutris-7.2-2-x86_64/lib64/gstreamer-1.0/:/root/.local/share/lutris/runners/wine/lutris-7.2-2-x86_64/lib/gstreamer-1.0/>
41: <WINEPREFIX=/root/WINE_GAMES>
42: <WINEESYNC=0>
43: <WINEFSYNC=0>
44: <game_name=Falcon_BMS_437>
45: <LUTRIS_GAME_UUID=9121b4e7-5452-4271-8966-41b2e5ac52d7>
46: <ComSpec=C:\windows\system32\cmd.exe>
47: <NUMBER_OF_PROCESSORS=6>
48: <OS=Windows_NT>
49: <PATH=C:\windows\system32;C:\windows;C:\windows\system32\wbem;C:\windows\system32\WindowsPowershell\v1.0>
50: <PATHEXT=.com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh>
51: <PROCESSOR_ARCHITECTURE=AMD64>
52: <PROCESSOR_IDENTIFIER=AMD64 Family 23 Model 49 Stepping 0, AuthenticAMD>
53: <PROCESSOR_LEVEL=23>
54: <PROCESSOR_REVISION=3100>
55: <windir=C:\windows>
56: <winsysdir=C:\windows\system32>
57: <TEMP=C:\users\root\Temp>
58: <TMP=C:\users\root\Temp>
59: <APPDATA=C:\users\root\AppData\Roaming>
60: <CLIENTNAME=Console>
61: <HOMEDRIVE=C:>
62: <HOMEPATH=\users\root>
63: <LOCALAPPDATA=C:\users\root\AppData\Local>
64: <LOGONSERVER=\VMI1145874>
65: <SESSIONNAME=Console>
66: <USERDOMAIN=VMI1145874>
67: <USERNAME=root>
68: <USERPROFILE=C:\users\root>
69: <ALLUSERSPROFILE=C:\ProgramData>
70: <ProgramData=C:\ProgramData>
71: <PUBLIC=C:\users\Public>
72: <ProgramFiles(x86)=C:\Program Files (x86)>
73: <ProgramW6432=C:\Program Files>
74: <CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files>
75: <CommonProgramW6432=C:\Program Files\Common Files>
76: <COMPUTERNAME=VMI1145874>
77: <ProgramFiles=C:\Program Files>
78: <CommonProgramFiles=C:\Program Files\Common Files>
79: <WINEDATADIR=??\Z:\root.local\share\lutris\runners\wine\lutris-7.2-2-x86_64\share\wine>
80: <WINEHOMEDIR=??\Z:\root>
81: <WINECONFIGDIR=??\Z:\root\WINE_GAMES>
82: <WINEDLLDIR0=??\Z:\root.local\share\lutris\runners\wine\lutris-7.2-2-x86_64\lib64\wine>
83: <WINEUSERNAME=root>
84: <WINEDLLOVERRIDES=d3d11.dll=n,b;d3d12,d3dcompiler_33,d3dcompiler_34,d3dcompiler_35,d3dcompiler_36,d3dcompiler_37,d3dcompiler_38,d3dcompiler_39,d3dcompiler_40,d3dcompiler_41,d3dcompiler_42,d3dcompiler_43,d3dcompiler_46,d3dcompiler_47,d3dx10,d3dx10_33,d3dx10_34,d3dx10_35,d3dx10_36,d3dx10_37,d3dx10_38,d3dx10_39,d3dx10_40,d3dx10_41,d3dx10_42,d3dx10_43,d3dx11_42,d3dx11_43,d3dx9_24,d3dx9_25,d3dx9_26,d3dx9_27,d3dx9_28,d3dx9_29,d3dx9_30,d3dx9_31,d3dx9_32,d3dx9_33,d3dx9_34,d3dx9_35,d3dx9_36,d3dx9_37,d3dx9_38,d3dx9_39,d3dx9_40,d3dx9_41,d3dx9_42,d3dx9_43=n;winemenubuilder=>
85: <WINELOCALE=en-US>
86: <SystemDrive=C:>
87: <SystemRoot=C:\windows>================================================================================
-
@Seifer Hi Seifer,
I am trying to replicate the CTD, and from a try did some minute ago i got the CTD soon after fire missile (small range).
I will proceed in the test to replicate. In which scenario the nullptr you are talking is present? Maybe i can focus my test to be sure this is the reason of CTD i observe.
Many thanks,
Gundam
-
@gundam please use the code icon to include your logs…
This is impossible to read otherwise…
-
-
Update from the font.
I found the problem. In the past i renamed the file “ParticleSys” under Data\Terrdata directory following an hits founded on a Wine website forum regardng an old installation of BMS.
This was the cause of the null pointer execption.
Now is one day Server still running in ramp. No issue at the moment. Balcan Campaign is running too.
In these days i will go on with “stress test” and multiplayer session with other pilot to test server stability and reliability.
One point is that for the moment in the Lutris configuration i allow to use all the CPU less 1. The idea is to keep one Core out of BMS utilization (VM has 6 core) to increase stability.
Is this a good approach or is not needed and better to give all the power to BMS exe instance? For the moment i see all the five CPU working well and even well balanced (around 50%).
Many thanks for any suggestion.
Gundam
-
@gundam we have a flag exactly for that:
set g_nAdditionalWorkers -1
This will make BMS use all cores but one. If you have hyperthreading, set it to -2.
-
-
Hi All,
For the Linux lover (including me now ), i have good news.
First stress test with a campaign mission and four pilot connected. 2 hrs mission without issues.
Target was SA-5 and SA-6 in the first Balcan Campaign.
No issue to report.
I will leave campaign run.
Stay tuned.
Gundam
-
I let the server running and after 16 hrs no more client could be connected. (first Balcan campaign - BMS 4.37)
Just asking for some hints and tricks leveraging on your experience.
This is the situation:
- No crash log on user log directory
- server seems to be in ramp(blackscreen due to DLL wrapper)
- from top command one core, just one core at 100% usage. With the only task at 100% Falcon BMS.exe
- from the task manager on the machine (lutris instance) the most consuming task is DLL wrapper but at 18%
How i can trobleshoot this behavior? In attach two image of top and task manager
Many thanks Ciao!
-
@gundam could be a deadlock but without a dmp, hard to know. Are you running with mono enabled? If so, what does it say?
-
@Seifer Hi Seifer,
I don’t see Mono option in Lutris configuration but i will check better.
In the meantime i make a try with all the core on field and this time after less that 3 hrs i had the same situation. Now i am trying with 4 core, just to understand if there is a relation between available core for BMS and the hang state.
I will check Mono and behavior and update the thread.
Thanks! Ciao
Gundam
-
@gundam just run it with -mono in command line.
-
@Seifer A…OK!
-
@gundam As the server return in hang state i will try with -mono options.
Thanks Saifer!
-
Hi All,
I did tests with mono option activated. I got hang state after more or less 5 hrs campaign running without issues (100% one core usage and no chance for a client to connect to the server - that answer Time out).
The tests was done 2 times in Balcan (first campaign) and 1 in KOREA theater (first campaign)
[link text](i put the mono logo in this google drive URL:
https://drive.google.com/file/d/1x4NWSE0sbsnT-kPAL_N-DbEpBqaDiuYL/view?usp=sharing)Thanks for any suggestion and/or hints how to troubleshoot this behavior.
Thanks to All,
Gundam
-
@gundam I’m always on the side for finding and fixing bugs, but just to keep things real – has anyone run a server on Windows for 5+ hrs?
(Is this a stability-on-Linux issue or a general BMS long-term stability issue?)
-
@airtex2019 Ciao Airtex,
Good point. Maybe someone running dedicated server with DLL wrapper has experience on that.
Anyway i am testing even with my PC Desktop Windows. Let’s see.
Gundam
-
Update from the front
-
test on windows desktop dedicated server with DLL Wrapper is still running…
-
on the VN Ubuntu instead i installed htop to have more details on what it is running during the hang state (1 core at 100%).
The picture show many “mono” task (i launch Balcon BMS with mono option to have the debug enable), one of this consuming all the single core that is 100% cause of server refusing any further conenction request. But i still don’t know why.
-