By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.
Bug 2845 - Libarts1c2a-trinity audio backend is broken
Summary: Libarts1c2a-trinity audio backend is broken
Status: RESOLVED FIXED
Alias: None
Product: TDE
Classification: Unclassified
Component: arts (show other bugs)
Version: R14.0.x [Trinity]
Hardware: Other Linux
: P5 normal
Assignee: Michele Calgaro
URL:
Depends on:
Blocks: R14.0.5
  Show dependency treegraph
 
Reported: 2017-11-12 13:48 CST by Q4OS Team
Modified: 2018-06-23 08:15 CDT (History)
5 users (show)

See Also:
Compiler Version:
TDE Version String:
Application Version:
Application Name:


Attachments
Artsserver crash (6.80 MB, application/zip)
2018-06-09 10:16 CDT, Q4OS Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Q4OS Team 2017-11-12 13:48:13 CST
If I remove audio backends "libarts1-akode-trinity libarts1-xine-trinity libarts1-mpleglib-trinity", and let "libarts1c2a-trinity" backend to play audio, arts server crashes. I have been able to reliably reproduce this bug on 64bit real machines as well as in Virtualbox, while I haven't been able to reproduce it on 32bit machines so far.

Exact steps to reproduce:
- Fresh TDE preliminary stable (14.0.5) installation on Debian Stretch / 64bit
- Remove "libarts1-akode-trinity libarts1-xine-trinity libarts1-mpleglib-trinity" packages:
    "sudo apt-get remove libarts1-akode-trinity libarts1-xine-trinity libarts1-mpleglib-trinity"
- Reboot
- Play a .ogg sound a few times in terminal
    "artsplay /opt/trinity/share/sounds/KDE_Startup_1.ogg"
- Bug: watch "artsshell status" in terminal, arts server crashes soon.
Comment 1 Martin Hodges 2017-11-21 02:36:11 CST
I have this all the time. I install components selectively so I do not have any other audio backend as there are no hard dependencies for them.
I believe the problem occurs with ogg files that are encoded as mono.
Comment 2 Michele Calgaro 2018-06-08 10:43:01 CDT
@Q4OS
I can't reproduce the problem after the latest patches for bug 2844 (debian buster + R14.1 in VM 64 bits).
Are you able to test and let us know if you can still cause this even with the latest tdemultimedia packages installed?
Comment 3 Q4OS Team 2018-06-09 04:43:46 CDT
I can still reproduce that. While the .wav files are played fine, arts server crashes on playing the .ogg files. Debian Stretch, TDE R14.0.5 preliminary stable.
Comment 4 Michele Calgaro 2018-06-09 08:00:58 CDT
@Q4OS

I tried again in the following environments (all VirtualBox):
- VM running debian stretch 64 bits + TDE R14.0.5 from mid May
- VM running debian stretch 64 bits + TDE R14.0.5 updated to today
- VM running debian stretch 64 bits + TDE R14.1.0 from mid May
- VM running debian stretch 64 bits + TDE R14.1.0 updated to today

I followed the steps mentioned in the bug report exaclty. 
I played a series of files 
/opt/trinity/share/sounds/KDE_Startup_1.ogg
/opt/trinity/share/sounds/KDE_Startup_2.ogg
/opt/trinity/share/sounds/KDE_Startup_3.ogg
/opt/trinity/share/sounds/KDE_Startup.wav
/opt/trinity/share/sounds/KDE_Startup_new.wav
Tried in different orders, sometimes one by one, sometimes even playing them together.
Along the way I kept running "artsshell status".

In no case I was able to reproduce this problem. Files played fine and server was running and autosuspending.

I then notices libarts1-audiofile-trinity and mpeglib-trinity were installed. Removed the packages, rebooted, retested, still no error.

Finally I removed all tdemultimedia packages, rebooted, retested, still no error.

Either the description of the bug report is missing some steps (by the way sudo on a brand new debian/stretch would not work since the users is not a member of sudo group) or there is something else going on.

I can't do much more unless I can reproduce the problem.
Any info you can provide will help. 
Perhaps a video showing all steps one by one from the end of a TDE install would be useful
Comment 5 Q4OS Team 2018-06-09 10:16:41 CDT
Created attachment 2859 [details]
Artsserver crash

A video cast showing all steps one by one from the end of a TDE install attached.
Comment 6 Q4OS Team 2018-06-09 10:17:24 CDT
I can reproduce the bug reliably using the exact instructions from the original report. The only exception is not to use sudo command, as the first user doesn't have sudo right on a clean install, you are right.

Fresh today installation of Debian Stretch in Virtualbox with TDE R14.0.5 preliminary stable as described here https://wiki.trinitydesktop.org/Preliminary_Stable_Builds

Video cast showing all steps one by one from the end of a TDE install attached in the post above.
Comment 7 Michele Calgaro 2018-06-10 01:52:18 CDT
Q4OS, 
thanks for the feedback and for the time for taking the movie.
I realized I wrote I tested on Stretch but it was actually Buster.
I will setup a VM with stretch and test again. Let's see what I can find.
Comment 8 Q4OS Team 2018-06-10 04:22:48 CDT
I have figured out, if you leave root's password blank at the Debian Stretch install process, the sudo package is installed and the first user gets sudo rights. So the original report is correct as is, with the sudo command.
Comment 9 Michele Calgaro 2018-06-10 06:19:22 CDT
Good news, I am able to replicate the problem in a Stretch machine. Once I am done with bug 2477, I will come back to this one and also 2874.
BTW, thanks for the info about sudo, although I never leave a blank password for root :-)
Comment 10 Michele Calgaro 2018-06-21 08:06:15 CDT
Patched in commit 5d99819 (R14.1) and 1b0b9f6 (R14.0).
This is a bit of a quick-n-dirty patch. The removed assertion looks for extremely small generated values and crash if found one.
Removing the assertions seems to cause no arm and audio files of various format play fine. Moreover the problem seems to have completely disappered in recent Debian distros, for example it was reproducable in Stretch but no more in Buster.
Because of the reasons above, Slavek and I are happy enough with the patch: rather than wasting more precious time on this bug, we can work on other ones.

@Q40S
Please test when the new package is available and let us know if it works fine in your system as well. If so, we will close the bug (or feel free to do so).
Comment 11 Michele Calgaro 2018-06-21 08:24:02 CDT
additional info from Slavek is that it seems to happen ONLY on stretch amd64.
Comment 12 Q4OS Team 2018-06-23 04:30:57 CDT
I can't reproduce that after the recent update, Debian Stretch amd64 / R14.0.5 / Virtualbox. Thanks for the patch.

By the way, I prefer to leave root's password blank at Debian installation, as the Debian installer will disable root password completely, install sudo package and add the first user to the sudo group. Since the root login is completely disabled, the system is secured a bit better.
Comment 13 Michele Calgaro 2018-06-23 08:15:22 CDT
Thanks for testing. Bug closed.