Hang forever on exit w/gstreamer; high cpu load on buffering

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
bloodninja

Hang forever on exit w/gstreamer; high cpu load on buffering

Unread post by bloodninja » 2016-05-15, 04:55

Hello.

Recently figured out what libs needed to play HD videos on Youtube and other sites, but now facing issue - PM hangs forever w/100% load on exit with this output:

strace output:
strace: Process 15632 attached
strace: [ Process PID=15632 runs in 32 bit mode. ]
futex(0xf713b274, FUTEX_WAIT_PRIVATE, 5, NULL

gdb output:
(gdb) backtrace
#0 0xf7791430 in __kernel_vsyscall ()
#1 0xf7741a8c in pthread_cond_wait@@GLIBC_2.3.2 ()
from /lib/i386-linux-gnu/libpthread.so.0
#2 0xf7366960 in PR_Wait () from /opt/palemoon_a/libnspr4.so
#3 0xf539c7d9 in ?? () from /opt/palemoon_a/libxul.so
#4 0xf539dcd5 in ?? () from /opt/palemoon_a/libxul.so
#5 0xf536b25c in ?? () from /opt/palemoon_a/libxul.so
#6 0xf539e2ba in ?? () from /opt/palemoon_a/libxul.so
#7 0xf539f5d6 in ?? () from /opt/palemoon_a/libxul.so
#8 0xf536fb2d in ?? () from /opt/palemoon_a/libxul.so
#9 0xf4528c65 in ?? () from /opt/palemoon_a/libxul.so
#10 0xf452d05a in ?? () from /opt/palemoon_a/libxul.so
#11 0xf452d1c7 in XRE_main () from /opt/palemoon_a/libxul.so
#12 0x0804b693 in _start ()
(gdb)

With media.gstreamer.enabled=false no such issues. And no media, eh. Occurs not every time, and little less for youtube for some reason.

Also I noticed very high cpu load while video buffering, dropping to 0% just after completed. To reproduce: open any relatively long youtube video, say 10-20 mins and pause.

Specs:
Xubuntu 16.04 Xenial x64 stock
PM 26.2.2 x86 Atom version; tested both with working and clean empty profiles
Gstreamer 1.8.0-1

Ask what additional info you need.

troypulk

Re: Hang forever on exit w/gstreamer; high cpu load on buffering

Unread post by troypulk » 2016-05-15, 15:25

This was happening to me as well, it ended up being that the distro I'm using was in the process of updating all their gstreamer files and some were 1.6 and some were 1.8 as soon as there all 1.8 it worked fine.

So check if all the gstreamer files are the same.

bloodninja

Re: Hang forever on exit w/gstreamer; high cpu load on buffering

Unread post by bloodninja » 2016-05-15, 15:51

troypulk wrote:So check if all the gstreamer files are the same.
No, they all same. Here is what installed:

# dpkg -l |grep -i "gstreamer1.*i386"
ii gstreamer1.0-fluendo-mp3:i386 0.10.32.debian-1 i386 Fluendo mp3 decoder GStreamer 1.0 plugin
ii gstreamer1.0-libav:i386 1.8.0-1 i386 libav plugin for GStreamer
ii gstreamer1.0-plugins-base:i386 1.8.0-1ubuntu1 i386 GStreamer plugins from the "base" set
ii gstreamer1.0-plugins-good:i386 1.8.0-1ubuntu1 i386 GStreamer plugins from the "good" set
ii gstreamer1.0-plugins-ugly:i386 1.8.0-1ubuntu1 i386 GStreamer plugins from the "ugly" set
ii gstreamer1.0-plugins-ugly-amr:i386 1.8.0-1ubuntu1 i386 GStreamer plugins from the "ugly" set
ii gstreamer1.0-x:i386 1.8.0-1ubuntu1 i386 GStreamer plugins for X11 and Pango
ii libgstreamer1.0-0:i386 1.8.0-1 i386 Core GStreamer libraries and elements

troypulk

Re: Hang forever on exit w/gstreamer; high cpu load on buffering

Unread post by troypulk » 2016-05-15, 17:49

Disable your add-ons go to Help > restart with add-ons disabled

Then try again and see if that helps.

bloodninja

Re: Hang forever on exit w/gstreamer; high cpu load on buffering

Unread post by bloodninja » 2016-05-15, 18:23

troypulk wrote:Disable your add-ons go to Help > restart with add-ons disabled

Then try again and see if that helps.
Already tried with new clean profile - same result. :(

troypulk

Re: Hang forever on exit w/gstreamer; high cpu load on buffering

Unread post by troypulk » 2016-05-15, 21:57

I'm using Debian Testing and my media.gstreamer.enabled is always set to true.

One thing I do know about mine is that gstreamer uses flash player so you can look into that, HTML5 and flash player cannot be enabled at the same time to play HD youtube video's, HTML5 only goes up to 720p and flash goes up to 1080p, so when I want to watch 1080p i switch my youtube default player to flash.

I just went to youtube and they updated their useragent sniffer and now youtube doesn't work, I need to update the useragent.

bloodninja

Re: Hang forever on exit w/gstreamer; high cpu load on buffering

Unread post by bloodninja » 2016-05-16, 13:48

troypulk wrote:One thing I do know about mine is that gstreamer uses flash player so you can look into that, HTML5 and flash player cannot be enabled at the same time to play HD youtube video's, HTML5 only goes up to 720p and flash goes up to 1080p, so when I want to watch 1080p i switch my youtube default player to flash.
Well, I see 320p webm when gstreamer disabled and 720p & 320p when enabled (for youtube). The problem is that many other sites doesn't use webm, only h264, so can't use them, same for audios. Flash player not even installed.

Don't know what to do. Disable gstreamer again for a while or write some wrapper/daemon that kill palemoon exec on exit. Both ways are disgusting.

troypulk

Re: Hang forever on exit w/gstreamer; high cpu load on buffering

Unread post by troypulk » 2016-05-16, 13:59

bloodninja wrote:Flash player not even installed.
In order to make gstreamer work properly flash needs to be installed, also you need to install gstreamer-ffmpeg1.0

bloodninja

Re: Hang forever on exit w/gstreamer; high cpu load on buffering

Unread post by bloodninja » 2016-05-16, 15:00

troypulk wrote:In order to make gstreamer work properly flash needs to be installed, also you need to install gstreamer-ffmpeg1.0
Everything related to avcodec/ffmpeg installed too. flashplugin-installer:i386 (!not amd64) doesn't installing with some update-notifier-common unmet dependencies.

Anyway, I'm confused. Videos playing well, audios too, everything is fine except those exit hangs. Besides, this happens not every time in single launch-play-exit cycle, maybe 30% of time.

bloodninja

Re: Hang forever on exit w/gstreamer; high cpu load on buffering

Unread post by bloodninja » 2016-05-16, 19:00

Discovered GST_DEBUG=xx env variable for gstreamer debugging, but dunno where to look, whole bunch of logs. Maybe someone point me?

Locked