Menu

#29 kradio4 instantly crashes when playing an AAC stream

v4.0.8
closed-fixed
None
7
2014-09-29
2014-04-09
Michael
No

Upgraded from KDE 4.11.5 to 4.12.97 (essentially 4.13 beta) and then kradio4 would crash every time I started it.

I deleted these files:

~/.kde/share/apps/kradio4/stations.krp
~/.kde/share/config/kradio4rc

...and then kradio4 would start fresh again, and allow me to add my stations back.

The issue is that kradio4 now crashes every time it tries to play an AAC stream, whereas before it would play just fine. What changed?

To test, try these SomaFM streams, both for the same station, but one is MP3 and the othe is AAC.

mp3 (plays fine)
http://uwstream2.somafm.com:8002

aac (crashes instantly)
http://mp2.somafm.com:8100

This was part of a Kubuntu 13.10 -> 14.04 64-bit upgrade.


This is the crash output:

$ kradio4
initializing kradio lirc plugin
warnings/errors about missing sockets don't harm - usually the LIRC daemon is not running in these cases.
kradio: could not connect to socket
kradio: No such file or directory
Initializing kradio lirc plugin failed
[aac @ 0x7f1d3c05b420] get_buffer() failed
[aac @ 0x7f1d3c0039c0] Estimating duration from bitrate, this may be inaccurate
KCrash: Application 'kradio4' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
sock_file=/home/michael/.kde/socket-core2duo/kdeinit4__0
QSocketNotifier: Invalid socket 7 and type 'Read', disabling...
QSocketNotifier: Invalid socket 9 and type 'Read', disabling...
kradio4: Fatal IO error: client killed

Discussion

  • Ernst Martin Witte

    Hi!

    Thanks for your report and the test URL.

    After testing your URL, I'm pretty sure the issue us a duplicate of [#28] as the bug fix code for that issue is in effect for your URL. Hence, it is currently working for me working on the git master repo.

    Could you please give the git master repo source code a try and test, if the bug fix solves your problem? If you need any support compiling the kradio source code, please let me know.

    With best regards and thanks,
    Martin

     

    Related

    Bugs: #28

  • Michael

    Michael - 2014-04-13

    Hello Martin!

    Thank you for suggesting all of that, though I cannot compile kradio 4.0.8 from git at this time :/ I will have to wait until it comes through the binaries.

     
  • Mr Goose

    Mr Goose - 2014-07-22

    Hi Martin I hope you are well.

    Is there any chance of a binary .deb any time soon? Or failing that, some info about compiling from git please? ATM sadly KRadio4 is almost completely useless for me as it crashes instantly on any of the BBC AAC channels.

    Many thanks.

     
  • Mr Goose

    Mr Goose - 2014-09-24

    Hi Martin, I don't know if you saw my last post. I have tried compiling 4.0.8. But the instructions seem to refer to an earlier version - and to a now redundant file repository.

    I love KRadio4 but sadly it is useless if it cannot play AAC streams. Please could you point me in the right direction so I can compile a version that works like it used to please? Alternatively, please could you provide a 64 bit .deb suitable for (K)Ubuntu 14.04?

    At the moment I am having to make do with carving all my stations out of the .krp file, putting the streaming URLs into an .m3u playlist, and accessing these stations with VLC or SMplayer. Whilst both VLC and SMPlayer work perfectly on all stations, on all my machines, neither of those applications are as pretty or convenient as KRadio4 was.

    Many thanks and best wishes.

     

    Last edit: Mr Goose 2014-09-24
  • Ernst Martin Witte

    • status: open --> accepted
    • assigned_to: Ernst Martin Witte
     
  • Ernst Martin Witte

    Hi Michael!

    Sorry for answering late. We are currently preparing the release of 4.0.8. Some translations are already integrated/updated. What I need a bit more time for is an API identification issue with libav vs. libffmpeg. Hope I'll have some time over the weekend.

    In the meantime, it would be a great help if you could test the current state of kradio. With Ubuntu, you can do:

    git clone git://git.code.sf.net/p/kradio/code kradio-git
    cd kradio-git
    dpkg-buildpackage -uc -us
    cd ..
    dpkg -i kradio4_4.0.8-1_<your_architecture>.deb

    The tool dpkg-buildpackage is in the Ubuntu package "dpkg-dev". If some other packages are missing, it will (hopefully;-) tell you.

    If there are any questions/issues, please let me know.

    BR and thx for your patience,
    Martin

     
  • Mr Goose

    Mr Goose - 2014-09-26

    Hi Martin, thanks for answering this.

    OK I followed your instructions. Initially it failed due to dependency issues. You must remember Martin that you are a developer so you already have met all the dependencies. Us ordinary folk usually don't have all the *-dev packages that you would have. However this is easily fixed. Run this command (all on one line) before you start:-

    sudo apt-get install kdelibs5-dev liblircclient-dev libsndfile1-dev libasound2-dev libavformat-dev libavcodec-dev libmms-dev cdbs cmake libmp3lame-dev libogg-dev libvorbis-dev automoc libdbus-1-dev libboost-dev libavresample-dev

    WARNING! this will use another 150 MiB disk space!

    Then I ran the instructions exactly as you gave them. That compiled perfectly. However, I had to make one amendment to the final line - "dpkg -i" must be run as root, e.g.:-

    sudo dpkg -i kradio4_4.0.8-1_amd64.deb

    Then it all worked perfectly! I have not had time to test it thoroughly. But I can tell you that all the BBC AAC streams now play perfectly. So many, many thanks for that. Should you ever find yourself in England then I will certainly buy you a beer!

    Just one little caveat: this new version overwrote my default .krp file. Fortunately I had already exported my 100 or so station presets to another file. So if anyone else is going to try this, then please, PLEASE make sure you save your stations to a separate file, before installing this new version.

     

    Last edit: Mr Goose 2014-09-26
  • Mr Goose

    Mr Goose - 2014-09-26

    Actually some users may need to install git and libglib2.0-dev too:-
    sudo apt-get install git libglib2.0-dev

     

    Last edit: Mr Goose 2014-09-26
  • Mr Goose

    Mr Goose - 2014-09-26

    OK, sorry to post again, but here is an update...

    1. Compiled and installed i386 version on my fianceé's old (2007) Lenovo 3000C200, c/w my personal .krp file. Result: perfect!

    2. Installed on my amd64 Linux media server, (Intel 6660 CPU c/w 8GB RAM) using the kradio4_4.0.8-1_amd64.deb I created earlier, when I installed it on my laptop. Result: perfect! Interestingly this did NOT overwrite my personal .krp

    I have also had a chance to test it on lots and lots of stations. All active streams work perfectly. Not been able to use KR4 for so long I think there may be a few dead streams in my .krp. Anyway I have attached it in case you wanted to test some AAC streams.

    Finally, thanks again for getting this sorted, Martin. It really is great to have KR4 back. It is like being reunited with a long-lost friend. :-)

    / wanders off to have another play with the radio... :-)

     

    Last edit: Mr Goose 2014-09-26
  • Ernst Martin Witte

    Thanks for the report and testing. KRadio4 4.0.8 is now released with this fix.

     
  • Ernst Martin Witte

    • status: accepted --> closed-fixed
     
  • Michael

    Michael - 2014-09-29

    Hello Martin,

    Thank you for the personal reply and the invitation to test the new code out. It sounds like the new code works for Mr. Goose, which is great!! :) I will defer to him.

     

Log in to post a comment.