Error compiling vertex shader

Error: [openfl.display3D.Program3D] ERROR: Error compiling vertex shader

// AGAL vertex shader
#version 100
precision highp float;
attribute vec4 va0;
attribute vec4 va1;
uniform mat4 vc0;
uniform vec4 vc4;
varying vec4 v0;
varying vec4 v1;
varying vec4 v2;
varying vec4 v3;
varying vec4 v4;
uniform vec4 vcPositionScale;
void main() {
gl_Position = va0 * vc0; // m44
v0 = va1; // mov
v1 = va1 + vc4.xyww; // add
v2 = va1 - vc4.xyww; // sub
v3 = va1 + vc4.zwxx; // add
v4 = va1 - vc4.zwxx; // sub
gl_Position *= vcPositionScale;
}

at Function.lime_utils_Log.error (game.js:27453)
at openfl_display3D_Program3D.__uploadFromGLSL (game.js:58099)
at openfl_display3D_Program3D.upload (game.js:57923)
at starling_rendering_Program.activate (game.js:78161)
at starling_filters_BlurEffect.beforeDraw (game.js:71963)
at starling_filters_BlurEffect.beforeDraw (game.js:72068)
at starling_filters_BlurEffect.beforeDraw (game.js:75985)
at starling_filters_BlurEffect.render (game.js:71958)
at starling_filters_BlurFilter.process (game.js:75743)
at starling_filters_BlurFilter.process (game.js:75898)

any help?

Does the shader work in AS3?

Perhaps a bit different, but it might be related. I randomly get an error compiling vertex shader while trying to run a haxeui app on android. It doesn’t happen consistently. And if it happens it’s directly at startup.

Though sometimes if you minimize the app and later return the screen stays black.

(I tried haxelib upgrade, but lime 7.6.0 & openfl 8.9.2 and higher cause a no default library error. Which is probably because I have Haxe 3.4.7. I tried Haxe 4rc4 but it isn’t stable and breaks the alivepdf-lib among other things.)

haxe 3.4.7
actuate: 1.8.7 [1.8.9]
box2d: [1.2.3]
datetime: [3.1.1]
format: 3.4.1 [3.4.2]
haxeui-core: 0.0.4 [git]
haxeui-file-dialogs: [0.1.1]
haxeui-openfl: 0.0.2 [git]
haxeui: [1.8.21]
hscript: 2.1.1 [2.3.0]
hxcpp: 3.4.188 4.0.4 4.0.8 [4.0.19]
hxp: [1.1.2]
layout: [1.2.1]
lime-samples: 6.2.0 [7.0.0]
lime: 2.9.0 2.9.1 6.2.0 [7.5.0] 7.6.0
openfl-samples: 6.0.0 [8.7.0]
openfl: 3.6.1 7.1.2 8.9.0 [8.9.1] 8.9.2
unifill: [0.4.1]

09-02 17:56:32.181 22084 22174 E HXCPP : Called from hxcpp::__hxcpp_main
09-02 17:56:32.181 22084 22174 E HXCPP : Called from ApplicationMain::main ApplicationMain.hx line 25
09-02 17:56:32.181 22084 22174 E HXCPP : Called from ApplicationMain::create ApplicationMain.hx line 99
09-02 17:56:32.181 22084 22174 E HXCPP : Called from openfl.display.Application::createWindow openfl/display/Application.hx line 90
09-02 17:56:32.181 22084 22174 E HXCPP : Called from lime.app._Event_lime_ui_Window_Void::dispatch lime/_internal/macros/EventMacro.hx line 91
09-02 17:56:32.181 22084 22174 E HXCPP : Called from openfl.display.Stage::__onLimeCreateWindow openfl/display/Stage.hx line 1648
09-02 17:56:32.181 22084 22174 E HXCPP : Called from openfl.display.Stage::__onLimeWindowCreate openfl/display/Stage.hx line 2119
09-02 17:56:32.181 22084 22174 E HXCPP : Called from openfl.display.Stage::__createRenderer openfl/display/Stage.hx line 1201
09-02 17:56:32.181 22084 22174 E HXCPP : Called from openfl.display.OpenGLRenderer::new openfl/display/OpenGLRenderer.hx line 157
09-02 17:56:32.181 22084 22174 E HXCPP : Called from openfl.display.OpenGLRenderer::__initShader openfl/display/OpenGLRenderer.hx line 529
09-02 17:56:32.182 22084 22174 E HXCPP : Called from openfl.display.Shader::__init openfl/display/Shader.hx line 446
09-02 17:56:32.182 22084 22174 E HXCPP : Called from openfl.display.Shader::__initGL openfl/display/Shader.hx line 496
09-02 17:56:32.182 22084 22174 E HXCPP : Called from openfl.display.Shader::__createGLProgram openfl/display/Shader.hx line 333
09-02 17:56:32.182 22084 22174 E HXCPP : Called from openfl.display.Shader::__createGLShader openfl/display/Shader.hx line 323
09-02 17:56:32.182 22084 22174 E HXCPP : Called from lime.utils.Log::error lime/utils/Log.hx line 34
09-02 17:56:32.182 22084 22174 E Exception: [openfl.display.Shader] ERROR: Error compiling vertex shader
09-02 17:56:32.182 22084 22174 E Exception: null
09-02 17:56:32.182 22084 22174 E Exception: #ifdef GL_ES
09-02 17:56:32.182 22084 22174 E Exception: #ifdef GL_FRAGMENT_PRECISION_HIGH
09-02 17:56:32.182 22084 22174 E Exception: precision highp float;
09-02 17:56:32.182 22084 22174 E Exception: #else
09-02 17:56:32.182 22084 22174 E Exception: precision mediump float;
09-02 17:56:32.182 22084 22174 E Exception: #endif
09-02 17:56:32.182 22084 22174 E Exception: #endif
09-02 17:56:32.182 22084 22174 E Exception: attribute float openfl_Alpha;
09-02 17:56:32.182 22084 22174 E Exception: attribute vec4 openfl_ColorMultiplier;
09-02 17:56:32.182 22084 22174 E Exception: attribute vec4 openfl_ColorOffset;
09-02 17:56:32.182 22084 22174 E Exception: attribute vec4 openfl_Position;
09-02 17:56:32.182 22084 22174 E Exception: attribute vec2 openfl_TextureCoord;
09-02 17:56:32.182 22084 22174 E Exception:
09-02 17:56:32.182 22084 22174 E Exception: varying float openfl_Alphav;
09-02 17:56:32.182 22084 22174 E Exception: varying vec4 openfl_ColorMultiplierv;
09-02 17:56:32.182 22084 22174 E Exception: varying vec4 openfl_ColorOffsetv;
09-02 17:56:32.182 22084 22174 E Exception: varying vec2 openfl_TextureCoordv;
09-02 17:56:32.182 22084 22174 E Exception:
09-02 17:56:32.182 22084 22174 E Exception: uniform mat4 openfl_Matrix;
09-02 17:56:32.182 22084 22174 E Exception: uniform bool openfl_HasColorTransform;
09-02 17:56:32.182 22084 22174 E Exception: uniform vec2 openfl_TextureSize;
09-02 17:56:32.182 22084 22174 E Exception:
09-02 17:56:32.182 22084 22174 E Exception: void main(void) {
09-02 17:56:32.182 22084 22174 E Exception:
09-02 17:56:32.182 22084 22174 E Exception: openfl_Alphav = openfl_Alpha;
09-02 17:56:32.182 22084 22174 E Exception: openfl_TextureCoordv = openfl_TextureCoord;
09-02 17:56:32.182 22084 22174 E Exception:
09-02 17:56:32.182 22084 22174 E Exception: if (openfl_HasColorTransform) {
09-02 17:56:32.182 22084 22174 E Exception:
09-02 17:56:32.182 22084 22174 E Exception: openfl_ColorMultiplierv = openfl_ColorMultiplier;
09-02 17:56:32.182 22084 22174 E Exception: openfl_ColorOffsetv = openfl_ColorOffset / 255.0;
09-02 17:56:32.182 22084 22174 E Exception:
09-02 17:56:32.182 22084 22174 E Exception: }
09-02 17:56:32.182 22084 22174 E Exception:
09-02 17:56:32.182 22084 22174 E Exception: gl_Position = openfl_Matrix * openfl_Position;
09-02 17:56:32.182 22084 22174 E Exception:
09-02 17:56:32.182 22084 22174 E Exception: }

I wonder if GL is available at all when this occurs

I am testing consistently on the same android device. And the crash happens at random but when it occurs it is always at startup. Are you suggesting Android does not always allow apps to use GL based on available system resources or something?

(I have also seen this crash happen on other devices. And it seems to be fixed after upgrading to the newer haxelibs. Though I do sometimes get a partially black screen when resizing/rotating or minimizing and then returning, but that might be haxeui related.)

I guess currently this is basically fixed by upgrading to the latest versions and haxe4rc4. But that breaks unifill unicode and alivepdf for me.

What about the latest + Haxe 3?

The latest lime & openfl require Haxe4rc4. Otherwise this error occurs:

I’m going to look tonight but you can paste the 32-bit NDLLs into the 64-bit folder as a workaround

Thanks. Though I forgot about the other issue where after a clean build, the build just hangs. But DisplayingABitmap works, so I’ll try recreating the project again tomorrow.

Running process: C:\Trunk\programs\flashdevelop\Tools\fdbuild\fdbuild.exe "C:\XXX\openfl.hxproj" -ipc 51a1d49f-d1d0-445d-9908-66c49e9eef97 -version "3.4.7" -compiler "C:\Trunk\dev\HaxeToolkit\haxe" -library "C:\Trunk\programs\flashdevelop\Library" -target "android"
Building openfl
Running Pre-Build Command Line...
cmd: "C:\Trunk\dev\HaxeToolkit\haxe/haxelib" run lime build "application.xml" android -debug -Dfdb

It would be much appreciated if we could use the latest openfl & lime haxelibs without being forced to haxe 4, as that has some other issues.

Also I just encountered a black screen on startup again. Was unable to reproduce and I’m not sure if it was GL related.

I am currently able to get a consistent black screen when returning from taking a native camera picture. I think this was working under Haxe 3.4.7, so it may be a non-issue for me after I get Haxe 3.4.7. up and running again.
It’s at least not the same as the crash described above.

2019-09-09 23:10:15.372 2825-2850/? V/WindowManager: *** APP TRANSITION TIMEOUT. isTransitionSet()=true mOpeningApps.size()=1 mClosingApps.size()=2
2019-09-09 23:10:15.372 2825-2850/? V/WindowManager: * AppWindowToken{1c850ee token=Token{2534a31 ActivityRecord{7d7e6d8 u0 PACKAGENAME/.MainActivity t181}}}, allDrawn=false
2019-09-09 23:10:15.376 2825-2850/? V/WindowManager: Checking 1 opening apps (frozen=false timeout=true)...
2019-09-09 23:10:15.377 2825-2850/? W/WindowManager: windows=[Window{ecd2ab4 u0 PACKAGENAME/PACKAGENAME.MainActivity}]
windowType=2 hidden=true hasVisible=true
willBeHideSViewCoverOnce=false disableHideSViewCoverOnce=false
waitingToShow=true sendingToBottom=falseapp=true mVoiceInteraction=false
task={taskId=181 appTokens=[AppWindowToken{1c850ee token=Token{2534a31 ActivityRecord{7d7e6d8 u0 PACKAGENAME/.MainActivity t181}}}, AppWindowToken{4b89b6f token=Token{532de4e ActivityRecord{5f8f549 u0 com.sec.android.app.camera/.Camera t181}}}, AppWindowToken{f05d30d token=Token{1741037 ActivityRecord{3e38936 u0 com.sec.android.app.camera/.AttachActivity t181}}}] mdr=false}
 mFillsParent=true mOrientation=-1
hiddenRequested=false mClientHidden=false reportedDrawn=false reportedVisible=false
mNumInterestingWindows=1 mNumDrawnWindows=0 inPendingTransaction=true allDrawn=false (animator=false)
inPendingTransaction=true
startingData=null removed=false firstWindowDrawn=true mIsExiting=false
controller=AppWindowContainerController{ token=Token{2534a31 ActivityRecord{7d7e6d8 u0 PACKAGENAME/.MainActivity t181}} mContainer=AppWindowToken{1c850ee token=Token{2534a31 ActivityRecord{7d7e6d8 u0 PACKAGENAME/.MainActivity t181}}} mListener=ActivityRecord{7d7e6d8 u0 PACKAGENAME/.MainActivity t181}}
  mAppToken=AppWindowToken{1c850ee token=Token{2534a31 ActivityRecord{7d7e6d8 u0 PACKAGENAME/.MainActivity t181}}}
  mAnimator=com.android.server.wm.WindowAnimator@e561aa3
  freezingScreen=false allDrawn=false animLayerAdjustment=0
 startingAnimLayerAdjustment=0
  animating=false
  animation=com.android.server.wm.AppWindowAnimator$DummyAnimation@3d931a0
  mTransit=-1
  mTransitFlags=0
  XForm: {alpha=0.0 matrix=[1.0, 0.0, 0.0][0.0, 1.0, 0.0][0.0, 0.0, 1.0]}
  App Win Anim #0: WindowStateAnimator{f9ae252 PACKAGENAME/PACKAGENAME.MainActivity}

I can confirm the workaround works.

The build hanging was due to something related to custom components in Haxe-ui. I removed the components and can now build and run my app with Haxe 3.4.7, Lime 7.6.2 and Openfl 8.9.4, and unifill-unicode and alivepdf work. This is great.

(The haxeui custom component issue only occured after installing haxe4rc4 on top of haxe347 and then installing haxe347 on top of that, so it’s a non-issue I think.)

Unfortunately I am still randomly getting an inconsistent crash at startup that seems related to GL. It used to be the “error compiling vertex shader”. But now the crash is (not sure if it’s always this exact error):

2019-09-10 10:41:52.770 2458-2458/? D/SurfaceFlinger:   Display[0] configurations (* current):
        * 0: 720x1280, xdpi=294.967010, ydpi=295.562988, refresh=16666666
      numHwLayers=4, flags=00000000
        type   |  handle  | hint | flag | tr | blnd |   format    |     source crop (l,t,r,b)      |          frame         | name 
    -----------+----------+------+------+----+------+-------------+--------------------------------+------------------------+------
           HWC | e70e75c0 | 0000 | 0020 | 00 | 0100 | RGBA_8888   |    0.0,    0.0,  720.0, 1280.0 |    0,    0,  720, 1280 | SurfaceView - PACKAGENAME/PACKAGENAME.MainActivity@4d44d43@0[11900]#0
           HWC | e70e7bc0 | 0000 | 0000 | 00 | 0105 | RGBA_8888   |    0.0,    0.0,  720.0,   48.0 |    0,    0,  720,   48 | PACKAGENAME/PACKAGENAME.MainActivity[11900]#0
           HWC | e6d8b240 | 0000 | 0000 | 00 | 0105 | RGBA_8888   |    0.0,    0.0,  720.0,   48.0 |    0,    0,  720,   48 | StatusBar[3182]#0
     FB TARGET | e70e66c0 | 0000 | 0000 | 00 | 0105 | RGBA_8888   |    0.0,    0.0,  720.0, 1280.0 |    0,    0,
2019-09-10 10:41:52.770 2458-2458/? D/SurfaceFlinger:   720, 1280 | HWC_FRAMEBUFFER_TARGET
2019-09-10 10:41:52.770 2446-2893/? I/Sensors: AccelerometerSensor:setDelayAcc: handle 0, delay 66667000 ns, old_delay 20000000 ns
2019-09-10 10:41:52.771 11900-11927/PACKAGENAME D/libGLESv2: STS_GLApi : DTS, ODTC are not allowed for Package : PACKAGENAME
2019-09-10 10:41:52.773 11900-11900/PACKAGENAME D/SensorManager: unregisterListener :: 0, K2HH Accelerometer,  
2019-09-10 10:41:52.775 11900-11900/PACKAGENAME V/Surface: sf_framedrop debug : 0x4f4c, game : false, logging : 0
    
    --------- beginning of crash
2019-09-10 10:41:52.776 11900-11927/PACKAGENAME A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x44 in tid 11927 (SDLThread), pid 11900 (SDLActivity)
2019-09-10 10:41:52.776 11900-11900/PACKAGENAME D/SurfaceView: surfaceCreated 1 #6 org.libsdl.app.SDLSurface{4d44d43 VFE...... .F...... 0,0-720,1280}
2019-09-10 10:41:52.776 11900-11900/PACKAGENAME V/SDL: surfaceCreated()
2019-09-10 10:41:52.777 11900-11900/PACKAGENAME D/SurfaceView: surfaceChanged (720,1280) 1 #6 org.libsdl.app.SDLSurface{4d44d43 VFE...... .F...... 0,0-720,1280}
2019-09-10 10:41:52.777 11900-11900/PACKAGENAME V/SDL: surfaceChanged()
2019-09-10 10:41:52.777 11900-11900/PACKAGENAME V/SDL: pixel format RGBA_8888
2019-09-10 10:41:52.789 11900-11900/PACKAGENAME V/SDL: Window size: 720x1280
2019-09-10 10:41:52.789 11900-11900/PACKAGENAME V/SDL: Device size: 720x1280
2019-09-10 10:41:52.792 11900-11900/PACKAGENAME D/mali_winsys: EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000,  [720x1280]-format:1
2019-09-10 10:41:52.793 11900-11900/PACKAGENAME V/SDL: nativeResume()
2019-09-10 10:41:52.797 2824-2938/? I/SensorService: createSensorEventConnection package name org.libsdl.app.SDLSurface
2019-09-10 10:41:52.798 2824-2938/? D/SensorService: Calling batch handle==0 flags=0 rate=20000000 timeout== 0
2019-09-10 10:41:52.798 2446-2446/? I/Sensors: AccelerometerSensor:setDelayAcc: handle 0, delay 20000000 ns, old_delay 66667000 ns
2019-09-10 10:41:52.800 11900-11900/PACKAGENAME D/SensorManager: registerListener :: 0, K2HH Accelerometer, 20000, 0,  
2019-09-10 10:41:52.800 2458-3515/? I/SurfaceFlinger: id=377 Removed SurfaceView - PACKAGENAME/PACKAGENAME.MainActivity@4d44d43@0[11900]#0 (2/5)
2019-09-10 10:41:52.800 2458-3515/? I/SurfaceFlinger: id=377 Removed SurfaceView - PACKAGENAME/PACKAGENAME.MainActivity@4d44d43@0[11900]#0 (-2/5)
2019-09-10 10:41:52.801 11900-11900/PACKAGENAME D/SurfaceView: BG destroy() Surface(name=Background for - SurfaceView - PACKAGENAME/PACKAGENAME.MainActivity@4d44d43@0) org.libsdl.app.SDLSurface{4d44d43 VFE...... .F...... 0,0-720,1280}
2019-09-10 10:41:52.801 2458-3515/? I/SurfaceFlinger: id=378 Removed Background for - SurfaceView - PACKAGENAME/PACKAGENAME.MainActivity@4d44d43@0[11900]#0 (0/5)
2019-09-10 10:41:52.802 2458-3515/? I/SurfaceFlinger: id=378 Removed Background for - SurfaceView - PACKAGENAME/PACKAGENAME.MainActivity@4d44d43@0[11900]#0 (-2/5)
2019-09-10 10:41:52.802 2824-2938/? D/WindowManager: finishDrawingWindow: Window{f9baabd u0 PACKAGENAME/PACKAGENAME.MainActivity} mDrawState=HAS_DRAWN
2019-09-10 10:41:52.808 2458-2458/? I/Layer: id=378 onRemoved Background for - SurfaceView - PACKAGENAME/PACKAGENAME.MainActivity@4d44d43@0[11900]#0 
2019-09-10 10:41:52.808 2458-2458/? I/Layer: id=377 onRemoved SurfaceView - PACKAGENAME/PACKAGENAME.MainActivity@4d44d43@0[11900]#0 
2019-09-10 10:41:52.809 2458-2458/? D/SurfaceFlinger:   Display[0] configurations (* current):
        * 0: 720x1280, xdpi=294.967010, ydpi=295.562988, refresh=16666666
      numHwLayers=3, flags=00000000
        type   |  handle  | hint | flag | tr | blnd |   format    |     source crop (l,t,r,b)      |          frame         | name 
    -----------+----------+------+------+----+------+-------------+--------------------------------+------------------------+------
           HWC | e70e7bc0 | 0000 | 0000 | 00 | 0105 | RGBA_8888   |    0.0,    0.0,  720.0,   48.0 |    0,    0,  720,   48 | PACKAGENAME/PACKAGENAME.MainActivity[11900]#0
           HWC | e6d8b240 | 0000 | 0000 | 00 | 0105 | RGBA_8888   |    0.0,    0.0,  720.0,   48.0 |    0,    0,  720,   48 | StatusBar[3182]#0
     FB TARGET | e70e66c0 | 0000 | 0000 | 00 | 0105 | RGBA_8888   |    0.0,    0.0,  720.0, 1280.0 |    0,    0,  720, 1280 | HWC_FRAMEBUFFER_TARGET
2019-09-10 10:41:52.813 2824-2938/? V/WindowManager: Relayout Window{f9baabd u0 PACKAGENAME/PACKAGENAME.MainActivity}: viewVisibility=0 req=720x1280 WM.LayoutParams{(0,0)(fillxfill) sim=#20 ty=1 fl=#1810580 pfl=0x20000 fmt=-3 wanim=0x1030001 vsysui=0x1706 sysuil=true needsMenuKey=2 colorMode=0 naviIconColor=0}
2019-09-10 10:41:52.816 3182-3182/? D/PanelView: setVisibility : 0
2019-09-10 10:41:52.818 3182-3182/? D/PanelView: setVisibility : 4
2019-09-10 10:41:52.827 11900-11900/PACKAGENAME D/ViewRootImpl@16315fd[MainActivity]: Relayout returned: old=[0,0][720,1280] new=[0,0][720,1280] result=0x1 surface={valid=true 3675213824} changed=false
2019-09-10 10:41:52.839 11900-11900/PACKAGENAME D/ViewRootImpl@16315fd[MainActivity]: MSG_RESIZED: frame=Rect(0, 0 - 720, 1280) ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1
2019-09-10 10:41:52.870 3863-3863/? D/io_stats: !@ 179,0 r 86035 3005628 w 13480 624804 d 1680 433288 f 4218 4217 iot 66860 61231 th 51200 0 0 pt 0 inp 1 0 1491.938
2019-09-10 10:41:52.912 2824-2824/? D/CustomFrequencyManagerService: FrequencyrequestList.getNextCStateDisableRequest, index: 1
2019-09-10 10:41:52.913 2824-2824/? D/CustomFrequencyManagerService: releaseDVFSLockLocked : Getting Lock type frm List : DVFS_MIN_LIMIT  frequency : 1144000  uid : 1000  pid : 2824  tag : AMS_RESUME_TAIL@CPU_MIN@46
2019-09-10 10:41:52.924 11939-11939/? I/crash_dump32: obtaining output fd from tombstoned, type: kDebuggerdTombstone
2019-09-10 10:41:52.927 2548-2548/? I//system/bin/tombstoned: received crash request for pid 11900
2019-09-10 10:41:52.929 11939-11939/? I/crash_dump32: performing dump of process 11900 (target tid = 11927)
2019-09-10 10:41:52.930 11939-11939/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2019-09-10 10:41:52.930 11939-11939/? A/DEBUG: Build fingerprint: 'samsung/xcover4ltexx/xcover4lte:8.1.0/M1AJQ/G390FXXU2BRH3:user/release-keys'
2019-09-10 10:41:52.930 11939-11939/? A/DEBUG: Revision: '4'
2019-09-10 10:41:52.930 11939-11939/? A/DEBUG: ABI: 'arm'
2019-09-10 10:41:52.930 11939-11939/? A/DEBUG: pid: 11900, tid: 11927, name: SDLThread  >>> PACKAGENAME <<<
2019-09-10 10:41:52.930 11939-11939/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x44
2019-09-10 10:41:52.930 11939-11939/? A/DEBUG: Cause: null pointer dereference
2019-09-10 10:41:52.930 11939-11939/? A/DEBUG:     r0 00000000  r1 c4d7df14  r2 c4d7df10  r3 0000051d
2019-09-10 10:41:52.930 11939-11939/? A/DEBUG:     r4 00003000  r5 dcc8a838  r6 c4df54c0  r7 00000000
2019-09-10 10:41:52.930 11939-11939/? A/DEBUG:     r8 00000000  r9 00000000  sl c57ed808  fp dccc1708
2019-09-10 10:41:52.930 11939-11939/? A/DEBUG:     ip 000000bb  sp c4d7dec0  lr d363c364  pc d363a5d0  cpsr 400f0010
2019-09-10 10:41:53.411 2523-2778/? I/AudioFlinger: BUFFER TIMEOUT: remove(4097) from active list on thread 0xee403d00
2019-09-10 10:41:53.411 2523-2778/? I/SoundAlive_Interface: [ -274435968 ][ 48000 ]FlushBuffers()
2019-09-10 10:41:53.411 2523-2778/? I/SoundAlive_Core: [ -274435968 ][ 48000 ](interface-API)FlushBuffers()
2019-09-10 10:41:53.411 2523-2778/? D/SoundAlive_Core: [ -274435968 ][ 48000 ](internal-API)ReOpen( ConfigMode : 1 )
2019-09-10 10:41:53.411 2523-2778/? I/SoundAlive_Effect: [ -274435968 ][ 48000 ]Init() nch : 2  bitdepth : 0 
2019-09-10 10:41:53.411 2523-2778/? I/SoundAlive_Effect: [ -274435968 ][ 48000 ]SamplingRateConfig() SamplingRate : 48000
2019-09-10 10:41:53.411 2523-2778/? I/SoundAlive_Effect: [ -274435968 ][ 48000 ]OutDevConfig() OutDevConfig : 1
2019-09-10 10:41:53.411 2523-2778/? D/SoundAlive_Core: [ -274435968 ][ 48000 ](internal-API)Set_Current_Effect_Configuration( ConfigMode : 1 )
2019-09-10 10:41:53.411 2523-2778/? I/SoundAlive_Effect: [ -274435968 ][ 48000 ]Set_Preset() : 0
2019-09-10 10:41:53.411 2523-2778/? I/SoundAlive_Effect: [ -274435968 ][ 48000 ]Set_User_BWE() 0
2019-09-10 10:41:53.411 2523-2778/? I/SoundAlive_Effect: [ -274435968 ][ 48000 ]Set_User_CH() : 0
2019-09-10 10:41:53.411 2523-2778/? I/SoundAlive_Effect: [ -274435968 ][ 48000 ]Set_SquareUI() : 4 , 4
2019-09-10 10:41:53.411 2523-2778/? I/SoundAlive_Effect: [ -274435968 ][ 48000 ]Set_User_3D() : 0
2019-09-10 10:41:53.411 2523-2778/? I/SoundAlive_Effect: [ -274435968 ][ 48000 ]Set_User_BE() : 0
2019-09-10 10:41:53.411 2523-2778/? I/SoundBoosterEffectPlus: SB_reset SoundBooster sessionId(-2102)
2019-09-10 10:41:53.411 2523-2778/? I/SoundBooster7: BuffClear()
2019-09-10 10:41:53.426 2523-2704/? V/APM_AudioPolicyManager: stopOutput() output 21, stream 3, session 225
2019-09-10 10:41:53.426 2523-2704/? V/APM_AudioPolicyManager: setBeaconMute(1) mBeaconMuteRefCount=0 mBeaconPlayingRefCount=0
2019-09-10 10:41:53.426 2523-2704/? V/APM_AudioPolicyManager: getNewOutputDevice() selected device 0
2019-09-10 10:41:53.426 2523-2704/? V/APM_AudioPolicyManager: setOutputDevice() device 0000 delayMs 120
2019-09-10 10:41:53.426 2523-2704/? V/APM_AudioPolicyManager: setOutputDevice() prevDevice 0x0002
2019-09-10 10:41:53.426 2523-2704/? V/APM_AudioPolicyManager: setOutputDevice() setting same device 0x0000 or null device
2019-09-10 10:41:53.426 2523-2704/? V/APM_AudioPolicyManager: selectOutputForMusicEffects selected output 13
2019-09-10 10:41:53.437 2824-2938/? D/CustomFrequencyManagerService: releaseDVFSLockLocked : Getting Lock type frm List : DVFS_MIN_LIMIT  frequency : 1430000  uid : 1000  pid : 2824  tag : APP_LAUNCH@CPU_MIN@7
2019-09-10 10:41:53.471 10423-10423/? D/SADVFSHelper: Either heavy-duty effect is Off or Music playback is not active
2019-09-10 10:41:53.478 2824-2824/? D/PreBindingService: handleMessage : 1
2019-09-10 10:41:53.480 2824-2824/? D/PreBindingService: needToKeepBinding: match not found
2019-09-10 10:41:53.643 11939-11939/? A/DEBUG: backtrace:
2019-09-10 10:41:53.643 11939-11939/? A/DEBUG:     #00 pc 006585d0  /system/vendor/lib/egl/libGLES_mali.so (android_config_interface::get_buffer_physical_dimensions(native_handle const*, int*, int*))
2019-09-10 10:41:53.643 11939-11939/? A/DEBUG:     #01 pc 0065a360  /system/vendor/lib/egl/libGLES_mali.so (get_window_target_buffer(egl_winsys_display*, egl_winsys_surface*, egl_color_buffer**)+824)
2019-09-10 10:41:53.643 11939-11939/? A/DEBUG:     #02 pc 00350290  /system/vendor/lib/egl/libGLES_mali.so (eglp_window_next_render_target+64)
2019-09-10 10:41:53.643 11939-11939/? A/DEBUG:     #03 pc 00350144  /system/vendor/lib/egl/libGLES_mali.so (eglp_first_operation_cb+56)
2019-09-10 10:41:53.643 11939-11939/? A/DEBUG:     #04 pc 003d0468  /system/vendor/lib/egl/libGLES_mali.so (gles_fb_first_operation_cb+48)
2019-09-10 10:41:53.643 11939-11939/? A/DEBUG:     #05 pc 003c83bc  /system/vendor/lib/egl/libGLES_mali.so (glesx_fbp_prepare_to_render+48)
2019-09-10 10:41:53.643 11939-11939/? A/DEBUG:     #06 pc 003cef34  /system/vendor/lib/egl/libGLES_mali.so (gles_fbp_clear+56)
2019-09-10 10:41:53.643 11939-11939/? A/DEBUG:     #07 pc 003cd8cc  /system/vendor/lib/egl/libGLES_mali.so (gles_fb_clear+220)
2019-09-10 10:41:53.643 11939-11939/? A/DEBUG:     #08 pc 010b2964  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/lib/arm/libApplicationMain.so (lime::_internal::backend::native::NativeOpenGLRenderContext_obj::clear(int)+72)
2019-09-10 10:41:53.643 11939-11939/? A/DEBUG:     #09 pc 00511d20  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/lib/arm/libApplicationMain.so (openfl::display3D::Context3D_obj::clear(hx::Null<double>, hx::Null<double>, hx::Null<double>, hx::Null<double>, hx::Null<double>, hx::Null<int>, hx::Null<int>)+1728)
2019-09-10 10:41:53.644 11939-11939/? A/DEBUG:     #10 pc 0105a9c4  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/lib/arm/libApplicationMain.so (openfl::_internal::renderer::context3D::Context3DRenderer_obj::_hx___clear()+908)
2019-09-10 10:41:53.644 11939-11939/? A/DEBUG:     #11 pc 00514794  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/lib/arm/libApplicationMain.so (openfl::display3D::Context3D_obj::drawTriangles(hx::ObjectPtr<openfl::display3D::IndexBuffer3D_obj>, hx::Null<int>, hx::Null<int>)+356)
2019-09-10 10:41:53.644 11939-11939/? A/DEBUG:     #12 pc 008e6f84  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/lib/arm/libApplicationMain.so (openfl::_internal::renderer::context3D::Context3DGraphics_obj::render(hx::ObjectPtr<openfl::display::Graphics_obj>, hx::ObjectPtr<openfl::_internal::renderer::context3D::Context3DRenderer_obj>)+22572)
2019-09-10 10:41:53.644 11939-11939/? A/DEBUG:     #13 pc 0052e71c  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/lib/arm/libApplicationMain.so (openfl::_internal::renderer::context3D::Context3DShape_obj::render(hx::ObjectPtr<openfl::display::DisplayObject_obj>, hx::ObjectPtr<openfl::_internal::renderer::context3D::Context3DRenderer_obj>)+456)
2019-09-10 10:41:53.644 11939-11939/? A/DEBUG:     #14 pc 01061b8c  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/lib/arm/libApplicationMain.so (openfl::_internal::renderer::context3D::Context3DRenderer_obj::_hx___renderDisplayObjectContainer(hx::ObjectPtr<openfl::display::DisplayObjectContainer_obj>)+2332)
2019-09-10 10:41:53.644 11939-11939/? A/DEBUG:     #15 pc 01060d08  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/lib/arm/libApplicationMain.so (openfl::_internal::renderer::context3D::Context3DRenderer_obj::_hx___renderDisplayObject(hx::ObjectPtr<openfl::display::DisplayObject_obj>)+328)
2019-09-10 10:41:53.644 11939-11939/? A/DEBUG:     #16 pc 01061d88  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/lib/arm/libApplicationMain.so (openfl::_internal::renderer::context3D::Context3DRenderer_obj::_hx___renderDisplayObjectContainer(hx::ObjectPtr<openfl::display::DisplayObjectContainer_obj>)+2840)
2019-09-10 10:41:53.644 11939-11939/? A/DEBUG:     #17 pc 01060d08  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/lib/arm/libApplicationMain.so (openfl::_internal::renderer::context3D::Context3DRenderer_obj::_hx___renderDisplayObject(hx::ObjectPtr<openfl::display::DisplayObject_obj>)+328)
2019-09-10 10:41:53.644 11939-11939/? A/DEBUG:     #18 pc 01061d88  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/lib/arm/libApplicationMain.so (openfl::_internal::renderer::context3D::Context3DRenderer_obj::_hx___renderDisplayObjectContainer(hx::ObjectPtr<openfl::display::DisplayObjectContainer_obj>)+2840)
2019-09-10 10:41:53.644 11939-11939/? A/DEBUG:     #19 pc 01060d08  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/lib/arm/libApplicationMain.so (openfl::_internal::renderer::context3D::Context3DRenderer_obj::_hx___renderDisplayObject(hx::ObjectPtr<openfl::display::DisplayObject_obj>)+328)
2019-09-10 10:41:53.644 11939-11939/? A/DEBUG:     #20 pc 01061d88  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/lib/arm/libApplicationMain.so (openfl::_internal::renderer::context3D::Context3DRenderer_obj::_hx___renderDisplayObjectContainer(hx::ObjectPtr<openfl::display::DisplayObjectContainer_obj>)+2840)
2019-09-10 10:41:53.644 11939-11939/? A/DEBUG:     #21 pc 01060d08  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/lib/arm/libApplicationMain.so (openfl::_internal::renderer::context3D::Context3DRenderer_obj::_hx___renderDisplayObject(hx::ObjectPtr<openfl::display::DisplayObject_obj>)+328)
2019-09-10 10:41:53.644 11939-11939/? A/DEBUG:     #22 pc 0105f088  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/lib/arm/libApplicationMain.so (openfl::_internal::renderer::context3D::Context3DRenderer_obj::_hx___render(Dynamic)+1324)
2019-09-10 10:41:53.644 11939-11939/? A/DEBUG:     #23 pc 0077e848  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/lib/arm/libApplicationMain.so (openfl::display::Stage_obj::_hx___onLimeRender(hx::ObjectPtr<lime::graphics::RenderContext_obj>)+1952)
2019-09-10 10:41:53.644 11939-11939/? A/DEBUG:     #24 pc 0077eafc  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/lib/arm/libApplicationMain.so (openfl::display::__Stage_obj_hx___onLimeRender(hx::Object*, Dynamic const&)+52)
2019-09-10 10:41:53.644 11939-11939/? A/DEBUG:     #25 pc 0129d2a0  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/lib/arm/libApplicationMain.so (hx::CMemberFunction1::__run(Dynamic const&)+64)
2019-09-10 10:41:53.644 11939-11939/? A/DEBUG:     #26 pc 00107efc  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/lib/arm/libApplicationMain.so (Dynamic::operator()(Dynamic const&)+72)
2019-09-10 10:41:53.644 11939-11939/? A/DEBUG:     #27 pc 0015b66c  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/lib/arm/libApplicationMain.so (lime::app::_Event_lime_graphics_RenderContext_Void_obj::dispatch(hx::ObjectPtr<lime::graphics::RenderContext_obj>)+236)
2019-09-10 10:41:53.644 11939-11939/? A/DEBUG:     #28 pc 011440cc  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/lib/arm/libApplicationMain.so (lime::_internal::backend::native::NativeApplication_obj::handleRenderEvent()+468)
2019-09-10 10:41:53.644 11939-11939/? A/DEBUG:     #29 pc 01144560  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/lib/arm/libApplicationMain.so (lime::_internal::backend::native::__NativeApplication_objhandleRenderEvent(hx::Object*)+20)
2019-09-10 10:41:53.644 11939-11939/? A/DEBUG:     #30 pc 0129cca4  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/lib/arm/libApplicationMain.so (hx::CMemberFunction0::__run()+56)
2019-09-10 10:41:53.644 11939-11939/? A/DEBUG:     #31 pc 012909f4  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/lib/arm/libApplicationMain.so (val_call0+56)
2019-09-10 10:41:53.644 11939-11939/? A/DEBUG:     #32 pc 000cc630  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/lib/arm/liblime.so
2019-09-10 10:41:53.644 11939-11939/? A/DEBUG:     #33 pc 000cc700  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/lib/arm/liblime.so
2019-09-10 10:41:53.645 11939-11939/? A/DEBUG:     #34 pc 000c9a8c  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/lib/arm/liblime.so
2019-09-10 10:41:53.645 11939-11939/? A/DEBUG:     #35 pc 01142490  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/lib/arm/libApplicationMain.so (lime::_internal::backend::native::NativeApplication_obj::exec()+1460)
2019-09-10 10:41:53.645 11939-11939/? A/DEBUG:     #36 pc 00475660  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/lib/arm/libApplicationMain.so (lime::app::Application_obj::exec()+116)
2019-09-10 10:41:53.645 11939-11939/? A/DEBUG:     #37 pc 0099cfec  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/lib/arm/libApplicationMain.so (ApplicationMain_obj::create(Dynamic)+5672)
2019-09-10 10:41:53.645 11939-11939/? A/DEBUG:     #38 pc 0099b2a8  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/lib/arm/libApplicationMain.so (ApplicationMain_obj::main()+156)
2019-09-10 10:41:53.645 11939-11939/? A/DEBUG:     #39 pc 0126acac  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/lib/arm/libApplicationMain.so (__hxcpp_main+32)
2019-09-10 10:41:53.645 11939-11939/? A/DEBUG:     #40 pc 0126ab48  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/lib/arm/libApplicationMain.so (hxcpp_main+40)
2019-09-10 10:41:53.645 11939-11939/? A/DEBUG:     #41 pc 00462220  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/lib/arm/liblime.so (Java_org_libsdl_app_SDLActivity_nativeRunMain+512)
2019-09-10 10:41:53.645 11939-11939/? A/DEBUG:     #42 pc 00006ea9  /data/app/PACKAGENAME-vyAQAoEerCezS5jjDnDA0g==/oat/arm/base.odex (offset 0x6000)
2019-09-10 10:41:54.472 10423-10423/? D/SADVFSHelper: Either heavy-duty effect is Off or Music playback is not active
2019-09-10 10:41:54.693 2824-3273/? E/Watchdog: !@Sync 49 [2019-09-10 10:41:54.693]
2019-09-10 10:41:55.118 2548-2548/? E//system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_01
2019-09-10 10:41:55.122 2824-11940/? W/ActivityManager: crash : PACKAGENAME,0
2019-09-10 10:41:55.129 2824-11940/? W/ActivityManager:   Force finishing activity PACKAGENAME/.MainActivity
2019-09-10 10:41:55.130 2824-2843/? I/BootReceiver: Copying /data/tombstones/tombstone_01 to DropBox (SYSTEM_TOMBSTONE)
2019-09-10 10:41:55.132 2504-2504/? E/audit: type=1701 audit(1568104915.129:191): auid=4294967295 uid=10275 gid=10275 ses=4294967295 subj=u:r:untrusted_app:s0:c512,c768 pid=11927 comm="SDLThread" exe="/system/bin/app_process32" sig=11
2019-09-10 10:41:55.140 2824-11940/? W/MultiScreenManagerService: moveTaskBackToDisplayIfNeeded(): root activity or app is null, task=TaskRecord{2127475 #14 A=PACKAGENAME U=0 StackId=1 sz=1}, rootActivity=null
2019-09-10 10:41:55.141 2824-2824/? D/MdnieScenarioControlService: Listener Real Multi Window State : true
2019-09-10 10:41:55.149 2824-2890/? W/Choreographer: Frame time is 16.10378 ms in the future!  Check that graphics HAL is generating vsync timestamps using the correct timebase.

Currently I get this about 1 out of 30 times. But of course the sales team seems to get the error about 1/2. But it beats not having unicode and no pdf support and not being allowed in the playstore…

I certainly do hope a fix is possible. I will currently try to workaround some ui related issues because of a deadline tonight. I’ll try creating a minimal test case later.

I wonder if nativeResume is the last thing called – perhaps being called before the SDL Window has been created?