INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Playback stops during high cpu load, doesn't recover  (Read 2453 times)

Ancipital

  • Recent member
  • *
  • Posts: 6
Playback stops during high cpu load, doesn't recover
« on: May 09, 2018, 05:04:15 am »

Hi,

I have noticed that MC23 on Linux seems a lot more fragile than on Windows, in an important respect. If something spikes cpu use hard, it stops playing, and doesn't recover. You have to manually stop and start playback to get it to play once more.

Bearing in mind that little CPU spikes aren't uncommon (pathological browser behaviours, user error in wonky Python development etc.), this is a pain in the rear.

I initially wondered if it was an iowait from disk breaking it, so have MC load the entire (non-decoded) track into memory now, but that makes no difference. By default I use the ALSA though pulseaudio option that MC found for itself, but it still happens if I go direct to pulseaudio.

Spurious details for the interested:

Ubuntu 16.04.4 LTS, Linux [redacted] 4.4.0-109-generic #132-Ubuntu SMP Tue Jan 9 19:52:39 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux.  MC23.0.80 x64

Trying to copy from the JRMark window causes a CTD too- so restarting and fishing it out from system info, 3853.

One last thing, it's not the OOM killer kicking in, either:

Code: [Select]
free -h
              total        used        free      shared  buff/cache   available
Mem:            31G         15G        756M        378M         14G         14G
Swap:           19G         11M         19G

How many of these are known issues, out of interest?
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 71209
  • where the buffalo roam
Re: Playback stops during high cpu load, doesn't recover
« Reply #1 on: May 09, 2018, 06:30:49 am »

We recommend Debian.  Ubuntu can work, but you may have something missing in the installation.  Try the other threads here.

This is probably not an MC problem.

Are you using VNC to connect?  Try a monitor and keyboard instead.
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7319
  • The color of Spring...
Re: Playback stops during high cpu load, doesn't recover
« Reply #2 on: May 09, 2018, 07:14:46 am »

Have you tried enabling thread priorities? It might help.

https://yabb.jriver.com/interact/index.php/topic,111373.msg769735.html#msg769735

By default I use the ALSA though pulseaudio option that MC found for itself, but it still happens if I go direct to pulseaudio.

I'd avoid using Pulseaudio, especially if you care about bit-perfect audio output. By default using the Pulseaudio output resamples everything to 48 kHz. I'd recommend one of the hw: or front: ALSA outputs (which bypass the mixer, hence they're a bit-perfect audio output), if you have them available.
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2023 Update (23H2) 64-bit + Ubuntu 23.10 Mantic Minotaur 64-bit | Windows 11 2023 Update (23H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/256GB NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | Topping D50s DAC

Ancipital

  • Recent member
  • *
  • Posts: 6
Re: Playback stops during high cpu load, doesn't recover
« Reply #3 on: May 09, 2018, 03:49:54 pm »

We recommend Debian.  Ubuntu can work, but you may have something missing in the installation.  Try the other threads here.

This is probably not an MC problem.

I'm not about reinstall my work desktop machine because MC is misbehaving. Quality support there, cheers.

Are you using VNC to connect?  Try a monitor and keyboard instead.

What? Why would you even ask that?




Have you tried enabling thread priorities? It might help.

I'll give that a go tomorrow, thanks. For the rest of the day, I used VLC, which didn't miss a beat (literally). A quad core Xeon playing redbook FLAC shouldn't, mind.

I'd avoid using Pulseaudio, especially if you care about bit-perfect audio output. By default using the Pulseaudio output resamples everything to 48 kHz. I'd recommend one of the hw: or front: ALSA outputs (which bypass the mixer, hence they're a bit-perfect audio output), if you have them available.

Only if you leave it at the default sample rate of 48KHz.

Also, nobody chooses to use Pulseaudio, apart from maybe Poettering himself. However, for Linux on the desktop in any pragmatic reality, we're stuck with it now.
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 71209
  • where the buffalo roam
Re: Playback stops during high cpu load, doesn't recover
« Reply #4 on: May 09, 2018, 04:46:43 pm »

I'm not about reinstall my work desktop machine because MC is misbehaving. Quality support there, cheers.

What? Why would you even ask that?
If you have such strong feelings, maybe you should solve your own problems.  Read other threads on Ubuntu.
Logged
Pages: [1]   Go Up