Forums - Crash using geometry shader on Nexus 5X (OpenGL)

1 post / 0 new
Crash using geometry shader on Nexus 5X (OpenGL)
Evan
Join Date: 5 Mar 13
Posts: 34
Posted: Sat, 2017-04-15 11:30

I'm trying to use a geometry shader to do layered rendering to different faces of a cube texture (render 6 instances, use instance id to select layer). On my Nexus 5X (Android 7.1.2) it's crashing with no indication of what the problem is. All the shaders seem to compile and link fine, no GL error, no debug callback info.

I did find this in the logcat output right before the crash, not sure if it's related:

04-15 11:13:53.994 24792 24810 W Adreno-GSL: <gsl_ldd_control:477>: ioctl fd 47 code 0xc02c093d (IOCTL_KGSL_SUBMIT_COMMANDS) failed: errno 35 Resource deadlock would occur
04-15 11:13:53.994 24792 24810 W Adreno-GSL: <log_gpu_snapshot:386>: panel.gpuSnapshotPath is not set.not generating user snapshot
04-15 11:13:53.995 24792 24810 W Adreno-GSL: <gsl_ldd_control:477>: ioctl fd 47 code 0xc02c093d (IOCTL_KGSL_SUBMIT_COMMANDS) failed: errno 35 Resource deadlock would occur
04-15 11:13:53.995 24792 24810 W Adreno-GSL: <log_gpu_snapshot:386>: panel.gpuSnapshotPath is not set.not generating user snapshot
04-15 11:13:53.995 24792 24810 W Adreno-GSL: <gsl_ldd_control:477>: ioctl fd 47 code 0xc02c093d (IOCTL_KGSL_SUBMIT_COMMANDS) failed: errno 35 Resource deadlock would occur
04-15 11:13:53.995 24792 24810 W Adreno-GSL: <log_gpu_snapshot:386>: panel.gpuSnapshotPath is not set.not generating user snapshot
04-15 11:13:54.011   905  4430 I WindowManager: WIN DEATH: Window{7d1c6ad u0 com.Sandbox_Android/android.app.NativeActivity}

(Sandbox_Android being my application) 

I suppose this is also useful information?

04-15 11:13:53.732 24792 24810 I Adreno  : QUALCOMM build                   : 6818200, Idb2b4cb785
04-15 11:13:53.732 24792 24810 I Adreno  : Build Date                       : 11/18/16
04-15 11:13:53.732 24792 24810 I Adreno  : OpenGL ES Shader Compiler Version: XE031.09.00.04
04-15 11:13:53.732 24792 24810 I Adreno  : Local Branch                     : N25
04-15 11:13:53.732 24792 24810 I Adreno  : Remote Branch                    :
04-15 11:13:53.732 24792 24810 I Adreno  : Remote Branch                    :
04-15 11:13:53.732 24792 24810 I Adreno  : Reconstruct Branch               :

Here's an APK that demonstrates the problem: https://www.dropbox.com/s/ddke6ejmqcz4b1c/Sandbox_Android.apk?dl=0 It should just die immediately on a 5X.

If you guys can confirm if this is a bug or tell me what I might be doing wrong it would be greatly appreicated. 

Thanks,

Evan

 

  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.