Skip to content

Commit 4f9a4c0

Browse files
committed
Merge remote-tracking branch 'origin/develop' into pepper/llapputil
# Conflicts: # indra/llrender/llimagegl.cpp
2 parents ef04f35 + 3d47831 commit 4f9a4c0

File tree

243 files changed

+10451
-8026
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

243 files changed

+10451
-8026
lines changed

.github/workflows/build.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,14 +460,16 @@ jobs:
460460

461461
- uses: actions/download-artifact@v4
462462
with:
463-
pattern: "LinuxOS-app"
463+
pattern: "Linux-app"
464464

465465
- name: Rename metadata
466466
run: |
467467
cp Windows-metadata/autobuild-package.xml Windows-autobuild-package.xml
468468
cp Windows-metadata/newview/viewer_version.txt Windows-viewer_version.txt
469469
cp macOS-metadata/autobuild-package.xml macOS-autobuild-package.xml
470470
cp macOS-metadata/newview/viewer_version.txt macOS-viewer_version.txt
471+
cp Linux-metadata/autobuild-package.xml Linux-autobuild-package.xml
472+
cp Linux-metadata/newview/viewer_version.txt Linux-viewer_version.txt
471473
472474
# forked from softprops/action-gh-release
473475
- name: Create GitHub release
@@ -492,6 +494,7 @@ jobs:
492494
files: |
493495
macOS-installer/*.dmg
494496
Windows-installer/*.exe
497+
Linux-app/*.tar.xz
495498
*-autobuild-package.xml
496499
*-viewer_version.txt
497500

indra/doxygen/CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
# -*- cmake -*-
22

3-
# cmake_minimum_required should appear before any
4-
# other commands to guarantee full compatibility
5-
# with the version specified
6-
## prior to 2.8, the add_custom_target commands used in setting the version did not work correctly
7-
cmake_minimum_required(VERSION 3.8.0 FATAL_ERROR)
8-
93
set(ROOT_PROJECT_NAME "SecondLife" CACHE STRING
104
"The root project/makefile/solution name. Defaults to SecondLife.")
115
project(${ROOT_PROJECT_NAME})

indra/lib/python/indra/util/llmanifest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ def unpacked_finish(self):
637637
'vers':'_'.join(self.args['version'])}
638638
print("Creating unpacked file:", unpacked_file_name)
639639
# could add a gz here but that doubles the time it takes to do this step
640-
tf = tarfile.open(self.src_path_of(unpacked_file_name), 'w:')
640+
tf = tarfile.open(self.build_path_of(unpacked_file_name), 'w:')
641641
# add the entire installation package, at the very top level
642642
tf.add(self.get_dst_prefix(), "")
643643
tf.close()

indra/llappearance/llavatarappearancedefines.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,8 @@ EBakedTextureIndex LLAvatarAppearanceDictionary::findBakedByImageName(const std:
300300

301301
LLWearableType::EType LLAvatarAppearanceDictionary::getTEWearableType(ETextureIndex index ) const
302302
{
303-
return getTexture(index)->mWearableType;
303+
auto* tex = getTexture(index);
304+
return tex ? tex->mWearableType : LLWearableType::WT_INVALID;
304305
}
305306

306307
// static

indra/llappearance/llwearable.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ void LLWearable::setVisualParamWeight(S32 param_index, F32 value)
653653
}
654654
else
655655
{
656-
LL_ERRS() << "LLWearable::setVisualParam passed invalid parameter index: " << param_index << " for wearable type: " << this->getName() << LL_ENDL;
656+
LL_WARNS() << "LLWearable::setVisualParam passed invalid parameter index: " << param_index << " for wearable type: " << this->getName() << LL_ENDL;
657657
}
658658
}
659659

@@ -667,7 +667,7 @@ F32 LLWearable::getVisualParamWeight(S32 param_index) const
667667
}
668668
else
669669
{
670-
LL_WARNS() << "LLWerable::getVisualParam passed invalid parameter index: " << param_index << " for wearable type: " << this->getName() << LL_ENDL;
670+
LL_WARNS() << "LLWearable::getVisualParam passed invalid parameter index: " << param_index << " for wearable type: " << this->getName() << LL_ENDL;
671671
}
672672
return (F32)-1.0;
673673
}

indra/llcharacter/llkeyframemotion.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2427,9 +2427,15 @@ void LLKeyframeMotion::onLoadComplete(const LLUUID& asset_uuid,
24272427
LLCharacter* character = *char_iter;
24282428

24292429
// look for an existing instance of this motion
2430-
LLKeyframeMotion* motionp = static_cast<LLKeyframeMotion*> (character->findMotion(asset_uuid));
2431-
if (motionp)
2430+
if (LLMotion* asset = character->findMotion(asset_uuid))
24322431
{
2432+
LLKeyframeMotion* motionp = dynamic_cast<LLKeyframeMotion*>(asset);
2433+
if (!motionp)
2434+
{
2435+
// This motion is not LLKeyframeMotion (e.g., LLEmote)
2436+
return;
2437+
}
2438+
24332439
if (0 == status)
24342440
{
24352441
if (motionp->mAssetStatus == ASSET_LOADED)

indra/llcommon/llcommon.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void* ll_tracy_aligned_new(size_t size, size_t alignment)
5454
{
5555
throw std::bad_alloc();
5656
}
57-
TracyAlloc(ptr, size);
57+
LL_PROFILE_ALLOC(ptr, size);
5858
return ptr;
5959
}
6060

indra/llcommon/llerror.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1607,19 +1607,19 @@ namespace LLError
16071607
std::string LLUserWarningMsg::sLocalizedOutOfMemoryWarning;
16081608
LLUserWarningMsg::Handler LLUserWarningMsg::sHandler;
16091609

1610-
void LLUserWarningMsg::show(const std::string& message)
1610+
void LLUserWarningMsg::show(const std::string& message, S32 error_code)
16111611
{
16121612
if (sHandler)
16131613
{
1614-
sHandler(std::string(), message);
1614+
sHandler(std::string(), message, error_code);
16151615
}
16161616
}
16171617

16181618
void LLUserWarningMsg::showOutOfMemory()
16191619
{
16201620
if (sHandler && !sLocalizedOutOfMemoryTitle.empty())
16211621
{
1622-
sHandler(sLocalizedOutOfMemoryTitle, sLocalizedOutOfMemoryWarning);
1622+
sHandler(sLocalizedOutOfMemoryTitle, sLocalizedOutOfMemoryWarning, ERROR_BAD_ALLOC);
16231623
}
16241624
}
16251625

@@ -1630,7 +1630,7 @@ namespace LLError
16301630
"Second Life viewer couldn't access some of the files it needs and will be closed."
16311631
"\n\nPlease reinstall viewer from https://secondlife.com/support/downloads/ and "
16321632
"contact https://support.secondlife.com if issue persists after reinstall.";
1633-
sHandler("Missing Files", error_string);
1633+
sHandler("Missing Files", error_string, ERROR_MISSING_FILES);
16341634
}
16351635

16361636
void LLUserWarningMsg::setHandler(const LLUserWarningMsg::Handler &handler)

indra/llcommon/llerror.h

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,15 +308,23 @@ namespace LLError
308308
class LLUserWarningMsg
309309
{
310310
public:
311-
typedef std::function<void(const std::string&, const std::string&)> Handler;
311+
typedef enum
312+
{
313+
ERROR_OTHER = 0,
314+
ERROR_BAD_ALLOC = 1,
315+
ERROR_MISSING_FILES = 2,
316+
} eLastExecEvent;
317+
318+
// tittle, message and error code to include in error marker file
319+
typedef std::function<void(const std::string&, const std::string&, S32 error_code)> Handler;
312320
static void setHandler(const Handler&);
313321
static void setOutOfMemoryStrings(const std::string& title, const std::string& message);
314322

315323
// When viewer encounters bad alloc or can't access files try warning user about reasons
316324
static void showOutOfMemory();
317325
static void showMissingFiles();
318326
// Genering error
319-
static void show(const std::string&);
327+
static void show(const std::string&, S32 error_code = -1);
320328

321329
private:
322330
// needs to be preallocated before viewer runs out of memory

indra/llcommon/llprocessor.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,8 @@ class LLProcessorInfoDarwinImpl : public LLProcessorInfoImpl
692692
memset(cpu_vendor, 0, len);
693693
sysctlbyname("machdep.cpu.vendor", (void*)cpu_vendor, &len, NULL, 0);
694694
cpu_vendor[0x1f] = 0;
695-
setInfo(eVendor, cpu_vendor);
695+
// M series CPUs don't provide this field so if empty, just fall back to Apple.
696+
setInfo(eVendor, (cpu_vendor[0] != '\0') ? cpu_vendor : "Apple");
696697

697698
setInfo(eStepping, getSysctlInt("machdep.cpu.stepping"));
698699
setInfo(eModel, getSysctlInt("machdep.cpu.model"));

0 commit comments

Comments
 (0)