Steps to Reproduce

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);".

 

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-94440 in the post.

0
Login to Vote

Fixed
ComponentUE - Foundation - Core
Affects Versions4.25plus
Target Fix4.25plus
Fix Commit13756878
CreatedJun 17, 2020
ResolvedJun 24, 2020
UpdatedJul 22, 2020
View Jira Issue