Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when trying to connect to server #34

Closed
Wuzzy2 opened this issue Jul 14, 2020 · 6 comments
Closed

Crash when trying to connect to server #34

Wuzzy2 opened this issue Jul 14, 2020 · 6 comments

Comments

@Wuzzy2
Copy link

Wuzzy2 commented Jul 14, 2020

I can't get Soldat to run. When I try to run a local server and start the client to connect to it, first, the loading screen appears, and then both server and client crash at the same time.

I have followed the build instructions to build Soldat myself, and I managed to build server and client, but they don't work.

System information:

CRASH LOGS:

Server crash:

$ ./soldatserver_x64
ctf_Ash by chakapoko maker
Using default weapons mod
[NET] Game networking initialized.
[NET] Server is listening on 0.0.0.0:23073
[FileServer] Starting fileserver on 0.0.0.0:23083
[NET DEBUG] [#1950066577 UDP 127.0.0.1:45665] Remote host is using an unsigned cert.  Allowing connection, but it's not secure!
[NET] Received SteamNetConnectionStatusChangedCallback_t (1950066577, ((k_ESteamNetworkingIdentityType_SteamID, 18, 0, ['', '', '', '', '', '', '', '', '', '', '�', '�', '', '', '', '', 'a', '�', '', '', '', '', '', '', '', '', '', '', '', '', '', ''], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 127, 0, 0, 1, 97, 178, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], ['', '', '', '', '', '', '', '', '', '', '�', '�', '', '', '', '', 'a', '�', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''], (((0, 0, 65535, [127, 0, 0, 1]), [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 127, 0, 0, 1]), 45665), [0, 0, 4294901760, 16777343, 45665, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), -1, 65536, (((0, 0, 65535, [127, 0, 0, 1]), [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 127, 0, 0, 1]), 45665), 0, 1, 0, k_ESteamNetworkingConnectionState_Connected, 0, ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '#', '1', '9', '5', '0', '0', '6', '6'], ['5', '7', '7', ' ', 'U', 'D', 'P', ' ', '1', '2', '7', '.', '0', '.', '0', '.', '1', ':', '4', '5', '6', '6', '5', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''], k_ESteamNetTransport_Unknown), k_ESteamNetworkingConnectionState_Connected)
[Net] Destroying peer handle
[NET DEBUG] ../src/steamnetworkingsockets/clientlib/steamnetworkingsockets_connections.cpp(2605): Assertion Failed: Application didn't accept or close incoming connection in a reasonable amount of time.  This is probably a bug.
[NET DEBUG] [#1950066577 UDP 127.0.0.1:45665] problem detected locally (5003): App didn't accept or close incoming connection in time.
[NET] Received SteamNetConnectionStatusChangedCallback_t Shutting down server...
Shutting down game networking.
[NET DEBUG] Shutting down low level socket/threading support.
[FileServer] Stopping fileserver
An unhandled exception occurred at $0000000000497430:
EAccessViolation: Access violation
  $0000000000497430
  $00000000004D4F88  TOSTR,  line 424 of ../shared/Util.pas
  $00000000004D4F88  TOSTR,  line 424 of ../shared/Util.pas
  $00000000004FF015  PROCESSEVENTS,  line 1363 of ../shared/network/Net.pas
  $00000000004FE032  PROCESSEVENTSCALLBACK,  line 887 of ../shared/network/Net.pas
  $00007FB70B0D8B64 line 1077 of ../src/steamnetworkingsockets/clientlib/csteamnetworkingsockets.cpp
  $00000000004FDFD0 line 1173 of fgl.pp

An unhandled exception occurred at $000000000041B9A7:
EAccessViolation: Access violation
An unhandled exception occurred at $000000000041B9A7:
EAccessViolation: Access violation
  $000000000041B9A7
  $0000000000413663
  $0000000000426C6A
  $000000000040373E

An unhandled exception occurred at $000000000041B9A7:
EAccessViolation: 
  $000000000041B9A7
  $0000000000418BFC
  $0000000000413663
  $0000000000426C6A
  $000000000040373E

Client crash:

$ ./soldat_x64 -join 127.0.0.1 23073
[NET] Received SteamNetConnectionStatusChangedCallback_t (3565904154, ((k_ESteamNetworkingIdentityType_Invalid, 0, 0, ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''], (((0, 0, 0, [0, 0, 0, 0]), [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), 0), [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), -1, 0, (((0, 0, 65535, [127, 0, 0, 1]), [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 127, 0, 0, 1]), 23073), 0, 1, 0, k_ESteamNetworkingConnectionState_Connected, 0, ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '#', '3', '5', '6', '5', '9', '0', '4'], ['1', '5', '4', ' ', 'U', 'D', 'P', ' ', 'i', 'n', 'v', 'a', 'l', 'i', 'd', '@', '1', '2', '7', '.', '0', '.', '0', '.', '1', ':', '2', '3', '0', '7', '3', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''], k_ESteamNetTransport_Unknown), k_ESteamNetworkingConnectionState_Connected)
[NET DEBUG] [#3565904154 UDP invalid@127.0.0.1:23073] problem detected locally (5003): Timed out attempting to connect
An unhandled exception occurred at $00000000004ECF40:
EAccessViolation: Access violation
  $00000000004ECF40
  $00000000004AACB0  TOSTR,  line 424 of ../shared/Util.pas
  $00000000004AACB0  TOSTR,  line 424 of ../shared/Util.pas
  $00000000004D271B  PROCESSEVENTS,  line 1067 of ../shared/network/Net.pas
  $00000000004D1B8B  PROCESSEVENTSCALLBACK,  line 889 of ../shared/network/Net.pas
  $00007FF0B59C9B64 line 1077 of ../src/steamnetworkingsockets/clientlib/csteamnetworkingsockets.cpp
  $00000000004D1B30 line 1173 of fgl.pp

[NET] Received SteamNetConnectionStatusChangedCallback_t [NET DEBUG] Shutting down low level socket/threading support.
An unhandled exception occurred at $000000000041CF27:
EAccessViolation: 
An unhandled exception occurred at $000000000041CF27:
EAccessViolation: 
  $000000000041CF27
  $0000000000414BE3
  $00000000004281EA
  $000000000041A17C
  $000000000045F120
  $000000000041AEC7
  $0000000000404CCA
@Wuzzy2
Copy link
Author

Wuzzy2 commented Jul 14, 2020

Soldat version: 078795a

@zenyd
Copy link

zenyd commented Jul 14, 2020

I'm not sure if this will help, but can you try compiling again with an older version of the fpc (3.0.4)?

@Wuzzy2
Copy link
Author

Wuzzy2 commented Jul 14, 2020

OK, with FPC 3.0.4 it works!

FPC 3.2.0 has a lot of changes, it could be that they break things, see here: https://wiki.freepascal.org/User_Changes_3.2.0

Maybe you want to check out how to make Soldat work with FPC 3.2.0 as well? If not, I suggest to write in the readme that the EXACT version 3.0.4 is required (instead of the usual “this version or later”).

@zenyd
Copy link

zenyd commented Jul 14, 2020

if it won't work with 3.2, maybe it's some kind of compiler bug and needs reporting to fpc folks, so it can be fixed.

@Wuzzy2
Copy link
Author

Wuzzy2 commented Jul 15, 2020

I have no idea.

@BranDougherty
Copy link
Member

The error messages look a lot like what I saw when having problems with the GNS bindings, but I believe those issues are resolved. Feel free to reopen if you experience this again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants