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

RttR Crashs after quitting #277

Closed
Spikeone opened this issue Sep 24, 2015 · 11 comments
Closed

RttR Crashs after quitting #277

Spikeone opened this issue Sep 24, 2015 · 11 comments
Assignees

Comments

@Spikeone
Copy link
Member

Everytime I quit RttR now the game gives me a message "RttR Crashed would you like to send... "

Latest rev
Win7 x64 Ultimate

@Flamefire Flamefire self-assigned this Sep 25, 2015
@Flamefire Flamefire added this to the 0.8.3 - bugfixes milestone Sep 25, 2015
@stefson
Copy link
Contributor

stefson commented Sep 25, 2015

I just stepped into this with system-boost-1.58 - still testing with 1.56

crash from a replay https://bpaste.net/show/9e544ebf9370
crash from a normal game https://bpaste.net/show/c0ccef3b1051

@Flamefire
Copy link
Member

Thanks. This helps a lot:

8 0x00007ffff62cabad in vfprintf () from /lib64/libc.so.6
9 0x00007ffff637a4cb in _vfprintf_chk () from /lib64/libc.so.6
10 0x00000000007a82fa in Log::vwrite(char const
, va_list_tag) ()
11 0x00000000007a8375 in Log::lvprintf(char const
, _va_list_tag) ()
12 0x00000000007a8407 in Log::lprintf(char const*, ...) ()
13 0x000000000059dce9 in GameClient::Stop() ()

I'd really would weed out all these *printf functions as they easily cause problems and worse...

@stefson
Copy link
Contributor

stefson commented Sep 25, 2015

system-boost-1.56 is not affected. but the crash only occurs when using the [x] to close the game or replay while running - not when going through the menus (you know what I mean?)

@stefson
Copy link
Contributor

stefson commented Sep 25, 2015

system-boost-1.55 is affected, errors are slightly different.

game crash log https://bpaste.net/show/038d1300bb69
replay crash log https://bpaste.net/show/6d42003a4d2b

@Flow86
Copy link
Member

Flow86 commented Sep 25, 2015

propably a bug inside the Logger, I will provide a better logger soon, I already have something better in mind

Ah - one idea: could it be that you can't write into the logging directory or the logging directory is wrong in your build?

@stefson
Copy link
Contributor

stefson commented Sep 26, 2015

uhm, which directory is the logging directory and where is it supposed to be found at? (Linux x64 multilib)

@Flow86
Copy link
Member

Flow86 commented Sep 26, 2015

~/.s25rttr/LOGS

@stefson
Copy link
Contributor

stefson commented Sep 26, 2015

I have read + write access to it. So this not the problem :)

@Flamefire
Copy link
Member

Found the problem: The Log singleton is freed before the client is freed. This causes access to invalid values...

@Flow86
Copy link
Member

Flow86 commented Sep 28, 2015

how come that the singleton is freed before the client O.o

@Flamefire
Copy link
Member

Better question: How come the client was freed before the log?
Both are singletons. Their creation and therefore destruction order are not specified. We should certainly avoid using them. I'm currently implementing a dead-reference check for the singletons...
Made the Log a Phoenix, but same problem with LobbyClient -.- We probably need priorities for those

Flamefire added a commit to Flamefire/s25client that referenced this issue Sep 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants