Commit Graph

4109 Commits

Author SHA1 Message Date
andrew phillips
d8b7038fbc Soaking ensure to see if we need import map delinking
Resetlinkers Looping doesn't appear to be required.
This CL adds tracing to raise confidence that we can remove the offending loops.

#preflight 645a5e956c35ad81e67e994e

[CL 25401581 by andrew phillips in ue5-main branch]
2023-05-10 06:24:47 -04:00
mickael gilabert
0b085a725c UClass uses UE::FMutex instead of FRWLock if USE_UE_LOCK_FOR_UCLASS_FUNCTION_HANDLING is defined (useful on platform that has a limited system objects count)
[REVIEW] [at]devin.doucette, [at]dan.oconnor, [at]danny.couture
#rnx

[CL 25393949 by mickael gilabert in ue5-main branch]
2023-05-09 15:39:35 -04:00
paul chipchase
a6e0bbb136 Fix potential truncation issue in AsyncLoading2
#rb PJ.Kack
#jira none
#rnx
#preflight 645a13fd013f3751583f0380

- If the value being stored in ExportBundleEntriesCount exceeds MAX_int32 then we will end up failing the check below and printing an error anyway so we might as well just cast at this point.

[CL 25385553 by paul chipchase in ue5-main branch]
2023-05-09 08:00:57 -04:00
paul chipchase
3171307812 Fix a bug where FArchiveCrc32 would not hash all of the data provided to it if the data was sufficiently large enough.
#rb Sebastien.Lussier
#jira none
#rnx
#preflight 6453d22b4d593c0b428dacfe

- This should only change the hash when FArchiveCrc32::Serialize is called on buffers larger than MAX_int32 in size, which given the current use cases of FArchiveCrc32 is probably not occuring anywhere anyway.
- Found this issue when fixing truncation warnings.
- Serialize accepts data lengths of type int64 but FCrc::MemCrc32 would silently truncate the data to int32.
-- This doesn't result in the data being hashed up to length MAX_int32 as the iteration inside of MemCrc32 (at least in some implementations) uses a signed index, passing in larger values will result in this index being negative and our loop checks for that index being reduced to 0.
- To fix this we should call FCrc::MemCrc32 with the data length clamped to MAX_int32 and then make repeated calls until the entire buffer hash been hashed.

[CL 25384518 by paul chipchase in ue5-main branch]
2023-05-09 05:30:06 -04:00
Steve Robb
0f44db07d5 Replaced some container operator new usage.
#rb james.hopkin
#jira none
#preflight 6459670f28155a0f41565a34

[CL 25384456 by Steve Robb in ue5-main branch]
2023-05-09 05:17:49 -04:00
joe pribele
627db198b3 change to FObjectPtrProperty::Identical to avoid loading lazy loaded objects
https://p4-swarm.epicgames.net/reviews/25288349
#rb zousar.shaker
#preflight 64598eb5023fe5d3ad6df74d

[CL 25381637 by joe pribele in ue5-main branch]
2023-05-08 20:13:30 -04:00
ionut matasaru
24989b253a Fixed mismatch string formatting argument in SavePackage2.
#rb matt.peters
#preflight 64568089ed7ffaa0f518a2ec

[CL 25373591 by ionut matasaru in ue5-main branch]
2023-05-08 13:49:02 -04:00
matt peters
834d284cb9 SavePackage: Suppress spurious static analysis warning "'TargetPlatform' pointer was utilized before it was verified against nullptr."
#rb None, trivial
#rnx
#preflight None, trivial

[CL 25370365 by matt peters in ue5-main branch]
2023-05-08 10:08:33 -04:00
johan torp
a101abc1e8 Require FGCObject debug name
#rb robert.manuszewski
#rnx
#preflight 64550ac9fd4b8f4e0de3ba92

[CL 25368332 by johan torp in ue5-main branch]
2023-05-08 04:42:39 -04:00
robert millar
41c6ff78ec Allow streamable manager to flush only the relevant async loading requests for a given streamable handle.
#rb ben.zeigler,francis.hurteau

[CL 25363331 by robert millar in ue5-main branch]
2023-05-05 21:36:05 -04:00
robert millar
f228eb96a3 Don't create an adaptor for native non-structured struct serializers if we can avoid it.
Saves 25% of the time (1s) in an object reference collector in a test level.

#rb francis.hurteau

[CL 25363118 by robert millar in ue5-main branch]
2023-05-05 20:56:09 -04:00
Matt Peters
45536e88d7 SavePackage's TransientPropertyOverrides: Change LinkerSave to not write out UObject properties that are marked with transient, rather than writing them out with nullptr. This removes the need for a hack fix of the property name and makes the package output more closely match the output that would occur if the property had no values, which should be more robust against future changes.
#rb Francis.Hurteau
#rnx
#preflight 645553ef023fe5d3ada2b10a

[CL 25359298 by Matt Peters in ue5-main branch]
2023-05-05 16:18:53 -04:00
joe pribele
8377f22532 changed FBlueprintSupport::RegisterDeferredDependenciesInStruct to use FObjectProperty api to avoid c casts which do not work for unresolved TObjectPtr
https://p4-swarm.epicgames.net/reviews/25174026

#rb zousar.shaker
#preflight 645547254574b81df4012f1e

[CL 25358379 by joe pribele in ue5-main branch]
2023-05-05 14:34:03 -04:00
francis hurteau
025b52b2dd Fix infinite loading when flushing a package with a deferred post load group
#rb PJ.Kack, Danny.Couture
#preflight 64550e36994d8a3d0a26f643

[CL 25356816 by francis hurteau in ue5-main branch]
2023-05-05 12:46:20 -04:00
Matt Peters
365868f0b1 SavePackage: Blueprints: Fix the BlueprintGeneratedClass and its default object to be marked as usedingame, despite UBlueprint being an editor-only class.
#jira UE-185130
#rb Francis.Hurteau
#rnx
#preflight 645523fed02ea5289fe8f30d

[CL 25356454 by Matt Peters in ue5-main branch]
2023-05-05 12:27:57 -04:00
paul chipchase
b84555c97f Set FEditorBulkData tests back to EAutomationTestFlags::EngineFilter after an accidental change
#rb trivial
#jira none
#rnx
#preflight 645503686c35ad81e65e0f9b

[CL 25353871 by paul chipchase in ue5-main branch]
2023-05-05 09:48:49 -04:00
paul chipchase
d91ff399b2 Add an overload to FEditorBulkData::UpdatePayload that takes a FCompressedBuffer directly
#rb Per.Larsson
#jira none
#rnx
#preflight 6453ce50d863ba2621851360

- FCompressedBuffer will calculate the FIoHash of its data and FEditorBulkData can take the hash from there rather than calculating one itself. If you create one with no compression codec set you could use that to control when the hashing takes place before passing the data to FEditorBulkData.
- In the future we might change FEditorBulkData to hold its data in a FCompressedBuffer, allowing us to avoid decompressing the payload unless someone actually asks for it in uncompressed format.
- Added some unit tests

[CL 25352762 by paul chipchase in ue5-main branch]
2023-05-05 08:27:38 -04:00
paul chipchase
1c0297c609 Fix potential truncation issue in TReferenceSearchBase::FCollector
#rb trivial
#jira none
#rnx
#preflight 644a2654877716c878058a9e

- Bumped BufferStartIndex to a int64 as it is used to store the offset into a TArray64.

[CL 25351178 by paul chipchase in ue5-main branch]
2023-05-05 05:36:44 -04:00
johan torp
912e14e1ca Delete UE_WITH_GC that was only used by C++ UHT, which is unsupported and about to be removed
#rb tim.smith
#rnx
#preflight

[CL 25350540 by johan torp in ue5-main branch]
2023-05-05 04:01:55 -04:00
johan torp
0c50b321ab Remove redundant WITH_EDITOR GC code
#rb robert.manuszewski,robert.millar
#rnx
#preflight 644bc462f502608229fef62f

[CL 25333879 by johan torp in ue5-main branch]
2023-05-04 09:29:49 -04:00
paul chipchase
f684fc8020 Do not treat FIoHash as a rvalue when updating a payload as it doens't actually do anything.
#rb trivial
#jira none
#rnx
#preflight 64536fc1743c256cd6e71b28

[CL 25332030 by paul chipchase in ue5-main branch]
2023-05-04 04:59:21 -04:00
steve robb
a63282bc19 Added guards to stop property size calculation overflowing.
#rb andriy.tylychko
#preflight 64523a0bc86798f65008c810

[CL 25317048 by steve robb in ue5-main branch]
2023-05-03 10:01:54 -04:00
dan oconnor
0823c79b0e Don't destroy orphaned default subobjects on load, instead wait for construction script rerunning, and then destroy them as we do for blueprint defined components
#rb Phillip.Kavan
#jira UE-184674
#preflight 645143200e33f2d51d5c3038

[CL 25309509 by dan oconnor in ue5-main branch]
2023-05-02 18:18:14 -04:00
dan oconnor
4624cd5c03 Fix memory scribble when constructing struct literals with bitfields
#jira UE-182822
#preflight 64505e7ce73c4d47c3dee33a
#rb Phillip.Kavan

[CL 25305731 by dan oconnor in ue5-main branch]
2023-05-02 14:43:26 -04:00
paul chipchase
5f4e2f7770 Fix potential truncation issue in FArchiveStackTraceWriter.
#rb trivial
#jira none
#rnx
#preflight 644a6b7f877716c8784935db

- LastDifferenceCallstackOffsetIndex was only ever being used as a int32 so changed it to that type.

[CL 25298576 by paul chipchase in ue5-main branch]
2023-05-02 04:21:21 -04:00