Developer Notes

This issue has been marked as Won't Fix due to priority. As a workaround, please use the screenshot functionality on the GearVR itself.

Description

Using the shot console command or the RequestScreenshot function to take a screenshot in Gear VR causes the app to crash. This was tested on Android-19, ETC-1 configuration, with both Developer Mode Gear VR and the actual Gear VR headset.

Regression?: No
This also occurs in 4.15

Unable to test this in Main as I am being blocked by not being able to even launch a Gear VR app on Android.

Branches tested:
4.15.3-3450819+++UE4+Release-4.15
4.16.2-3514769+++UE4+Release-4.16
4.17.0-3528061+++UE4+Release-4.17
4.18.0-3526188+++UE4+Dev-Main

Steps to Reproduce
  1. Launch any project with Gear VR Enabled to an Android phone with Gear VR capabilities
  2. Press 4 fingers to the screen to cause the console to appear
  3. Enter the 'shot' console command
  4. Run the command
    Result: The app crashes
    Expected: A screenshot is taken and the app continues
Callstack
07-13 11:44:57.088: A/DEBUG(478): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
07-13 11:44:57.088: A/DEBUG(478): Build fingerprint: 'samsung/trlteuc/trlteatt:6.0.1/MMB29M/N910AUCS2EPK5:user/release-keys'
07-13 11:44:57.088: A/DEBUG(478): Revision: '12'
07-13 11:44:57.088: A/DEBUG(478): ABI: 'arm'
07-13 11:44:57.088: A/DEBUG(478): pid: 14655, tid: 14730, name: Thread-7970  >>> com.YourCompany.AndroidScreenshot <<<
07-13 11:44:57.088: A/DEBUG(478): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
07-13 11:44:57.128: A/DEBUG(478):     r0 00000001  r1 00000001  r2 00000001  r3 00001f30
07-13 11:44:57.128: A/DEBUG(478):     r4 00000001  r5 00000002  r6 7decbea0  r7 00000000
07-13 11:44:57.138: A/DEBUG(478):     r8 00000000  r9 00000000  sl 00000000  fp 8bad9460
07-13 11:44:57.138: A/DEBUG(478):     ip 00000000  sp 8bad9150  lr a8de70af  pc 9e03e734  cpsr 200b0010
07-13 11:44:57.168: A/DEBUG(478): backtrace:
07-13 11:44:57.168: A/DEBUG(478):     #00 pc 05427734  /data/app/com.YourCompany.AndroidScreenshot-1/lib/arm/libUE4.so (_ZN17FOpenGLDynamicRHI20GetOpenGLFramebufferEjPP18FOpenGLTextureBasePjS3_S1_+956)
07-13 11:44:57.168: A/DEBUG(478):     #01 pc 05429b40  /data/app/com.YourCompany.AndroidScreenshot-1/lib/arm/libUE4.so (_ZN17FOpenGLDynamicRHI18ReadSurfaceDataRawER19FOpenGLContextStateP11FRHITexture8FIntRectR6TArrayIh17FDefaultAllocatorE21FReadSurfaceDataFlags+636)
07-13 11:44:57.168: A/DEBUG(478):     #02 pc 0542a394  /data/app/com.YourCompany.AndroidScreenshot-1/lib/arm/libUE4.so (_ZN17FOpenGLDynamicRHI18RHIReadSurfaceDataEP11FRHITexture8FIntRectR6TArrayI6FColor17FDefaultAllocatorE21FReadSurfaceDataFlags+380)
07-13 11:44:57.168: A/DEBUG(478):     #03 pc 030d133c  /data/app/com.YourCompany.AndroidScreenshot-1/lib/arm/libUE4.so
07-13 11:44:57.168: A/DEBUG(478):     #04 pc 03150a5c  /data/app/com.YourCompany.AndroidScreenshot-1/lib/arm/libUE4.so
07-13 11:44:57.168: A/DEBUG(478):     #05 pc 01e3e540  /data/app/com.YourCompany.AndroidScreenshot-1/lib/arm/libUE4.so (_ZN16FNamedTaskThread23ProcessTasksNamedThreadEib+8492)
07-13 11:44:57.168: A/DEBUG(478):     #06 pc 01e3bc74  /data/app/com.YourCompany.AndroidScreenshot-1/lib/arm/libUE4.so (_ZN16FNamedTaskThread21ProcessTasksUntilQuitEi+176)
07-13 11:44:57.168: A/DEBUG(478):     #07 pc 0434e1ec  /data/app/com.YourCompany.AndroidScreenshot-1/lib/arm/libUE4.so (_Z19RenderingThreadMainP6FEvent+252)
07-13 11:44:57.168: A/DEBUG(478):     #08 pc 0435b774  /data/app/com.YourCompany.AndroidScreenshot-1/lib/arm/libUE4.so (_ZN16FRenderingThread3RunEv+20)
07-13 11:44:57.168: A/DEBUG(478):     #09 pc 01ea8290  /data/app/com.YourCompany.AndroidScreenshot-1/lib/arm/libUE4.so (_ZN22FRunnableThreadPThread3RunEv+284)
07-13 11:44:57.168: A/DEBUG(478):     #10 pc 01e36f00  /data/app/com.YourCompany.AndroidScreenshot-1/lib/arm/libUE4.so (_ZN22FRunnableThreadPThread11_ThreadProcEPv+176)
07-13 11:44:57.168: A/DEBUG(478):     #11 pc 0003f517  /system/lib/libc.so (_ZL15__pthread_startPv+30)
07-13 11:44:57.168: A/DEBUG(478):     #12 pc 00019c9f  /system/lib/libc.so (__start_thread+6)

Have Comments or More Details?

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

3
Login to Vote

Won't Fix
ComponentUE - Platform - XR
Affects Versions4.154.164.17
Target Fix4.18
CreatedJul 13, 2017
ResolvedAug 18, 2017
UpdatedSep 23, 2019
View Jira Issue