Android 4.1.2 EGL_BAD_MATCH

Fuse version 0.31.2 (build 9180)
Copyright © 2016 Fusetools

Here the code to reproduce :

<App>
  <Text ux:Class="Light" Color="#fff" TextAlignment="Center" TextWrapping="Wrap"/>
  <Light>You must have received your code by email. Just enter it and you'll be ready !</Light>            
</App>

Here the error :

E/libEGL  ( 6601): eglMakeCurrent:534 error 3009 (EGL_BAD_MATCH)
W/demo    ( 6601): GLHelper::MakeCurrent: Unable to make EGL context current:12297
F/libc    ( 6601): Fatal signal 11 (SIGSEGV) at 0xdeadcab1 (code=1), thread 6631 (com.apps.demo)
I/DEBUG   (  101): pid: 6601, tid: 6631, name: com.apps.demo  >>> com.apps.demo <<<
I/DEBUG   (  101): !@dumpstate -k -t -z -d -o /data/log/dumpstate_app_native -m 6601
I/ActivityManager(  328): Process com.apps.demo (pid 6601) has died.
W/InputMethodManagerService(  328): Got RemoteException sending setActive(false) notification to pid 6601 uid 10127
D/Zygote  (  110): Process 6601 terminated by signal (11)
Process com.apps.demo terminated.

Android Version : 4.1.2
Model Name: SAMSUNG GT-P3110

Actually a simple

<App>
  <Text TextWrapping="Wrap">
  A very long text here will crash the application if characters don't fit the screen
  </Text>            
</App>

Will crash as above !

My workaround

<App>
  <NativeViewHost>
    <Text TextWrapping="Wrap">
      A very long text here will crash the application if characters don't fit the screen
    </Text>  
  </NativeViewHost>          
</App>

That’s weird. Perhaps it’s becuase you’re using Text at the root level, it’s not something we’ve likely ever tested. It should work, but there are some special layout rules at that level.

I’ll enter an issue to check it out.

It occurs on old android version when text is too long … On my Samsung S4 (Android 5.0.1) it’ ok, on version 4.2.1 and below => Error

Also, I gave you a sample … my App don’t have text on root level, but inside some Panels

I can’t find that sample with text inside some panels?

Does the following also crash?

<App>
  <Panel>
    <Text TextWrapping="Wrap">
      A very long text here will crash the application if characters don't fit the screen
    </Text>  
  </Panel>          
</App>

Yes !

Just create a new app with only this MainView.ux

<App>
  <Panel>
    <Text TextWrapping="Wrap">
      A very long text here will crash the application if characters don't fit the screen
    </Text>  
  </Panel>          
</App>

On android 4.2.1

V/InputMethodManager(13826): Starting input: Bind result=InputBindResult{null com.cootek.smartinputv5.oem/com.cootek.smartinput5.TouchPalIME #124}
D/skia    (13826): Flag is not 10
E/libEGL  (13826): eglMakeCurrent:593 error 3009 (EGL_BAD_MATCH)
W/tes     (13826): GLHelper::MakeCurrent: Unable to make EGL context current:12297
F/libc    (13826): Fatal signal 11 (SIGSEGV) at 0xdeadcab1 (code=1), thread 13900 (com.apps.tes)

Thanks for the additional info! I’ll pass it on to the ones who’ll investigate this.