• All submissions to this site are governed by Second Life Project Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you have read, understood, and agreed to those terms.
MAINTENANCE ANNOUNCEMENT - JIRA will undergo maintenance starting 1:00am PDT through 3:00am on Saturday 2010.03.20. Please do not enter issues during this time as the system maybe restarted.
Issue Details (XML | Word | Printable)

Key: VWR-11903
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Blinking2342 Blinker
Votes: 6
Watchers: 7
Operations

If you were logged in you would be able to see more operations.
1. Second Life Viewer - VWR

linux - libopenal.so.1 and 1.22.8 (and newer - see comments) voice still disconnecting and reconnecting

Created: 05/Feb/09 02:34 PM   Updated: 17/Oct/09 08:30 PM
Component/s: Voice
Affects Version/s: 1.22 Release Candidate, 1.23 Release Candidate
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments: 1. Text File DaneelAya.SecondLife.1.22.11.113976original.log (66 kB)
2. Text File DaneelAya.SecondLife.1.22.11.113976withOpenAL1.6.372.log (103 kB)

Environment:
Gentoo Linux 2.6.27.6
Ubuntu 8.10 32-bit
OpenSuse 11.0 32-bit
Issue Links:
Relates

Last Triaged: 09/Mar/09 02:07 PM
Linden Lab Issue ID: DEV-28598


 Description  « Hide
Hi,

as described in Bug: http://jira.secondlife.com/browse/VWR-5745
Voice isnt working correctly. It kept restarting all the time.

Now with 1.22.8 it does not restart as often as in earlier versions, but it is still unusable as it crashes during conversations

When that happens, this shows up in the console:

2009-02-05T22:24:25Z INFO: LLVoiceClient::sessionRemovedEvent: handle c1_m1000xjDUuZpYqQaG3n-S7qn5Dyg==12
2009-02-05T22:24:25Z WARNING: LLVoiceClient::leftAudioSession: left session c1_m1000xjDUuZpYqQaG3n-S7qn5Dyg==12 in state stateSessionTerminated
2009-02-05T22:24:25Z INFO: LLVoiceClient::sessionCreateResponse: Session.Create response received (success), session handle is c1_m1000xjDUuZpYqQaG3n-S7qn5Dyg==13
2009-02-05T22:24:25Z INFO: LLVoiceClient::sessionAddedEvent: session sip:confctl-20561192@bhr.vivox.com, alias , name handle c1_m1000xjDUuZpYqQaG3n-S7qn5Dyg==13
2009-02-05T22:24:26Z INFO: LLVoiceClient::joinedAudioSession: added self as participant "Blinking2342 Blinker" (8c352e66-962a-41a1-b79f-e4bbaa7e43ca)
2009-02-05T22:24:26Z INFO: LLVoiceClient::buildLocalAudioUpdates: Setting speaker volume to 65



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Blinking2342 Blinker added a comment - 05/Feb/09 02:37 PM
VWR-5745 was the issue with earlier viewers.

Daniel Millgrove added a comment - 06/Feb/09 01:26 AM
confirmed on Ubuntu 8.10 32bit using RC8
But I can't say that for me it has become not so often. It's the same as before, every 60 seconds.

[2009/02/06 1:11] Connecting to in-world Voice Chat...
[2009/02/06 1:11] Connected
[2009/02/06 1:12] Connecting to in-world Voice Chat...
[2009/02/06 1:12] Connected
[2009/02/06 1:13] Connecting to in-world Voice Chat...
[2009/02/06 1:13] Connected
[2009/02/06 1:14] Connecting to in-world Voice Chat...
[2009/02/06 1:14] Connected

No change at all.

BUT

Additionally, the workaround with using the openal libs from 1.19.5 is now broken, too! If I use the old libs I hear a horrible clicking noise all the time and it won't connect to SL Voice at all then.

So in fact, RC8 now cuts me off of Voice completely!
For the subsystem Voice this is a complete show stopper!


Daneel Aya added a comment - 06/Feb/09 01:34 PM - edited
same experience in 1.22.RC8 as my predecessor poster
first some times distorted voice, reconnects every minute, after first reconnect only see me on voice list
(and same behavior as in the other 1.22 RCx + 1.21.6)

here: OpenSuse 11.0 32 Bit, Creative Audigy 2

I think i did got it working by using the libopenal.so.0 delievered with OpenSuse 11.0:
(version openal 0.0.8-165.1)

  • copied "libopenal.so.0" and "libopenal.so.0.0.0" into [secondlifexxxPath]/lib
  • renamed "libopenal.so.1" to "libopenal.so.1.OLD"
  • linked to OpenSuse Version: " ln -s libopenal.so.0 libopenal.so.1"

worked so far, no reconnects for an hour, sound (music + media) ok
have no real chance to test voice now if this also all ok (but seems so far) as just "patched" now
will report ....

And can also only agree, this is near a showstopper (for me only critical as not using that much voice till now)

Edit: had chance to test run it now with this solution, i could see in list all near me and hear all other ones voices, and music, very good, for more than fifteen minutes. Only thing was they didnt hear me but maybe this was only (tricky) mixer setting of the Audigy card Mic input.
Will have a closer look on this one item as i have time.


Daniel Millgrove added a comment - 07/Feb/09 04:02 AM
you're a lucky one having such a workaround. Ubunto 8.10 doesn't deliver libopenal.so.0 anymore, just the next version libopenal.so.1 (Version 1.3.253). And with these libraries the bug is the same as with the SL original ones... :-/

I will try if I can download the source of the latest openal 0.x and compile manually. If I have any success I will report here.


Daniel Millgrove added a comment - 07/Feb/09 05:41 AM - edited
I fetched the original openal 0.8 sources (from ubuntu hardy repos, they always keep orig sources, and seperate diff files they use for ubuntu) and compiled it, did not install the lib, but copied it over into the SL lib dir. I could connect to voice, but my audio wasn't transmitted at all.

Then I fetched the latest openal-soft source package version 1.6.372 from
http://connect.creativelabs.com/openal/Downloads/Forms/AllItems.aspx
Again I compiled it and replaced the openal.so.1

Now I can connect to voice, but it still reconnects now and then. But now its "just" every 5 to 10 minutes.

When it reconnects, I have messages in my SL log similar to the ones posted above:

2009-02-07T13:35:53Z INFO: LLVoiceClient::sessionRemovedEvent: handle c1_m1000xtrqK2L5nSY--UmnRIPVr7Q==1
2009-02-07T13:35:53Z WARNING: LLVoiceClient::leftAudioSession: left session c1_m1000xtrqK2L5nSY--UmnRIPVr7Q==1 in state stateSessionTerminated
2009-02-07T13:35:53Z INFO: LLVoiceClient::sessionCreateResponse: Session.Create response received (success), session handle is c1_m1000xtrqK2L5nSY--UmnRIPVr7Q==2
2009-02-07T13:35:53Z INFO: LLVoiceClient::sessionAddedEvent: session sip:confctl-18032392@bhr.vivox.com, alias , name handle c1_m1000xtrqK2L5nSY--UmnRIPVr7Q==2
2009-02-07T13:35:53Z INFO: LLVoiceClient::joinedAudioSession: added self as participant "Daniel Millgrove" (b6ba8ad8-be67-498f-be52-69d120f56bed)
2009-02-07T13:35:54Z INFO: LLVoiceClient::buildLocalAudioUpdates: Setting speaker volume to 62

Does that give any clues to anybody? :-/

I'm really very sad that a newer version takes back functionality which I could get at least with workarounds in the past...

EDIT:
Perhaps the result has been posted too early. The time until this stupid reconnect appears happens between 1 and 10 minutes. Sometimes it lasts for 10 minutes, then it reconnects 3 times in 3 minutes...


hotrodjohnny gears added a comment - 07/Feb/09 12:11 PM
Second Life 1.22.8 (109366) Feb 1 2009 13:09:21 (Second Life Release Candidate)
Release Notes

You are at 148545.3, 306241.0, 2.8 in Best of Rotterdam located at sim8711.agni.lindenlab.com (8.10.145.134:13002)
Second Life Server 1.25.5.109327
Release Notes

CPU: Dual PowerPC 970 (1800 MHz)
Memory: 1024 MB
OS Version: Darwin 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh
Graphics Card Vendor: ATI Technologies Inc.
Graphics Card: ATI Radeon 9800 OpenGL Engine
OpenGL Version: 1.5 ATI-1.4.18

libcurl Version: libcurl/7.13.1 OpenSSL/0.9.7l zlib/1.2.3
J2C Decoder Version: KDU
Audio Driver Version: FMOD version 3.750000
LLMozLib Version: [LLMediaImplLLMozLib] - 2.01.21597 (Mozilla GRE version 1.8.1.13_0000000000)
Packets Lost: 6/119224 (0.0%)

Voice has worked maybe 1% of the time I have used this client. It worked twice (on different logins) for a few minutes after re-activating voice but 99% of the time voice is not available (Talk icon inactive).


Daniel Millgrove added a comment - 08/Feb/09 02:22 PM
Daneel Aya wrote:
Edit: had chance to test run it now with this solution, i could see in list all near me and hear all other ones voices, and music, very good, for more than fifteen minutes. Only thing was they didnt hear me but maybe this was only (tricky) mixer setting of the Audigy card Mic input.
Will have a closer look on this one item as i have time.
--------------

That was the state I got after I built my very own libopenal.so.0 version 0.8 (with symlink libopenal.so.1 so SL finds it). And I made sure it's not a mixer problem, because I used audacity to test recording and additionally, just changing the libopenal.so.1 to version 1.3 or 1.6 instantly gives audio transmitted, so I guess Daneel might find out that with openal 0.8 recording doesn't work.


Daneel Aya added a comment - 08/Feb/09 04:00 PM - edited
Ok back now with (some) Success ) (for me at least maybe

The old 0.0.8 has the problem that it seem not to connect correctly the mic input from ALSA or whatever sound system, and no chance to choose input source from SL client preferences
--> so right, u can only listen 2 others but u dont see any "volume meter" above ur head showin and no own voice ....
maybe sth can be fiddled with the asound.rc but i was not crazy enough to try ...

OK then i tried "libopenal.so.1.6.372" from opensuse software repositories
(http://download.opensuse.org/repositories/home:/b-s-a/openSUSE_11.0/i586/openal-soft-1.6.372-3.1.i586.rpm)

With this implementation i have

  • sound
  • my voice
  • volume meter showin mic inputs in preferences and above my head
  • but as Daniel Millgrove i have reconnects every ~10 mins (some times 2 mins) but still workable

Have 2 try bit more next time i have friends 2 voice chat on ....
2 be continued

Edit Feb 12: Ok did a longer voice chat in SL - additions:

  • it reconnects every ~10 min, it did several times, but always restored properly after some seconds
  • and voice you hear stutters a bit, means drops some bit of sounds some times
  • and: IM voice chat "Call aName" doesnt work (stays yellow, and hang up after a min)

Hope Linden or OpenAl fix it soon .....


Daniel Millgrove added a comment - 02/Mar/09 01:10 AM
On VWR-5630, Khyota Wulluf suggested to give 1.22.10 (RC10) a try, there are some changes to linux voice.

http://jira.secondlife.com/browse/VWR-5630?focusedCommentId=101215&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_101215

I will do that the next days, but perhaps somebody can test earlier already?


Daniel Millgrove added a comment - 04/Mar/09 10:58 AM
No progress with this new hint. Still reconnecting every few minutes.

Another user reported that using openal lib from http://packages.debian.org/lenny/libopenal1 was solving the problem. No change for me with that as well.


Daneel Aya added a comment - 07/Mar/09 12:03 PM - edited
I tried too
  • RC10 with openalsoft 1.6.372 --> same every 5 - 15 Minutes reconnects but anyway even properly restores voice participants / current talk, and in between reconnects it always works but no improvement from previous RC
    sum up: at least so far "usable" for voice
  • lib from http://packages.debian.org/lenny/libopenal1 was no success at all, behaves like delivered libopenal, every minute a reconnect; i couldnt test if a voice session restores properly with this 1 (as it does not with the delivered 0.8 version, you see no more participants after relog) but i suggest useless 2 test now as it reconnects every minute makes in unusable)

(Opensuse 11.0, using openAL 1.6.372, 32 bit , Creative Audigy 2)
here the output of the console log:

2009-03-07T20:02:29Z INFO: LLVoiceClient::sessionRemovedEvent: handle c1_m1000xeNYcXAOlQSak0VsJACJf9Q==0
2009-03-07T20:02:29Z WARNING: LLVoiceClient::leftAudioSession: left session c1_m1000xeNYcXAOlQSak0VsJACJf9Q==0 in state stateSessionTerminated
2009-03-07T20:02:29Z INFO: _queueDataRequest: Starting transfer for ec37f489-c495-0b27-8bb5-befb5e01d2c9
2009-03-07T20:02:29Z INFO: LLVoiceClient::sessionCreateResponse: Session.Create response received (success), session handle is c1_m1000xeNYcXAOlQSak0VsJACJf9Q==1
2009-03-07T20:02:29Z INFO: LLVoiceClient::sessionAddedEvent: session sip:confctl-320@bhr.vivox.com, alias , name handle c1_m1000xeNYcXAOlQSak0VsJACJf9Q==1
2009-03-07T20:02:29Z INFO: processTransferInfo: Receiving 1858ac84-98a6-bfd8-76bc-501f3608899c, size 2662 bytes
2009-03-07T20:02:30Z INFO: LLVoiceClient::joinedAudioSession: added self as participant "Daneel Aya" (78d61c5c-03a5-4126-a4d1-5b0900225ff5)
2009-03-07T20:02:30Z INFO: LLVoiceClient::buildLocalAudioUpdates: Setting speaker volume to 73

Any suggestion for some more debugging level? in the advanced menu i find several items but not anyone seems suitable to me...

EDIT: 2 get log above i waited long (murphies law seems) - got new record - 20 Mins connected


Alexa Linden added a comment - 09/Mar/09 02:06 PM
Can anyone please attach viewer logs for us to review?

Daneel Aya added a comment - 10/Mar/09 11:58 AM - edited
Sure, would the terminal output where i start secondlife be sufficient or any other instructions / start parameters? (terminal i mean like part of it above, just would add the complete log from start with all information)
Will do a console output attach here next time i am on anyway.

EDIT: two logs, first original 1.22.11.113976, second with overwritten libopenal.so.1 from OpenALSoft 1.6.372:


Daneel Aya added a comment - 11/Mar/09 03:14 PM - edited
two logs, first original 1.22.11.113976, second with overwritten libopenal.so.1 from OpenALSoft 1.6.372

If i should give any debug aparameter or other log, pls tell me

summary:

1) original: reconnects every minute, seems session now restored here too
[DaneelAya.SecondLife.1.22.11.113976original.log]
see from line 433
2) 1.6.372: reconnects only in about ten minutes, session restored after this again properly (tested)
[DaneelAya.SecondLife.1.22.11.113976withOpenAL1.6.372.log]
see from line 807

Opensuse 11.0 / 32 Bit, Audigy 2 soundcard
Second Life 1.22.11 (113976) Mar 6 2009 15:48:04 (Second Life Release Candidate)
Release Notes

CPU: Intel(R) Core(TM)2 Duo CPU E6850 @ 3.00GHz
Memory: 2026 MB
OS Version: Linux 2.6.25.20-0.1-pae #1 SMP 2008-12-12 20:30:38 +0100 i686
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: GeForce 8800 GTS/PCI/SSE2
OpenGL Version: 3.0.0 NVIDIA 180.29

libcurl Version: libcurl/7.16.4 OpenSSL/0.9.7c zlib/1.2.3 c-ares/1.4.0
J2C Decoder Version: KDU
Audio Driver Version: OpenAL, version 1.1 ALSOFT 1.6.372 / OpenAL Community / OpenAL Soft: ALSA Software on default
LLMozLib Version: [LLMediaImplLLMozLib] - 2.01.22438 (Mozilla GRE version 1.8.1.13_0000000000)


Daniel Millgrove added a comment - 27/Apr/09 04:40 AM
Alexa, Tofu, whoever, we need status update here desperately!

Before 1.22 RC8 we had the workaround to replace the libopenal from 1.19 line viewer, but this workaround is not working anymore since 1.22. RC8!

Just figure how that looks like from the outside:
Voice was working with 1.19, you broke it at 1.20. We found a workaround until 1.22 RC8 and then you managed to even break our workaround. Now you seem to be satisfied with your work and are resting now! I know it's not the case, but it looks like you are fighting against us!

Please help us getting Voice back!
I'm willing and able to replace openal with whatever lib you are giving me to try out, I'm able to build openal from sources, I'm able to patch and then build openal, but please give us a chance to help ourself! This time we really seem to be helpless, no workaround is known as far as I searched!

Do you need any additional info? I'm now running on Ubuntu 9.04 without change to this problem. I can send soundcard infos, I can send alsa configuration, just tell me what you need! My credit card info? Gosh, you already have that!


Tofu Linden added a comment - 27/Apr/09 11:33 AM
Do try the 1.23 prerelease (warning: it's a prerelease!) at: http://automated-builds-secondlife-com.s3.amazonaws.com/viewer-public-nightly/118316/SecondLife-i686-1.23.0.118316.tar.bz2

... as it claims to have some assorted voice fixes.

If that fails, I'd urge you to try dropping-in as many home-built OpenAL versions as you can get your hands on - ideally OpenAL Soft at various version numbers, and there are some unofficial PulseAudio patches floating around which MAY help - please report results.

Failing that we'll see how future voice SDKs fair - the vendor is looking into more Linux fixes.


Daneel Aya added a comment - 28/Apr/09 02:14 PM - edited
OK Tested it ....... (Audigy 2 soundcard, Opensuse 11.0 32 bit )

ORIGINAL NIGHTLY with delievered openAL 1.1:

Second Life 1.23.0 (118316) Apr 23 2009 21:25:15 (Second Life Public Nightly)
Versionshinweise

Built with GCC version 40102

Sie befinden sich in 259344.1, 253355.3, 86.5 in Wengen located at sim2449.agni.lindenlab.com (216.82.17.200:13002)
Second Life Server 1.26.2.117266
Versionshinweise

CPU: Intel(R) Core(TM)2 Duo CPU E6850 @ 3.00GHz
Memory: 2026 MB
OS Version: Linux 2.6.25.20-0.1-pae #1 SMP 2008-12-12 20:30:38 +0100 i686
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: GeForce 8800 GTS/PCI/SSE2
OpenGL Version: 3.0.0 NVIDIA 180.51

libcurl Version: libcurl/7.16.4 OpenSSL/0.9.7c zlib/1.2.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.23518 (Mozilla GRE version 1.8.1.18_0000000000)
Packets Lost: 35/18811 (0.2%)

SAME BEHAVIOUR - every MINUTE reconnects (didnt test voice itself so)
[13:50] Verbindung mit In-Welt-Voice-Chat...
[13:50] Verbunden
[13:51] Verbindung mit In-Welt-Voice-Chat...
[13:51] Verbunden
[13:51] Verbindung mit In-Welt-Voice-Chat...
[13:51] Verbunden
----------------------------------------------------------------------------
NOW WITH MY Last used Audio Driver Version: OpenAL, version 1.1 ALSOFT 1.6.372 / OpenAL Community / OpenAL Soft: ALSA Software on default:

[13:59] Verbindung mit In-Welt-Voice-Chat...
[13:59] Verbunden
[14:00] Verbindung mit In-Welt-Voice-Chat...
[14:00] Verbunden
[14:09] Verbindung mit In-Welt-Voice-Chat...
[14:09] Verbunden

SAME BEHAVIOUR ... reconnects from some times 1 min, normally every ten minutes, up 2 20 mins
Voice works in the time and works after reconnect
------------------------------------------------------------------------------
==> at all, no change for me, delivered version not usable, "patched" at least "OK" as a workaround ....
==> will try some other OpenAL versions if i find some ..... next days
==> any parameters for Logs or sth else Tofu Linden would suggest me 2 do?
MY 2 CENTS .. sigh

EDIT: just P.S: had crash this nightly if i try 2 enable Anitaliasing, did submit crash report ...

EDIT2: tried change of ALUT.so ... didnt change
EDIT 3: seen new OpenAL 1.7.411 source avail will try 2 get binaries and try ....


Daniel Millgrove added a comment - 29/Apr/09 12:41 AM
my results so far:

Tried included openal: reconnects every minute like a clockwork

Tried self-built openal 0.8 with expected results of noise and cracks and stuff, no real "sound".

Tried self-built openal 1.6.372: Reconnects between 1 min and 20 min. Most times after 2 or 3 minutes my mic stops working.
Then I can only hear people until voice reconnects. Then Voice starts working again and behavior starts from scratch. I can make the mic working again, too, when I force Voice to reconnect by switching it off and back on.

fetched new openal 1.7.411 and built it: Same behavior like 1.6.372. Possibly others hear some crackles in my voice from time to time, but could be listener side problem as well. Would count that as "no change".


Daniel Millgrove added a comment - 06/May/09 07:05 AM
I now made tests using pulseaudio. I made a clean pulseaudio installation, no special config, auto device recognition through HAL.

I now document everything I tried even the steps where I failed, because perhaps this has some information somebody find useful nevertheless, so sorry for being that verbose.

So first I wanted my system to use pulse wherever it can. So I routed alsa to pulse with this ~/.asoundrc:

pcm.!default { type pulse }
ctl.!default { type pulse }

I made sure that pulse itself works fine, and it does. Audacity with alsa backend works great with playback and record. mplayer plays great with pulse natively as well as with that alsa -> pulse routing above.

Then I fetched a version of openal which has pulseaudio backend included. Sadly this is not developed anymore and is quite old.
http://www.lastlog.de/wiki/index.php/Pulseaudio
it shows as libopenal.so.1.3.253
I built it and replaced the lib in Secondlife/lib directory

Then I changed my ~/alsoftrc to this:

drivers = pulseaudio,alsa

This way SL using the special openal version will use pulse as backend and other applications using openal will use the system library and will not recognise backend "pulseaudio" and fall back to alsa (which routes back to pulse then as well).

I started SL and made sure in the output, that it uses alsa directly with pulse:

2009-05-06T13:28:14Z INFO: init: LLAudioEngine_OpenAL::init() OpenAL successfully initialized
2009-05-06T13:28:14Z INFO: init: OpenAL version: 1.1
2009-05-06T13:28:14Z INFO: init: OpenAL vendor: OpenAL Community
2009-05-06T13:28:14Z INFO: init: OpenAL renderer: OpenAL Soft
2009-05-06T13:28:14Z INFO: init: ALUT version: 1.1
2009-05-06T13:28:14Z INFO: init: ALC version: 1.1
2009-05-06T13:28:14Z INFO: init: ALC default device: PulseAudio Playback
2009-05-06T13:28:14Z INFO: idle_startup: Audio Engine Initialized.

I logged in and tested sound. Inworld sound worked very fine!

Then I connected Voice. Now I have 2 observations. First was that seemingly this pulseaudo backend for openal does not support capturing:
AL lib: pulseaudio.c:542: alcPulseAudio PulseAudioOpenCapture
AL lib: pulseaudio.c:543: FIXME: NOT DONE YET

As it's not developed anymore, we're at a dead end here.

I let it run anyway and found out that SL Voice was reconnectiong after 11 minutes. That was where I logged off again.

Then I tried to get SL using Alsa and then going from Alsa to pulse. So I changed my .alsoftrc to this:
drivers = alsa
[alsa]
device = pulse
capture = pulse

Then I deleted the openal lib in SecondLife/lib directory, so SL will use the system library.

After logging back in, I had good sound again, but noticed higher CPU usage. Then I connected to voice and CPU usage went through the roof, FPS dropping to half and lower.

After some playing around I added one line to my ~/.alsoftrc in [alsa] section:
mmap=false

So the complete file looks this way:

drivers = alsa
[alsa]
device = pulse
capture = pulse
mmap=false

SL sound works, I'm connected to SL Voice, CPU is as high as usual before.
Because atm I have no mic at hand and no partner to test voice, I can't test if I hear others and if others can hear me, I have to wait to get home to test that. I will report back then.

But I found one thing:
Using pavucontrol I can see every application streaming to pulse or recording from pulse. When I had SL Voice activated, I could see the SL Voice Application connecting to pulse playback, but I could not see it using pulse recording like I could see when recording with audacity. So I think this may mean that it cannot get my voice from my microphone recorded.

At least I'm now connected to voice for more than 20 minutes without reconnect. So this would be a progress for sure.
Perhaps I can now use ~/.alsoftrc to use pulse as output device, but alsa directly for input this way:

drivers = alsa
[alsa]
device = pulse
capture = hw:0,0
mmap=false

But this has to wait a little until I find some more time.


Tofu Linden added a comment - 06/May/09 10:12 AM
Thanks for being adventurous.
So it sounds like the old pulseaudio support works the best for you.
If so, I have some good news! The very latest GIT repository versions of OpenAL-Soft ( http://repo.or.cz/w/openal-soft.git ) have official support for PulseAudio, finally, including Capture. That would be interesting to test.

Daniel Millgrove added a comment - 06/May/09 11:46 AM
hehe that's great hint!
The old openal with pulseaudio "hack" was reconnecting, but the recent one going through alsa to pulse was stable, so lets see if this one can do both capturing and stay connected.

I successfulls checked out the git repo and built the lib. I verified it has the pulse support with the included openal-info tool.

I built a deb package for my jaunty 32-bit and as soon as I can reach my desktop pc again, I will install it there system wide (yes, I'm adventurous hehe) and report the results.


Daniel Millgrove added a comment - 06/May/09 02:01 PM - edited
okay it really seems to work!

I installed openal 1.7.411 from git and set ~/.alsoftrc to

drivers = pulse,alsa

[alsa]
device = pulse
capture = pulse
mmap = false

(Alsa fallback just for the sake of safety)

Then in SL Voice Prefs I could set the devices to Pulseaudio Capture and Pulseaudio Software and it just works!

And now with having the sound in pulseaudio I can separately route SL Sound, SL Music and SL Voice to any availiable soundcard or even to a distant pulseaudio server on the net. So I can now have SL Voice on my headset, SL Audio on the PC speakers and SL Music streamed to the pulse server on my laptop which is connected to my sound system

Edit: Yes I made sure that SL uses pulse natively and not using the alsa fallback.


Daneel Aya added a comment - 09/May/09 01:19 PM
Installed the new OpenAL 1.7.411 from the opensuse repositories
(openal-soft-1.7.411-2.1.i586.rpm, libopenal0-soft-1.7.411-2.1.i586.rpm, libopenal1-soft-1.7.411-2.1.i586.rpm) and deleted the with the SL client delivered openal.so (so that the system installed one, the above) is used.

Result: very promising!!!! No reconnects seen for 4 hrs
(ok 3 time after teleporting but think this is normal?)

Music + Media OK, hear other voice chats, see the input of mic in prefs)
Just have to test a longer voice chat session if i get one next times

I am using ALSA sound system so it seems to work
[Opensuse 11.0, 32 Bit, Alsa, Crative Audigy 2]
Big Hopes for a general solution next SL Viewer release now


Magus Loon added a comment - 20/May/09 01:42 PM
I installed the new media-libs/openal-1.7.411 on Gentoo. Now it seems to be fixed for me.

Daniel Millgrove added a comment - 25/May/09 06:29 AM
I confirm, pulseaudio was not the bit that solved the problem, but it was OpenAL 1.7.411 itself.
Out of curiosity, I switched back to alsa and it still works with that version.

So fix would be to deliver SL with OpenAL 1.7.411 (or higher in the future). Would be a tough choice, I admit, for being a subversion snapshot... But so far the only drawback seems to be that when minimizing SL, the CPU load does not sink, sometimes even rise.
Anyone else seeing this when using latest openal snapshot?


Daniel Millgrove added a comment - 08/Jul/09 07:33 AM
Elas metadata update reminded me again of this jira and I'd like to say that OpenAL 1.7.411 still is the solution to all my audio problems with SL. It works with SL release version, with CoolSL version, and even Snowglobe works just great with that. I don't know why it's still not bundled with SL.

Any known drawbacks that would block that inclusion? My CPU load problems disappeared in the meanwhile, I guess it wasn't openal causing this, perhaps it was an audio system misconfiguration or such. Cannot reproduce anymore.

In the meantime we also don't necessarily talk about a git snapshot, as OpenAL 1.8.466 has been released already. Would it be of any benefit if I provide test results with that one?


Prospero Frobozz added a comment - 17/Oct/09 08:03 PM - edited
OOPS – I replaced the libopenal.so.1 in the Secondlife 1.23.5 directory, then ran Snowglobe. I'm editing this comment to reflect reality.

I'm using Snowglobe-i686-1.2.0.2879. The audio chip (according to lspci) is an Intel 82801H (ICH8 Family).

If I have Voice set to use the "ALSA default", I get horribly quality problems – every couple of seconds there's a glitch. I saw this before, and Tofu, I talked to you extensively about it several months ago.

I found that if I select the input device "ALSA Capture on HDA Intel [ALC268 Analog]", then the voice quality is just fine. However, fairly frequently my mic will cut out. Every several seconds I get a brief gap. Then, every few to every several minutes my mic just no longer picks up anything; it's as if I have it muted. After a while, it will start picking up sound again. I have not seen any voice-related spewage to the console when these things happen.

These are the symptoms I get using the libopenal.so.1 that is shipped with Snowglobe.


Prospero Frobozz added a comment - 17/Oct/09 08:15 PM - edited
When I put the libopenal.so.1 from openal-soft-1.8.466 in the lib subdirectory of the Snowglobe directory, regular sound in SL works, but Voice isn't starting up at all.

This is the only potentially relevant thing I see in the console output:

2009-10-18T03:14:30Z INFO: LLVoiceClient::connectorCreateResponse: Connector.Create succeeded, Vivox SDK version is 2.1.3010.6270

...added later, it just took nearly a minute to start up. However, no matter what device I set for input, when I talk, it's horribly distorted.

This was just using ALSA. When I use pulseaudio, things sound OK, but I get exactly the "dropping out" behavior described in the previous post.

I do think there is some urgency to this – I can use a 1.22 series viewer for now, since I've managed to find a messed up configuration of installed stuff that makes that work. However, it's only a matter of time before 1.22 is broken for using Second Life at all and gets blocked out, or until Vivox stops supporting the protocol in the old SDK. I hope somehow I can find a working Linux Voice solution before that....