Commit Graph

337 Commits

Author SHA1 Message Date
liuhao0620
25ccdf4e29 Fix FUnixPlatformProcess::GetDllHandle issue when non-module shared libraries are reloaded
#pr 12144
#12144
#jira UE-219652
[REVIEW] [at]brandon.schaefer
#rb zack.neyland

[CL 36757801 by liuhao0620 in 5.5 branch]
2024-10-01 19:33:06 -04:00
tomasz obrebski
54a30bd892 IFileHandle seekless ReadAt
#jira UE-213809
#rb brian.white, daniele.pieroni, David.Harvey, Josie.Yang
#rnx

[CL 36757440 by tomasz obrebski in 5.5 branch]
2024-10-01 19:29:48 -04:00
richard smith
79b9f2daef Reordered function definition to fix build error.
#rb brandon.schaefer

[CL 36209858 by richard smith in 5.5 branch]
2024-09-11 16:54:21 -04:00
richard smith
e08a5ed6e1 Prevent GModuleSymbolFileMemory from being freed if it's size exceeds SSIZE_MAX. Cleaned up some logging and code duplication.
#testing Built locally and ran forked linux server
#sh-09-06-pre-sh-31-20-unable-to-load-dm-ugc-maps-ext
#rb Brandon.Schaefer

[CL 36207961 by richard smith in 5.5 branch]
2024-09-11 16:08:51 -04:00
Ryan Hummer
4af2fd066d Updating Dev-Release-5.5 from Main at CL #36144969
#okforversepublic

[CL 36146571 by Ryan Hummer in Dev-5.5 branch]
2024-09-10 10:26:02 -04:00
ben clayton
80bfcb30f8 [AutoRTFM] Fix AutoRTFMTests on linux
The `FPlatformMisc.CreateGUID` test calls CreateGUID, which attempts a syscall on linux. Mark this as always open.

#rb neil.henning

[CL 35864788 by ben clayton in ue5-main branch]
2024-08-28 09:27:35 -04:00
cory kolek
acadf42099 Slight change incase the full SSIZE_MAX isn't read from the file we don't advance the pointed too far.
#rb kris.pelley

[CL 35791481 by cory kolek in ue5-main branch]
2024-08-25 05:04:41 -04:00
cory kolek
f21af99aaa Fixed an issue where the PreloadModuleSymbolFile could fail if the symbol file was larger than SSIZE_MAX. Also fixed an issue with the pointer not being adjusted by PageSize if it did fail and needed to be cleaned up.
[CL 35791412 by cory kolek in ue5-main branch]
2024-08-25 01:59:23 -04:00
richard smith
b06872580e Write protecting GModuleSymbolFileMemory to better be able to identify the root cause of FORT-774308
#tests Tested locally and had QA successfully connect to a custom dynamic deployment
#rb Brandon.Schaefer

[CL 35730670 by richard smith in ue5-main branch]
2024-08-21 23:03:17 -04:00
michael nicolella
545e9c9839 autortfm fixes:
- inside ResolveName2, move the LoadPackage call into the Open. Aborting should leave the package orphaned and cleaned up by the GC
- PlatformStackWalk: resolve symbols in the open because they rely on disallowed platform syscalls or locks
- PhysicsTrace: move the call to PhysicsTraceChannel/PhysicsTraceProfile/PhysicsTraceObject to transaction commit time. These calls register some async work to be performed and consumed later, so deferring these should be OK

#rb Brandon.Schaefer, neil.henning

[CL 35326740 by michael nicolella in ue5-main branch]
2024-08-05 20:56:09 -04:00
jeannoe morissette
725e1923de RHI: Default the NullRHIShaderFormat to SM6 unless specified
#rnx
#rb mihnea.balta

[CL 35080115 by jeannoe morissette in ue5-main branch]
2024-07-25 09:28:35 -04:00
brandon schaefer
1beb695629 Dont use defined relative base dir if the folder doesnt exists
#rb Josh.Adams

[CL 34682430 by brandon schaefer in ue5-main branch]
2024-06-26 13:46:38 -04:00
joe bestrotheray
b414478b5e fix for parent server hang issue in live
[CL 34649299 by joe bestrotheray in ue5-main branch]
2024-06-25 14:14:43 -04:00
paul chipchase
dfbfb26cc6 Replace private FScopedReadTracker with a generic version FFileHandleRegistryReadTracker that was recently added to PlatformFileCommon.h
#rb Justin.Marcus
#jira UE-217741
#rnx

[CL 34367746 by paul chipchase in ue5-main branch]
2024-06-14 07:32:28 -04:00
louisphilippe seguin
869c8fae69 Fork
* Added cvar fork.ParentSleepDurationInSec to give ability to configure the time parent process sleeps when it has no signals to execute
* Added cvar fork.LogMemoryStatsWhenForking to control the memory stats log before every fork (enabled by default)
* Added LogFork category used by fork related logs (previously LogHal)
* Fixed signal timestamp in logs

#jira UE-215592
#rb Brandon.Schaefer

[CL 34073292 by louisphilippe seguin in ue5-main branch]
2024-06-03 15:01:10 -04:00
robert millar
df1e10047d Add new AUTORTFM macros which can be followed by braced blocks to make them work better with the debugger
e.g. UE_AUTORTFM_OPEN2{ ... code ... };

#rb neil.henning

[CL 33869184 by robert millar in ue5-main branch]
2024-05-23 14:22:32 -04:00
henrik karlsson
8cfff1360b [Core]
* Added so code identifying module as UE module on unix tests the old path too.. in case there are modules out there that are not using our macros (highly unlikely because they need our operator new/delete etc)

[CL 33735124 by henrik karlsson in ue5-main branch]
2024-05-17 16:00:03 -04:00
henrik karlsson
b250c11229 Changed so operator new/delete overloads are pulled in through a special include compiled in a generated cpp file that goes in its own translation unit. This will make it possible to support merging of modules and only include one of the .obj files for these overloads
If a module depends on Core and does not want the overloads it needs to add the private define SUPPRESS_PER_MODULE_INLINE_FILE or set PER_MODULE_INLINE_FILE to point to a different file

[CL 33709297 by henrik karlsson in ue5-main branch]
2024-05-16 22:34:40 -04:00
dmytro vovk
455e9d40f6 Added bool FPlatform::CanOverallocateVirtualMemory() function to check if we can allocate more virtual memory than physical + swap
#rb adam.kinge, Brandon.Schaefer

[CL 33265003 by dmytro vovk in ue5-main branch]
2024-04-26 11:09:19 -04:00
danny couture
75f532dd16 [TaskGraph]
- Remove old task graph backend
 - Remove old deprecations

#rb kevin.macaulayvacher

[CL 33099915 by danny couture in ue5-main branch]
2024-04-19 08:16:10 -04:00
ben woodhouse
8f0af669b5 Remove UE_ENABLE_PLATFORM_MEMORY_CSV_STATS. The implementation is not safe. We should re-write this in a less intrusive way if we need to profile the memory profiler (e.g accumulating our own timers in the allocator and simply using CSV_CUSTOM_STAT to emit to the Csv profiler once per frame)
#rb joe.bestrotheray

[CL 32407446 by ben woodhouse in ue5-main branch]
2024-03-21 14:25:55 -04:00
james singer
e6049d5f44 Fix FunixPlatformProcess::CreateProc to handle NULL being passed in for parameters argument
#jira UE-208954

[CL 32168401 by james singer in ue5-main branch]
2024-03-11 18:32:26 -04:00
steve robb
f8d47335a4 Replaced RemoveAt(N, 1, EAllowShrinking::*) with RemoveAt(N, EAllowShrinking::*).
[CL 31626444 by steve robb in ue5-main branch]
2024-02-19 16:51:58 -05:00
johan berg
8bb0a82d64 Make Linux/Mac use editor version of crash reporter when compiled with WITH_EDITOR
In order to properly separate crashes that happens during development versus crashes that occurr in shipped titles we need to use the editor version of the crash reporter when appropriate.

#rb calvin.zheng
#jira UE-206087, UE-205533

[CL 31439621 by johan berg in ue5-main branch]
2024-02-13 14:21:43 -05:00
steve robb
104c0f2416 Fixed up more bool-taking calls to take EAllowShrinking instead.
[CL 30806200 by steve robb in ue5-main branch]
2024-01-23 11:07:28 -05:00