1. Adding the following code in UShooterEngine::Init() with ShooterGame.
const int32 PixelMapWidth = 256; const int32 PixelMapHeight = 256; UTexture2D* pCreateTex2D = UTexture2D::CreateTransient(PixelMapWidth, PixelMapHeight); FTexture2DMipMap& mip = pCreateTex2D->PlatformData->Mips[0]; void* data = mip.BulkData.Lock(LOCK_READ_WRITE); check(data != nullptr); mip.BulkData.Unlock(); pCreateTex2D->UpdateResource(); data = mip.BulkData.Lock(LOCK_READ_WRITE); check(data != nullptr); mip.BulkData.Unlock(); pCreateTex2D->UpdateResource();
2. Enable iostore at ProjectSettings.
3. Make package and run package application.
Then, crash on the second "check(data ! = nullptr);".
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-94440 in the post.
0 |
Component | UE - Foundation - Core |
---|---|
Affects Versions | 4.25plus |
Target Fix | 4.25plus |
Fix Commit | 13756878 |
---|
Created | Jun 17, 2020 |
---|---|
Resolved | Jun 24, 2020 |
Updated | Jul 22, 2020 |