~adnano/astronaut-discuss

11 2

very high resource usage when running on Foot

Details
Message ID
<b2uifZa2O07Ic0Vq61LTUDFbBd0RSoNsS3R5yojQOqMtN1Zh7AlUG9DqFqFXN_vHxyX8D7LB1lWpLKMpU5r5ZJ-UYnHPWk84PauZqmYFTis=@protonmail.com>
DKIM signature
missing
Download raw message
When I run Astronaut on Foot (with window size bigger than the
default) sometimes there is a very high spike on memory and CPU
usage and after a few seconds Astronaut crashes (along with Foot).
Sometimes it also happens when I run it on Gnome Terminal.
Details
Message ID
<CDCGXS9WTR05.3FEMQ4T50AT0L@nitro>
In-Reply-To
<b2uifZa2O07Ic0Vq61LTUDFbBd0RSoNsS3R5yojQOqMtN1Zh7AlUG9DqFqFXN_vHxyX8D7LB1lWpLKMpU5r5ZJ-UYnHPWk84PauZqmYFTis=@protonmail.com> (view parent)
DKIM signature
missing
Download raw message
On Thu Aug 5, 2021 at 4:17 PM EDT, nadashin wrote:
> When I run Astronaut on Foot (with window size bigger than the
> default) sometimes there is a very high spike on memory and CPU
> usage and after a few seconds Astronaut crashes (along with Foot).
> Sometimes it also happens when I run it on Gnome Terminal.

Can you give more details? How much memory and CPU is astronaut using
exactly?

Also, can you share the error message that was shown when astronaut
crashed?

Astronaut currently has lots of room for improvement with regards to
performance and memory usage. Thanks for the report!
Details
Message ID
<mTeTTJFDw2HTvf8QKiIm19sA5-I0jCknqETy1iUVMoj4U4Z5GcIgsUmdjIbNpo3ZQH6i_zOjDyE1wU4s2T5OceNXW2wzEBpm_fTe5NkdGhI=@protonmail.com>
In-Reply-To
<CDCGXS9WTR05.3FEMQ4T50AT0L@nitro> (view parent)
DKIM signature
missing
Download raw message
> Can you give more details? How much memory and CPU is astronaut using
> exactly?

It is similar to if you write a program that calls malloc in a loop.

> Also, can you share the error message that was shown when astronaut
> crashed?

There was no error message. The terminal crashed along with Astronaut.

I tried piping stderr of Foot and Astronaut to a file. Astronaut's
one was empty and Foot's one only had Foot's usual log messages.
Details
Message ID
<CDCKUIER9Z6G.3V46ZJ5OCYRD7@nitro>
In-Reply-To
<mTeTTJFDw2HTvf8QKiIm19sA5-I0jCknqETy1iUVMoj4U4Z5GcIgsUmdjIbNpo3ZQH6i_zOjDyE1wU4s2T5OceNXW2wzEBpm_fTe5NkdGhI=@protonmail.com> (view parent)
DKIM signature
missing
Download raw message
On Fri Aug 6, 2021 at 12:15 PM EDT, nadashin wrote:
> > Can you give more details? How much memory and CPU is astronaut using
> > exactly?
>
> It is similar to if you write a program that calls malloc in a loop.

Does this happen with user interaction or without?

> There was no error message. The terminal crashed along with Astronaut.

Odd.
Details
Message ID
<e9v4gITeuQxGuJbnck5VPKf8hL79oxp-7D4W4OZjzmvUQSmWmajmOtp3stVPrGv-IBBCNHuMI_SZIoUasG5DEWHt4XdFj8n1aexdFwBHsTk=@protonmail.com>
In-Reply-To
<CDCKUIER9Z6G.3V46ZJ5OCYRD7@nitro> (view parent)
DKIM signature
missing
Download raw message
> Does this happen with user interaction or without?

Without.

This starts happening immediately after I run Astronaut. The
terminal window becomes blank and remains blank until it chashes.
Details
Message ID
<CDCN1BB0CUXZ.1Z0OR8429EE9B@nitro>
In-Reply-To
<e9v4gITeuQxGuJbnck5VPKf8hL79oxp-7D4W4OZjzmvUQSmWmajmOtp3stVPrGv-IBBCNHuMI_SZIoUasG5DEWHt4XdFj8n1aexdFwBHsTk=@protonmail.com> (view parent)
DKIM signature
missing
Download raw message
On Fri Aug 6, 2021 at 1:29 PM EDT, nadashin wrote:
> Without.
>
> This starts happening immediately after I run Astronaut. The
> terminal window becomes blank and remains blank until it chashes.

That's strange. Does this happen only with large terminal sizes? If so,
how large? And what platform are you running astronaut on?
Details
Message ID
<1j-bw7nt4ZnGi1u0Ok1MuC7IbEj8FHcsQUd20uV_NmorcmER5rEZvKhg-oTG2GO5AbOlOhYgBZCHIcVTePmaUhklkzlwTt8gD61JfnSpTms=@protonmail.com>
In-Reply-To
<CDCN1BB0CUXZ.1Z0OR8429EE9B@nitro> (view parent)
DKIM signature
missing
Download raw message
> Does this happen only with large terminal sizes?

No. It happens on nearly any size i have tried which is larger than the
default size. And after a few try i have found that It also happens on
the default size (700x500 pixels).

If the window size is bigger, like 1200x900 pixels (by setting it in
foot.ini), the chances of it happening on the first or second try is
very high.


> And what platform are you running astronaut on?

Linux fedora 5.11.12-300.fc34.x86_64 #1 SMP Wed Apr 7 16:31:13 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

It happens both when the terminal (Foot and Gnome Terminal) is running on
Gnome(Wayland) and Sway.

Now I have found that it also happens on Linux console. (it took a few
more tries to find it.)
Details
Message ID
<CDCW1JEVD61N.28FMEXEPOAAPC@nitro>
In-Reply-To
<1j-bw7nt4ZnGi1u0Ok1MuC7IbEj8FHcsQUd20uV_NmorcmER5rEZvKhg-oTG2GO5AbOlOhYgBZCHIcVTePmaUhklkzlwTt8gD61JfnSpTms=@protonmail.com> (view parent)
DKIM signature
missing
Download raw message
Another question: which commit of astronaut are you using? I assume you
are building from source (as there hasn't been an official stable
release yet). Have you tried upgrading to the latest commit?

Sorry for all the questions. I appreciate your help!
Details
Message ID
<f0kmGzSfzwgmwDMtGJ_7ipaDAZiw6d2Qrz3Rcfxq8FtRLt8V9PS3CYOmt9hGrQ74VCYNURiQLXfayYKJEBIi1NK-4UC0MKaYL4Zw1T4uU88=@protonmail.com>
In-Reply-To
<CDCW1JEVD61N.28FMEXEPOAAPC@nitro> (view parent)
DKIM signature
missing
Download raw message
> Another question: which commit of astronaut are you using? I assume you
> are building from source (as there hasn't been an official stable
> release yet). Have you tried upgrading to the latest commit?

I am using the latest commit and building from source.
Details
Message ID
<CDHTOFOHWY62.1GICNC0P8PR0U@cyan>
In-Reply-To
<f0kmGzSfzwgmwDMtGJ_7ipaDAZiw6d2Qrz3Rcfxq8FtRLt8V9PS3CYOmt9hGrQ74VCYNURiQLXfayYKJEBIi1NK-4UC0MKaYL4Zw1T4uU88=@protonmail.com> (view parent)
DKIM signature
missing
Download raw message
I have managed to reproduce this. The fact that it only occurs sometimes
means that it is likely caused by a race condition. I'll investigate
further.
Details
Message ID
<b4a1a238-9e47-455b-ae72-aaed92bd2c84@adnano.co>
In-Reply-To
<CDHTOFOHWY62.1GICNC0P8PR0U@cyan> (view parent)
DKIM signature
missing
Download raw message
I pushed a commit which should resolve the issue. Could you try it out 
and let me know if it works for you?
Details
Message ID
<rI1nmEh5MvlAjFhaNE4icR-fqbVxjuo2qFTRHu_e4BUxdK0tm0RPBqAzUjAbiHrmehD_7pTbIkLlqbShBE33mekvmeQ7pcllO7ZE0gO4m-Y=@protonmail.com>
In-Reply-To
<b4a1a238-9e47-455b-ae72-aaed92bd2c84@adnano.co> (view parent)
DKIM signature
missing
Download raw message
> I pushed a commit which should resolve the issue. Could you try it out
> and let me know if it works for you?

It works now!
Reply to thread Export thread (mbox)