# Android Crash

**URL:** <https://forums.unrealengine.com/t/android-crash/298763>\
**Category:** Rendering\
**Tags:** unreal-engine, crash, Android, bug-report, Shaders, question\
**Created:** [November 11, 2014, 5:11pm UTC](https://forums.unrealengine.com/t/android-crash/298763 "2014-11-11T17:11:34Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![tegleg](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tegleg/32/906604_2.png) [@tegleg](https://forums.unrealengine.com/u/tegleg)\
**Post date:** [November 11, 2014, 5:11pm UTC](https://forums.unrealengine.com/t/android-crash/298763/1 "2014-11-11T17:11:34Z")

</div>

im trying to get ue4 to run on a Samsung Galaxy S i9000. KRushin managed it here [link text](https://forums.unrealengine.com/showthread.php?26819-Does-Unreal-Engine-4-scale-Well-see-for-yourself)

i followed this thread to eliminate anything that might cause crashes [link text](https://forums.unrealengine.com/showthread.php?49755-UE4-tablet-performance-seems-awful-what-am-I-doing-wrong)

i ran the shooter template with a single material on everything, no post proccess, sky or anything. the screen goes black then the app exits. here is the log from logcat link text

UE4 4.5.1

thanks

edit:  
seeing TextureStreaming = true gives an error, i set it to false and tried again  
here is the log link text

the failure there seems to be related to shaders

```
D/UE4 ( 2288): [2014.11.11-19.19.26:421][0]LogRHI:Warning: Failed to compile shader. Compile log:

D/UE4 ( 2288): Compile failed.

D/UE4 ( 2288): ERROR: 0:17: 'textureCubeLodEXT' : no matching overloaded function found

D/UE4 ( 2288): ERROR: 0:17: 'assign' : cannot convert from 'float' to 'fragment out 4-component vector of float'

D/UE4 ( 2288): ERROR: 2 compilation errors. No code generated.

```

---

<div class="post-metadata">

**Author:** ![AlwysAnrchy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AlwysAnrchy](https://forums.unrealengine.com/u/AlwysAnrchy)\
**Post date:** [November 11, 2014, 8:06pm UTC](https://forums.unrealengine.com/t/android-crash/298763/2 "2014-11-11T20:06:15Z")

</div>

Howdy tegleg,

Thank you for reporting this issue. If you have a look at the Device Compatibility section in the WIki, the Galaxy 1900 is not supported in UE4. This is not saying that the device is incapable of running a packaged and deployed project, but that device is going to have extremely poor performance.This is due to the hardware limitations of the device. Here is the Android Compatibility list: [A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums](https://wiki.unrealengine.com/Android_Device_Compatibility)

Since the device is not supported, it is difficult for for us to provide any support with an issue involving said device.

Thanks and have a great day!

---

<div class="post-metadata">

**Author:** ![RCaloca](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RCaloca](https://forums.unrealengine.com/u/RCaloca)\
**Post date:** [November 11, 2014, 9:25pm UTC](https://forums.unrealengine.com/t/android-crash/298763/3 "2014-11-11T21:25:26Z")

</div>

tegleg, regretfully this is a known issue on some Android drivers, where they are not compliant with the OpenGL spec. If you absolutely need it to work, you can try editing Common.usf on your Engine/Shaders folder and change:

```
MaterialFloat4 TextureCubeSampleLevel(TextureCube Tex, SamplerState Sampler, float3 UV, MaterialFloat Mip)
{
	return Tex.SampleLevel(Sampler, UV, Mip);
}
MaterialFloat4 TextureCubeSampleBias(TextureCube Tex, SamplerState Sampler, float3 UV, MaterialFloat MipBias)
{
	return Tex.SampleBias(Sampler, UV, MipBias);
}

```

to:

```
MaterialFloat4 TextureCubeSampleLevel(TextureCube Tex, SamplerState Sampler, float3 UV, MaterialFloat Mip)
{
	return Tex.Sample(Sampler, UV);
}
MaterialFloat4 TextureCubeSampleBias(TextureCube Tex, SamplerState Sampler, float3 UV, MaterialFloat MipBias)
{
	return Tex.Sample(Sampler, UV);
}

```

this will cause materials to not be correctly rough.

---

<div class="post-metadata">

**Author:** ![tegleg](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tegleg/32/906604_2.png) [@tegleg](https://forums.unrealengine.com/u/tegleg)\
**Post date:** [November 11, 2014, 10:21pm UTC](https://forums.unrealengine.com/t/android-crash/298763/4 "2014-11-11T22:21:24Z")

</div>

cool thanks RCaloca ill give it a try.

this would be a great option to officially add to the engine, even if its just for development builds. that device list is extremely short and it would go a long way to cover the thousands of devices people actually own.

---

<div class="post-metadata">

**Author:** ![tegleg](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tegleg/32/906604_2.png) [@tegleg](https://forums.unrealengine.com/u/tegleg)\
**Post date:** [November 11, 2014, 10:51pm UTC](https://forums.unrealengine.com/t/android-crash/298763/5 "2014-11-11T22:51:02Z")

</div>

na it just crashes the editor, oh well

---

<div class="post-metadata">

**Author:** ![trutty](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@trutty](https://forums.unrealengine.com/u/trutty)\
**Post date:** [March 16, 2015, 11:01am UTC](https://forums.unrealengine.com/t/android-crash/298763/6 "2015-03-16T11:01:58Z")

</div>

Hi tegleg, were you able to solve this issue or was the “solution” that the device is not supported? I’m having the same issue (except with a Samsung Galaxy Tab 2 10.1) and would really like to know how to fix it 😉

---

<div class="post-metadata">

**Author:** ![AlwysAnrchy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AlwysAnrchy](https://forums.unrealengine.com/u/AlwysAnrchy)\
**Post date:** [March 17, 2015, 5:51pm UTC](https://forums.unrealengine.com/t/android-crash/298763/7 "2015-03-17T17:51:04Z")

</div>

Howdy trutty,

Thank you for posting on this issue. If you look at our Device Compatibility Sheet, You will be able to see that your device is supported, though there seems to be a bit of complications with basic lighting and full HDR. What version of UE4 would you currently be using when you are seeing this issue? Also, would that build of UE4 be a binary build or a source build of the engine?

Any additional information would be greatly appreciated.

Thanks and have a great day!

---

<div class="post-metadata">

**Author:** ![trutty](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@trutty](https://forums.unrealengine.com/u/trutty)\
**Post date:** [March 18, 2015, 8:46am UTC](https://forums.unrealengine.com/t/android-crash/298763/8 "2015-03-18T08:46:09Z")

</div>

Hi Sean,

my issue refers to [this question](https://answers.unrealengine.com/questions/189226/android-game-crashes-at-startup.html) (more speficically, this error log where I have the `no code generated` error). I just found out that the issue was due to a specific actor with a translucent material, so I already resolved that one. Have a great day.

---

<div class="post-metadata">

**Author:** ![AlwysAnrchy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AlwysAnrchy](https://forums.unrealengine.com/u/AlwysAnrchy)\
**Post date:** [March 18, 2015, 1:32pm UTC](https://forums.unrealengine.com/t/android-crash/298763/9 "2015-03-18T13:32:19Z")

</div>

Glad to hear that you were able to resolve your issue.

Thanks for the update and have a great day!
