Text not rendering on new iPhone models (2018)

95 views
Skip to first unread message

nicolas...@gmail.com

unread,
Dec 10, 2018, 10:22:06 PM12/10/18
to GLyphy
I'm having issues with text not rendering on new iPhone and iPad models (2018 devices, such as the new iPhone Xs). On other iOS devices Glyphy is working as expected. 
I've been debugging the issue and I've isolated the problem to Glyphy shaders, specifically the "glyphy_texture1D_func" in the demo-atlas.glsl file:


uniform sampler2D u_atlas_tex;
uniform ivec4 u_atlas_info;

#define GLYPHY_TEXTURE1D_EXTRA_DECLS , sampler2D _tex, ivec4 _atlas_info, ivec2 _atlas_pos
#define GLYPHY_TEXTURE1D_EXTRA_ARGS , _tex, _atlas_info, _atlas_pos
#define GLYPHY_DEMO_EXTRA_ARGS , u_atlas_tex, u_atlas_info, gi.atlas_pos

vec4
glyphy_texture1D_func (int offset GLYPHY_TEXTURE1D_EXTRA_DECLS)
{
  ivec2 item_geom = _atlas_info.zw;
  vec2 pos = (vec2 (_atlas_pos.xy * item_geom +
   ivec2 (mod (float (offset), float (item_geom.x)), offset / item_geom.x)) +
      + vec2 (.5, .5)) / vec2(_atlas_info.xy);
  return texture2D (_tex, pos);
}


It seems that there is an issue with the _tex sampler2D variable passed to the texture2D function.
This is the error that I'm getting in the iOS app...


Compiler failed with XPC_ERROR_CONNECTION_INTERRUPTED
Compiler failed with XPC_ERROR_CONNECTION_INTERRUPTED
Compiler failed with XPC_ERROR_CONNECTION_INTERRUPTED
MTLCompiler: Compilation failed with XPC_ERROR_CONNECTION_INTERRUPTED on 3 try
GLDDevice failed to build pipeline state: Compiler encountered an internal error
GLDDevice failed to build pipeline state: Compiler encountered an internal error
GLDDevice failed to build pipeline state: Compiler encountered an internal error
GLDDevice failed to build pipeline state: Compiler encountered an internal error
GLDDevice failed to build pipeline state: Compiler encountered an internal error
GLDDevice failed to build pipeline state: Compiler encountered an internal error
GLDDevice failed to build pipeline state: Compiler encountered an internal error
GLDDevice failed to build pipeline state: Compiler encountered an internal error
GLDDevice failed to build pipeline state: Compiler encountered an internal error
GLDDevice failed to build pipeline state: Compiler encountered an internal error


Is this a driver issue with the new Apple iOS devices? If so, is there a workaround?

Thank you.

Behdad Esfahbod

unread,
Dec 11, 2018, 1:47:49 PM12/11/18
to gly...@googlegroups.com
Sounds like a driver issue.  I don't know of any workarounds.  I'm actually curious in what context you are running this on an iPhone.  I suggest you log an issue with Apple.

--
You received this message because you are subscribed to the Google Groups "GLyphy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to glyphy+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Reply all
Reply to author
Forward
0 new messages