Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Test viewer: bleeding-edge audio+voice rewrite

Tofu Linden
Linden Lab Employee
Join date: 29 Aug 2006
Posts: 471
11-06-2008 07:15
Here's an unofficial test viewer which I hope you'll feel like testing out, especially if you have audio/voice issues with the official viewers.

http://lindens.s3.amazonaws.com/tofu/SecondLife-i686-1.21.6.100000-unofficial-audio-test.tar.bz2

It's bleeding-edge, not officially QA'd and I don't promise that it fixes all audio and voice compatibility problems (it doesn't) but in internal testing it demonstrated a reasonable improvement in audio and voice compatibility with recent desktop Linux distributions (w/PulseAudio etc). I'd really appreciate feedback on whether it seems noticably better (or worse!) than the official viewers, as I expect this to hit a release candidate within a month or so as a default.
Imnotgoing Sideways
Can't outlaw cute! =^-^=
Join date: 17 Nov 2007
Posts: 4,694
11-06-2008 07:23
Is there a fix for spotty sounding streaming audio in this? Ooooh, if I wasn't teaching a class tonight, I'd be sooo playing with this. (^_^)y
_____________________
Somewhere in this world; there is someone having some good clean fun doing the one thing you hate the most. (^_^)y


http://slurl.com/secondlife/Ferguson/54/237/94
Ganimede Rossini
Registered User
Join date: 22 Jul 2007
Posts: 5
11-08-2008 02:58
Thank you for your work, Tofu. I've already tested a self compiled version of the openAL branch of the client and it seems to work ok here, on a Debian Etch without Pulseaudio and a HDA Intel sound chipset (there are only little pauses on sound when, for example, you switch windows, but not a big issue). I still have to thoroughly test the release you have published, but at first sight it seems that the voice client is still affected by this bug: VWR-5708. This is a really silly bug, trivial to fix, and according to comments it indeed has been fixed upstream months ago. I can confirm that this bug prevents voice from working on Debian and derivative distributions: applying the clever but ugly workaround I read on Jira fixed voice on my system.

Anyway, I'm looking forward to see these changes merged in the official viewer: the developers really did a good job.

Bye.
Tofu Linden
Linden Lab Employee
Join date: 29 Aug 2006
Posts: 471
11-08-2008 10:38
Thanks for testing, Ganimede.
The version linked above addresses some general ALSA/PA compatibility issues but doesn't help with the known /proc/cpuinfo bug. Conversely, the SLim firstlook (which you might have more luck with) fixes the /proc/cpuinfo bug but not the ALSA/PA compatibility issues. Soonish these will merge and we might yet live in a glorious utopian future. =:)
Katheryne Helendale
(loading...)
Join date: 5 Jun 2008
Posts: 2,187
11-08-2008 12:17
I tested this release yesterday. At first glance, things seemed to work fine, but still didn't fix the voice issue. I ran into a major problem though when I tried to close the viewer. As it was shutting down, it seized the Pulseaudio server, the audio froze, and the viewer stopped responding. When I was finally able to force-quit the viewer, the Pulseaudio server disconnected and refused connections. I had to reboot to bring everything back.

On the next run, I had applied the fix-cpuinfo patch to libvivoxsdk.so (it seems this issue is plaguing 32-bit installs now with Intrepid). The viewer started up fine, but as soon as SLVoice tried to connect, Pulseaudio died. The client continued without audio, so I had no way of knowing if voice chat worked; however, standing in a room full of people, I was the only person listed on the list of voice speakers.

I had managed to get voice to work on the 1.21.6.99587 under Hardy by replacing libalut.so, libortp.so, libopenal.so.1, and libvivoxsdk.so, using the versions in the 1.19.0.5 archive, and forcing Voice chat to use OSS (using the workaround to have SL launch SLVoice through padsp). However, this trick does not work on Intrepid - it insists on going through ALSA, which just causes the perpetual connect/disconnect cycles. I managed to get it to use OSS (as confirmed in Pulseaudio Manager), by using the libopenal.so I found here (http://jira.secondlife.com/browse/VWR-5745), but I show up as the only speaker in the voice list. So now I'm back to trying to piecemeal a working combination of libraries from wherever I can find them.
Ganimede Rossini
Registered User
Join date: 22 Jul 2007
Posts: 5
11-08-2008 23:11
Yesterday I spent some hours using this client and, ignoring voice not working due to the /proc/cpuinfo bug, everything else worked fine for me. As I said the only glitch is that sometimes the wind stops for few moments when resizing/switching windows and the console shows:
INFO: updateWind: Wind had stopped - probably ran out of buffers - restarting: 9 now queued.
As I've already said IMO not a big deal. And a correction to my previous post: I'm running Lenny, not Etch.
Peace Howlett
Not a n00b
Join date: 1 Nov 2007
Posts: 53
11-09-2008 05:56
Same experience (almost identical), as Katheryne. Starting this viewer did not solve the voice problem with my system, trying to switch input to OSS, did not work for me, and the result was all system sound stopped working, as pulseaudio seemed to lock up. All my sound settings are on Ubuntu defaults. Also logging out and closing the viewer resulted in a lockup, I had to kill the viewer process and reboot my system.

I tried my usual voice workaround (which works very well for me), which is replacing the 'libopenal.so.1', with the one I found here.

http://dune2.dyndns.org/projects/pulseaudio/openal-soft/

and switching my input to OSS. (this is all I do for previous viewers to work with voice)

This workaround did not help with this test viewer either and caused the same pulseaudio crash. Also, I suspect its because I am running 64bit Ubuntu (intrepid), I experience a sudden crash attempting to play a music stream through this viewer.

The SLim firstlook viewer has been the viewer I have experienced the highest amount of success with, simply setting input to OSS, no other action is required.
_____________________
Adz Childs
Artificial Boy
Join date: 6 Apr 2006
Posts: 865
11-09-2008 10:37
Heh... I know this wasn't the intent of the fix, but Voice worked right away when I connected.
Voice hasn't worked for me in Ubuntu 8.04 64-bit AMD (notebook with onboard Intel HDA I think) for, I dunno, 6 months or so.
With the main release, I get the message "Connecting... Connected" but only ever see myself in the active speakers list. With this bleeding-edge client, this problem is gone.

It was not a thorough test. But it is encouraging news.
_____________________
http://slnamewatch.com — Second Life Last Name Tracking — Email Alerts — Famous People Lookup — http://adz.secondlifekid.com/ — Artificial Boy — Personal Blog
From: Tofu Linden
Hmm, there's nothing really helpful there, but thanks for pasting.
Get Takacs
Registered User
Join date: 1 Mar 2007
Posts: 23
11-10-2008 00:51
From: Tofu Linden
Here's an unofficial test viewer which I hope you'll feel like testing out, especially if you have audio/voice issues with the official viewers.


Sound and voice seem to work fine for me on Ubuntu Intrepid, default settings all round.

/Get
Adz Childs
Artificial Boy
Join date: 6 Apr 2006
Posts: 865
The Trade-off?
11-10-2008 05:33
enabling streaming audio in preferences causes an insta-crash
enabling streaming video in preferences causes an insta-crash too. but that has always been the case.
_____________________
http://slnamewatch.com — Second Life Last Name Tracking — Email Alerts — Famous People Lookup — http://adz.secondlifekid.com/ — Artificial Boy — Personal Blog
From: Tofu Linden
Hmm, there's nothing really helpful there, but thanks for pasting.
Tofu Linden
Linden Lab Employee
Join date: 29 Aug 2006
Posts: 471
11-10-2008 07:45
From: Adz Childs
enabling streaming audio in preferences causes an insta-crash
enabling streaming video in preferences causes an insta-crash too. but that has always been the case.

Is there anything interesting or relevant-looking in the terminal window?
Adz Childs
Artificial Boy
Join date: 6 Apr 2006
Posts: 865
11-10-2008 13:48
Music Insta-crash:
From: Terminal
2008-11-10T21:32:34Z INFO: updateWind: Wind had stopped - probably ran out of buffers - restarting: 15 now queued.
2008-11-10T21:32:38Z INFO: startInternetStream: entered startInternetStream()
2008-11-10T21:32:38Z INFO: do_elfio_glibc_backtrace: Opening stack trace file /home/adz/.secondlife/logs/stack_trace.log
2008-11-10T21:32:40Z INFO: do_elfio_glibc_backtrace: Finished generating stack trace.
2008-11-10T21:32:40Z INFO: handleViewerCrash: Handle viewer crash entry.
2008-11-10T21:32:40Z INFO: handleViewerCrash: Creating crash marker file /home/adz/.secondlife/logs/SecondLife.error_marker
2008-11-10T21:32:40Z INFO: handleViewerCrash: Created crash marker file /home/adz/.secondlife/logs/SecondLife.error_marker
2008-11-10T21:32:40Z INFO: handleViewerCrash: Handle viewer crash generating stats log.
2008-11-10T21:32:40Z INFO: writeDebugInfo: Opening debug file /home/adz/.secondlife/logs/debug_info.log
2008-11-10T21:32:40Z INFO: fork: Forked child process 22546
2008-11-10T21:32:40Z INFO: setupErrorHandling: LLApp::setupErrorHandling - Starting error thread
2008-11-10T21:32:40Z INFO: run: thread_error - Waiting for an error
*** Unclean shutdown. ***
2008-11-10T21:32:40Z INFO: handleViewerCrash: Handle viewer crash entry.

2008-11-10T21:32:40Z INFO: staticRun: LLThread::staticRun() Exiting: Error


Video Insta-Crash:
From: Terminal
2008-11-10T21:44:11Z INFO: updateDynamicThrottle: Tightening network throttle to 460800
2008-11-10T21:44:12Z INFO: do_elfio_glibc_backtrace: Opening stack trace file /home/adz/.secondlife/logs/stack_trace.log
2008-11-10T21:44:14Z INFO: do_elfio_glibc_backtrace: Finished generating stack trace.
2008-11-10T21:44:14Z INFO: handleViewerCrash: Handle viewer crash entry.
2008-11-10T21:44:14Z INFO: handleViewerCrash: Creating crash marker file /home/adz/.secondlife/logs/SecondLife.error_marker
2008-11-10T21:44:14Z INFO: handleViewerCrash: Created crash marker file /home/adz/.secondlife/logs/SecondLife.error_marker
2008-11-10T21:44:14Z INFO: handleViewerCrash: Handle viewer crash generating stats log.
2008-11-10T21:44:14Z INFO: writeDebugInfo: Opening debug file /home/adz/.secondlife/logs/debug_info.log
2008-11-10T21:44:14Z INFO: fork: Forked child process 22820
2008-11-10T21:44:14Z INFO: setupErrorHandling: LLApp::setupErrorHandling - Starting error thread
2008-11-10T21:44:14Z INFO: run: thread_error - Waiting for an error
2008-11-10T21:44:14Z INFO: handleViewerCrash: Handle viewer crash entry.
*** Unclean shutdown. ***
2008-11-10T21:44:14Z INFO: staticRun: LLThread::staticRun() Exiting: Error


Stack Trace at the end
From: stack_trace.log
0: ELF(do_elfio_glibc_backtrace()+0x109) [0x98d2339]
1: ELF(LLAppViewer::handleSyncViewerCrash()+0x13) [0x80e6d13]
2: ELF(LLApp::setError()+0x16) [0x9d7a4b6]
3: ELF(default_unix_signal_handler(int, siginfo*, void*)+0x165) [0x9d7b165]
4: [0xffffe600]
_____________________
http://slnamewatch.com — Second Life Last Name Tracking — Email Alerts — Famous People Lookup — http://adz.secondlifekid.com/ — Artificial Boy — Personal Blog
From: Tofu Linden
Hmm, there's nothing really helpful there, but thanks for pasting.
Tofu Linden
Linden Lab Employee
Join date: 29 Aug 2006
Posts: 471
11-11-2008 07:00
Hmm, there's nothing really helpful there, but thanks for pasting.
Katheryne Helendale
(loading...)
Join date: 5 Jun 2008
Posts: 2,187
11-11-2008 13:51
From: Tofu Linden
Hmm, there's nothing really helpful there, but thanks for pasting.

Regarding insta-crash when attempting to play streaming media (not music), this is a 64-bit problem, and is due to the viewer not recognizing the 64-bit gstreamer libraries. 64-bit gstreamer has its own set of issues which may be contributing to the crash (I used to get consistent segfaults whenever playing around with gstreamer-properties until I switched to 32-bit Ubuntu).

Insta-crash when attempting to play streaming music may be due to codec incompatibilities.
Baloo Uriza
Debian Linux Helper
Join date: 19 Apr 2008
Posts: 895
11-11-2008 16:27
From: Tofu Linden
Here's an unofficial test viewer which I hope you'll feel like testing out, especially if you have audio/voice issues with the official viewers.

http://lindens.s3.amazonaws.com/tofu/SecondLife-i686-1.21.6.100000-unofficial-audio-test.tar.bz2

It's bleeding-edge, not officially QA'd and I don't promise that it fixes all audio and voice compatibility problems (it doesn't) but in internal testing it demonstrated a reasonable improvement in audio and voice compatibility with recent desktop Linux distributions (w/PulseAudio etc). I'd really appreciate feedback on whether it seems noticably better (or worse!) than the official viewers, as I expect this to hit a release candidate within a month or so as a default.


Works fine with voice out of the box for me, though not with media.

From: someone

** Message: don't know how to handle audio/mpeg, mpegversion=(int)4, framed=(boolean)true, codec_data=(buffer)1210, rate=(int)44100, channels=(int)2

(gecko:8217): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-0.10/libgstffmpeg.so': /home/baloo/SecondLife-i686-1.21.6.100000/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /usr/lib/libdirac_encoder.so.0)
** Message: don't know how to handle video/x-h264, codec_data=(buffer)0142e01effe100142742e01ea9181407b600d418041adb0ad7bdf01001000428de09c8, width=(int)640, height=(int)480, framerate=(fraction)20/1
bus_callback:315: GST error: You do not have a decoder installed to handle this file. You might need to install the necessary plugins.


Curiously, this plugin is installed and works properly, just not in SL (tested on Torley's bigscreen in Here). Is there a chroot that we should be aware of going on? Or did LL pick a glibc newer than what people have in reality? Or is it something else entirely?

From: someone

CPU: AMD Sempron(tm) Processor 3400+
Memory: 2026 MB
OS Version: Linux 2.6.26-1-686 #1 SMP Wed Sep 10 16:46:13 UTC 2008 i686
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: GeForce 7600 GS/AGP/SSE2/3DNOW!
OpenGL Version: 2.1.2 NVIDIA 173.14.09

libcurl Version: libcurl/7.16.4 OpenSSL/0.9.7c zlib/1.2.3.3 c-ares/1.4.0
J2C Decoder Version: KDU
Audio Driver Version: OpenAL, version 1.1 / OpenAL Community / OpenAL Soft: ALSA Software on default
LLMozLib Version: [LLMediaImplLLMozLib] - 2.01.19490 (Mozilla GRE version 1.8.1.13_0000000000)
Torrid Luna
Stylecrasher
Join date: 16 Aug 2006
Posts: 20
11-11-2008 17:08
Thank you Tofu, that works very well for me so far.
I didn't have problems with voice lately (other than learning more about configuring alsa, pulse and openal, than I had planned^^), but with that client I can run the normal SL sound over Alsa too, which didn't work for a long time.

Pleaze, put that in the releaze! :-)

Edit: My System: Gentoo 32bit. (Linnucks, that is).

It seems, all ambient sounds now go over Openal (like voice), while streaming audio/video still comes through the speakers. But that's cool, I like it.
Tofu Linden
Linden Lab Employee
Join date: 29 Aug 2006
Posts: 471
11-12-2008 10:57
From: Baloo Uriza
Works fine with voice out of the box for me, though not with media.

Curiously, this plugin is installed and works properly, just not in SL (tested on Torley's bigscreen in Here). Is there a chroot that we should be aware of going on? Or did LL pick a glibc newer than what people have in reality? Or is it something else entirely?

Removing the libstdc++.so.6 in the SL 'libs' directory may help - please let us know.
Katheryne Helendale
(loading...)
Join date: 5 Jun 2008
Posts: 2,187
11-13-2008 01:36
From: Torrid Luna
Thank you Tofu, that works very well for me so far.
I didn't have problems with voice lately (other than learning more about configuring alsa, pulse and openal, than I had planned^^), but with that client I can run the normal SL sound over Alsa too, which didn't work for a long time.

Pleaze, put that in the releaze! :-)

Not so fast! It works, but it needs to be refined. Something (and I believe SLVoice is to blame) is randomly crashing Pulseaudio, requiring a complete reboot to fix.

I determined this by copying ONLY those files needed for Voice support (/bin/SLVoice, /lib/libalut.so, /lib/libopenal.so.1, lib/libortp.so, and lib/libvivoxsdk.so) from this experimental version to my existing 1.21.6.99587 install. Voice worked great, but every so often all audio would "freeze", and I'd find the PA server crashed. This is what I experienced when I ran this experimental viewer directly, so the issue is in one of the files I copied over. If I disable voice, I don't get this problem - at least, not with the release version.
tx Oh
Registered User
Join date: 10 May 2007
Posts: 13
11-14-2008 11:20
From: someone
(gecko:8217): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-0.10/libgstffmpeg.so': /home/baloo/SecondLife-i686-1.21.6.100000/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /usr/lib/libdirac_encoder.so.0)



hi,

since a while (several versions..) i need to replace the SecondLife-*/lib/libstdc++.so.6 with the systems /usr/lib/libstdc++.6.0.10 manualy to fullfill gstreamers needs.. maybe this will fix your
problem too..

tx Oh
Torrid Luna
Stylecrasher
Join date: 16 Aug 2006
Posts: 20
11-14-2008 11:22
From: Katheryne Helendale
Not so fast! It works, but it needs to be refined. Something (and I believe SLVoice is to blame) is randomly crashing Pulseaudio, requiring a complete reboot to fix.

I determined this by copying ONLY those files needed for Voice support (/bin/SLVoice, /lib/libalut.so, /lib/libopenal.so.1, lib/libortp.so, and lib/libvivoxsdk.so) from this experimental version to my existing 1.21.6.99587 install. Voice worked great, but every so often all audio would "freeze", and I'd find the PA server crashed. This is what I experienced when I ran this experimental viewer directly, so the issue is in one of the files I copied over. If I disable voice, I don't get this problem - at least, not with the release version.

I had some strange behaviour with Pulse for a long time now, and I wanted to get rid of it alltogether, so I didn't bother to test it.

Anyway, Voice over OpenAL over Alsa and SL Sound/SL Streaming over Alsa runs fine for me with that client. And OGG Streams finally work! :-)
tx Oh
Registered User
Join date: 10 May 2007
Posts: 13
11-14-2008 11:26
hi,

i tested the openal client and since the audio is streamed through gstreamer i found the same error i can get with video. i should check if there is a jira for it... but i will let you know now:

From: someone
2008-11-14T18:43:59Z INFO: startInternetStream: entered startInternetStream()
2008-11-14T18:43:59Z INFO: startInternetStream: mInternetStreamMedia is now 0x9d22b528
2008-11-14T18:43:59Z INFO: startInternetStream: Starting internet stream: http://dradio-ogg.t-bn.de/dkultur_high.ogg
2008-11-14T18:43:59Z INFO: startInternetStream: Playing.....
E: socket-client.c: socket(): Address family not supported by protocol
2008-11-14T18:44:10Z INFO: dumpResendCountAndReset: Circuit: 216.82.21.116:13000 resent 1 packets
2008-11-14T18:44:16Z INFO: updateWind: Wind had stopped - probably ran out of buffers - restarting: 6 now queued.
2008-11-14T18:44:19Z INFO: startNextTransfer: Getting asset data for: 7821affa-477a-56ff-92a7-38b4bf0d731f
2008-11-14T18:44:19Z INFO: _queueDataRequest: Starting transfer for 7821affa-477a-56ff-92a7-38b4bf0d731f
2008-11-14T18:44:20Z INFO: processTransferInfo: Receiving 8d27834c-db85-9103-403a-3bcebec66e45, size 6498 bytes
2008-11-14T18:44:25Z INFO: updateWind: Wind had stopped - probably ran out of buffers - restarting: 9 now queued.

** (gecko:3071): CRITICAL **: volume_transform_ip: assertion `this->process != NULL' failed
bus_callback:315: GST error: Internal data flow error.
2008-11-14T18:44:41Z INFO: removeRegion: Removing region 239616:242944
2008-11-14T18:44:41Z INFO: stop: LLEventPollResponder::stop <1> https://sim3381.agni.lindenlab.com:12043/cap/0b314009-b393-420b-6ff3-89aa7f111d2b
2008-11-14T18:44:41Z INFO: disableCircuit: LLMessageSystem::disableCircuit for 216.82.21.116:13000
2008-11-14T18:44:41Z WARNING: disableCircuit: Couldn't find circuit code for 216.82.21.116:13000
2008-11-14T18:44:48Z INFO: display_stats: FPS: 26.73
2008-11-14T18:44:50Z INFO: idle: Transmitting sessions stats


the sound stream stops in video and/or audio using gstreamer with the gecko:3071 and the GST bus_callback:315 every now and then. i suspect my gstreamer environment. it's on debian unstable.


tx Oh
Tofu Linden
Linden Lab Employee
Join date: 29 Aug 2006
Posts: 471
11-15-2008 05:37
The volume_transform_ip problem is a gstreamer bug - I've added some code to work around it 99.9% which should hit a release at about the same time as the OpenAL stuff.
Baloo Uriza
Debian Linux Helper
Join date: 19 Apr 2008
Posts: 895
11-15-2008 20:16
From: Tofu Linden
Removing the libstdc++.so.6 in the SL 'libs' directory may help - please let us know.


That seems to have fixed it. Thanks.
Missy Malaprop
♥Diaper Girl♥
Join date: 28 Oct 2005
Posts: 544
11-17-2008 08:33
this is working fantastic.. i had some issues with the 1.21.5 one (unrelated to sound), but the 1.21.6.100000 one seems to be working fine with everything so far... really good addition to SL for linux
Missy Malaprop
♥Diaper Girl♥
Join date: 28 Oct 2005
Posts: 544
11-17-2008 08:45
well maybe not so fantastic...

with 1.21.5 i couldnt upload anything or save scripts, but music streams worked...

with 1.21.6 i can upload and save scripts fine, but i cant get music streams to work...

and if i try this stream at all....

http://scfire-dll-aa02.stream.aol.com:80/stream/1015

it freezes up my entire client (did on 1.21.5, and 1.21.6)...

EDIT: well that whole stream is down right now.... so that URL wont even work, but it still shouldn't lock up the viewer making me have to kill it.
1 2 3