Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Hot reload breaks custom editor module

I have a simple custom editor module in my project. Whenever I cause a hot-reload, and then later close the editor, I cannot open it again. The error message is "The game module 'MyCustomModule' could not be loaded. There may be an operating system error or the module may not be properly set up." After that, the engine crashes with an "Assertion failed: GIsHotReload [File:D:\Build\++UE4+Release-4.12+Compile\Sync\Engine\Source\Runtime\CoreUObject\Private\UObject\UObjectBase.cpp] [Line: 564] ". However, my module compiles just fine.

When this happens, simply rebuilding my game and then launching the editor fixes the problem. I think this is caused by the presence of the hot reload files in my "C:/Documents/MyProject/Binaries" folder, because simply deleting the "UE4Editor-MyProject-XXXX.dll" fixes the problem too.

My guess would be that because my module is not hot-reloaded (because it is an editor module), and that the "latest version" of the binaries is the hot-reloaded version, it doesn't consider my module to be compatible with the version of the game module. That, or it doesn't find it because my "MyCustomModule.dll" isn't in the same format as the game module hot-reloaded binaries (without that "-XXXX" at the end).

These guesses are just shots in the dark. For now, I have made a script to launch the editor that deletes any hot-reload files in my binaries folder, and it works just fine.

I can also provide the full code from my plugin and from my .uproject file, if that could help.

Product Version: UE 4.12
more ▼

asked Jan 05 '17 at 06:13 AM in Bug Reports

avatar image

10 5 8 9

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hey Dathanar-

Hot-reload only effects classes derived from UCLASS types. If your custom module uses classes that are not UCLASS, these classes are not being updated with the hot-reload. As you mentioned, compiling without a hot-reload will update everything at the same time and avoid the error. Though it is not a plugin module, an example of this can be found here: https://issues.unrealengine.com/issue/UE-25350 .


Doug Wilson

more ▼

answered Jan 05 '17 at 07:49 PM

avatar image MutualWolf Jan 05 '17 at 07:56 PM

Hey Doug,

Thanks for the heads-up, I didn't know if this was an issue or normal behaviour.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question