The project consists of 2 modules, "ReloadBug" and "DependentModule." DependentModule has a one-way dependency on ReloadBug, and ReloadBug is the primary game module. On module load, DependentModule executes a single function exported from the ReloadBug module.

When modules are recompiled and hotreloaded from the editor, their shared library files get a "-XXXX" suffix to them, to avoid overriding the original shared library files. However, these new suffixed shared libraries are still linking to the original shared library files. The evidence of this is the following:

$ ldd | grep ReloadBug => /home/amoffat/Documents/Unreal Projects/ReloadBug/Binaries/Linux/./ (0x00007f608c7db000)

This is the suffixed version of the "DependentModule" module (suffix -2378), but it is still linking to, the non-suffixed (old) shared library for the ReloadBug module. I believe this is the origin of the issue, and it's causing a collision between objects created from a suffixed and non-suffixed version of the ReloadBug library.

Steps to Reproduce
  1. Load attached project into the editor.
  2. When the editor starts, it will ask you to compile 2 modules, say yes
  3. After the editor loads, recompile the modules again by click the "compile" button and wait until finished.
  4. Close the editor.
  5. Re-open the editor.

Results: An Assertion is triggered when the Editor is reopened

Expected: Editor loads successfully

Have Comments or More Details?

There's no existing public thread on this issue, so head over toAnswerHub just mention UE-78306 in the post.

Login to Vote

ComponentPlatform - Linux
Affects Versions4.22.3
Target Fix4.26
CreatedAug 2, 2019
UpdatedJan 7, 2020