-
Notifications
You must be signed in to change notification settings - Fork 14
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
Yamcs Studio 1.5.9 crashing by itself after time #113
Comments
It looks like this problem is more frequent if you put the runner on 90% zoom. |
OK correction, it does crash regardless of zoom level. I did crash now after 5 hours with normal/100% zoom. |
Any info would be good, this is still an issue, also with older versions. |
Could be memory-related. Or add the following in your ini file (beneath
|
Thanks Fabian!
I will it run (and catch fire) and see when it crashes. Thanks a lot! |
Dear @fqqb - you were spot on! Before Yamcs Studio got closed:
After it got closed:
For the moment / to safekeep the mission which will need us to have Yamcs Studio run in excess of 10 hours I increased the amount of RAM to 6 GB and let it run now to see where we will end up (but I have to keep in mind that it could crash hours later when it hits the 2048MB limit... So I have to see if I need to increase this also). I hope this error gets resolved, sadly Yamcs Studio/Java is killed so hard by the OS that it will not write anything to the created files in /tmp, so no debug available. |
Additional note: Within the first hours (when there was more than enough RAM available), Yamcs Studio was consuming RAM in the rate of 1.425 MB / Minute without receiving any TM data. |
Can you run Do you have scripts in displays? I imagine some of those could cause this problem. |
Wait, your system has only 2 GB available? |
Yeah @fqqb - I thought Yamcs was normally configured for Java default (512 MB) - but saw the 2G line first when I set the debugging info. I am currently trying this on 6 GB of RAM, just to be sure and see how it goes/if it crashes again and then when. I will not have more time for debugging because the mission is coming close and "good enough" works / if I can make it work for enough time. I am using only one display at all - but I am using Javascript and Python scripts in it. |
Short headsup:
today @ 08:41 / 24 hours later
So Yamcs has already risen above the 2048 MB limit in terms of its reserved memory. I will still let it run and see if and when it crashes (I think I really need to set up latest on saturday for real testing of the overall ground segment, until then it can still run and gather data). 24+ hours is ok in my usecase, but with this data I think there is an indication that there is a memory leak. |
Ok, in the end it filled up all memory again (6 GB of RAM) and then hardcrashed, so its sadly not because of just having not enough RAM. Here is some memory logging:
I guess for my usecase its ok at the moment and I will just need to restart Yamcs Studio before going into each DryRun, Testcountdown and the real one - to avoid losing the MCS during flight. |
Hi, I'm having a similar issue with Yamcs Studio. Was any work done towards the goal of dealing with memory leaks? |
@Spaceless007 I would like a heap dump so that I can investigate what is occupying memory. Do you have jmap available, that's a tool that comes with any Java JDK. Then when you notice things are about to go wrong, but before studio crashes, take a dump referencing the PID of Yamcs Studio:
And please share that hprof file (or in private: fdi AT spaceapplications.com ) In absence of a dump, I'll do some tests myself next week in an attempt to reproduce any issue (i'm not currently aware of any). |
We're seeing this ourselves when using a large MDB. Is there an expectation that this can be fixed with changes on the end user or is it seen as memory management problem which can be fixed? |
@unlikelyzero are you able to isolate a cause on your side that eventually causes a crash? I somehow doubt a large MDB is the reason. Maybe a specific platform, display, or widget :-/ Of course I'd like to fix any problems of this kind, however I ran Yamcs Studio for weeks on end connected to a data source, and all was working well... Also I was given some heap dumps from just before a crash, and also those were healthy, suggesting memory is consumed off-heap for whatever reason. |
Hi,
I got an instance of Yamcs Studio 1.5.9 running on a current Lubuntu LTS (20.04) VM.
As this instance is for remote monitoring and kept running for days it is not really been touched a lot, but just kept connected to the server to show telemetry. I realizied now its crashing a lot, sometimes after hours, sometimes after a day. I cannot say how long its actually running before this occurs, but without any user interaction it will at some point just crash and close itself and by itself.
I tried running it from command line - but it does also crash there without leaving any debug messages after the initial connect ones.
How to debug this problem / enable debug messages and find out what causes this issue?
The text was updated successfully, but these errors were encountered: