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"

RHIUpdateTexture2D crashes on Android device

I am working on the Fog of War effect for our game. Everything works well except that RHIUpdateTexture2D called by the rendering thread crashes on Android device (PC and mobile preview are both ok. not tested on ios yet).

Here is the code:

ENQUEUE_UNIQUE_RENDER_COMMAND_TWOPARAMETER( UpdateTextureRegionsData, FUpdateTextureRegionsData, RegionData, RegionData, bool, bFreeData, bFreeData,


 for (uint32 i = 0; i < RegionData.NumRegions; ++i)
     int32 CurrentFirstMip = RegionData.Texture2DResource->GetCurrentFirstMip();

     if (RegionData.MipIndex >= CurrentFirstMip)
             RegionData.MipIndex - CurrentFirstMip,
             RegionData.SrcData + RegionData.Regions[i].SrcY * RegionData.SrcPitch + RegionData.Regions[i].SrcX * RegionData.SrcBpp



Product Version: UE 4.8
more ▼

asked Jul 13 '15 at 08:23 PM in Rendering

avatar image

George Li
186 3 12 22

avatar image George Li Jul 16 '15 at 09:04 PM

Tested on IOS. It does not crash, but the result is not correct. It means that even though the effect works on mobile preview,. it does not work on Android and IOS devices. The testing devices were HTC Nexus 9, Samsung Note, iPad Air

avatar image George Li Nov 03 '15 at 01:13 AM

After upgrading to 4.9.2, this functions works. on Andoird. Not tested on IOS.

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

0 answers: sort voted first
Be the first one to answer this question
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