• 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.
Issue Details (XML | Word | Printable)

Key: VWR-4589
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Tofu Linden
Reporter: marchino villota
Votes: 3
Watchers: 4
Operations

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

Terminate called after throwing an instance of 'std::out_of_range'

Created: 06/Feb/08 02:13 AM   Updated: 14/Mar/09 08:37 PM
Return to search
Component/s: Voice
Affects Version/s: 1.19.0 Release Candidate
Fix Version/s: 1.22

File Attachments: 1. Text File SecondLifeCrashReport.log (168 kB)
2. Text File siplog.txt (0.1 kB)

Environment:
Ubuntu 64
Gentoo x86-64
Issue Links:
Duplicate
 
Relates

Last Triaged: 08/Nov/08 12:23 PM
Linden Lab Issue ID: DEV-23531


 Description  « Hide
When viewer start it initialize ALSA perfectly but voice do not run.
Configuring voice into preferences, alsa system appear as input line but in the toolbar area button switch for talk remain disabled.
I find into log this issue:
2008-02-06T10:03:37Z INFO: LLVoiceClient::setState: entering state stateConnectorStarting terminate called after throwing an instance of 'std::out_of_range' what(): basic_string::substr
I think this is at origin of my problem.
Any idea? Is a known problem?
Thanks in advance.

Update from comments (2008-11-03): "@Linden Labs: Please send this issue to Vivox so they can fix their /proc/cpuinfo parser, just tell them it crashes on empty entries like: "bla :" where the entry doesn't have any value. Shouldn't be a serious problem for them to fix."

Update from comments (2008-11-18): Xaden Kjeller has crafted a workaround for this problem which involves modifying the Vivox binaries rather than modifying the Linux kernel. Details can be found in VWR-5708



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
marchino villota made changes - 06/Feb/08 03:02 AM
Field Original Value New Value
Description When viewer start it initialize ALSA perfectly but voice do not run.
When I config voice into preferences, alsa system appear as input line but in the toolbar area button switch for talk remain disabled.
I find into log this issue:
2008-02-06T10:03:37Z INFO: LLVoiceClient::setState: entering state stateConnectorStarting terminate called after throwing an instance of 'std::out_of_range' what(): basic_string::substr
I think this is at origin of my problem.
Any idea? Is a know problem?
Thanks in advance.


When viewer start it initialize ALSA perfectly but voice do not run.
Configuring voice into preferences, alsa system appear as input line but in the toolbar area button switch for talk remain disabled.
I find into log this issue:
2008-02-06T10:03:37Z INFO: LLVoiceClient::setState: entering state stateConnectorStarting terminate called after throwing an instance of 'std::out_of_range' what(): basic_string::substr
I think this is at origin of my problem.
Any idea? Is a known problem?
Thanks in advance.


Harleen Gretzky made changes - 06/Feb/08 05:55 AM
Link This issue Relates to VWR-4585 [ VWR-4585 ]
Kurtis Jenkins added a comment - 16/Feb/08 07:58 PM
I too am experiencing this issue. My OS is Gentoo x86-64. I have verified that my microphone works with other applications.

The following is printed to standard output after enabling voice in the RC viewers; note the out_of_range exception thrown:

2008-02-17T03:55:13Z INFO: LLVoiceClient::setState: entering state stateStart
2008-02-17T03:55:13Z INFO: LLVoiceClient::setState: entering state stateDaemonLaunched
2008-02-17T03:55:14Z INFO: LLVoiceClient::setState: entering state stateConnecting
2008-02-17T03:55:14Z INFO: LLVoiceClient::setState: entering state stateIdle
2008-02-17T03:55:14Z INFO: LLVoiceClient::setState: entering state stateConnectorStart
2008-02-17T03:55:14Z INFO: LLVoiceClient::clearCaptureDevices: called
2008-02-17T03:55:14Z INFO: LLVoiceClient::addCaptureDevice: Advanced Linux Sound Architecture (ALSA)
2008-02-17T03:55:14Z INFO: LLVoiceClient::clearRenderDevices: called
2008-02-17T03:55:14Z INFO: LLVoiceClient::addRenderDevice: Advanced Linux Sound Architecture (ALSA)
2008-02-17T03:55:14Z INFO: LLVoiceClient::setState: entering state stateConnectorStarting
terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::substr


Kurtis Jenkins made changes - 18/Feb/08 04:58 PM
Summary Voice issue viewer 1.19.0 to ubuntu 64 Terminate called after throwing an instance of 'std::out_of_range'
Environment Ubuntu 64 Ubuntu 64
Gentoo x86-64
Kurtis Jenkins added a comment - 18/Feb/08 05:12 PM - edited
Attached ~/Library/Logs/Vivox/siplog.txt.

Kurtis Jenkins made changes - 18/Feb/08 05:12 PM
Attachment siplog.txt [ 14991 ]
Saphirelda Jewell added a comment - 20/Feb/08 08:37 AM
According to the system requirements page, 32-bit versions of Linux are supported. If you are using a 64 bit Linux, then you need to make sure the 32-bit compatibility environment is installed.

http://secondlife.com/corporate/sysreqs.php

Having said that, I'm not sure the voice product supports 64bit Linux as it stands.


Bridie Linden added a comment - 20/Feb/08 04:24 PM
64 bit is not supported

Bridie Linden made changes - 20/Feb/08 04:24 PM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Won't Finish [ 2 ]
Kouji Tokyo added a comment - 24/Feb/08 02:47 AM
Couldn't the company make a 64bit version of their library so someone could create a 64bit SLVoice? This is rediculous, 64bit starting to dominate and SL is stuck in the past with 32bit only versions.

Carjay McGinnis added a comment - 17/Apr/08 06:15 PM
On Linux, the SLVoice executable parses /proc/cpuinfo at startup and seems to have trouble with empty entries like this:

"power management:"

This causes the std::out_of_range-exception. It's probably a fault in the parser of libvivoxsdk.so and not really related to 64 bit systems.

I use kernel 2.6.22, not sure if this applies to all kernel versions.

I have no idea if Linden devs can do anything about it.

If not, one possibility would be to patch the kernel to remove the empty entry.


Blinking2342 Blinker added a comment - 13/Jun/08 01:39 AM
I am experiencing exactly the same issue on my new laptop (core2duo 64bit).

Although voice is working fine me on my AMD64 desktop.

@Carjay: I just compared the output of my /proc/cpuinfo on both machines and on my desktop it says "power management: ts fid vid ttp", whereas it is empty on my laptop where it is not working. Did you already try to patch the kernel and see if the problem persists? If it doesn't, could you please attach the patch here or make it public somewhere?

Would be nice if this could be tracked down... Another possibility would be to install a 32bit Gentoo on my laptop which I don't really wanna do until now.


Blinking2342 Blinker added a comment - 13/Jun/08 02:03 AM
I just tried Carjay's assumption with the empty entries in /proc/cpuinfo.

Result: SLVoice works now! (Although my soundcard has no hardware mixing (intel_hda), I only have voice and no other sound yet, but its a good start)

Steps to repoduce:

1. Open /usr/src/linux/arch/x86/kernel/setup_64.c
2. Search for "power management:" including the ":" at the end.
3. You'll see a seq_printf() call with it and a for loop printing the flags for power management
4. Comment out this whole part by using /* and */
5. Reompile your kernel and it works

@Linden Labs: Please send this issue to Vivox so they can fix their /proc/cpuinfo parser, just tell them it crashes on empty entries like: "bla :" where the entry doesn't have any value. Shouldn't be a serious problem for them to fix.


Tofu Linden added a comment - 13/Jun/08 09:53 AM
Nice troubleshooting, I've passed on the info.

Xaden Kjeller added a comment - 15/Jun/08 02:48 AM
I posted an in-depth report on this issue back in March that pinpointed the exact cause of the problem and detailed a temporary solution for users; one that does not require the kernel to be modified. That report can be found here: http://jira.secondlife.com/browse/VWR-5708

A representative from Vivox had informed me that my information was passed on to the developers, hopefully they'll make this more of a priority now Tofu is on board.


Xaden Kjeller made changes - 15/Jun/08 02:49 AM
Link This issue Relates to VWR-5708 [ VWR-5708 ]
Rob Linden made changes - 03/Nov/08 09:22 AM
Description When viewer start it initialize ALSA perfectly but voice do not run.
Configuring voice into preferences, alsa system appear as input line but in the toolbar area button switch for talk remain disabled.
I find into log this issue:
2008-02-06T10:03:37Z INFO: LLVoiceClient::setState: entering state stateConnectorStarting terminate called after throwing an instance of 'std::out_of_range' what(): basic_string::substr
I think this is at origin of my problem.
Any idea? Is a known problem?
Thanks in advance.


When viewer start it initialize ALSA perfectly but voice do not run.
Configuring voice into preferences, alsa system appear as input line but in the toolbar area button switch for talk remain disabled.
I find into log this issue:
2008-02-06T10:03:37Z INFO: LLVoiceClient::setState: entering state stateConnectorStarting terminate called after throwing an instance of 'std::out_of_range' what(): basic_string::substr
I think this is at origin of my problem.
Any idea? Is a known problem?
Thanks in advance.

Update from comments (2008-11-03): "@Linden Labs: Please send this issue to Vivox so they can fix their /proc/cpuinfo parser, just tell them it crashes on empty entries like: "bla :" where the entry doesn't have any value. Shouldn't be a serious problem for them to fix."
Rob Linden added a comment - 03/Nov/08 09:22 AM
Reopening with info from bug report

Rob Linden made changes - 03/Nov/08 09:22 AM
Resolution Won't Finish [ 2 ]
Status Resolved [ 5 ] Reopened [ 4 ]
lindenrobot made changes - 08/Nov/08 12:21 PM
Linden Lab Issue ID DEV-23531
Last Triaged 08/Nov/08 12:23 PM
Sue Linden made changes - 13/Nov/08 11:09 AM
Workflow jira-2007-12-22a [ 51878 ] jira-2008-11-14 [ 64986 ]
Sue Linden made changes - 13/Nov/08 11:32 AM
Workflow jira-2007-12-22a [ 64986 ] jira-2008-11-14 [ 73239 ]
Sue Linden made changes - 13/Nov/08 05:03 PM
Workflow jira-2008-11-14 [ 73239 ] jira-2008-11-14a [ 98407 ]
Sue Linden made changes - 13/Nov/08 05:19 PM
Workflow jira-2008-11-14 [ 98407 ] jira-2008-11-14a [ 104055 ]
Sue Linden made changes - 13/Nov/08 05:28 PM
Workflow jira-2008-11-14 [ 104055 ] jira-2008-11-14a [ 107906 ]
Sue Linden made changes - 13/Nov/08 05:45 PM
Workflow jira-2008-11-14 [ 107906 ] jira-2008-11-14a [ 113469 ]
Sue Linden made changes - 13/Nov/08 06:16 PM
Workflow jira-2008-11-14 [ 113469 ] jira-2008-11-14a [ 124658 ]
Sue Linden made changes - 13/Nov/08 06:43 PM
Workflow jira-2008-11-14 [ 124658 ] jira-2008-11-14a [ 134878 ]
Sue Linden made changes - 13/Nov/08 07:01 PM
Workflow jira-2008-11-14 [ 134878 ] jira-2008-11-14a [ 142146 ]
Rob Linden made changes - 18/Nov/08 05:30 PM
Link This issue is original of duplicate VWR-5708 [ VWR-5708 ]
Rob Linden made changes - 18/Nov/08 05:33 PM
Description When viewer start it initialize ALSA perfectly but voice do not run.
Configuring voice into preferences, alsa system appear as input line but in the toolbar area button switch for talk remain disabled.
I find into log this issue:
2008-02-06T10:03:37Z INFO: LLVoiceClient::setState: entering state stateConnectorStarting terminate called after throwing an instance of 'std::out_of_range' what(): basic_string::substr
I think this is at origin of my problem.
Any idea? Is a known problem?
Thanks in advance.

Update from comments (2008-11-03): "@Linden Labs: Please send this issue to Vivox so they can fix their /proc/cpuinfo parser, just tell them it crashes on empty entries like: "bla :" where the entry doesn't have any value. Shouldn't be a serious problem for them to fix."
When viewer start it initialize ALSA perfectly but voice do not run.
Configuring voice into preferences, alsa system appear as input line but in the toolbar area button switch for talk remain disabled.
I find into log this issue:
2008-02-06T10:03:37Z INFO: LLVoiceClient::setState: entering state stateConnectorStarting terminate called after throwing an instance of 'std::out_of_range' what(): basic_string::substr
I think this is at origin of my problem.
Any idea? Is a known problem?
Thanks in advance.

Update from comments (2008-11-03): "@Linden Labs: Please send this issue to Vivox so they can fix their /proc/cpuinfo parser, just tell them it crashes on empty entries like: "bla :" where the entry doesn't have any value. Shouldn't be a serious problem for them to fix."

Update from comments (2008-11-18): Xaden Kjeller has crafted a workaround for this problem which involves modifying the Vivox binaries rather than modifying the Linux kernel. Details can be found in VWR-5708
Goldvald Enoch made changes - 21/Jan/09 04:38 AM
Link This issue is related to by VWR-11642 [ VWR-11642 ]
Hewee Zetkin added a comment - 30/Jan/09 11:42 AM
Boy, I hope a kernel patch is NOT being considered as a long-term solution. My OS should be considered authoritative, NOT the SL client.

Tofu Linden added a comment - 30/Jan/09 11:48 AM
No... that would be pretty silly!
We have a SDK fix in-hand.

Tofu Linden added a comment - 30/Jan/09 11:48 AM
The fix will very likely land by the viewer 1.23 release.

Tofu Linden made changes - 30/Jan/09 11:48 AM
Status Reopened [ 4 ] Fix Pending [ 10001 ]
Assignee Tofu Linden [ Tofu Linden ]
Prospero Linden added a comment - 02/Feb/09 12:13 PM
Here's a workaround: cd into the "lib" subdirectory of the place where you've unpacked Second Life, and do:
  cp /proc/cpuinfo ./
  chmod 755 cpuinfo
  echo >> cpuinfo
  cp -p libvivoxsdk.so libvivoxsdk.so-orig
  sed -i 's/\/proc\/cpuinfo/lib\/cpuinfo\c@\c@/g' libvivoxsdk.so

Note that this is only necessary through 1.22.RC7. After that, the SLim first look version of the vivox binary will be merged in, and that does not have this problem. (However, I have seen some bad voice quality problems with the Vivox binary in the SLim first look tree )


Ramzi Linden added a comment - 05/Feb/09 06:38 PM
As Prospero mentions above, this fix is now in the 1.22 Release Candidate RC8. Using RC8 should resolve this problem without any further workaround.

Logoman Rexen added a comment - 05/Feb/09 08:45 PM - edited
Hello to you,

I have a very big problem I am no longer able to connect to Second Life since I reinstall Windows Vista Business SP1 French.

Can I have a fairly large machine and then power to see the power of my computer go my site website: http://aide-et-conseil-de-windows.net/Mon_Ordinateur_Personnel.html
then known since I install both versions of Second Life that is "of the crash of Second Life" so please help me here please thank you in advance!!

"Logoman Rexen"

      • Note: I have a raport crash attachment called: SecondLifeCrashReport.log ***

Logoman Rexen made changes - 05/Feb/09 08:45 PM
Attachment SecondLifeCrashReport.log [ 21850 ]
Dessie Linden made changes - 13/Mar/09 08:18 AM
Fix Version/s 1.22 [ 10430 ]
Dessie Linden made changes - 14/Mar/09 08:37 PM
Status Fix Pending [ 10001 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]