Commit Graph

5171 Commits

Author SHA1 Message Date
tom waterson
b2a34a684b Add torque units and extend force units
#rb justin.hare
#preflight 647862b85d23eca37d782f2c

[CL 25723425 by tom waterson in ue5-main branch]
2023-06-01 07:44:12 -04:00
Matt Peters
9337daf49c EditorBulkData: Remove accidentally-submitted debug code.
#fyi Paul.Chipchase
#rb None, trivial
#rnx
#preflight None, trivial

[CL 25716020 by Matt Peters in ue5-main branch]
2023-05-31 17:54:34 -04:00
matt peters
8257f5ed73 AssetRegistry and ExternalActors: Ignore ExternalActors that have a packagename that does not match their objectpath. These actors were created by an editor bug during saveas, and they can hide the true actors that have that objectpath.
#rnx
#rb JeanFrancois.Dube
#preflight 647754a18804572bdef40fc4

[CL 25703597 by matt peters in ue5-main branch]
2023-05-31 11:57:32 -04:00
johan torp
099571e69d Added extra checks to help pinpoint potential GC schema memory stomp or use-after-free found once in CI tests
#rnx
[FYI] andrew.scheidecker
#preflight 6477488e03438130a465f509
#rb none

[CL 25702673 by johan torp in ue5-main branch]
2023-05-31 11:05:33 -04:00
Wojciech Krywult
d1baf24722 AsyncIO: Fixed incorrect handling of the STAT_AsyncFileMemory stat.
I've reviewed all code using async requests and we had multiple places incorrectly handling the stat: some placed failed to decrease the counter, while others would decrease it when they shouldn't. The main cause was the fact that when we create an async request and pass nullptr as the target memory, the request allocates the memory itself and increases the STAT_AsyncFileMemory. However, when we call GetReadResults() on such requests, the responsibility is on the caller to balance the calls and decrease the stat, which is not very obvious and leads to the mentioned bugs. On top of that, when we call GetReadResults() we may not have the knowledge as to whether the returned memory was allocated by the request or not (which may affect whether we should touch the stat at all).

Resolved by adding IAsyncReadRequest::ReleaseMemoryOwnershipImpl member, which may be used by request implementations to do the proper clean up (balance the stat). This way requests take the full responsibility for their changes and users of the requests don't need to know their implementation details.

#preflight none
#rb Patrick.Laflamme
#jira UE-185064

[CL 25664733 by Wojciech Krywult in ue5-main branch]
2023-05-29 12:11:37 -04:00
johan torp
2a7e437f2c Add FReferenceCollector::AddPropertyReferencesWithStructARO class overload
#rb mikko.mononen
#rnx
#preflight 6470a6dd7e35fee9abb2289e

[CL 25662210 by johan torp in ue5-main branch]
2023-05-29 03:28:57 -04:00
Johan Torp
02f885ff7b Add FReferenceCollector::AddPropertyReferencesWithStructARO class overload
#rb mikko.mononen
#jira none
#rnx
#preflight 6470a6dd7e35fee9abb2289e

[CL 25662181 by Johan Torp in ue5-main branch]
2023-05-29 03:25:33 -04:00
kirill zorin
b6ee3a6c64 Fix UE_LOG callsites that have format string-related UB
#rb trivial
#preflight 647107780a6634dbb236a0a6

[CL 25651638 by kirill zorin in ue5-main branch]
2023-05-26 15:52:39 -04:00
phillip kavan
18ebe38feb Fix for an editor crash when editing sparse class data fields in Blueprint class defaults.
#rb Jamie.Dale, Mikko.Mononen
#preflight trivial

[CL 25645513 by phillip kavan in ue5-main branch]
2023-05-26 12:21:59 -04:00
maxime mercier
ed8c619e4b [Backout] - CL25608085
[FYI] Maxime.Mercier
Original CL Desc
-----------------------------------------------------------------
Fix reference replacement of set not being rehash when key are replaced

#rb [at]Steve.Robb
#preflight 646e2d4d1134ffac70a5d655

[CL 25644174 by maxime mercier in ue5-main branch]
2023-05-26 12:01:15 -04:00
danny couture
6d4c3e6e1c Add missing PlayInEditorID scope in zenloader
#rnx
#rb Francis.Hurteau
#preflight trivial

[CL 25644091 by danny couture in ue5-main branch]
2023-05-26 11:59:40 -04:00
andrew phillips
3e141f371d Added serial number to archetype cache to prevent returniong stale pointers.
#jira UE-180605
#preflight 646f1b3d6c2a2532b12e1187

[CL 25635303 by andrew phillips in ue5-main branch]
2023-05-25 19:34:37 -04:00
michael nicolella
ff703397ff [autortfm] add initial support for UE_USE_VIRTUAL_STACK_ALLOCATOR_FOR_SCRIPT_VM - when transactional we bypass the stack allocator and fall back to FMemory. To be replaced later by returning to stack allocator behavior after we have runtime support for it
#preflight 646ed010f85111e06cd96407

[CL 25634546 by michael nicolella in ue5-main branch]
2023-05-25 19:20:23 -04:00
robert millar
417f22a47f Add additional checks for object hash errors to be clearer about possible memory corruption.
#rb none

[CL 25632274 by robert millar in ue5-main branch]
2023-05-25 18:22:11 -04:00
francis hurteau
a4583b242d When releasing export bundle process node for a set of depedent packages, release non zen packages containing classes prior to non zen packages that do not.
#rb PJ.Kack, Danny.Couture
#preflight 646e57092c0a5da0dc318f0a

[CL 25630944 by francis hurteau in ue5-main branch]
2023-05-25 17:54:07 -04:00
jordan hoffmann
99d3c35c3d [Feature] added GetPropertyInstanceWithin to CPPStructOps so that classes like FInstancedStruct can have their internal properties reflected by property paths
#rb dan.oconnor, steve.robb
#preflight 646e2f52807b157b8b3a912e

[CL 25627492 by jordan hoffmann in ue5-main branch]
2023-05-25 16:00:42 -04:00
maxime mercier
adf7feab2b Fix reference replacement of set
#rb [at]Steve.Robb
#preflight 646e2d4d1134ffac70a5d655

[CL 25627454 by maxime mercier in ue5-main branch]
2023-05-25 15:58:59 -04:00
Andriy Tylychko
2de9cbf131 the issue was fixed in 25607223, so rolling back the rollback
#preflight 646f8f135b484acfee4932fb

[Backout] - CL25597666
#fyi zack.neyland
Original CL Desc
-----------------------------------------------------------------
Reverting CL 25577637, it's is blocking Mac editor from opening entirely.

The failure is coming dyld with the following: "could not create thread local variables pthread key". This occurs during plugin loading.

#preflight 646d775d1b241f0748e75e95
#jira UE-186763

[CL 25623686 by Andriy Tylychko in ue5-main branch]
2023-05-25 12:52:20 -04:00
kirill zorin
0e2f3c212a ARO: Fix handling of TWeakObjectPtr
#jira UE-186079
#rb trivial
#preflight 646e98012c0a5da0dc4d1cfb
#fyi robert.manuszewski

[CL 25614887 by kirill zorin in ue5-main branch]
2023-05-24 19:25:50 -04:00
kirill zorin
ab1759fd1c Turn off access tracking for UStruct::SuperStruct field (optimization)
#rb zousar.shaker
#preflight 646d5c8d3e151fa04ea817e8

[CL 25602565 by kirill zorin in ue5-main branch]
2023-05-24 10:15:48 -04:00
danny couture
b0ada564b5 Add a CVar so we can skip async package loader for the content cooker without disrupting other workflows
#rnx
#jira UE-177369, UE-181724
#rb Francis.Hurteau
#preflight 646df9a8807b157b8b201616

[CL 25602030 by danny couture in ue5-main branch]
2023-05-24 09:54:29 -04:00
robert manuszewski
03bbe67234 Removing legacy hash table locks when collecting garbage as they are no longer used
#preflight 646dc4ff1417daba1ec2bb4a
#rb PJ.Kack

[CL 25599772 by robert manuszewski in ue5-main branch]
2023-05-24 06:34:44 -04:00
zack neyland
c47a81a427 Reverting CL 25577637, it's is blocking Mac editor from opening entirely.
The failure is coming dyld with the following: "could not create thread local variables pthread key". This occurs during plugin loading.

#preflight 646d775d1b241f0748e75e95
#jira UE-186763

[CL 25597666 by zack neyland in ue5-main branch]
2023-05-23 23:12:39 -04:00
paul chipchase
bcb6ba6f90 Fix potential truncation issues in GarbageCollection.
#rb Johan.Torp
#jira none
#rnx
#preflight 646c890b1b241f0748712b58

*** Garbage Collection
- Change 'TimeLimit' parameters in FAsyncPurge to double as the value is a double before being passed in and is compred to other doubles inside of the ::Tick methods anyway.
- FWorkCoordinator constructor was doing pointer arithmetic to find the array index. Since we know the array uses int32 for the size (TArrayView) we can just use UE_PTRDIFF_TO_INT32 for the cast.

*** Garbage Collection Schema
- Used IntCastChecked in places where we are going from larger types to smaller ones to fit in with the style of the rest of the code file (INtCastChecked is being used elsewhere here for similar cases)
- Store the size of memory to be allocated in a SIZE_T, the return type of Align and the type that FMemory::Malloc takes.

[CL 25580726 by paul chipchase in ue5-main branch]
2023-05-23 08:44:43 -04:00
Andriy Tylychko
5c238a4d7e delegates refactoring:
* added a thread-safe (locked) delegates variant
* refactored and enabled by default race detection for the original not thread-safe version
* added "not thread-safe not checked" variant for rare cases where race detection doesn't work or it's a known case of a race
#rb steve.robb, francis.hurteau, danny.couture
#preflight 646b9f4d576becd7b53f674c

[CL 25577637 by Andriy Tylychko in ue5-main branch]
2023-05-23 05:17:19 -04:00