Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ohPlayer on Pi - crashes and stutters
13-08-2016, 03:21 PM
Post: #1
ohPlayer on Pi - crashes and stutters
I've downloaded and installed ohPlayer on my Pi 3 (with IQaudIO Pi-DAC+) running Raspbian Jessie.

I have two issues and a question which I'm hoping someone can assist me with.

1) When using the Pi as a player I get intermittent ohPlayer crashes, sometimes after a minute or two, sometimes hours. As a test I created a long FLAC 16/44 playlist and it played for over 24 hours with no problem.

The error message I get is
Unhandled exception AssertionFailed at ../OpenHome/Media/Pipeline/Msg.cpp:1748 in thread CodecController


2) When using multi-room with my Majik DS as the sender I also get crashes with the same message.

In addition at times the multi-room playback stutters, even on MP3. As I can directly play 24/192 FLACs ok, I don't see how this can be a network problem.

These are some messages from ohPlayer, I'm guessing that the NotifyStarving is when it stutters.

...
GOT 5966969
GOT 5966974
GOT 5966975
GOT 5966979
REQUEST RESEND 5966936
GOT 5966980
GOT 5966981
GOT 5966982
GOT 5966983
GOT 5966936
END
OHU: NotifyStarving for stream 0
Pipeline state change: buffering
Pipeline utilisation: encodedBytes=0, decodedMs=159, gorgedMs=0
OHU: ReaderError. Stopped=0, starving=1, leaving=0
> ProtocolOhBase::WaitForPipelineToEmpty()
Pipeline state change: playing
Pipeline report property: TIME {secs=16; duration=227}
OHU: NotifyStarving for stream 0
Pipeline state change: buffering
Pipeline utilisation: encodedBytes=0, decodedMs=0, gorgedMs=0
< ProtocolOhBase::WaitForPipelineToEmpty()
SendJoin
BEGIN ON 5966989
GOT 5966992
GOT 5966993
GOT 5966995
GOT 5966996
GOT 5966997
GOT 5966991

...

GOT 5967348
GOT 5967341
END
BEGIN ON 5967352
GOT 5967353
GOT 5967354
GOT 5967355
GOT 5967356
GOT 5967357
OHU: Joining, received track
REQUEST RESEND 5967350 5967351
GOT 5967350
GOT 5967351
END
OHU: Joining, metatext
OHU: Joined
BEGIN ON 5967386
GOT 5967387
GOT 5967388
GOT 5967389
GOT 5967390
GOT 5967391
GOT 5967392
REQUEST RESEND 5967384 5967385
GOT 5967385
GOT 5967384
END
Pipeline report property: TIME {secs=18; duration=227}
BEGIN ON 5967398
GOT 5967399
REQUEST RESEND 5967394 5967395 5967396 5967397
GOT 5967394
GOT 5967395
GOT 5967396
...

3) What is the best way of getting ohPlayer to start when the Pi boots?


Thanks

Paul
Find all posts by this user
19-08-2016, 02:22 PM
Post: #2
RE: ohPlayer on Pi - crashes and stutters
(13-08-2016 03:21 PM)PaulH Wrote:  I've downloaded and installed ohPlayer on my Pi 3 (with IQaudIO Pi-DAC+) running Raspbian Jessie.

Hi,

A new version of the player, 1.0.6, has just been released.

This is built against more recent versions of the ohNet and ohPipeline libraries.
The versions contain many bug fixes. Could you retry with version 1.0.6 ?

To autostart on Jessie add openhome-player to .config/lxsession/LXDE-pi/autostart.
To avoid issues I would recommend creating a wrapper script to autostart that sleeps for 10 seconds before starting the player.

Autostart can be problematic if the player is started prior to the networking subsystem being fully up and running.
Find all posts by this user
22-08-2016, 11:07 AM
Post: #3
RE: ohPlayer on Pi - crashes and stutters
I've downloaded the new version and can't install it.
This is what I get when running piplayer.sh from a terminal -

pi@Downstairs:~ $ sudo /home/pi/piplayer.sh
Extracting file into /tmp/tmp.meoyTlZO61
tail: cannot open ‘/home/pi//home/pi/piplayer.sh’ for reading: No such file or directory
Installing application package
dpkg-deb: error: `openhome-player-1.0.6_armhf.deb' is not a debian format archive
dpkg: error processing archive openhome-player-1.0.6_armhf.deb (--install):
subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
openhome-player-1.0.6_armhf.deb
Fixing External Dependencies
If this fails please try 'apt-get update' and retry
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 68 not upgraded.
Tidying Up
Finished

I tried apt-get update but it made no difference.
I'm a novice with regard to Pi/Linux, so apologies if I'm doing something stupid.

Paul
Find all posts by this user
22-08-2016, 01:44 PM
Post: #4
RE: ohPlayer on Pi - crashes and stutters
(22-08-2016 11:07 AM)PaulH Wrote:  pi@Downstairs:~ $ sudo /home/pi/piplayer.sh

Hi,

If you drop the 'sudo' from your command things should work.
Find all posts by this user
23-08-2016, 08:18 AM (This post was last modified: 23-08-2016 08:48 AM by PaulH.)
Post: #5
RE: ohPlayer on Pi - crashes and stutters
(22-08-2016 01:44 PM)alzinho Wrote:  
(22-08-2016 11:07 AM)PaulH Wrote:  pi@Downstairs:~ $ sudo /home/pi/piplayer.sh

Hi,

If you drop the 'sudo' from your command things should work.

Just tried it without sudo, no joy.

pi@Downstairs:~ $ /home/pi/piplayer.sh
Extracting file into /tmp/tmp.EcywV0UHJ6
tail: cannot open ‘/home/pi//home/pi/piplayer.sh’ for reading: No such file or directory
Installing application package
dpkg-deb: error: `openhome-player-1.0.6_armhf.deb' is not a debian format archive
dpkg: error processing archive openhome-player-1.0.6_armhf.deb (--install):
subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
openhome-player-1.0.6_armhf.deb
Fixing External Dependencies
If this fails please try 'apt-get update' and retry
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 68 not upgraded.
Tidying Up
Finished

I had been wondering about "cannot open ‘/home/pi//home/pi/piplayer.sh’ for reading".

After experimenting with ls and cd .. to work out where I was positioned in the folder structure I got the new version to install.

I'll let you know what happens with regard to crashes and stutters.

Thanks
Paul
Find all posts by this user
23-08-2016, 09:11 AM
Post: #6
RE: ohPlayer on Pi - crashes and stutters
(23-08-2016 08:18 AM)PaulH Wrote:  Just tried it without sudo, no joy.

pi@Downstairs:~ $ /home/pi/piplayer.sh
Extracting file into /tmp/tmp.EcywV0UHJ6
tail: cannot open ‘/home/pi//home/pi/piplayer.sh’ for reading: No such file or directory

Hi,

Moving to the directory containing piplayer.sh and executing ./piplayer.sh
should get you going.
Find all posts by this user
26-08-2016, 09:10 AM
Post: #7
RE: ohPlayer on Pi - crashes and stutters
I've had version 1.0.6 of the player running on my Pi for several days without any crashes.

For over a day the Pi has been acting as a receiver, it doesn't stutter in the same way as the previous version. I sometimes get a second of silence. These seems to occur randomly, can be after 15 seconds or 5 minutes.

I notice that the messages coming from ohPlayer have been reduced as was requested in another thread. Might it be useful to include in the messages those relating to which "track" is being played?

My Pi runs headless and ohPlayer is now auto starting when the Pi boots. I connect to it using RDP from a Windows PC, is there any way of seeing the messages that are being produced by ohPlayer?

Thanks for your help.

Paul
Find all posts by this user
26-08-2016, 09:47 AM
Post: #8
RE: ohPlayer on Pi - crashes and stutters
(26-08-2016 09:10 AM)PaulH Wrote:  I notice that the messages coming from ohPlayer have been reduced as was requested in another thread. Might it be useful to include in the messages those relating to which "track" is being played?

My Pi runs headless and ohPlayer is now auto starting when the Pi boots. I connect to it using RDP from a Windows PC, is there any way of seeing the messages that are being produced by ohPlayer?

Hi

I'll try you test setup sometime and see if I get any glitches.

The more verbose logging was removed from release builds, but retained for debug builds. We don't distribute pre-built debug builds, but these can be built from source if required.

To capture the output of the player I would recommend starting it as follows:
openhome-player 2>&1 | logger -t OHPlayer &

The will store the output in /var/log/user.log
Find all posts by this user


Forum Jump: