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

Game crash on connect #51

Closed
m3nda opened this issue Sep 29, 2015 · 5 comments
Closed

Game crash on connect #51

m3nda opened this issue Sep 29, 2015 · 5 comments
Labels

Comments

@m3nda
Copy link

m3nda commented Sep 29, 2015

Hello,
Game is crashing (on client side) when you try to connect via internet.
We opened and forwarded port 35666 on server (tcp and udp).

Other problem is that u cant play using i.e. tunngle.

@nallath nallath added the bug label Sep 30, 2015
@nallath
Copy link
Collaborator

nallath commented Sep 30, 2015

I don't think we've ever tried playing it over the interwebs. We usually just play over a local network.

@daid
Copy link
Owner

daid commented Sep 30, 2015

We haven't tried, but there is not a real reason why it should not work. Might be the same crash as daid/SeriousProton#6

@kwadroke
Copy link

Crash Report from 2015.11.13 build: (ran twice)
https://gist.github.com/kwadroke/dd5ebf388f99daa6bc79

This RPT is from a computer running Windows 8.1 32bit on Intel Atom with Intel HD Graphics card.

I have noticed if you quickly click connect when the server appears, sometimes you can connect without crashing.

@daid
Copy link
Owner

daid commented Nov 16, 2015

FYI, the intresting part of the crash file is:

004EEDCF 3C8F81E9 063B1CA0 0023FB58  EmptyEpsilon.exe!getSystemEffectiveness  [/home/daid/ee/EmptyEpsilon/src/spaceObjects/spaceship.cpp @ 924]
00501A17 3C8F81E9 0067875C 00677FEC  EmptyEpsilon.exe!update  [/home/daid/ee/EmptyEpsilon/src/spaceObjects/cpuShip.cpp @ 70]
00596B02 00000001 06394194 0023FDC4  EmptyEpsilon.exe!runMainLoop  [/home/daid/ee/SeriousProton/src/engine.cpp @ 139]
00638B66 056181A8 00000032 00000001  EmptyEpsilon.exe!main  [/home/daid/ee/EmptyEpsilon/src/main.cpp @ 229]
004013E0 7FFDB000 74E84170 0D731E29  EmptyEpsilon.exe!__tmainCRTStartup  [/build/buildd/mingw-w64-3.1.0/build/i686-w64-mingw32-i686-w64-mingw32-crt/../../mingw-w64-crt/crt/crtexe.c @ 332]
74E84198 7FFDB000 2F451DAD 00000000  KERNEL32.DLL!@BaseThreadInitThunk@12
770332D1 FFFFFFFF 7705F08F 00000000  ntdll.dll!__RtlUserThreadStart
7703329F 004014E0 7FFDB000 00000000  ntdll.dll!__RtlUserThreadStart@8

As well as:

EmptyEpsilon.exe caused an Access Violation at location 004EEDCF in module EmptyEpsilon.exe Reading from location 000002D5.

What it says, is the function "getSystemEffectiveness" on the line "if (gameGlobalInfo->use_system_damage)" is accessing memory that it is not allowed to access. Namely, address "000002D5", which is close to 0. Meaning that "gameGlobalInfo" is not yet set.

Which, now that I think of it, makes total sense. The "gameGlobalInfo" object is send from the server to the client, but ships can be send before this. If there is a large came world, and the network connection is a bit slow. Then ships could be on the clients before the game state is complete, causing this crash. Which also explains why it only happens when there is a scenario selected already.

The fix is also easy!

daid added a commit that referenced this issue Nov 16, 2015
@daid daid closed this as completed Nov 16, 2015
@daid
Copy link
Owner

daid commented Nov 16, 2015

Many thanks!

amir-arad pushed a commit to amir-arad/EmptyEpsilon that referenced this issue Sep 25, 2018
StarryWisdom pushed a commit to StarryWisdom/EmptyEpsilon that referenced this issue Dec 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants