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"

ImageWrapperModule error

Hi, I am following the tutorial for asnyc image load and it works fine in editor, but in the packaged game it crashes. I get this error: "Exception thrown at 0x00007FF8DD20DE0E (ntdll.dll) in Project-Win64-DebugGame.exe: 0xC0000005: Access violation writing location 0x0000000000000024." Can you help please? Thankyou

 // This includes the precompiled header. Change this to whatever is relevant for your project.
 #include "Project.h"
 #include "ImageLoader.h"
 #include "Runtime/ImageWrapper/Public/IImageWrapper.h"//#include "IImageWrapper.h"
 #include "Runtime/ImageWrapper/Public/IImageWrapperModule.h"
 #include "Runtime/RenderCore/Public/RenderUtils.h"
 #include "Engine/Texture2D.h"
 // Change the UE_LOG log category name below to whichever log category you want to use.
 #define UIL_LOG(Verbosity, Format, ...) UE_LOG(LogTemp, Verbosity, Format, __VA_ARGS__)
 // Module loading is not allowed outside of the main thread, so we load the ImageWrapper module ahead of time. 
 //static IImageWrapperModule& ImageWrapperModule = FModuleManager::LoadModuleChecked<IImageWrapperModule>(TEXT("ImageWrapper"));
 IImageWrapperModule& ImageWrapperModule = FModuleManager::LoadModuleChecked<IImageWrapperModule>(FName("ImageWrapper")); //ERROR
Product Version: UE 4.19
more ▼

asked Feb 08 '19 at 11:40 AM in C++ Programming

avatar image

34 3 3 6

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

1 answer: sort voted first

I ran into the same issue.

Making this call: IImageWrapperModule& ImageWrapperModule = FModuleManager::LoadModuleChecked(FName("ImageWrapper"));

as a static variable failed. I moved the call to the function call where it was used and the crash went away. Apparently doing the LoadModuleChecked() call that early doesn't work in subsequent versions of Unreal.

more ▼

answered Apr 22 '19 at 04:50 PM

avatar image

Michal Todorovic
1 1

(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