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

Random Game Crash #14713

Open
o34n22 opened this Issue Jan 11, 2018 · 9 comments

Comments

Projects
None yet
6 participants
@o34n22

o34n22 commented Jan 11, 2018

Does anyone else encounter this problem? MP as well as SP games crash randomly. I inserted the head of debug.log

system information:
ubuntu 14.04 on
Intel® Core™ i5-2520M CPU @ 2.50GHz × 4
Intel® Sandybridge Mobile

local.mix: failed to resolve filenames for 48 unknown hashes
Found 36 domains for movement class 699 on map Desert Shellmap.
Found 3 domains for movement class 4096 on map Desert Shellmap.
Found 3 domains for movement class 4097 on map Desert Shellmap.
--Tick: 1 (net)
--Tick: 2 (local)
--Tick: 3 (local)
--Tick: 4 (net)
--Tick: 5 (local)
--Tick: 6 (local)
--Tick: 7 (net)
--Tick: 8 (local)
--Tick: 9 (local)
--Tick: 10 (net)
--Tick: 11 (local)
--Tick: 12 (local)
--Tick: 13 (net)
--Tick: 14 (local)
--Tick: 15 (local)
--Tick: 16 (net)

@o34n22 o34n22 changed the title from Random Game Crash to Random Game Crash #crash Jan 11, 2018

@o34n22 o34n22 changed the title from Random Game Crash #crash to Random Game Crash Jan 11, 2018

@abcdefg30 abcdefg30 added the Crash label Jan 12, 2018

@abcdefg30

This comment has been minimized.

Show comment
Hide comment
@abcdefg30

abcdefg30 Jan 12, 2018

Member

Can you post your exception.log as well, please?

Member

abcdefg30 commented Jan 12, 2018

Can you post your exception.log as well, please?

@onnd

This comment has been minimized.

Show comment
Hide comment
@onnd

onnd Jan 12, 2018

I'm also getting this on Linux with playtest-20180102. I have no exception.log file in ~/.openra/Logs/
I get this stacktrace on the terminal:

openra-raStacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.RuntimeType.get_Name (System.RuntimeType) <IL 0x00013, 0x00061>
  at OpenRA.Network.SyncReport.GenerateSyncReport (OpenRA.Network.SyncReport/Report) <IL 0x00114, 0x003d6>
  at OpenRA.Network.SyncReport.UpdateSyncReport () <IL 0x0000f, 0x0002f>
  at OpenRA.Network.OrderManager.Tick () <IL 0x000ea, 0x0024b>
  at OpenRA.Game.InnerLogicTick (OpenRA.Network.OrderManager) <IL 0x001ee, 0x0060f>
  at OpenRA.Game.LogicTick () <IL 0x00055, 0x000e3>
  at OpenRA.Game.Loop () <IL 0x000d6, 0x00167>
  at OpenRA.Game.Run () <IL 0x00042, 0x00087>
  at OpenRA.Game.InitializeAndRun (string[]) <IL 0x00011, 0x0004b>
  at OpenRA.Program.Main (string[]) <IL 0x00050, 0x000ff>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object (object,intptr,intptr,intptr) <IL 0x00057, 0x000fd>

Native stacktrace:

        mono(+0xc3cd4) [0x55600a98ccd4]
        mono(+0x11ab8e) [0x55600a9e3b8e]
        mono(+0x3d5c3) [0x55600a9065c3]
        /lib64/libpthread.so.0(+0x13d00) [0x7fceff183d00]
        mono(+0x2702a1) [0x55600ab392a1]
        mono(mono_string_new+0x44) [0x55600aaacc74]
        [0x4165f4a2]

Debug info from gdb:

AL lib: (EE) alc_cleanup: 1 device not closed

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

/usr/games/bin/openra-ra: rad 4: 22342 Avbruten (SIGABRT)      mono --debug OpenRA.Game.exe Game.Mod=ra Engine.LaunchPath="/usr/games/bin/openra-ra" "$@"
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.

onnd commented Jan 12, 2018

I'm also getting this on Linux with playtest-20180102. I have no exception.log file in ~/.openra/Logs/
I get this stacktrace on the terminal:

openra-raStacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.RuntimeType.get_Name (System.RuntimeType) <IL 0x00013, 0x00061>
  at OpenRA.Network.SyncReport.GenerateSyncReport (OpenRA.Network.SyncReport/Report) <IL 0x00114, 0x003d6>
  at OpenRA.Network.SyncReport.UpdateSyncReport () <IL 0x0000f, 0x0002f>
  at OpenRA.Network.OrderManager.Tick () <IL 0x000ea, 0x0024b>
  at OpenRA.Game.InnerLogicTick (OpenRA.Network.OrderManager) <IL 0x001ee, 0x0060f>
  at OpenRA.Game.LogicTick () <IL 0x00055, 0x000e3>
  at OpenRA.Game.Loop () <IL 0x000d6, 0x00167>
  at OpenRA.Game.Run () <IL 0x00042, 0x00087>
  at OpenRA.Game.InitializeAndRun (string[]) <IL 0x00011, 0x0004b>
  at OpenRA.Program.Main (string[]) <IL 0x00050, 0x000ff>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object (object,intptr,intptr,intptr) <IL 0x00057, 0x000fd>

Native stacktrace:

        mono(+0xc3cd4) [0x55600a98ccd4]
        mono(+0x11ab8e) [0x55600a9e3b8e]
        mono(+0x3d5c3) [0x55600a9065c3]
        /lib64/libpthread.so.0(+0x13d00) [0x7fceff183d00]
        mono(+0x2702a1) [0x55600ab392a1]
        mono(mono_string_new+0x44) [0x55600aaacc74]
        [0x4165f4a2]

Debug info from gdb:

AL lib: (EE) alc_cleanup: 1 device not closed

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

/usr/games/bin/openra-ra: rad 4: 22342 Avbruten (SIGABRT)      mono --debug OpenRA.Game.exe Game.Mod=ra Engine.LaunchPath="/usr/games/bin/openra-ra" "$@"
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
@LipkeGu

This comment has been minimized.

Show comment
Hide comment
@LipkeGu

LipkeGu Jan 13, 2018

Member

What was your last action when as this happen?

Member

LipkeGu commented Jan 13, 2018

What was your last action when as this happen?

@pchote

This comment has been minimized.

Show comment
Hide comment
@pchote

pchote Jan 13, 2018

Member

Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.

Unfortunately this is not an OpenRA crash, so there may not be much that we can do to help.
What mono version and linux distro are you running?

Member

pchote commented Jan 13, 2018

Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.

Unfortunately this is not an OpenRA crash, so there may not be much that we can do to help.
What mono version and linux distro are you running?

@onnd

This comment has been minimized.

Show comment
Hide comment
@onnd

onnd Jan 13, 2018

I don't remember doing anything specific when it crashed, had been playing for about an hour.

I'm running gentoo with mono 4.4.1.0. Never got this with openra-20170421 which I was running previously, but I realise it can still be a bug in mono. I'll try with other newer versions of mono...

onnd commented Jan 13, 2018

I don't remember doing anything specific when it crashed, had been playing for about an hour.

I'm running gentoo with mono 4.4.1.0. Never got this with openra-20170421 which I was running previously, but I realise it can still be a bug in mono. I'll try with other newer versions of mono...

@o34n22

This comment has been minimized.

Show comment
Hide comment
@o34n22

o34n22 Jan 14, 2018

OpenRA engine version release-20171014
Red Alert mod version release-20171014
on map b13ef6a08595d94dc6e0a3583bcabe41ede1c032 (LAB-Divide-NoF 5.4 by Community Effort - Script by a bored Coder).
Date: 2018-01-11 22:18:09Z
Operating System: Linux (Unix 4.4.0.104)
Runtime Version: Mono 3.2.8 (Debian 3.2.8+dfsg-4ubuntu1.1) CLR 4.0.30319.17020
Exception of type `System.NullReferenceException`: Object reference not set to an instance of an object
  at OpenRA.Game+<InnerLogicTick>c__AnonStorey3.<>m__1 () [0x00000] in <filename unknown>:0 
  at OpenRA.Sync+<CheckSyncUnchanged>c__AnonStorey0.<>m__0 () [0x00000] in <filename unknown>:0 
  at OpenRA.Sync.CheckSyncUnchanged[Boolean] (OpenRA.World world, System.Func`1 fn) [0x00000] in <filename unknown>:0 
  at OpenRA.Sync.CheckSyncUnchanged (OpenRA.World world, System.Action fn) [0x00000] in <filename unknown>:0 
  at OpenRA.Game.InnerLogicTick (OpenRA.Network.OrderManager orderManager) [0x00000] in <filename unknown>:0 
  at OpenRA.Game.LogicTick () [0x00000] in <filename unknown>:0 
  at OpenRA.Game.Loop () [0x00000] in <filename unknown>:0 
  at OpenRA.Game.Run () [0x00000] in <filename unknown>:0 
  at OpenRA.Program.Run (System.String[] args) [0x00000] in <filename unknown>:0 
  at OpenRA.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 

o34n22 commented Jan 14, 2018

OpenRA engine version release-20171014
Red Alert mod version release-20171014
on map b13ef6a08595d94dc6e0a3583bcabe41ede1c032 (LAB-Divide-NoF 5.4 by Community Effort - Script by a bored Coder).
Date: 2018-01-11 22:18:09Z
Operating System: Linux (Unix 4.4.0.104)
Runtime Version: Mono 3.2.8 (Debian 3.2.8+dfsg-4ubuntu1.1) CLR 4.0.30319.17020
Exception of type `System.NullReferenceException`: Object reference not set to an instance of an object
  at OpenRA.Game+<InnerLogicTick>c__AnonStorey3.<>m__1 () [0x00000] in <filename unknown>:0 
  at OpenRA.Sync+<CheckSyncUnchanged>c__AnonStorey0.<>m__0 () [0x00000] in <filename unknown>:0 
  at OpenRA.Sync.CheckSyncUnchanged[Boolean] (OpenRA.World world, System.Func`1 fn) [0x00000] in <filename unknown>:0 
  at OpenRA.Sync.CheckSyncUnchanged (OpenRA.World world, System.Action fn) [0x00000] in <filename unknown>:0 
  at OpenRA.Game.InnerLogicTick (OpenRA.Network.OrderManager orderManager) [0x00000] in <filename unknown>:0 
  at OpenRA.Game.LogicTick () [0x00000] in <filename unknown>:0 
  at OpenRA.Game.Loop () [0x00000] in <filename unknown>:0 
  at OpenRA.Game.Run () [0x00000] in <filename unknown>:0 
  at OpenRA.Program.Run (System.String[] args) [0x00000] in <filename unknown>:0 
  at OpenRA.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0 
@GraionDilach

This comment has been minimized.

Show comment
Hide comment
@GraionDilach

GraionDilach Jan 14, 2018

Contributor

@o34n22 your crash has nothing to do with this ticket and I suspect it's caused by the custom LUA of the map you played on, asin https://resource.openra.net/maps/22557 .

Contributor

GraionDilach commented Jan 14, 2018

@o34n22 your crash has nothing to do with this ticket and I suspect it's caused by the custom LUA of the map you played on, asin https://resource.openra.net/maps/22557 .

@pchote

This comment has been minimized.

Show comment
Hide comment
@pchote

pchote Jan 14, 2018

Member

@GraionDilach @o34n22 is the person who created this issue, so it has everything to do with this ticket!

Member

pchote commented Jan 14, 2018

@GraionDilach @o34n22 is the person who created this issue, so it has everything to do with this ticket!

@LipkeGu

This comment has been minimized.

Show comment
Hide comment
@LipkeGu

LipkeGu Jan 14, 2018

Member

@pchote #14654 fixes this but every one says we cant skip orders :( The problem is that this crash is happen when:

get malformed Orders from clients (smaller than 4 bytes, maybe null or entire empty data).
var ms = new MemoryStream(bytes, 4, bytes.Length - 4);

https://github.com/LipkeGu/OpenRA/blob/b4d94300f5bb0fb6d5cfa1872f8dff81dbe512f8/OpenRA.Game/Network/OrderIO.cs#L26

I noticed while trying to join a local dev game a noticable "lagging"... but cant get it to crash it also seems that something not gets disposed, i tried to join my own server > 100 and VS shows increasing memory usage and it laggs on the "Joining" client. As i begun to reproduce it was 372 MB at the enhd it was 513 MB

Member

LipkeGu commented Jan 14, 2018

@pchote #14654 fixes this but every one says we cant skip orders :( The problem is that this crash is happen when:

get malformed Orders from clients (smaller than 4 bytes, maybe null or entire empty data).
var ms = new MemoryStream(bytes, 4, bytes.Length - 4);

https://github.com/LipkeGu/OpenRA/blob/b4d94300f5bb0fb6d5cfa1872f8dff81dbe512f8/OpenRA.Game/Network/OrderIO.cs#L26

I noticed while trying to join a local dev game a noticable "lagging"... but cant get it to crash it also seems that something not gets disposed, i tried to join my own server > 100 and VS shows increasing memory usage and it laggs on the "Joining" client. As i begun to reproduce it was 372 MB at the enhd it was 513 MB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment