Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment   Page 1 of 2      1   2   Next
jmyers42az

Registered:
Posts: 34
Reply with quote  #1 
Good morning crew,

So just an update. Running Cosmos 1.3 at Phoenix Fan Fusion. Running into some issues. Biggest issue is Running Cosmos with 5 ships, the Artemis being the server for the entire session while the 4 others are acting as main screens for the 4 playable ships. This allows me to manage the game with out jumping over the participants to reset games. Problem, the server resets every 20 to 30 min of game play. I have even rebuilt the server and it still does it. Im trying to capture causes and such with no real luck. Other issue is if I run ships as individuals, dmx works perfectly. When I network them all together, the dmx addressing is all messed up and is not working. Works in the config and tested with the Cosmos dmx editor. Looking for initial ideas to help with the server crashing
DizzyKungFu

Registered:
Posts: 250
Reply with quote  #2 
Are you running with Fighters? If so, try removing them from the equation and see if that improves server stability.

Another thought: Do you have a real Windows computer handy? If so, try running the server on that. I've never really tried running Cosmos on Linux, but if you're having application crashing issues, then Linux might be the culprit.

Failing any of the above, maybe just try switching up the computer you're using for the server... maybe you've got some sus memory DIMMs or a driver/configuration issue.
DizzyKungFu

Registered:
Posts: 250
Reply with quote  #3 
On the server, hitting F8 (for network info) or F9 (for client connection status) may help you troubleshoot.
jmyers42az

Registered:
Posts: 34
Reply with quote  #4 
So quick update, will give more later.  Wanted to throw this up there before I forget.  We tried whittling down to 2 servers, anda no game master.  still had the server crash on 2 different machines.  I have attached the applicaiton error crash message if that helps the development team.  We had to fall back to the OG Artemis, which was still successful, but was really hoping to debut it to Phoenix at the event.  Let me know how else I can help to understand what happened.

 
Attached Files
txt cosmos crash report 2.txt (1.92 KB, 9 views)
txt cosmos crash report.txt (1.99 KB, 10 views)

DizzyKungFu

Registered:
Posts: 250
Reply with quote  #5 
Quote:
Originally Posted by jmyers42az
So quick update, will give more later.  Wanted to throw this up there before I forget.  We tried whittling down to 2 servers, anda no game master.  still had the server crash on 2 different machines.  I have attached the applicaiton error crash message if that helps the development team.  We had to fall back to the OG Artemis, which was still successful, but was really hoping to debut it to Phoenix at the event.  Let me know how else I can help to understand what happened.


That's too bad, I'm sorry you had such trouble with Cosmos! I'll bring these logs to Thom's meeting this week. Were they on a Linux machine or did you manage to find a Windows server? If Linux, what was your emulator/VM setup?
quaris

Avatar / Picture

Registered:
Posts: 16
Reply with quote  #6 

My best guess is the crashes have something to do with fighters, as DizzyKungFu already mentioned. One other person I know of (besides DizzyKungFu) reported server crashes when running fighters in version 1.3.0 too. I haven't experienced server crashes myself, but I have experienced different client crashes intermittently when launching fighters.

This is a less likely possibility I think, but was there a chance that any unusual characters (for example, "';:$,. ...) were typed into a text input box (for example, ship name, crew person name, fighter pilot name, minutes to game end, minutes to war in border war, etc.)? Doing this can cause many different types of crashes and bugs, depending on the text that's typed in. If you want more details, github issue #569 goes into much more depth.

Re DMX with multiple ships; I don't much about DMX, but there is a seemingly-related discussion on github issue #604.

jmyers42az

Registered:
Posts: 34
Reply with quote  #7 
Quote:
Originally Posted by DizzyKungFu


That's too bad, I'm sorry you had such trouble with Cosmos! I'll bring these logs to Thom's meeting this week. Were they on a Linux machine or did you manage to find a Windows server? If Linux, what was your emulator/VM setup?


Dedicated windows 10 devices. Running a ghost ship to host the galaxy, and 4 others as ships
LawsonThompson

Registered:
Posts: 827
Reply with quote  #8 
Quote:
Originally Posted by jmyers42az
... I have attached the applicaiton error crash message if that helps the development team.  We had to fall back to the OG Artemis, which was still successful, but was really hoping to debut it to Phoenix at the event.  Let me know how else I can help to understand what happened.



The crash report #2 is an Artemis.exe (2.x) crash report, so you had a crash in both Artemis 2 and Cosmos, correct?


__________________
----
https://LTEBridge.com
jmyers42az

Registered:
Posts: 34
Reply with quote  #9 
Ignore the second one.   Its the Artemis 3 one
quaris

Avatar / Picture

Registered:
Posts: 16
Reply with quote  #10 
Were players piloting fighter craft (or shuttles or bombers) when the Cosmos crashes happened? Do you remember if any of these single-seat craft were getting destroyed? If so, the server crashes might have been triggered by a single-seat craft getting destroyed when the location it launched from has no other craft docked (more details: https://github.com/artemis-sbs/LegendaryMissions/issues/662). The devs know about this so hopefully it will be patched soon.

if you want a patch for the aforementioned crash (or crashes and bugs in general) and can't wait for a vanilla update for some reason, you could try this bugfixing mod I recently released: https://github.com/quaris628/ArtemisCosmosUnofficialPatch It doesn't make any DMX changes though, so if you're confident your crashes (and other issues) are DMX-related then this mod wouldn't help.
shasse

Registered:
Posts: 8
Reply with quote  #11 
Our group had a number of crashes on 6/14 just after upgrading to 1.3.0. We were making pretty heavy use of fighters, but after we found this write up none of us were conclusively sure that a fighter got destroyed as the server crashed. I have enabled windows registry settings to capture a full crash dump if we encounter this again. Does anyone have any other proactive diagnostics we can set to help debug/diagnose this if it happens again?

Also I am curious about the timing of a potential release incorporating this fix. 1.3.0 was 35 days ago. Does anyone have any idea about when 1.3.2+ might be released, or is it worth the effort to apply the patch manually? If so does it need to be applied to the server and all clients, or just the server?

Thanks!

Scott
shasse

Registered:
Posts: 8
Reply with quote  #12 
Looking further at potential diagnostic techniques, I should in theory be able to get the python call stack from a crash-time generated .dmp file. But has anyone been able to run cosmos with PYTHONFAULTHANDLER="1" in the environment and if so does that work to generate a Python traceback on a crash? That seems like a lot less work if it works.

Thanks!

Scott
quaris

Avatar / Picture

Registered:
Posts: 16
Reply with quote  #13 

Re: Release timelines

I don't know when the next vanilla release with be. The devs have rarely announced or even hinted at future dates for releases in the past.

However, my guess is that it will be at least a week or two until another vanilla release.

I suspect that the devs want to (and should) wait until the game is tested more thoroughly after they fixed the last-craft-destroyed crash. As part of that fix, they added some assert errors, which will now sometimes happen instead of the game hard crashing (which is good because the assert errors will give some information about what went wrong). But those assert errors are also sometimes getting triggered by non-crash bugs (which isn't good when playing the game like a normal person, though that assert error is helpful for detecting and fixing those bugs). So all those bugs should probably get fixed before another release, so that the game doesn't crash even more often than it did before.

Re: Patch on server or clients?

I recommend patching the clients too. The clients would benefit from fixes to rare crashes and other bugs caused by graphics files getting corrupted, fixes to many bugs in the default keybinds, and fixes to some bugs where gui elements are positioned on the screen incorrectly.

However, patching just the server should still provide some of the patch's bugfixes and otherwise work okay. It would be an improvement over everything running pure vanilla.

Re: Diagnostics

I was able to get a python stack trace by editing the mission script code to call faulthander.enable() with a custom file argument, when I reproduced the known last-craft-destroyed server crash.
If I let the faulthandler's file be the default sys.stderr, then the game hits a python exception crash because apparently sys.stderr has no .fileno attribute (which I think means the sys.stderr file was never opened, which I'm guessing is a symptom of python running in pybind11 instead of natively but I don't know for sure).

I was able to get and set python environment variables by editing the mission script code to read/write to the os.environ dictionary. However, while you can set PYTHONFAULTHANDLER, I don't know how you could specify a non-default file the python trace should be dumped to (without using faulthandler.enable() instead), and unless you could then I expect faulthandler would try to use sys.stderr and hit the same python exception mentioned above, and so fail to generate a stack trace.

Let me know if you want more details about how I edited the mission script code to do this, e.g. which python files to make changes to. The official mission scripting documentation is here, in case that helps, but it's not very complete.

I think I'll try adding this on-crash stack trace dump and some more generic logging to my unofficial patch mod at some point in the future. Probably within the week, but don't count on it.

More notable info: The main game engine is written in C++, and that C++ engine runs the python mission scripts using pybind11, which (so I am told) comes with an unfortunate amount of limitations, caveats, etc. Also, the python mission script code only runs on the game's server; the clients only run C++. This means getting python stack traces is probably only going to be helpful for server crashes, and not for client crashes. And even if the crash is happening on the server, if the problem is somewhere in C++ code then the python stack probably won't be very helpful.
The C++ engine is meant to be closed-source (I believe), so the devs might not approve of people inspecting the compiled C++ too closely, and it'd be pretty difficult to do and probably not yield much helpful information anyway.

quaris

Avatar / Picture

Registered:
Posts: 16
Reply with quote  #14 
And thank you very much for introducing the python fault handler to me! I didn't know it existed until you mentioned it.
shasse

Registered:
Posts: 8
Reply with quote  #15 
That is extremely useful information, thank you. We'll try patching our server and clients and see how it goes Sunday. It seems like faulthander.enable() being on by default with a date/time stamp crash log would be a benefit in situations like this. I am new to the community and I have not worked with bybind, so I don't know how often this happens, but it seems like there would be very low downside to a proactive stack trace on failure.

Thanks again for all the helpful information.

Scot
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.