secondlife / viewer

🖥️ Second Life's official client
GNU Lesser General Public License v2.1
211 stars 53 forks source link

Viewer crash when connecting to webRTC voice with certain settings.xml #1776

Closed maestrolinden closed 2 months ago

maestrolinden commented 4 months ago

Environment

Second Life Release 7.1.9.9477703110 (64bit) Release Notes

You are at 147.1, 98.4, 43.6 in WebRTC Voice 1 located at simhost-0907b59fedca3f5c1.agni SLURL: http://maps.secondlife.com/secondlife/WebRTC%20Voice%201/147/98/44 (global coordinates 330387.0, 305762.0, 43.6) Pop Rocks 2024-05-08.9009748043 Release Notes

CPU: Apple M1 Pro (2400 MHz) Memory: 16384 MB OS Version: Mac OS X 14.5.0 Darwin 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000 x86_64 Graphics Card Vendor: Apple Graphics Card: Apple M1 Pro

OpenGL Version: 4.1 Metal - 88.1

Window size: 1201x790 Font Size Adjustment: 96pt UI Scaling: 0.75 Draw distance: 96m Bandwidth: 10000kbit/s LOD factor: 1.125 Render quality: 1 Texture memory: 10922MB Disk cache: Max size 1638.4 MB (0.2% used) HiDPI display mode: 0

J2C Decoder Version: KDU v7.10.4 Audio Driver Version: FMOD Studio 2.02.13 Dullahan: 1.14.0.202310131309 CEF: 118.4.1+g3dd6078+chromium-118.0.5993.54 Chromium: 118.0.5993.54 LibVLC Version: 3.0.16 Voice Server Version: Secondlife WebRTC Gateway

Packets Lost: 0/383 (0.0%) June 14 2024 14:33:52

Description

Using the 7.1.9.9477703110 webRTC viewer, I found that my viewer would consistently crash when connecting to a webRTC region with voice enabled. The viewer would crash when either first connecting to a webRTC region (if "Voice Chat" enabled in prefs) or when enabling "Voice Chat" while connected to a webRTC region.

I was able to reproduce this consistently many times with the attached settings.xml (which has "Voice Chat" enabled), though the crash goes away when I deleted settings.xml and reconnected (this file also attached). It would appear that something in the settings.xml broke webRTC.

I suspect this is the same issue as #1732 but think it's better to report it separately, as it occurs when no preferences have been touched in the crashing viewer session.

Reproduction steps

  1. Create a backup copy of the viewer's user_settings/settings.xml
  2. Download settings_crashes_maestros_7.1.9.9477703110_on_webrtc_connect.xml.txt and overwrite settings.xml with it
  3. Launch the viewer
  4. Visit a webRTC region such as "webrtc voice 1" on Agni

Expected results: The viewer should visit the region without issue and connect to voice chat in webRTC mode.

Actual results: The viewer crashes as soon as it connects to the region.

Other notes:

maestrolinden commented 4 months ago

I cannot reproduce this crash when using viewer build 7.1.9.9573202536 roxie/webrtc-voice branch, using the settings.xml attached to this issue.

This viewer contains a commit meant to address #1732 , but appears to fix this #1776 as well.

Mac env

Second Life Test 7.1.9.9573202536 (64bit)
Release Notes

You are at 148.7, 150.5, 23.0 in webRTC1 located at simhost-07c23d76c83837d55.aditi
SLURL: secondlife://Aditi/secondlife/webRTC1/149/150/23
(global coordinates 259989.0, 245398.0, 23.0)
WebRTC-Voice 2024-06-12.9490472357
Release Notes

CPU: Apple M1 Pro (2400 MHz)
Memory: 16384 MB
OS Version: Mac OS X 14.5.0 Darwin 23.5.0 Darwin Kernel Version 23.5.0: Wed May  1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000 x86_64
Graphics Card Vendor: Apple
Graphics Card: Apple M1 Pro

OpenGL Version: 4.1 Metal - 88.1

Window size: 2522x1640
Font Size Adjustment: 96pt
UI Scaling: 0.75
Draw distance: 96m
Bandwidth: 10000kbit/s
LOD factor: 1.125
Render quality: 1
Texture memory: 10922MB
Disk cache: Max size 3993.6 MB (3.0% used)
HiDPI display mode: 1

J2C Decoder Version: KDU v7.10.4
Audio Driver Version: FMOD Studio 2.02.13
Dullahan: 1.14.0.202310131309
  CEF: 118.4.1+g3dd6078+chromium-118.0.5993.54
  Chromium: 118.0.5993.54
LibVLC Version: 3.0.16
Voice Server Version: Secondlife WebRTC Gateway 

Packets Lost: 0/3466 (0.0%)
June 18 2024 16:59:40

Windows env

Second Life Test 7.1.9.9573202536 (64bit)
Release Notes

You are at 149.2, 148.9, 23.0 in webRTC1 located at simhost-07c23d76c83837d55.aditi
SLURL: secondlife://Aditi/secondlife/webRTC1/149/149/23
(global coordinates 259,989.0, 245,397.0, 23.0)
WebRTC-Voice 2024-06-12.9490472357
Release Notes

CPU: Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz (3402.14 MHz)
Memory: 32704 MB
OS Version: Microsoft Windows 10 64-bit (Build 19045.4412)
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: NVIDIA GeForce RTX 2080/PCIe/SSE2

Windows Graphics Driver Version: 31.0.15.3623
OpenGL Version: 4.6.0 NVIDIA 536.23

Window size: 1183x743
Font Size Adjustment: 96pt
UI Scaling: 0.75
Draw distance: 128m
Bandwidth: 10000kbit/s
LOD factor: 1.75
Render quality: 5
Texture memory: 7234MB
Disk cache: Max size 3993.6 MB (23.9% used)

J2C Decoder Version: KDU v7.10.4
Audio Driver Version: FMOD Studio 2.02.13
Dullahan: 1.14.0.202310131404
  CEF: 118.4.1+g3dd6078+chromium-118.0.5993.54
  Chromium: 118.0.5993.54
LibVLC Version: 3.0.16
Voice Server Version: Secondlife WebRTC Gateway 

Packets Lost: 0/488 (0.0%)
June 18 2024 17:01:44
maestrolinden commented 4 months ago

I retested this in release/webrtc-voice build 7.1.9.9574256458, which includes the merge with the fix. The crash is also fixed with this build. Passes QA.

DmitrySProductengine commented 4 months ago

Passed QA. Verified on the Second Life Release 7.1.9.9604591078 (64bit) on Win10/Win11/OSX in the scope of IQA #264. Tested on Agni: Region: WebRTC Voice 1 Sim: Pop Rocks 2024-05-08.9009748043 Voice: Secondlife WebRTC Gateway