Comments (8)
Crash when trying to connect as client (server seems to run fine).
GameNetworkingSockets.dll!std::char_traits<char>::assign(char & _Left, const char & _Right) Line 343 C++
GameNetworkingSockets.dll!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Eos(const unsigned __int64 _Newsize) Line 3857 C++
GameNetworkingSockets.dll!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::clear() Line 2881 C++
GameNetworkingSockets.dll!CCryptoKeyBase::GetRawDataAsStdString(std::basic_string<char,std::char_traits<char>,std::allocator<char> > * pString) Line 286 C++
GameNetworkingSockets.dll!SteamNetworkingSocketsLib::CSteamNetworkConnectionBase::InitLocalCryptoWithUnsignedCert() Line 692 C++
GameNetworkingSockets.dll!SteamNetworkingSocketsLib::CSteamNetworkConnectionBase::BThinkCryptoReady(__int64 usecNow) Line 604 C++
GameNetworkingSockets.dll!SteamNetworkingSocketsLib::CSteamNetworkConnectionBase::InitConnectionCrypto(__int64 usecNow) Line 556 C++
GameNetworkingSockets.dll!SteamNetworkingSocketsLib::CSteamNetworkConnectionBase::BInitConnection(__int64 usecNow, char[1024] & errMsg) Line 529 C++
GameNetworkingSockets.dll!SteamNetworkingSocketsLib::CSteamNetworkConnectionUDP::BInitConnect(const SteamNetworkingIPAddr & addressRemote, char[1024] & errMsg) Line 775 C++
GameNetworkingSockets.dll!SteamNetworkingSocketsLib::CSteamNetworkingSockets::ConnectByIPAddress(const SteamNetworkingIPAddr & address) Line 444 C++
example_chat.exe!ChatClient::Run(const SteamNetworkingIPAddr & serverAddr) Line 535 C++
example_chat.exe!main(int argc, const char * * argv) Line 734 C++
Project built on Windows 10, with CMake/VS 2019. it seems to crash on calling std::string::clear(). when trying to obtain a crypto key.
from gamenetworkingsockets.
0.0.0.0 is not the right address to connect to your server. 0.0.0.0 means "any local IP" and it's a valid thing to use when listening, but not when connecting
127.0.0.1 is the right IP to connect.
I'll see what is causing that assert, but I suspect it is downstrram of that.
from gamenetworkingsockets.
I tried to connect to my server with 127.0.0.1 but the error still pops up.
from gamenetworkingsockets.
Nope, I haven't seen that one! I'll see if I can reproduce it. Is this a debug build or a release build?
Just had an idea. Is the Windows firewall prompt coming up and stalling any of the socket calls?
Also, can you explain briefly how do I link a new project with this library ?
Ah, ordinary (non-CMake) Visual Studio projects. That's something I know about! (I really don't know anything about CMake). For that, you would just link with the import library GameNetworkingSockets.lib and have the .dll nearby your executable when it runs.
from gamenetworkingsockets.
I got the error mentioned when I tried to run the example_chat.exe, the one created after building the project as explained in BUILDING.md.
After that, I tried to build the example on my own in a VS project. On debug as well as on release, the client crashes on line 529: m_hConnection = m_pInterface->ConnectByIPAddress(serverAddr); with Access violation reading location; It seems that m_pInterface is a null pointer.
from gamenetworkingsockets.
Same Error
any Updates about this Error how to fix it?
from gamenetworkingsockets.
I had the same error, it occurred because I mixed debug and release builds (my OpenSSL & protobuf were release builds, while my GameNetworkingSockets build was a debug build), so make sure you are building all your dependencies and GameNetworkingSockets with the same build type. I guess it's the same with #54.
from gamenetworkingsockets.
Nice yes that worked for me
Thank you very much :D
from gamenetworkingsockets.
Related Issues (20)
- Building fails on Archlinux with error HOT 3
- thread sanitizer detects issues HOT 4
- valgrind: Conditional jump or move depends on uninitialised value HOT 6
- lets move to zpp::bits!? HOT 2
- Steps to build for iOS and Android
- VCPKG / Building x86-windows-static
- Where/Who to contact for console access HOT 1
- cs2 and csgo ping HOT 1
- Early Retry Mechanism for SteamNetworkingSockets Authentication HOT 9
- Build fails to succeed for Windows / Visual Studio HOT 1
- Request to add compression
- minbase_decls.h always defines DLL_EXPORT on Windows (issues with static pthread)
- Build fails with clang 16 from non utf-8 garbage character
- Q: Performance warning
- Segmentation fault on CreateListenSocketIP using WSL2 Ubuntu
- Fail to build in windows 10 x64 due to openssl HOT 2
- Install with libsodium
- Unable to establish P2P with ICE
- test_p2p client failing
- Inaccuracy in the message sending function
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gamenetworkingsockets.