Search Issue Tracker
Active
Under Consideration for 2.2.X
Votes
21
Found in [Package]
2.2.2
Issue ID
ADDR-3760
Regression
Yes
"SBP ErrorException" exception is thrown when building through Addressables with Linux Dedicated Server selected as a target and IL2CPP
Reproduction steps:
1. Open the attached “BugRepro” project
2. Open Project Settings window (Edit > Project Settings)
3. In the “Player” category, under “Dedicated Server” settings set Scripting Backend to “IL2CPP”
4. Open Build Settings window (File > Build Settings)
5. Switch to “Dedicated Server” platform with “Linux” selected as a Target Platform
6. Open Addressables Group window (Windows > Asset Management > Addressables > Groups)
8. Make new build (Build > New Build > Default Build Script)
Expected result: The build is completed successfully
Actual result: The build fails with “SBP ErrorException” error
Reproducible with: 1.22.2 (2021.3.43f1, 2022.3.45f1), 2.2.2 (6000.0.19f1)
Not reproducible with: 1.21.21 (2021.3.43f1)
Reproducible on: Windows 10, Windows 11 (user)
Not reproducible on: No other environment tested
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
unity_1640F7EDF8A957818A83
Oct 09, 2024 22:30
Ran into this in 2022.3.47f1 when trying to build our Linux dedicated server. One of the devs managed to workaround it with the following update to the SBP.
Summary:
Replaced this method with the version from SBP 2.1.5, which removes some restrictive checks
that were causing SBP to fail building for Linux IL2CPP targets after we upgraded Unity from 2022.3.25f1 -> 2022.3.47f1
internal static bool CanBuildPlayer(BuildTarget target, BuildTargetGroup targetGroup, IBuildWindowExtension buildWindowExtension)
{
// we expect this to mainly happen within yamato when no build target modules are installed
if (!BuildPipeline.IsBuildTargetSupported(targetGroup, target))
{
BuildLogger.LogWarning("The currently selected build target is not supported. If the build fails please check the Build Settings.");
return true;
}
return buildWindowExtension != null ? buildWindowExtension.EnabledBuildButton() : false;
}
Ed-Musayelyan
Oct 03, 2024 19:13
If you're looking for a temp solution, here is what worked for me:
I've manually replaced the Addressables package version in the packages.json, it wasn't in the json but was added as a dependency in the packages-lock.json, so I added this line manually "com.unity.addressables": "2.3.1", and this fixed the build issue for me.
This is not a 100% solution since I didn't test it well and the package manager is still asking me to update addressable to 1.22.2.
Ed-Musayelyan
Oct 03, 2024 18:52
The same issue on Mac and Windows, both are running with:
- Unity 2022.3.49f1
- Linux Dedicated Server
- IL2CPP
- Addressables v1.22.2
netflix-mark
Sep 26, 2024 22:15
I have the same issue on Mac when set to Dedicated Server for Linux using Unity Addressables package version 1.22.2 when the scripting backend is set to IL2CPP. However if I switch the scripting backend to Mono2x I am able to build without hitting the SBP ErrorException.