# 4.25 apk runs fine, 4.26.1 apk crash

**URL:** <https://forums.unrealengine.com/t/4-25-apk-runs-fine-4-26-1-apk-crash/158698>\
**Category:** Mobile\
**Tags:** unreal-engine, Android\
**Created:** [March 3, 2021, 6:38pm UTC](https://forums.unrealengine.com/t/4-25-apk-runs-fine-4-26-1-apk-crash/158698 "2021-03-03T18:38:21Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![imtrobin2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@imtrobin2](https://forums.unrealengine.com/u/imtrobin2)\
**Post date:** [March 3, 2021, 6:38pm UTC](https://forums.unrealengine.com/t/4-25-apk-runs-fine-4-26-1-apk-crash/158698/1 "2021-03-03T18:38:21Z")

</div>

Hi, so I built the apk 4.25, runs great. I switch to build with 4.26.1, nothing change except engine version, the apk works on some devices, but on Amazon Fire HD (OpenGLES3.1), I get a crash after splash screen.

The log cat shows OpenGLES has error

```auto

03-04 02:17:29.678 9500-9541/com.xxx.xxx D/UE4: [2021.03.03-18.17.29:678] 0]LogCore: Display: AppLifetime: Application has entered foreground
03-04 02:17:29.679 9500-9541/com.xxx.xxx D/UE4: [2021.03.03-18.17.29:678] 0]LogCore: Display: AppLifetime: Application has reactivated
03-04 02:17:29.679 9500-9541/com.xxx.xxx D/UE4: [2021.03.03-18.17.29:679] 0]LogTemp: Android resume audio
03-04 02:17:29.680 9500-9541/com.xxx.xxx D/UE4: [2021.03.03-18.17.29:680] 0]LogInit: First time updating LLM stats...
03-04 02:17:29.807 9500-9500/com.xxx.xxx D/UE4: [GameActivity] Battery: status = 2, rawlevel = 69, scale = 100
03-04 02:17:29.807 9500-9500/com.xxx.xxx D/UE4: nativeBatteryEvent(stat = 2, lvl = 69 temp = 26.00 °C)
03-04 02:17:29.834 9500-9586/com.xxx.xxx D/UE4: Assertion failed: Index == 0 [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/OpenGLDrv/Public\OpenGLES.h] [Line: 439]
03-04 02:17:29.834 9500-9586/com.xxx.xxx D/UE4: [2021.03.03-18.17.29:834] 0]Assertion failed: Index == 0 [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/OpenGLDrv/Public\OpenGLES.h] [Line: 439]
03-04 02:17:29.834 9500-9586/com.xxx.xxx D/UE4: [2021.03.03-18.17.29:834] 0]LogAndroid: Error: === Critical error: ===
03-04 02:17:29.834 9500-9586/com.xxx.xxx D/UE4: [2021.03.03-18.17.29:834] 0]LogAndroid: Error:
03-04 02:17:29.834 9500-9586/com.xxx.xxx D/UE4: [2021.03.03-18.17.29:834] 0]LogAndroid: Error: Assertion failed: Index == 0 [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/OpenGLDrv/Public\OpenGLES.h] [Line: 439]

```

I compared the source with 4.25, and this is the added check that cause the assert, what does it do?

```auto

static FORCEINLINE void ColorMaskIndexed(GLuint Index, GLboolean Red, GLboolean Green, GLboolean Blue, GLboolean Alpha)
{
    if (Index > 0 && glColorMaskiEXT)
   {
      // ext or OpenGL ES 3.2
      glColorMaskiEXT(Index, Red, Green, Blue, Alpha);
   }
   else
   {
        check(Index == 0); // THIS IS NEW IN 4.26, WHAT DOES IT DO?
        glColorMask(Red, Green, Blue, Alpha);
   }
}

```

---

<div class="post-metadata">

**Author:** ![imtrobin2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@imtrobin2](https://forums.unrealengine.com/u/imtrobin2)\
**Post date:** [March 4, 2021, 6:46am UTC](https://forums.unrealengine.com/t/4-25-apk-runs-fine-4-26-1-apk-crash/158698/2 "2021-03-04T06:46:08Z")

</div>

So I created a fresh third person camera project in 4.26, same error.

---

<div class="post-metadata">

**Author:** ![imtrobin2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@imtrobin2](https://forums.unrealengine.com/u/imtrobin2)\
**Post date:** [April 17, 2021, 11:19pm UTC](https://forums.unrealengine.com/t/4-25-apk-runs-fine-4-26-1-apk-crash/158698/3 "2021-04-17T23:19:33Z")

</div>

Updated 4.26.2, same crash

---

<div class="post-metadata">

**Author:** ![UltraRat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UltraRat](https://forums.unrealengine.com/u/UltraRat)\
**Post date:** [April 29, 2021, 9:03am UTC](https://forums.unrealengine.com/t/4-25-apk-runs-fine-4-26-1-apk-crash/158698/4 "2021-04-29T09:03:03Z")

</div>

I created a completely empty project in 4.26.2 and am also hitting this assert on device in development mode.

Worth noting the code has now change to:

```auto
static FORCEINLINE void ColorMaskIndexed(GLuint Index, GLboolean Red, GLboolean Green, GLboolean Blue, GLboolean Alpha)
{
if (bSupportsDrawBuffersBlend)
    		{
    			// ES 3.2 or extension
    			glColorMaskiEXT(Index, Red, Green, Blue, Alpha);
    		}
    		else
    		{
    			check(Index == 0);
    			glColorMask(Red, Green, Blue, Alpha);
    		}
    	}

```

where `bSupportsDrawBuffersBlend = (glEnableiEXT != nullptr);` so without that `Index > 0` as well.

The device I’m testing on is old and doesn’t have Vulkan support, so I can’t just test with that.

---

<div class="post-metadata">

**Author:** ![Uno1982](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/uno1982/32/982436_2.png) [@Uno1982](https://forums.unrealengine.com/u/Uno1982)\
**Post date:** [May 19, 2021, 4:55am UTC](https://forums.unrealengine.com/t/4-25-apk-runs-fine-4-26-1-apk-crash/158698/5 "2021-05-19T04:55:09Z")

</div>

Same exact issue.  
`KFMUWI` Android 9, API Level 28 [Fire OS 7]

Kicks out assertion as soon as it deploys and pushes the executable. It launches into dev mode on the device, displays the ue4 splash then kicks the log out and crashes. Anyone find a fix for this yet? Maybe a source cherry pick?

````auto
LogPlayLevel: Error: 05-18 23:11:00.622 1831 1929 D UE4 : [2021.05.19-04.11.00:622][0]LogAndroid: Error:
LogPlayLevel: Error: 05-18 23:11:00.622 1831 1929 D UE4 : [2021.05.19-04.11.00:622][0]LogAndroid: Error: Assertion failed: Index == 0 [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/OpenGLDrv/Public\OpenGLES.h] [Line: 439]```
````

---

<div class="post-metadata">

**Author:** ![Uno1982](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/uno1982/32/982436_2.png) [@Uno1982](https://forums.unrealengine.com/u/Uno1982)\
**Post date:** [May 21, 2021, 7:32am UTC](https://forums.unrealengine.com/t/4-25-apk-runs-fine-4-26-1-apk-crash/158698/6 "2021-05-21T07:32:32Z")

</div>

I’ve tried both r21e and r22b with the same results even tried grabbing the latest preview sdk in hopes it might be an sdk issue. I’ve also posted my findings in the discord unreal slackers mobile channel. Is there any way to get support on this?

---

<div class="post-metadata">

**Author:** ![jwatte](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jwatte/32/744941_2.png) [@jwatte](https://forums.unrealengine.com/u/jwatte)\
**Post date:** [May 21, 2021, 10:15pm UTC](https://forums.unrealengine.com/t/4-25-apk-runs-fine-4-26-1-apk-crash/158698/7 "2021-05-21T22:15:45Z")

</div>

An “ASSERT” is a check that the system works the way it’s supposed to, and “pull the breaks” when it doesn’t.  
It turns out, the Amazon device you’re using has never been compatible with what the Unreal Engine needs, but that was “silently ignored” before that ASSERT check was added.  
Your options are:

1. Try to develop a workaround in the code (fork the engine) that works for this device
2. Target devices that have sufficiently working GPUs
3. Remove the error check (for the engine) and #yolo it

---

<div class="post-metadata">

**Author:** ![Coder\_AZ](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/coder_az/32/88718_2.png) [@Coder\_AZ](https://forums.unrealengine.com/u/Coder_AZ)\
**Post date:** [December 4, 2021, 8:32pm UTC](https://forums.unrealengine.com/t/4-25-apk-runs-fine-4-26-1-apk-crash/158698/8 "2021-12-04T20:32:45Z")

</div>

I have the same problem on ue-4.26.2-4.27.1, can anyone solve it? For a month now I have not been able to solve this problem.

---

<div class="post-metadata">

**Author:** ![ecaillou](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ecaillou](https://forums.unrealengine.com/u/ecaillou)\
**Post date:** [September 23, 2023, 11:22am UTC](https://forums.unrealengine.com/t/4-25-apk-runs-fine-4-26-1-apk-crash/158698/9 "2023-09-23T11:22:51Z")

</div>

Hello, I have exactly the same issue with UE4.27. Have you managed to solve it? Is there any hope???
