Dino explodes memory, CPU usage

  • Done
  • quality assurance status badge
Details
2 participants
  • Josselin Poiret
  • J. Sims
Owner
unassigned
Submitted by
J. Sims
Severity
normal

Debbugs page

J. Sims wrote 2 years ago
(name . bug-guix@gnu.org)(address . bug-guix@gnu.org)
ruQ-SNguMvYIhukWnaspClXc5BErctzvuZS5jshHCnLmNxDAC5obB-vvKQUS6nhsEi63ZXvY3kE8GsIIHtjjM1_c-kTM_bvZ-sT0gQGw4sw=@protonmail.com
Hello,

As of at least commit bb385f247292d3162b27afa7ac48a1bf404c8e37, when attempting to launch Dino, it does not launch and instead consumes all system memory and 100% of a CPU thread's execution time.

Thanks,
Juli
Josselin Poiret wrote 2 years ago
871qk5hy0p.fsf@jpoiret.xyz
Hi,

"J. Sims" via Bug reports for GNU Guix <bug-guix@gnu.org> writes:

Toggle quote (2 lines)
> As of at least commit bb385f247292d3162b27afa7ac48a1bf404c8e37, when attempting to launch Dino, it does not launch and instead consumes all system memory and 100% of a CPU thread's execution time.

I cannot reproduce on my end with a bare `guix shell dino -- dino`.
What windowing system are you using? Does dino have logs? Have you
tried launching it in a terminal to see if it outputs anything?

Maybe the fact that I've never used it and thus don't have anything
configured might obscure the error.

Best,
--
Josselin Poiret
-----BEGIN PGP SIGNATURE-----

iQHEBAEBCAAuFiEEOSSM2EHGPMM23K8vUF5AuRYXGooFAmRK2oYQHGRldkBqcG9p
cmV0Lnh5egAKCRBQXkC5FhcaiiAHC/4tqv4lGfHKFKvrDrK4XScaptsCI3nnNntd
89Hys/3In35+v7qoloc9mG26MuxKaeq7++OmhzavUSKRgFo6Syv+gBmu3hcvwcF5
tSwjBNeKRmyf0e+gAzggd1GUsLW0m9HbQSlCKI+xKq3pxRSBHJMHOR2sCqanyjRA
4jrUkdPD3ak1zv/e9YuG0Wyjn73pkWTUaSepG0/0Gbi+jJRuUgh2/QFAgDFsTNba
AT1j87ncMua5+7pCl04v3Og67coePFSK1Svu5CkRshyKrzI0HsEijE5ycQp3caPM
Hh1cKq82DUX5yqCMnDt/ZvkW4NhMnOH+49+7jP9TE/U3NNNiqXGWrZBU8zj52XCF
6oEDATPLdfPZUsHuwd2KYeLh/ucPnwAnyE/F966tFut8Tt1wPgLJESQv2NAP3sv8
NgQRSTIxvwBoqyXo9PvKyVe8S9st7OW0zVaGrByWJztobPfSodOfam4YXIOKc6NU
Zp0Lrd/QTltzcuKeLtsEbH2iAtuE2lc=
=EP/c
-----END PGP SIGNATURE-----

J. Sims wrote 2 years ago
(name . 63131@debbugs.gnu.org)(address . 63131@debbugs.gnu.org)(name . dev@jpoiret.xyz)(address . dev@jpoiret.xyz)
fuZG2xi33wcjVWr90dHINWS6tcLbtvzly02HfnsJAhBLMpmOJvbIcsf_czkuz44_HkS-IC_KAhbRXw60mBpRA3ldeL3CTHHL4x3A6_5He9Y=@protonmail.com
Hey,

------- Original Message -------
On Thursday, April 27th, 2023 at 16:26, Josselin Poiret <dev@jpoiret.xyz> wrote:


Toggle quote (6 lines)
> Hi,
>
> I cannot reproduce on my end with a bare `guix shell dino -- dino`.
> What windowing system are you using? Does dino have logs? Have you
> tried launching it in a terminal to see if it outputs anything?

If dino has logs, I do not know where to find them; when launching from the terminal, a newline is emitted and absolutely nothing else before entering the described state. I am using GNOME.

Interestingly, your comment made me curious, so I ran a `guix shell --pure dino -- dino` to see what would happen. It launched fine, so I ran an update of the home profile (where I have it installed) and tried launching dino again - only to reproduce the same problem. I tried your command of `guix shell dino -- dino` - and got the same issue again. However, `guix shell --pure dino -- dino` still works fine. This leads me to believe the issues is another package in my home profile... but which?

I tested all of the packages in my home profile with dino in a pure shell, and it launched fine.

Okay, not packages. Environment variables? I changed some of those recently; let's try reverting them.

Nope, works fine.

The logical next consideration is services, but I'm not sure how to test those without... removing them, reconfiguring home, logging out, logging in... each and every time. It would be nice if you could pass eg `--preserve='^DISPLAY$'` to `guix home container`. Ah well. I'll do the hard thing anyway.

But before I go off to do that, I wanted to send this message with previous debug steps. Especially this interesting tidbit:

Firstly, I misspoke; Dino doesn't consume an entire thread and all the system's memory. It turns out gst-plugin-scanner consumes all the system's memory; the CPU seems to remain unabused.

With this information, I ran `dino --gst-debug-level=6` and found this interesting, repeating pattern:

```
0:00:27.310610920 31838 0x11d8520 LOG GST_PLUGIN_LOADING gstpluginloader.c:1150:exchange_packets: Poll res = 0. 0 bytes pending for write
0:00:27.310655655 31838 0x11d8520 DEBUG GST_POLL gstpoll.c:1241:gst_poll_fd_has_error: 0x13e81e0: fd (fd:25, idx:2) 0
0:00:27.310661435 31838 0x11d8520 DEBUG GST_POLL gstpoll.c:1266:gst_poll_fd_can_read_unlocked: 0x13e81e0: fd (fd:25, idx:2) 0
0:00:27.310667858 31838 0x11d8520 DEBUG GST_POLL gstpoll.c:1195:gst_poll_fd_has_closed: 0x13e81e0: fd (fd:25, idx:2) 0
0:00:27.310675101 31838 0x11d8520 DEBUG GST_POLL gstpoll.c:1414:gst_poll_wait: 0x13e81e0: timeout :0:00:01.000000000
```

This appears to be the action upon which it locks up.

As I said, I'll go test if one of my home services is causing this issue; perhaps this information will be useful in the meantime.

Thanks,
Juli
J. Sims wrote 2 years ago
(name . 63131@debbugs.gnu.org)(address . 63131@debbugs.gnu.org)(name . dev@jpoiret.xyz)(address . dev@jpoiret.xyz)
VT_0OH4v1E5VnNFlRj9aKtPz3zJh1nSzLhOggU_ymdDqscR1pyKybuQUqEV4Q9IJCikbCPvj6i5OOR300bc-A4Qr2tJikSl6WjdOE8kLh6E=@protonmail.com
Problem resolved: apparently the issue was gst-plugins-bad in my system configuration causing problems (which I had hanging around from resolving a website-specific bug in GNOME Web... which I no longer daily-drive anyway).

Thanks for sparking me to actually look into this.

I don't know how to close bugs on debbugs or if this one can be considered resolved, so I'll leave that up to the discretion of more knowledgeable Guix hackers.

-Juli
Josselin Poiret wrote 2 years ago
87y1mch2kg.fsf@jpoiret.xyz
Hi,

"J. Sims" <jtsims@protonmail.com> writes:

Toggle quote (4 lines)
> Problem resolved: apparently the issue was gst-plugins-bad in my system configuration causing problems (which I had hanging around from resolving a website-specific bug in GNOME Web... which I no longer daily-drive anyway).
>
> Thanks for sparking me to actually look into this.

Great to see it's resolved on your end!

Toggle quote (2 lines)
> I don't know how to close bugs on debbugs or if this one can be considered resolved, so I'll leave that up to the discretion of more knowledgeable Guix hackers.

You can cc XXXX-done@debbugs.gnu.org instead of XXXX@debbugs.gnu.org
(just like this message), or send a control message to
control@debbugs.gnu.org.

Best,
--
Josselin Poiret
-----BEGIN PGP SIGNATURE-----

iQHEBAEBCAAuFiEEOSSM2EHGPMM23K8vUF5AuRYXGooFAmRLeb8QHGRldkBqcG9p
cmV0Lnh5egAKCRBQXkC5FhcaivErC/96bMTnK6iFNGxLVKlga00942lHsVWiAXPo
XcmJLG/3nqcz2GARDdXpkUTM67uGXr3KC6HVI/QuKAcZhIZVyxUIJ3etI21XRlwr
LUedo/L3M91qAqWnR/rWscPi/O2Wzh/EnIJbOQJjlp7Wy0uSE27AOeS0zjm/Jayy
ztew9y2Gi3uffdPF1RF/F247ZtdUd7RkONdtGu20IQbBts4MUj10JvE1f8OvjSRQ
ZeMGG8AtMyAVzoQKBSRmBYpcb1Ha7uUHGAuM49HI/M5jHw+5EUcmCMaSUYkr0XfA
J2VUkGlUWF/9BkS0JDONbaG6fy7PJbzXaubwU/nkSkoaee7YQ7ik5jKj3QEzpFg5
lJY33igCdm0u58mYqChD6MrSiV58tDymdLReRSn7rWE0eiICOT/S/TRs54WFbWGC
to4SKwgSDNBuSnDN/RpABY7C4vQUkpmsGLZeW5YDe4ISCMU0vMTQoMbjWYEo9zmb
cclB5IJygXMtcQEIsbpTZE4cywE0xeE=
=mGn1
-----END PGP SIGNATURE-----

Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 63131@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 63131
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help