Giter Club home page Giter Club logo

Comments (8)

ClementCapart avatar ClementCapart commented on May 14, 2024 1

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.

zpostfacto avatar zpostfacto commented on May 14, 2024

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.

StefanSlev avatar StefanSlev commented on May 14, 2024

I tried to connect to my server with 127.0.0.1 but the error still pops up.

from gamenetworkingsockets.

zpostfacto avatar zpostfacto commented on May 14, 2024

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.

StefanSlev avatar StefanSlev commented on May 14, 2024

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.

DerGaijin avatar DerGaijin commented on May 14, 2024

Same Error
any Updates about this Error how to fix it?

from gamenetworkingsockets.

TheWillard avatar TheWillard commented on May 14, 2024

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.

DerGaijin avatar DerGaijin commented on May 14, 2024

Nice yes that worked for me
Thank you very much :D

from gamenetworkingsockets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.