Commit Graph

4564 Commits

Author SHA1 Message Date
andrew scheidecker
a8a6f870ca Add a few missing override specifiers and remove a vestigial method that no longer overrides anything.
#preflight 635fadcc3c0af539fdde0caa

[CL 22864389 by andrew scheidecker in ue5-main branch]
2022-10-31 11:43:34 -04:00
CarlMagnus Nordin
b48cb7ed39 AssetLoadingInsights:
Fixed recursive post loads not being tracked properly
Fixed time calculations for recursive scopes
Added support for load time tracing in the editor
Added time selection filtering to the requests tab
#rb ionut.matasaru
#preflight 635fa5cd1803be35c7ff3bc8

[CL 22858164 by CarlMagnus Nordin in ue5-main branch]
2022-10-31 07:09:17 -04:00
josh may
60aa5758b0 Ensure bCooked doesn't get mistakenly unset during reference collection in cooked versions of the editor.
#preflight 635c47003c0af539fd650f34
#rb jamie.dale, rex.hill

[CL 22850789 by josh may in ue5-main branch]
2022-10-29 03:00:34 -04:00
graeme thornton
e7986ac620 [Backout] - CL22808749
[FYI] Steve.Robb
Original CL Desc
-----------------------------------------------------------------
TMap and TSet can now be declared as members with forward-declared key and value parameters.
KeyFuncs::KeyInitType and KeyFuncs::ElementInitType typedefs are no longer used and user-defined KeyFuncs do not need to provide them.  Deprecated placeholders for these typedefs exist though they may not be defined exactly as they were before.  A new KeyType typedef needs to be provided by custom KeyFuncs which don't already inherit from BaseKeyFuncs or TDefaultMapKeyFuncs.
KeyConstPointerType, KeyInitType, ValueInitType and ElementInitType typedefs have been deprecated across TMap, TSet and TSortedMap.  Regular C++ parameter-passing semantics should be used instead (const T& Ref or T Value, depending on T).
Added missing FSetElementId::operator!=().

[FYI] steve.robb
#rb james.hopkin
[FYI] henrik.karlsson
#preflight 635a56c15d49a96f7b31938f

[CL 22850782 by graeme thornton in ue5-main branch]
2022-10-29 02:59:59 -04:00
francis hurteau
2419ef2300 Cap the number of reference gathering when printing invalid references during save since they can be pathologically expensive
#rb Matt.Peters
#preflight 635c3504052cb0bae6b189fd

[CL 22850501 by francis hurteau in ue5-main branch]
2022-10-29 01:53:18 -04:00
justin marcus
7bf1ba442a [Backout] - CL22822857
Change WebRemoteControlInternalUtils.cpp to use WIDECHAR
[FYI] aurel.cordonnier
Original CL Desc
-----------------------------------------------------------------
[Backout] - CL22811007
[FYI] Justin.Marcus
Original CL Desc
-----------------------------------------------------------------
Fix JSON Reader UTF8 parsing.
Add ability to use JSON Reader with a string view.
Add explicit UTF8 smoke tests.
Change uses of TJsonReader<UCS2CHAR> to TJsonReader<WIDECHAR> since TStringBuilder<UCS2CHAR> doesn't compile.
Change uses of TJsonReader<char> to TJsonReader<UTF8CHAR>.  There isn't much use for TJsonReader<char> as ASCII is a subset of UTF8 so TJsonReader<UTF8CHAR> is always preferable.
#rb [at]Steve.Robb
#preflight https://horde.devtools.epicgames.com/job/635980ead86d91ca2cfabc77

[CL 22835909 by justin marcus in ue5-main branch]
2022-10-28 15:39:05 -04:00
henrik karlsson
cd1466475b Fixed up const/constexpr variables in header files to be "inline"
This is required for c++ modules/header units in order to decide if constexpr/const value should be available to outside module

#preflight 635c0b5c1803be35c767e0ea
#rb none

[CL 22835882 by henrik karlsson in ue5-main branch]
2022-10-28 15:38:42 -04:00
john barrett
356f62ec6e Added stack crashdump helpers for async demo crashes.
#rb Brian.Bekich, LouisPhilippe.Seguin, Johan.Torp, Ryan.Gerleve
#preflight 635a6fee9b2e9c76c7038ade

[CL 22827074 by john barrett in ue5-main branch]
2022-10-28 08:02:41 -04:00
aurel cordonnier
c34355bbdf [Backout] - CL22811007
[FYI] Justin.Marcus
Original CL Desc
-----------------------------------------------------------------
Fix JSON Reader UTF8 parsing.
Add ability to use JSON Reader with a string view.
Add explicit UTF8 smoke tests.
Change uses of TJsonReader<UCS2CHAR> to TJsonReader<WIDECHAR> since TStringBuilder<UCS2CHAR> doesn't compile.
Change uses of TJsonReader<char> to TJsonReader<UTF8CHAR>.  There isn't much use for TJsonReader<char> as ASCII is a subset of UTF8 so TJsonReader<UTF8CHAR> is always preferable.
#rb [at]Steve.Robb
#preflight https://horde.devtools.epicgames.com/job/635980ead86d91ca2cfabc77

[CL 22823854 by aurel cordonnier in ue5-main branch]
2022-10-28 01:03:42 -04:00
anton dunchev
90787f42bc Print script warning caller name.
Printing full stack trace could quickly bloat log, but we can print only top level caller actor to narrow down what BP is responsible for the warning.
Main use case is to catch BP which causes Script Msg: Divide by zero: Divide_VectorFloat and other UKismetMathLibrary errors.

#rb andrew.ladenberger, Steve.Robb
#tests replay run

[CL 22823605 by anton dunchev in ue5-main branch]
2022-10-28 00:34:39 -04:00
justin marcus
e432616e7f Fix JSON Reader UTF8 parsing.
Add ability to use JSON Reader with a string view.
Add explicit UTF8 smoke tests.
Change uses of TJsonReader<UCS2CHAR> to TJsonReader<WIDECHAR> since TStringBuilder<UCS2CHAR> doesn't compile.
Change uses of TJsonReader<char> to TJsonReader<UTF8CHAR>.  There isn't much use for TJsonReader<char> as ASCII is a subset of UTF8 so TJsonReader<UTF8CHAR> is always preferable.
#rb [at]Steve.Robb
#preflight https://horde.devtools.epicgames.com/job/635980ead86d91ca2cfabc77

[CL 22823191 by justin marcus in ue5-main branch]
2022-10-27 23:19:57 -04:00
devin doucette
0312c8dbe2 DerivedData: Serialize as bulk data until derived data serialization is implemented
#preflight 635a96bed86d91ca2c461f51
#rb Zousar.Shaker
#rnx

[CL 22811242 by devin doucette in ue5-main branch]
2022-10-27 11:47:29 -04:00
devin doucette
07741e3ca5 DerivedData: Added FDerivedData::IsCooked
#preflight 635a96265d49a96f7b458f35
#rb Zousar.Shaker
#rnx

[CL 22811235 by devin doucette in ue5-main branch]
2022-10-27 11:47:16 -04:00
rex hill
c217a35bcf Add UE_FORCE_USE_PAKS and UE_FORCE_USE_IOSTORE preprocessors so a target can set them for devs to stop needing to manually pass those arguments.
#preflight 6359cb6f9b2e9c76c7d90410
#rb dave.belanger

[CL 22810699 by rex hill in ue5-main branch]
2022-10-27 11:20:38 -04:00
steve robb
e980405a8f TMap and TSet can now be declared as members with forward-declared key and value parameters.
KeyFuncs::KeyInitType and KeyFuncs::ElementInitType typedefs are no longer used and user-defined KeyFuncs do not need to provide them.  Deprecated placeholders for these typedefs exist though they may not be defined exactly as they were before.  A new KeyType typedef needs to be provided by custom KeyFuncs which don't already inherit from BaseKeyFuncs or TDefaultMapKeyFuncs.
KeyConstPointerType, KeyInitType, ValueInitType and ElementInitType typedefs have been deprecated across TMap, TSet and TSortedMap.  Regular C++ parameter-passing semantics should be used instead (const T& Ref or T Value, depending on T).
Added missing FSetElementId::operator!=().

#rb james.hopkin
[FYI] henrik.karlsson
#preflight 635a56c15d49a96f7b31938f

[CL 22810695 by steve robb in ue5-main branch]
2022-10-27 11:20:32 -04:00
carlmagnus nordin
207f000927 ZenLoader: Fixed incorrect early out when determining if a package should be included in the active sync load context or not
#rb pk.kack
#preflight 63595f1ba2609c2faec656dd

[CL 22803457 by carlmagnus nordin in ue5-main branch]
2022-10-26 23:16:46 -04:00
pj kack
8b86365eff Fix for cotf server crashing and client exiting immediately when Quick Launching Lyra with cotf enabled.
#jira UE-156538, UE-167726
#rb carlmagnus.nordin
#lockdown mark.lintott
#rnx
#preflight 635794eae6096564af6eee00

[CL 22788179 by pj kack in ue5-main branch]
2022-10-26 16:16:12 -04:00
joe pribele
a1505d5477 [CoreUObject] compile fix for Linux.
moved test classes outside of namespace as that was causing problems for the compiler
#preflight 6356dcc73a547c3da332a751

[CL 22733737 by joe pribele in ue5-main branch]
2022-10-24 15:11:24 -04:00
joe pribele
fa12cd9a46 [CoreUObject] fix for TObjectPtr equals operator with multiple inheritance
resolved pointers where comparing uintptr_t instead of the raw pointers which allow for inheritance
#jira https://jira.it.epicgames.com/browse/UE-168013
#rb zousar.shaker
#preflight 6356c19a9e14ee3c795a2b6f

[CL 22731180 by joe pribele in ue5-main branch]
2022-10-24 13:12:36 -04:00
paul chipchase
db5d0d6381 Avoid rehashing editor bulkdata payloads when saving to a transaction buffer.
#rb Devin.Doucette
#jira UE-167928
#rnx
#preflight 6352b20f3a547c3da37635e6

- Converting the in memory payload (FSharedBuffer) to a non-compressed FCompressedBuffer will cause the payload to be hashed. Given that we are not compressing the buffer and it will just be loaded and converted back to FSharedBuffer, this hash is pointless.
- This first started when we changed editor bulkdata to serialize the payload as a FCompressedBuffer during normal serialization, since the transaction serialization was using the same ::SerializeData method as FSharedBuffer does not have native FArchive serialization support.
- We can add our own serialization support for FSharedBuffer and then not convert it to FCompressedBuffer to avoid the whole problem.
- Profiling showed that this changed reduces the time spent serializing a 100MiB payload from 100ms to 30ms (average)

[CL 22710494 by paul chipchase in ue5-main branch]
2022-10-22 07:13:40 -04:00
pj kack
7f6ccdb4ae AsyncLoading2: Merge LoadedPackageStore and GlobalImportStore and make it more tolerant to renaming of loaded objects.
Handle loaded objects being moved to another (transient) package by cleaning up all public export state when removing a loaded package.
Handle reloading of a package with internally renamed objects by allowing StoreGlobalObject to replace the previous public export.
Note: Renaming of loaded packages is still only supported via the delegate GetOnLeakedPackageRenameDelegate.
Compile all debug verification in all builds and make it possible to toggle with s.VerifyUnreachableObject=0/1 and s.VerifyObjectLoadFlags=0/1, while enabling it by default it debug and development builds.

#jira UE-167186, FORT-524537
#rb carlmagnus.nordin
[FYI] robert.millar
#preflight 63526bdc9e14ee3c798aa429, 63527f560313c24974216206
#rnx

[CL 22710443 by pj kack in ue5-main branch]
2022-10-22 07:09:46 -04:00
paul chipchase
b1c722fbc4 Fixed a bug where editor bulkdata could fail to provide the correct payload (or load a corrupted payload) after applying undo operations to a recently saved package.
#rb Per.Larsson
#jira UE-161062
#rnx
#preflight 63526ad83d41a4455a831dd8

- The repro in question was to edit an asset with editor bulkdata (sound wave), save, undo, then try to access the editor bulkdata payload which would fail.
- The problem is when the asset is edited we store the state of the bulkdata, then when we save the package that bulkdata is detached from its file on disk and is no longer allowed to try loading from it. When the undo is applied the flag stating that the bulkdata is detached was removed and the original files offset was set back in the bulkdata. So not only did it think it should load the payload from disk, but it would now load it from the offset of the file from before it was saved.
- This problem comes from us storing the transient flags in the same enum as the non-transient. The transient flags should not be serialized to the transaction buffer nor should they be restored from there.
- The fix for now is to record the transient flags before serializing from the transaction buffer then reapplying those flags after the fact. In 5.2 we should bite the bullet and try splitting the flags properly to prevent future issues/

[CL 22707954 by paul chipchase in ue5-main branch]
2022-10-21 22:27:34 -04:00
ennorehling
be0b5ec7dc PR #9662: Correct spelling of "receive" in log messages. (Contributed by ennorehling)
#jira UE-167168
#rb trivial
#preflight 6352be99ae33b04ec10beb97

[CL 22694385 by ennorehling in ue5-main branch]
2022-10-21 13:43:26 -04:00
Dan Thompson
7b15828416 Fix for dragging a texture on a cube when a material already exists, and some protection against redirects in similar cases.
#rb matt.peters
#rb jason.stasik
#preflight 6351a5d9f92c325024c634e5

[CL 22669030 by Dan Thompson in ue5-main branch]
2022-10-20 16:14:02 -04:00
jeanfrancois dube
e122ebd425 Backout CL22638298 since it's fixed by CL22654868
[FYI] vincent.beauchemin
Original CL Desc
-----------------------------------------------------------------
Move warning to Log on : Short type name \"%s\" provided for TryFindType. Please convert it to a path name since we would need to resaved all previous Level Instance and map done by Quixel forAncient Game project.

#rb jeanfrancois.dube
#jira UE-163818
#preflight n/a

[CL 22660508 by jeanfrancois dube in ue5-main branch]
2022-10-20 12:52:50 -04:00