Android app crash in emulator but working on real phone/tablet

Each time I try to test my android app into an ADB emulator, the app is crashing. On my phone or tablet it is working fine though…
This is probably linked to one of the haxelib I use (extension-admob, extension-multigames…) but I couldn’t find any relevant error message when running with command “lime test android -debug”

As someone already experienced this issue and find the solution? (this is really annoying not beeing able to test with the emulator as with my phone and tablet I can’t test with different android versions and screen resolutions…)

Ok, now that I can compile in x86 version, I could test with genymotion (rather than adb emulator) and here also, the app crash. But the debug log is more usefull. Here is its output:

E/loader  ( 1642): Could not find primitive NativeCFFI.lime_jni_init_callback__1 in 0x9c42e590
E/HXCPP   ( 1642): Called from DocumentClass::new ApplicationMain.hx line 339
E/HXCPP   ( 1642): Called from Main::new Main.hx line 40
E/HXCPP   ( 1642): Called from Main::initialize Main.hx line 69
E/HXCPP   ( 1642): Called from GameSave::init GameSave.hx line 20
E/HXCPP   ( 1642): Called from openfl.system.Capabilities::get_language openfl/system/Capabilities.hx line 62
E/HXCPP   ( 1642): Called from lime.system._Locale.Locale_Impl_::get_currentLocale lime/system/Locale.hx line 188
E/HXCPP   ( 1642): Called from lime.system._Locale.Locale_Impl_::__init lime/system/Locale.hx line 75
E/Exception( 1642): Null Function Pointer
E/OpenGLRenderer( 1715): Getting MAX_TEXTURE_SIZE from GradienCache
E/OpenGLRenderer( 1715): Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
E/loader  ( 1715): Could not find primitive NativeCFFI.lime_jni_init_callback__1 in 0x9c42e590
E/HXCPP   ( 1715): Called from DocumentClass::new ApplicationMain.hx line 339
E/HXCPP   ( 1715): Called from Main::new Main.hx line 40
E/HXCPP   ( 1715): Called from Main::initialize Main.hx line 69
E/HXCPP   ( 1715): Called from GameSave::init GameSave.hx line 20
E/HXCPP   ( 1715): Called from openfl.system.Capabilities::get_language openfl/system/Capabilities.hx line 62
E/HXCPP   ( 1715): Called from lime.system._Locale.Locale_Impl_::get_currentLocale lime/system/Locale.hx line 188
E/HXCPP   ( 1715): Called from lime.system._Locale.Locale_Impl_::__init lime/system/Locale.hx line 75

So it looks like the issue is lime can’t access the system locale…
Any idea on how to fix this?

Could you try this patch?

Sure. Is it in the git version or would you like me to directly change this line in my JNI.hx file in lime 3.6.0?

Try making the change in your local file (if it’s not too much trouble), and let me know if that’s all there is. We’ll release a patched version soon if that’s the case :slight_smile:

Well that fixed the app crashing issue but now I just have a black screen when the app launch in the emulator…

Have you tried enabling GPU emulation?

Yes GPU emulation is on. Anyway, other apps installed on this adb device (I have phonegap and react-native apps for example) just works fine.

Another strange thing also, if I test the app directly with -debug I have a:
Failure [INSTALL_FAILED_MEDIA_UNAVAILABLE]
whereas without the -debug tag, it install successfully (but now results in a black screen when launched…)
So I have to install it without the -debug flag and test it with -debug afterward… A bit annoying

Ok I tried with genymotion with the patch applied. I had to install google play services as it is not installed by default on genymotion and I saw a message complaining about an issue related with googleplay before the app crash.
Now, with google play service installed, the app is still crashing with the same message as before the patch:

Starting: Intent { act=android.intent.action.MAIN cmp=tbdlab.hexfill/.MainActivity }
*:E lime:D Lime:D Main:D GameActivity:D SDLActivity:D GLThread:D trace:D Haxe:D
--------- beginning of /dev/log/system
E/MobileDataStateTracker(  535): default: Ignoring feature request because could not acquire PhoneService
E/MobileDataStateTracker(  535): default: Could not enable APN type "default"
E/NetdConnector(  535): NDC Command {1 bandwidth enable} took too long (656ms)
E/NetdConnector(  535): NDC Command {13 bandwidth setiquota eth0 9223372036854775807} took too long (1339ms)
E/NetdConnector(  535): NDC Command {14 bandwidth setglobalalert 2097152} took too long (1331ms)
E/NetdConnector(  535): NDC Command {15 interface ipv6 eth1 enable} took too long (1001ms)
E/ConnectivityService(  535): startUsingNetworkFeature took too long: 1501ms
E/NetdConnector(  535): NDC Command {23 bandwidth removeiquota eth0} took too long (630ms)
E/NetdConnector(  535): NDC Command {24 resolver setdefaultif eth1} took too long (644ms)
E/NetdConnector(  535): NDC Command {28 bandwidth setiquota eth0 9223372036854775807} took too long (1128ms)
E/NetdConnector(  535): NDC Command {29 resolver setifaceforpid eth0 535} took too long (1100ms)
E/NetdConnector(  535): NDC Command {30 interface route add eth0 default 216.58.204.46 32 0.0.0.0} took too long (795ms)
E/ActivityThread( 1157): Failed to find provider info for com.android.contacts.metadata
E/NetdConnector(  535): NDC Command {34 bandwidth setiquota eth0 9223372036854775807} took too long (733ms)
E/NetdConnector(  535): NDC Command {35 interface route add eth0 default 8.8.4.4 32 0.0.0.0} took too long (735ms)
E/NetdConnector(  535): NDC Command {38 bandwidth setiquota eth0 9223372036854775807} took too long (611ms)
E/NetdConnector(  535): NDC Command {43 bandwidth setiquota eth0 9223372036854775807} took too long (777ms)
E/ActivityThread( 1157): Failed to find provider info for com.google.android.wearable.settings
E/NetdConnector(  535): NDC Command {50 bandwidth removeiquota eth0} took too long (532ms)
E/AndroidRuntime( 1853): FATAL EXCEPTION: main
E/AndroidRuntime( 1853): java.lang.UnsatisfiedLinkError: Couldn't load webp_android from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/com.google.android.maps.jar", zip file "/system/app/GooglePlus.apk"],nativeLibraryDirectories=[/system/lib]]]: findLibrary returned null
E/AndroidRuntime( 1853):        at java.lang.Runtime.loadLibrary(Runtime.java:355)
E/AndroidRuntime( 1853):        at java.lang.System.loadLibrary(System.java:525)
E/AndroidRuntime( 1853):        at bkn.a(ProGuard:30)
E/AndroidRuntime( 1853):        at bkd.<init>(ProGuard:89)
E/AndroidRuntime( 1853):        at bkd.a(ProGuard:261)
E/AndroidRuntime( 1853):        at com.google.android.apps.plus.service.ConnectivityReceiver.onReceive(ProGuard:16)
E/AndroidRuntime( 1853):        at android.app.ActivityThread.handleReceiver(ActivityThread.java:2424)
E/AndroidRuntime( 1853):        at android.app.ActivityThread.access$1500(ActivityThread.java:141)
E/AndroidRuntime( 1853):        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1332)
E/AndroidRuntime( 1853):        at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 1853):        at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 1853):        at android.app.ActivityThread.main(ActivityThread.java:5103)
E/AndroidRuntime( 1853):        at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1853):        at java.lang.reflect.Method.invoke(Method.java:525)
E/AndroidRuntime( 1853):        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
E/AndroidRuntime( 1853):        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
E/AndroidRuntime( 1853):        at dalvik.system.NativeStart.main(Native Method)
E/ConnectivityService(  535): Carrier Provisioning Urls file not found
E/AndroidRuntime( 2026): FATAL EXCEPTION: main
E/AndroidRuntime( 2026): java.lang.UnsatisfiedLinkError: Couldn't load webp_android from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/com.google.android.maps.jar", zip file "/system/app/GooglePlus.apk"],nativeLibraryDirectories=[/system/lib]]]: findLibrary returned null
E/AndroidRuntime( 2026):        at java.lang.Runtime.loadLibrary(Runtime.java:355)
E/AndroidRuntime( 2026):        at java.lang.System.loadLibrary(System.java:525)
E/AndroidRuntime( 2026):        at bkn.a(ProGuard:30)
E/AndroidRuntime( 2026):        at bkd.<init>(ProGuard:89)
E/AndroidRuntime( 2026):        at bkd.a(ProGuard:261)
E/AndroidRuntime( 2026):        at com.google.android.apps.plus.service.ConnectivityReceiver.onReceive(ProGuard:16)
E/AndroidRuntime( 2026):        at android.app.ActivityThread.handleReceiver(ActivityThread.java:2424)
E/AndroidRuntime( 2026):        at android.app.ActivityThread.access$1500(ActivityThread.java:141)
E/AndroidRuntime( 2026):        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1332)
E/AndroidRuntime( 2026):        at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 2026):        at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 2026):        at android.app.ActivityThread.main(ActivityThread.java:5103)
E/AndroidRuntime( 2026):        at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2026):        at java.lang.reflect.Method.invoke(Method.java:525)
E/AndroidRuntime( 2026):        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
E/AndroidRuntime( 2026):        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
E/AndroidRuntime( 2026):        at dalvik.system.NativeStart.main(Native Method)
E/ActivityThread( 1157): Failed to find provider info for com.google.android.wearable.settings
E/ActivityThread( 1157): Failed to find provider info for com.android.contacts.metadata
E/ActivityThread( 2458): Failed to find provider info for com.android.contacts.metadata
--------- beginning of /dev/log/main
E/ActivityThread( 2458): Failed to find provider info for com.android.contacts.metadata
E/OpenGLRenderer( 3895): Getting MAX_TEXTURE_SIZE from GradienCache
E/OpenGLRenderer( 3895): Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
E/NetworkScheduler.SR(  849): Invalid parameter app
E/NetworkScheduler.SR(  849): Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
E/Finsky  ( 2776): [1] com.google.android.finsky.wear.bl.a(847): onConnectionFailed: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null, message=null}
E/EarsResultStorage( 3948): Could not load history from file! /data/data/com.google.android.ears/files/HeardResults: open failed: ENOENT (No such file or directory)
E/Finsky  ( 2776): [1] com.google.android.finsky.wear.bl.a(847): onConnectionFailed: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null, message=null}
E/OpenGLRenderer( 4018): Getting MAX_TEXTURE_SIZE from GradienCache
E/OpenGLRenderer( 4018): Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
E/loader  ( 4018): Could not find primitive NativeCFFI.lime_jni_init_callback__1 in 0x9c46a590
E/HXCPP   ( 4018): Called from DocumentClass::new ApplicationMain.hx line 339
E/HXCPP   ( 4018): Called from Main::new Main.hx line 40
E/HXCPP   ( 4018): Called from Main::initialize Main.hx line 69
E/HXCPP   ( 4018): Called from GameSave::init GameSave.hx line 20
E/HXCPP   ( 4018): Called from openfl.system.Capabilities::get_language openfl/system/Capabilities.hx line 62
E/HXCPP   ( 4018): Called from lime.system._Locale.Locale_Impl_::get_currentLocale lime/system/Locale.hx line 188
E/HXCPP   ( 4018): Called from lime.system._Locale.Locale_Impl_::__init lime/system/Locale.hx line 75
E/Exception( 4018): Null Function Pointer
E/InputDispatcher(  535): channel '52919094 tbdlab.hexfill/tbdlab.hexfill.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
E/OpenGLRenderer( 4047): Getting MAX_TEXTURE_SIZE from GradienCache
E/OpenGLRenderer( 4047): Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
E/loader  ( 4047): Could not find primitive NativeCFFI.lime_jni_init_callback__1 in 0x9c46a590
E/HXCPP   ( 4047): Called from DocumentClass::new ApplicationMain.hx line 339
E/HXCPP   ( 4047): Called from Main::new Main.hx line 40
E/HXCPP   ( 4047): Called from Main::initialize Main.hx line 69
E/HXCPP   ( 4047): Called from GameSave::init GameSave.hx line 20
E/HXCPP   ( 4047): Called from openfl.system.Capabilities::get_language openfl/system/Capabilities.hx line 62
E/HXCPP   ( 4047): Called from lime.system._Locale.Locale_Impl_::get_currentLocale lime/system/Locale.hx line 188
E/HXCPP   ( 4047): Called from lime.system._Locale.Locale_Impl_::__init lime/system/Locale.hx line 75
E/Exception( 4047): Null Function Pointer
E/NetworkScheduler.SR(  849): Invalid parameter app
E/NetworkScheduler.SR(  849): Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
E/Drive.UninstallOperation( 2458): Package still installed tbdlab.hexfill
E/NetworkScheduler.SR(  849): Invalid parameter app
E/NetworkScheduler.SR(  849): Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
E/OpenGLRenderer( 4156): Getting MAX_TEXTURE_SIZE from GradienCache
E/OpenGLRenderer( 4156): Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
E/dalvikvm( 4156): Could not find class 'com.google.android.chimera.Activity', referenced from method aat.b
I/trace   ( 4156): AdMob.hx:156: Interstitial event: LOADING (assign AdMob.onInterstitialEvent to get this events and avoid this traces)
E/AppStreamingFragment( 4156): No acceptable module found. Local version is 0 and remote version is 0.
E/dalvikvm( 4207): Could not find class 'jbq', referenced from method jbm.a
E/dalvikvm( 4207): Could not find class 'jbp', referenced from method jbm.a
E/dalvikvm( 4207): Could not find class 'javax.net.ssl.SNIHostName', referenced from method com.google.android.gms.org.conscrypt.Platform.getSSLParameters
E/dalvikvm( 4207): Could not find class 'javax.net.ssl.SNIServerName', referenced from method com.google.android.gms.org.conscrypt.Platform.setSSLParameters
E/dalvikvm( 4207): Could not find class 'com.google.android.gms.org.conscrypt.OpenSSLExtendedSessionImpl', referenced from method com.google.android.gms.org.conscrypt.Platform.wrapSSLSession
E/dalvikvm( 4207): Could not find class 'com.google.android.gms.org.conscrypt.OpenSSLExtendedSessionImpl', referenced from method com.google.android.gms.org.conscrypt.SSLParametersImpl.getSessionToReuse
E/dalvikvm( 4207): Could not find class 'iua', referenced from method itz.a
E/Drm     (  145): Failed to open plugin directory /vendor/lib/mediadrm
E/SQLiteLog( 2458): (1) no such table: CacheGroups
E/SQLiteLog( 2458): (1) no such table: Caches
E/SQLiteLog( 2458): (1) no such table: Origins
E/SQLiteLog( 2458): (1) no such table: DeletedCacheResources
E/InputDispatcher(  535): channel '528ef5f0 com.android.launcher/com.android.launcher2.Launcher (server)' ~ Channel is unrecoverably broken and will be disposed!
E/OpenGLRenderer( 4300): Getting MAX_TEXTURE_SIZE from GradienCache
E/OpenGLRenderer( 4300): Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
E/dalvikvm( 4334): Could not find class 'jbq', referenced from method jbm.a
E/dalvikvm( 4334): Could not find class 'jbp', referenced from method jbm.a
E/dalvikvm( 4334): Could not find class 'javax.net.ssl.SNIHostName', referenced from method com.google.android.gms.org.conscrypt.Platform.getSSLParameters
E/dalvikvm( 4334): Could not find class 'javax.net.ssl.SNIServerName', referenced from method com.google.android.gms.org.conscrypt.Platform.setSSLParameters
E/dalvikvm( 4334): Could not find class 'com.google.android.gms.org.conscrypt.OpenSSLExtendedSessionImpl', referenced from method com.google.android.gms.org.conscrypt.Platform.wrapSSLSession
E/dalvikvm( 4321): Could not find class 'com.google.android.finsky.hygiene.HygieneJobService', referenced from method com.google.android.finsky.dailyhygiene.DailyHygiene.a
E/dalvikvm( 4321): Could not find class 'com.google.android.finsky.services.MaintenanceWindowJobService', referenced from method com.google.android.finsky.dailyhygiene.DailyHygiene.g
E/dalvikvm( 4334): Could not find class 'com.google.android.gms.org.conscrypt.OpenSSLExtendedSessionImpl', referenced from method com.google.android.gms.org.conscrypt.SSLParametersImpl.getSessionToReuse
E/dalvikvm( 4374): Could not find class 'jbq', referenced from method jbm.a
E/dalvikvm( 4374): Could not find class 'jbp', referenced from method jbm.a
E/dalvikvm( 4402): Could not find class 'jbq', referenced from method jbm.a
E/dalvikvm( 4402): Could not find class 'jbp', referenced from method jbm.a
E/dalvikvm( 4374): Could not find class 'javax.net.ssl.SNIHostName', referenced from method com.google.android.gms.org.conscrypt.Platform.getSSLParameters
E/dalvikvm( 4374): Could not find class 'javax.net.ssl.SNIServerName', referenced from method com.google.android.gms.org.conscrypt.Platform.setSSLParameters
E/dalvikvm( 4374): Could not find class 'com.google.android.gms.org.conscrypt.OpenSSLExtendedSessionImpl', referenced from method com.google.android.gms.org.conscrypt.Platform.wrapSSLSession
E/dalvikvm( 4334): Could not find class 'android.app.job.JobScheduler', referenced from method oyr.a
E/dalvikvm( 4402): Could not find class 'javax.net.ssl.SNIHostName', referenced from method com.google.android.gms.org.conscrypt.Platform.getSSLParameters
E/dalvikvm( 4402): Could not find class 'javax.net.ssl.SNIServerName', referenced from method com.google.android.gms.org.conscrypt.Platform.setSSLParameters
E/dalvikvm( 4402): Could not find class 'com.google.android.gms.org.conscrypt.OpenSSLExtendedSessionImpl', referenced from method com.google.android.gms.org.conscrypt.Platform.wrapSSLSession
E/dalvikvm( 4374): Could not find class 'com.google.android.gms.org.conscrypt.OpenSSLExtendedSessionImpl', referenced from method com.google.android.gms.org.conscrypt.SSLParametersImpl.getSessionToReuse
E/dalvikvm( 4402): Could not find class 'com.google.android.gms.org.conscrypt.OpenSSLExtendedSessionImpl', referenced from method com.google.android.gms.org.conscrypt.SSLParametersImpl.getSessionToReuse
E/dalvikvm( 4334): Could not find class 'android.app.usage.UsageStatsManager', referenced from method oya.a
E/dalvikvm( 4402): Could not find class 'android.telecom.TelecomManager', referenced from method aegc.a
E/dalvikvm( 4402): Could not find class 'iua', referenced from method itz.a
E/dalvikvm( 4402): Could not find class 'agop', referenced from method ahjc.<init>
E/dalvikvm( 4402): Could not find class 'ahgx', referenced from method ahgw.<init>
E/Finsky  ( 4321): [1] com.google.android.finsky.wear.bl.a(847): onConnectionFailed: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null, message=null}
E/dalvikvm( 4402): Could not find class 'jdx', referenced from method jdv.a
E/dalvikvm( 4402): Could not find class 'android.app.usage.UsageStatsManager', referenced from method cgv.j
E/dalvikvm( 4402): Could not find class 'android.net.NetworkRequest$Builder', referenced from method com.google.android.gms.common.stats.GmsCoreStatsChimeraService.onCreate
E/ctxmgr  ( 4402): [TimeFilter.Builder]startTimeMillis must be >= 0.  Clamping to 0.
E/ctxmgr  ( 4402): [FenceManager]Could not remove all geofences. status=Status{statusCode=unknown status code: 1000, resolution=null}
E/BaseAppContext( 4334): Tried to stop global GMSCore RequestQueue. This is likely unintended, so ignoring.
E/dalvikvm( 4525): Could not find class 'jbq', referenced from method jbm.a
E/dalvikvm( 4525): Could not find class 'jbp', referenced from method jbm.a
E/dalvikvm( 4525): Could not find class 'javax.net.ssl.SNIHostName', referenced from method com.google.android.gms.org.conscrypt.Platform.getSSLParameters
E/dalvikvm( 4525): Could not find class 'javax.net.ssl.SNIServerName', referenced from method com.google.android.gms.org.conscrypt.Platform.setSSLParameters
E/dalvikvm( 4525): Could not find class 'com.google.android.gms.org.conscrypt.OpenSSLExtendedSessionImpl', referenced from method com.google.android.gms.org.conscrypt.Platform.wrapSSLSession
E/dalvikvm( 4525): Could not find class 'com.google.android.gms.org.conscrypt.OpenSSLExtendedSessionImpl', referenced from method com.google.android.gms.org.conscrypt.SSLParametersImpl.getSessionToReuse
E/dalvikvm( 4525): Could not find class 'iua', referenced from method itz.a
E/Drm     (  145): Failed to open plugin directory /vendor/lib/mediadrm
E/BaseAppContext( 4402): Tried to stop global GMSCore RequestQueue. This is likely unintended, so ignoring.
E/DataBuffer( 4402): Internal data leak within a DataBuffer object detected!  Be sure to explicitly call release() on all DataBuffer extending objects when you are done with them. (internal object: [email protected])
E/dalvikvm( 4374): Could not find class 'iua', referenced from method itz.a
E/NetworkScheduler.SR( 4334): Invalid parameter app
E/NetworkScheduler.SR( 4334): Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
E/dalvikvm( 4374): Could not find class 'com.google.android.gms.common.permission.PermissionUtils$1', referenced from method com.google.android.gms.chimera.GmsModuleInitializer.initializeModuleV0
E/Drive.UninstallOperation( 4374): Package still installed tbdlab.hexfill
E/DataBuffer( 4402): Internal data leak within a DataBuffer object detected!  Be sure to explicitly call release() on all DataBuffer extending objects when you are done with them. (internal object: [email protected])
E/dalvikvm( 4760): Could not find class 'android.app.Notification$Action$Builder', referenced from method hb.a
E/dalvikvm( 4760): Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method hb.a
E/dalvikvm( 4760): Could not find class 'android.media.MediaDescription$Builder', referenced from method hb.a
E/dalvikvm( 4760): Could not find class 'android.view.accessibility.AccessibilityNodeInfo$AccessibilityAction', referenced from method hb.a
E/dalvikvm( 4760): Could not find class 'android.media.session.MediaController', referenced from method hb.a
E/dalvikvm( 4760): Could not find class 'android.transition.Transition', referenced from method hb.a
E/dalvikvm( 4760): Could not find class 'android.transition.Transition', referenced from method hb.a
E/dalvikvm( 4760): Could not find class 'android.transition.Transition', referenced from method hb.a
E/dalvikvm( 4760): Could not find class 'mh', referenced from method hb.a
E/dalvikvm( 4760): Could not find class 'android.app.Notification$Action$Builder', referenced from method hb.a
E/dalvikvm( 4760): Could not find class 'ga', referenced from method hb.a
E/dalvikvm( 4760): Could not find class 'android.transition.Transition', referenced from method hb.a
E/dalvikvm( 4760): Could not find class 'android.transition.Transition', referenced from method hb.a
E/dalvikvm( 4760): Could not find class 'android.app.Notification$MessagingStyle', referenced from method hb.a
E/dalvikvm( 4760): Could not find class 'android.media.MediaDescription$Builder', referenced from method hb.a
E/dalvikvm( 4760): Could not find class 'android.media.MediaDescription$Builder', referenced from method hb.a
E/dalvikvm( 4760): Could not find class 'android.media.MediaDescription$Builder', referenced from method hb.a
E/dalvikvm( 4760): Could not find class 'android.media.MediaDescription', referenced from method hb.a
E/dalvikvm( 4760): Could not find class 'android.transition.Transition', referenced from method hb.a
E/dalvikvm( 4760): Could not find class 'android.transition.TransitionSet', referenced from method hb.a
E/dalvikvm( 4760): Could not find class 'android.transition.Transition', referenced from method hb.a
E/dalvikvm( 4760): Could not find class 'android.media.MediaDescription$Builder', referenced from method hb.a
E/dalvikvm( 4760): Could not find class 'android.media.session.MediaController', referenced from method hb.a
E/dalvikvm( 4760): Could not find class 'android.media.session.MediaController', referenced from method hb.a
E/dalvikvm( 4760): Could not find class 'android.transition.Transition', referenced from method hb.a
E/dalvikvm( 4760): Could not find class 'android.transition.Transition', referenced from method hb.a
E/dalvikvm( 4760): Could not find class 'android.media.MediaDescription$Builder', referenced from method hb.a
E/dalvikvm( 4760): Could not find class 'android.transition.Transition', referenced from method hb.a
E/dalvikvm( 4760): Could not find class 'android.app.RemoteInput[]', referenced from method hb.a
E/dalvikvm( 4760): Could not find class 'android.transition.Transition', referenced from method hb.b
E/dalvikvm( 4760): Could not find class 'android.media.MediaDescription$Builder', referenced from method hb.b
E/dalvikvm( 4760): Could not find class 'android.transition.Transition', referenced from method hb.b
E/dalvikvm( 4760): Could not find class 'android.view.accessibility.AccessibilityNodeInfo$AccessibilityAction', referenced from method hb.b
E/dalvikvm( 4760): Could not find class 'android.media.MediaDescription', referenced from method hb.c
E/dalvikvm( 4760): Could not find class 'android.media.MediaDescription$Builder', referenced from method hb.c
E/dalvikvm( 4760): Could not find class 'android.view.accessibility.AccessibilityNodeInfo$CollectionInfo', referenced from method hb.c
E/dalvikvm( 4760): Could not find class 'android.media.MediaDescription', referenced from method hb.d
E/dalvikvm( 4760): Could not find class 'android.view.accessibility.AccessibilityNodeInfo$CollectionItemInfo', referenced from method hb.d
E/dalvikvm( 4760): Could not find class 'android.media.MediaDescription', referenced from method hb.e
E/dalvikvm( 4760): Could not find class 'android.media.MediaDescription', referenced from method hb.f
E/dalvikvm( 4760): Could not find class 'android.media.MediaDescription', referenced from method hb.g
E/dalvikvm( 4760): Could not find class 'android.media.MediaDescription', referenced from method hb.h
E/dalvikvm( 4760): Could not find class 'android.media.MediaDescription', referenced from method hb.i
E/dalvikvm( 4760): Could not find class 'android.media.MediaDescription$Builder', referenced from method hb.j
E/dalvikvm( 4760): Could not find class 'android.media.session.MediaController', referenced from method hb.k
E/dalvikvm( 4760): Could not find class 'android.media.session.MediaController', referenced from method hb.l
E/dalvikvm( 4760): Could not find class 'android.media.session.MediaController', referenced from method hb.m
E/dalvikvm( 4760): Could not find class 'android.media.session.MediaController', referenced from method hb.n
E/dalvikvm( 4760): Could not find class 'android.media.session.MediaController$TransportControls', referenced from method hb.o
E/dalvikvm( 4760): Could not find class 'android.media.session.MediaController$TransportControls', referenced from method hb.p
E/dalvikvm( 4760): Could not find class 'android.media.session.PlaybackState', referenced from method hb.q
E/dalvikvm( 4760): Could not find class 'android.media.session.PlaybackState', referenced from method hb.r
E/dalvikvm( 4760): Could not find class 'android.media.session.PlaybackState', referenced from method hb.s
E/dalvikvm( 4760): Could not find class 'android.media.session.PlaybackState', referenced from method hb.t
E/dalvikvm( 4760): Could not find class 'android.media.session.PlaybackState', referenced from method hb.u
E/dalvikvm( 4760): Could not find class 'android.media.session.PlaybackState', referenced from method hb.v
E/dalvikvm( 4760): Could not find class 'android.media.session.PlaybackState', referenced from method hb.w
E/dalvikvm( 4760): Could not find class 'android.media.session.PlaybackState', referenced from method hb.x
E/dalvikvm( 4760): Could not find class 'android.media.session.PlaybackState', referenced from method hb.y
E/OpenGLRenderer( 4798): Getting MAX_TEXTURE_SIZE from GradienCache
E/OpenGLRenderer( 4798): Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
F/libc    ( 4798): Fatal signal 4 (SIGILL) at 0x97862471 (code=2), thread 4817 (SDLThread)
E/dalvikvm( 4760): Could not find class 'android.media.session.PlaybackState$CustomAction', referenced from method lyk.getAction
E/dalvikvm( 4760): Could not find class 'android.media.session.PlaybackState$CustomAction', referenced from method lyk.getExtras
E/dalvikvm( 4760): Could not find class 'android.media.session.PlaybackState$CustomAction', referenced from method lyk.getIcon
E/dalvikvm( 4760): Could not find class 'android.media.session.PlaybackState$CustomAction', referenced from method lyk.getName
E/dalvikvm( 4760): Could not find class 'android.content.pm.LauncherApps', referenced from method lyk.isWearAppInstalledL
E/dalvikvm( 4760): Could not find class 'android.media.MediaMetadata', referenced from method lyk.writeToParcel
E/Icing   ( 4374): Array storage bad crc 356327659 vs 1642559560
E/Icing   ( 4374): Array storage bad crc 3157343710 vs 0
E/Icing   ( 4374): Array storage bad crc 1649773682 vs 79896109
E/Icing   ( 4374): Trie mmap next failed
E/Icing   ( 4374): Lite index crc check failed: 2880413774 vs 4098069895
E/NetworkScheduler.SR( 4334): Invalid parameter app
E/NetworkScheduler.SR( 4334): Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
E/Corkscrew(  140): unrecognized dwarf lower part encoding: 0xa8
E/BaseAppContext( 4374): Tried to stop global GMSCore RequestQueue. This is likely unintended, so ignoring.
E/dalvikvm( 4867): Could not find class 'android.app.job.JobScheduler', referenced from method bhy.a
E/dalvikvm( 4867): Could not find class 'android.app.job.JobScheduler', referenced from method bhy.b
E/dalvikvm( 4374): Could not find class 'android.app.usage.UsageStatsManager', referenced from method qmn.a
E/IcingInternalCorpora( 4374): Error from reading chunks in suggest model zip file java.io.FileNotFoundException: /: open failed: EISDIR (Is a directory)
E/dalvikvm(  535): JIT code cache full

So to summurize:

Before the patch:

  • app crashing on android adb emulator (but couldn’t track the error as -debug isn’t working correctly)
  • app crashing on genymotion emulator with a Null Function Pointer error related to System Locale

After the patch

  • black screen app on android adb emulator (but couldn’t track the error as -debug isn’t working correctly)
    EDIT: I have a black screen only at first start. If I manually start the installed app, it crash as before the patch…
  • app crashing on genymotion emulator with a Null Function Pointer error related to System Locale

On genymotion with lime 3.5.2 and openfl 3.5.2 app is also crashing with this debug output:

BUILD SUCCESSFUL

Total time: 56.2 secs
/system/bin/sh: can't create C:UsersTomAppDataLocalTemp/temp_7693362: No such file or directory
[100%] /data/local/tmp/HexFill-release.apk
        pkg: /data/local/tmp/HexFill-release.apk
Success
Starting: Intent { act=android.intent.action.MAIN cmp=tbdlab.hexfill/.MainActivity }
*:E lime:D Lime:D Main:D GameActivity:D SDLActivity:D GLThread:D trace:D Haxe:D
--------- beginning of /dev/log/system
E/MobileDataStateTracker(  392): default: Ignoring feature request because could not acquire PhoneService
E/MobileDataStateTracker(  392): default: Could not enable APN type "default"
E/NetdConnector(  392): NDC Command {1 bandwidth enable} took too long (721ms)
E/NetdConnector(  392): NDC Command {22 bandwidth setiquota eth0 9223372036854775807} took too long (2797ms)
E/NetdConnector(  392): NDC Command {23 bandwidth setglobalalert 2097152} took too long (2238ms)
E/NetdConnector(  392): NDC Command {24 bandwidth removeiquota eth0} took too long (507ms)
E/NetdConnector(  392): NDC Command {25 bandwidth setiquota eth0 9223372036854775807} took too long (1036ms)
E/NetdConnector(  392): NDC Command {26 bandwidth setglobalalert 2097152} took too long (888ms)
E/NetdConnector(  392): NDC Command {27 bandwidth removeiquota eth0} took too long (563ms)
E/NetdConnector(  392): NDC Command {29 bandwidth setiquota eth0 9223372036854775807} took too long (625ms)
E/ActivityThread( 1064): Failed to find provider info for com.android.contacts.metadata
E/NetdConnector(  392): NDC Command {32 bandwidth setiquota eth0 9223372036854775807} took too long (510ms)
E/ActivityThread( 1064): Failed to find provider info for com.google.android.wearable.settings
E/ActivityThread( 1064): Failed to find provider info for com.google.android.wearable.settings
--------- beginning of /dev/log/main
E/bt_hci_bdroid( 1533): vendor lib is missing!
E/BluetoothAdapterState( 1533): Error enabling Bluetooth - hardware init failed
E/bt-btif ( 1533): btif_disable_service: Current Services:0x140000
E/BluetoothPbap( 1689):
E/BluetoothPbap( 1689): java.lang.IllegalArgumentException: Service not registered: [email protected]
E/BluetoothPbap( 1689):         at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:926)
E/BluetoothPbap( 1689):         at android.app.ContextImpl.unbindService(ContextImpl.java:1493)
E/BluetoothPbap( 1689):         at android.content.ContextWrapper.unbindService(ContextWrapper.java:508)
E/BluetoothPbap( 1689):         at android.bluetooth.BluetoothPbap$1.onBluetoothStateChange(BluetoothPbap.java:122)
E/BluetoothPbap( 1689):         at android.bluetooth.IBluetoothStateChangeCallback$Stub.onTransact(IBluetoothStateChangeCallback.java:55)
E/BluetoothPbap( 1689):         at android.os.Binder.execTransact(Binder.java:388)
E/BluetoothPbap( 1689):         at dalvik.system.NativeStart.run(Native Method)
E/BluetoothA2dp(  392):
E/BluetoothA2dp(  392): java.lang.IllegalArgumentException: Service not registered: [email protected]
E/BluetoothA2dp(  392):         at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:926)
E/BluetoothA2dp(  392):         at android.app.ContextImpl.unbindService(ContextImpl.java:1493)
E/BluetoothA2dp(  392):         at android.bluetooth.BluetoothA2dp$1.onBluetoothStateChange(BluetoothA2dp.java:121)
E/BluetoothA2dp(  392):         at com.android.server.BluetoothManagerService.sendBluetoothStateCallback(BluetoothManagerService.java:488)
E/BluetoothA2dp(  392):         at com.android.server.BluetoothManagerService.bluetoothStateChangeHandler(BluetoothManagerService.java:1112)
E/BluetoothA2dp(  392):         at com.android.server.BluetoothManagerService.access$2800(BluetoothManagerService.java:48)
E/BluetoothA2dp(  392):         at com.android.server.BluetoothManagerService$BluetoothHandler.handleMessage(BluetoothManagerService.java:855)
E/BluetoothA2dp(  392):         at android.os.Handler.dispatchMessage(Handler.java:99)
E/BluetoothA2dp(  392):         at android.os.Looper.loop(Looper.java:137)
E/BluetoothA2dp(  392):         at android.os.HandlerThread.run(HandlerThread.java:61)
E/BluetoothHeadset(  639):
E/BluetoothHeadset(  639): java.lang.IllegalArgumentException: Service not registered: [email protected]
E/BluetoothHeadset(  639):      at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:926)
E/BluetoothHeadset(  639):      at android.app.ContextImpl.unbindService(ContextImpl.java:1493)
E/BluetoothHeadset(  639):      at android.content.ContextWrapper.unbindService(ContextWrapper.java:508)
E/BluetoothHeadset(  639):      at android.bluetooth.BluetoothHeadset$1.onBluetoothStateChange(BluetoothHeadset.java:234)
E/BluetoothHeadset(  639):      at android.bluetooth.IBluetoothStateChangeCallback$Stub.onTransact(IBluetoothStateChangeCallback.java:55)
E/BluetoothHeadset(  639):      at android.os.Binder.execTransact(Binder.java:388)
E/BluetoothHeadset(  639):      at dalvik.system.NativeStart.run(Native Method)
E/BluetoothHeadset(  392):
E/BluetoothHeadset(  392): java.lang.IllegalArgumentException: Service not registered: [email protected]
E/BluetoothHeadset(  392):      at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:926)
E/BluetoothHeadset(  392):      at android.app.ContextImpl.unbindService(ContextImpl.java:1493)
E/BluetoothHeadset(  392):      at android.bluetooth.BluetoothHeadset$1.onBluetoothStateChange(BluetoothHeadset.java:234)
E/BluetoothHeadset(  392):      at com.android.server.BluetoothManagerService.sendBluetoothStateCallback(BluetoothManagerService.java:488)
E/BluetoothHeadset(  392):      at com.android.server.BluetoothManagerService.bluetoothStateChangeHandler(BluetoothManagerService.java:1112)
E/BluetoothHeadset(  392):      at com.android.server.BluetoothManagerService.access$2800(BluetoothManagerService.java:48)
E/BluetoothHeadset(  392):      at com.android.server.BluetoothManagerService$BluetoothHandler.handleMessage(BluetoothManagerService.java:855)
E/BluetoothHeadset(  392):      at android.os.Handler.dispatchMessage(Handler.java:99)
E/BluetoothHeadset(  392):      at android.os.Looper.loop(Looper.java:137)
E/BluetoothHeadset(  392):      at android.os.HandlerThread.run(HandlerThread.java:61)
E/bt-btif ( 1533): btif_disable_service: Current Services:0x100000
E/bt-btif ( 1533): btif_disable_service: Current Services:0x100000
E/BluetoothHeadset(  639):
E/BluetoothHeadset(  639): java.lang.IllegalArgumentException: Service not registered: [email protected]
E/BluetoothHeadset(  639):      at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:926)
E/BluetoothHeadset(  639):      at android.app.ContextImpl.unbindService(ContextImpl.java:1493)
E/BluetoothHeadset(  639):      at android.content.ContextWrapper.unbindService(ContextWrapper.java:508)
E/BluetoothHeadset(  639):      at android.bluetooth.BluetoothHeadset$1.onBluetoothStateChange(BluetoothHeadset.java:234)
E/BluetoothHeadset(  639):      at android.bluetooth.IBluetoothStateChangeCallback$Stub.onTransact(IBluetoothStateChangeCallback.java:55)
E/BluetoothHeadset(  639):      at android.os.Binder.execTransact(Binder.java:388)
E/BluetoothHeadset(  639):      at dalvik.system.NativeStart.run(Native Method)
E/BluetoothPan( 1689):
E/BluetoothPan( 1689): java.lang.IllegalArgumentException: Service not registered: [email protected]
E/BluetoothPan( 1689):  at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:926)
E/BluetoothPan( 1689):  at android.app.ContextImpl.unbindService(ContextImpl.java:1493)
E/BluetoothPan( 1689):  at android.content.ContextWrapper.unbindService(ContextWrapper.java:508)
E/BluetoothPan( 1689):  at android.bluetooth.BluetoothPan$1.onBluetoothStateChange(BluetoothPan.java:183)
E/BluetoothPan( 1689):  at android.bluetooth.IBluetoothStateChangeCallback$Stub.onTransact(IBluetoothStateChangeCallback.java:55)
E/BluetoothPan( 1689):  at android.os.Binder.execTransact(Binder.java:388)
E/BluetoothPan( 1689):  at dalvik.system.NativeStart.run(Native Method)
E/BluetoothInputDevice( 1689):
E/BluetoothInputDevice( 1689): java.lang.IllegalArgumentException: Service not registered: [email protected]
E/BluetoothInputDevice( 1689):  at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:926)
E/BluetoothInputDevice( 1689):  at android.app.ContextImpl.unbindService(ContextImpl.java:1493)
E/BluetoothInputDevice( 1689):  at android.content.ContextWrapper.unbindService(ContextWrapper.java:508)
E/BluetoothInputDevice( 1689):  at android.bluetooth.BluetoothInputDevice$1.onBluetoothStateChange(BluetoothInputDevice.java:199)
E/BluetoothInputDevice( 1689):  at android.bluetooth.IBluetoothStateChangeCallback$Stub.onTransact(IBluetoothStateChangeCallback.java:55)
E/BluetoothInputDevice( 1689):  at android.os.Binder.execTransact(Binder.java:388)
E/BluetoothInputDevice( 1689):  at dalvik.system.NativeStart.run(Native Method)
E/BluetoothManagerService(  392): recoverBluetoothServiceFromError
E/ConnectivityService(  392): Carrier Provisioning Urls file not found
E/dalvikvm(  972): Could not find class 'android.content.RestrictionsManager', referenced from method com.google.android.finsky.utils.gn.a
E/NetworkScheduler.SR(  625): Invalid parameter app
E/NetworkScheduler.SR(  625): Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
E/Drive.UninstallOperation( 1064): Package still installed com.google.android.googlequicksearchbox
E/dalvikvm( 2304): Could not find class 'com.google.android.apps.gsa.assist.GsaVoiceInteractionSessionService', referenced from method com.google.android.apps.gsa.assist.GsaVoiceInteractionSessionService_MembersInjector.aD
E/dalvikvm( 2304): Could not find class 'com.google.android.apps.gsa.tasks.BackgroundTasksJobService', referenced from method com.google.android.apps.gsa.tasks.r.aD
E/dalvikvm( 2304): Could not find class 'com.google.android.apps.gsa.tasks.VelvetBackgroundTasksJobService', referenced from method com.google.android.apps.gsa.tasks.bk.aD
E/NetworkScheduler.SR(  625): Invalid parameter app
E/NetworkScheduler.SR(  625): Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
E/dalvikvm( 2377): Could not find class 'android.app.job.JobScheduler', referenced from method bhy.a
E/dalvikvm( 2377): Could not find class 'android.app.job.JobScheduler', referenced from method bhy.b
E/dalvikvm( 2304): Could not find class 'android.net.ConnectivityManager$NetworkCallback', referenced from method com.google.android.apps.gsa.staticplugins.au.p.<init>
E/dalvikvm( 2304): Could not find class 'android.net.NetworkRequest$Builder', referenced from method com.google.android.apps.gsa.staticplugins.au.p.hi
E/dalvikvm( 2304): Could not find class 'android.content.pm.LauncherApps', referenced from method com.google.android.apps.gsa.search.shared.multiuser.l.connect
E/GmsClient( 2304): unable to connect to service: com.google.android.gms.speech.service.START on com.google.android.gms
E/SQLiteLog( 2304): (1) no such table: blob_table
E/dalvikvm( 2304): Could not find class 'org.chromium.net.u', referenced from method org.chromium.net.NetworkChangeNotifierAutoDetect.<init>
E/dalvikvm( 2304): Could not find class 'android.media.AudioAttributes$Builder', referenced from method com.google.android.apps.gsa.speech.audio.c.a.<init>
E/dalvikvm( 2304): Could not find class 'android.media.AudioFormat$Builder', referenced from method com.google.android.apps.gsa.speech.audio.d.a.<init>
E/GmsClient( 2304): unable to connect to service: com.google.android.gms.speech.service.START on com.google.android.gms
E/dalvikvm(  392): JIT code cache full
E/dalvikvm( 2518): Could not find class 'jbq', referenced from method jbm.a
E/dalvikvm( 2518): Could not find class 'jbp', referenced from method jbm.a
E/dalvikvm( 2518): Could not find class 'javax.net.ssl.SNIHostName', referenced from method com.google.android.gms.org.conscrypt.Platform.getSSLParameters
E/dalvikvm( 2518): Could not find class 'javax.net.ssl.SNIServerName', referenced from method com.google.android.gms.org.conscrypt.Platform.setSSLParameters
E/dalvikvm( 2518): Could not find class 'com.google.android.gms.org.conscrypt.OpenSSLExtendedSessionImpl', referenced from method com.google.android.gms.org.conscrypt.Platform.wrapSSLSession
E/dalvikvm( 2518): Could not find class 'com.google.android.gms.org.conscrypt.OpenSSLExtendedSessionImpl', referenced from method com.google.android.gms.org.conscrypt.SSLParametersImpl.getSessionToReuse
E/dalvikvm( 2518): Could not find class 'iua', referenced from method itz.a
E/Drm     (  145): Failed to open plugin directory /vendor/lib/mediadrm
E/dalvikvm( 2304): Could not find class 'android.content.pm.LauncherApps', referenced from method com.google.android.apps.gsa.shared.y.b.a.j
E/GmsClient( 2304): unable to connect to service: com.google.android.gms.speech.service.START on com.google.android.gms
E/DataBuffer(  615): Internal data leak within a DataBuffer object detected!  Be sure to explicitly call release() on all DataBuffer extending objects when you are done with them. (internal object: [email protected])
E/DataBuffer(  615): Internal data leak within a DataBuffer object detected!  Be sure to explicitly call release() on all DataBuffer extending objects when you are done with them. (internal object: [email protected])
E/dalvikvm( 2304): Could not find class 'javax.net.ssl.SNIHostName', referenced from method com.google.android.gms.org.conscrypt.Platform.getSSLParameters
E/dalvikvm( 2304): Could not find class 'javax.net.ssl.SNIServerName', referenced from method com.google.android.gms.org.conscrypt.Platform.setSSLParameters
E/dalvikvm( 2304): Could not find class 'com.google.android.gms.org.conscrypt.OpenSSLExtendedSessionImpl', referenced from method com.google.android.gms.org.conscrypt.Platform.wrapSSLSession
E/dalvikvm( 2304): Could not find class 'com.google.android.gms.org.conscrypt.OpenSSLExtendedSessionImpl', referenced from method com.google.android.gms.org.conscrypt.SSLParametersImpl.getSessionToReuse
E/NetworkScheduler.SR(  625): Invalid parameter app
E/NetworkScheduler.SR(  625): Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
E/Drive.UninstallOperation( 1064): Package still installed tbdlab.hexfill
E/NetworkScheduler.SR(  625): Invalid parameter app
E/NetworkScheduler.SR(  625): Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
F/libc    ( 2679): Fatal signal 4 (SIGILL) at 0x97918a84 (code=2), thread 2679 (tbdlab.hexfill)
F/libc    ( 2697): Fatal signal 4 (SIGILL) at 0x97918a84 (code=2), thread 2697 (tbdlab.hexfill)
F/libc    ( 2719): Fatal signal 4 (SIGILL) at 0x97814a84 (code=2), thread 2719 (tbdlab.hexfill)
E/local_gps(  136): Can't send RMC command
E/dalvikvm( 2377): Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method ajs.a
E/dalvikvm( 2377): Could not find class 'eoo', referenced from method com.google.android.gm.ui.GmailDrawerFragment.a
E/OpenGLRenderer( 2377): Getting MAX_TEXTURE_SIZE from GradienCache
E/OpenGLRenderer( 2377): Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
E/dalvikvm( 2760): Could not find class 'jbq', referenced from method jbm.a
E/dalvikvm( 2760): Could not find class 'jbp', referenced from method jbm.a
E/dalvikvm( 2760): Could not find class 'javax.net.ssl.SNIHostName', referenced from method com.google.android.gms.org.conscrypt.Platform.getSSLParameters
E/dalvikvm( 2760): Could not find class 'javax.net.ssl.SNIServerName', referenced from method com.google.android.gms.org.conscrypt.Platform.setSSLParameters
E/dalvikvm( 2760): Could not find class 'com.google.android.gms.org.conscrypt.OpenSSLExtendedSessionImpl', referenced from method com.google.android.gms.org.conscrypt.Platform.wrapSSLSession
E/dalvikvm( 2760): Could not find class 'com.google.android.gms.org.conscrypt.OpenSSLExtendedSessionImpl', referenced from method com.google.android.gms.org.conscrypt.SSLParametersImpl.getSessionToReuse
E/dalvikvm( 2760): Could not find class 'iua', referenced from method itz.a
E/dalvikvm( 2377): Could not find class 'javax.net.ssl.SNIHostName', referenced from method com.google.android.gms.org.conscrypt.Platform.getSSLParameters
E/dalvikvm( 2377): Could not find class 'javax.net.ssl.SNIServerName', referenced from method com.google.android.gms.org.conscrypt.Platform.setSSLParameters
E/dalvikvm( 2377): Could not find class 'com.google.android.gms.org.conscrypt.OpenSSLExtendedSessionImpl', referenced from method com.google.android.gms.org.conscrypt.Platform.wrapSSLSession
E/dalvikvm( 2377): Could not find class 'com.google.android.gms.org.conscrypt.OpenSSLExtendedSessionImpl', referenced from method com.google.android.gms.org.conscrypt.SSLParametersImpl.getSessionToReuse
E/Gmail   ( 2377): null coordinates in ConversationItemView#onDraw
E/DataBuffer( 2377): Internal data leak within a DataBuffer object detected!  Be sure to explicitly call release() on all DataBuffer extending objects when you are done with them. (internal object: [email protected])
E/Gmail   ( 2377): FLF->FolderItem.getFolderView: unread count mismatch found (4 vs 5)
E/Gmail   ( 2377): null coordinates in ConversationItemView#onDraw
E/Gmail   ( 2377): Unable to create folder
E/OpenGLRenderer( 2858): Getting MAX_TEXTURE_SIZE from GradienCache
E/OpenGLRenderer( 2858): Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
E/NetworkScheduler.SR(  625): Invalid parameter app
E/NetworkScheduler.SR(  625): Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
E/Drive.UninstallOperation( 1064): Package still installed tbdlab.hexfill
E/NetworkScheduler.SR(  625): Invalid parameter app
E/NetworkScheduler.SR(  625): Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
F/libc    ( 2943): Fatal signal 4 (SIGILL) at 0x97918a84 (code=2), thread 2943 (tbdlab.hexfill)
F/libc    ( 2963): Fatal signal 4 (SIGILL) at 0x97918a84 (code=2), thread 2963 (tbdlab.hexfill)
F/libc    ( 2981): Fatal signal 4 (SIGILL) at 0x97814a84 (code=2), thread 2981 (tbdlab.hexfill)
E/GmsClient( 2304): unable to connect to service: com.google.android.gms.speech.service.START on com.google.android.gms
E/GmsClient( 2304): unable to connect to service: com.google.android.gms.speech.service.START on com.google.android.gms

I see libc is sending a Fatal Signal but couldn’t trace this back to my app code (and why it is working fine on real android devices and crashing with this error on emulators…)

Would you mind trying a simple OpenFL sample (like “DisplayingABitmap”) and see if it works on your emulator? If we get something working, perhaps we can build up from there and see what causes it to stop working

For example, after confirming that OpenFL samples run, you could add var sprite = new Sprite (); sprite.graphics.beginFill (0xFF0000); sprite.graphics.drawRect (0, 0, 100, 100); addChild (sprite); return; to your entry class, to see if the red square appears. Then it would be possible to add a return a bit further into the code, to see if it can still render after performing some of the additional steps in your project, so on

Yes I will do this.
Already tested piratePigs and it is crashing on the emulator (while running ok on windows or a real android device). So the issue doesn’t seems to be linked to any tier party lib…

OK. I tried with the most simple possible openfl application :

class Main extends Sprite {

public function new () {
	
	super ();
     }

}

and that do not crash in the emulator. (just display a white screen, as expected)

However, as soon as I add a child displayobject, like a bitmap:

class Main extends Sprite {
	
	
	public function new () {
		
		super ();
				
		var bitmapData = Assets.getBitmapData ("assets/checkmark.png");
    var bitmap = new Bitmap (bitmapData);
    addChild (bitmap);

    bitmap.x = 100;
    bitmap.y = 200;
		
	}
}

The app crash in the emulator…

Here is the output I have with -debug:

BUILD SUCCESSFUL

Total time: 50.48 secs
[100%] /data/local/tmp/OpenflTest-debug.apk
        pkg: /data/local/tmp/OpenflTest-debug.apk
Success
Starting: Intent { act=android.intent.action.MAIN cmp=com.sample.openfltest/.MainActivity }
*:E lime:D Lime:D Main:D GameActivity:D SDLActivity:D GLThread:D trace:D Haxe:D
--------- beginning of /dev/log/system
E/Genyd   (   57): recv() error
E/        (   57): Socket read error
E/local_camera(  138): We have a problem with the player connection 0 (Success)
E/local_camera(  137): We have a problem with the player connection 0 (Success)
E/MobileDataStateTracker(  405): default: Ignoring feature request because could not acquire PhoneService
E/MobileDataStateTracker(  405): default: Could not enable APN type "default"
E/NetdConnector(  405): NDC Command {1 bandwidth enable} took too long (638ms)
E/NetdConnector(  405): NDC Command {2 softap fwreload eth1 STA} took too long (555ms)
E/NetdConnector(  405): NDC Command {29 bandwidth setiquota eth0 9223372036854775807} took too long (1286ms)
E/NetdConnector(  405): NDC Command {30 bandwidth setglobalalert 2097152} took too long (1227ms)
E/ActivityThread( 1021): Failed to find provider info for com.android.contacts.metadata
E/ActivityThread( 1021): Failed to find provider info for com.google.android.wearable.settings
E/ActivityThread( 1021): Failed to find provider info for com.google.android.wearable.settings
E/ConnectivityService(  405): Carrier Provisioning Urls file not found
--------- beginning of /dev/log/main
E/dalvikvm( 3870): Could not find class 'javax.net.ssl.SNIHostName', referenced from method com.google.android.gms.org.conscrypt.Platform.getSSLParameters
E/dalvikvm( 3870): Could not find class 'javax.net.ssl.SNIServerName', referenced from method com.google.android.gms.org.conscrypt.Platform.setSSLParameters
E/dalvikvm( 3870): Could not find class 'com.google.android.gms.org.conscrypt.OpenSSLExtendedSessionImpl', referenced from method com.google.android.gms.org.conscrypt.Platform.wrapSSLSession
E/dalvikvm( 3870): Could not find class 'com.google.android.gms.org.conscrypt.OpenSSLExtendedSessionImpl', referenced from method com.google.android.gms.org.conscrypt.SSLParametersImpl.getSessionToReuse
E/dalvikvm(  405): JIT code cache full
E/dalvikvm( 4074): Could not find class 'com.google.android.finsky.hygiene.HygieneJobService', referenced from method com.google.android.finsky.dailyhygiene.DailyHygiene.a
E/dalvikvm( 4074): Could not find class 'com.google.android.finsky.services.MaintenanceWindowJobService', referenced from method com.google.android.finsky.dailyhygiene.DailyHygiene.g
E/Finsky  ( 4074): [1] com.google.android.finsky.wear.bl.a(847): onConnectionFailed: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null, message=null}
E/NetworkScheduler.SR(  711): Invalid parameter app
E/NetworkScheduler.SR(  711): Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
E/Drive.UninstallOperation( 1021): Package still installed org.openfl.samples.piratepig
E/dalvikvm( 4197): Could not find class 'android.app.Notification$Action$Builder', referenced from method hb.a
E/dalvikvm( 4197): Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method hb.a
E/dalvikvm( 4197): Could not find class 'android.media.MediaDescription$Builder', referenced from method hb.a
E/dalvikvm( 4197): Could not find class 'android.view.accessibility.AccessibilityNodeInfo$AccessibilityAction', referenced from method hb.a
E/dalvikvm( 4197): Could not find class 'android.media.session.MediaController', referenced from method hb.a
E/dalvikvm( 4197): Could not find class 'android.transition.Transition', referenced from method hb.a
E/dalvikvm( 4197): Could not find class 'android.transition.Transition', referenced from method hb.a
E/dalvikvm( 4197): Could not find class 'android.transition.Transition', referenced from method hb.a
E/dalvikvm( 4197): Could not find class 'mh', referenced from method hb.a
E/dalvikvm( 4197): Could not find class 'android.app.Notification$Action$Builder', referenced from method hb.a
E/dalvikvm( 4197): Could not find class 'ga', referenced from method hb.a
E/dalvikvm( 4197): Could not find class 'android.transition.Transition', referenced from method hb.a
E/dalvikvm( 4197): Could not find class 'android.transition.Transition', referenced from method hb.a
E/dalvikvm( 4197): Could not find class 'android.app.Notification$MessagingStyle', referenced from method hb.a
E/dalvikvm( 4197): Could not find class 'android.media.MediaDescription$Builder', referenced from method hb.a
E/dalvikvm( 4197): Could not find class 'android.media.MediaDescription$Builder', referenced from method hb.a
E/dalvikvm( 4197): Could not find class 'android.media.MediaDescription$Builder', referenced from method hb.a
E/dalvikvm( 4197): Could not find class 'android.media.MediaDescription', referenced from method hb.a
E/dalvikvm( 4197): Could not find class 'android.transition.Transition', referenced from method hb.a
E/dalvikvm( 4197): Could not find class 'android.transition.TransitionSet', referenced from method hb.a
E/dalvikvm( 4197): Could not find class 'android.transition.Transition', referenced from method hb.a
E/dalvikvm( 4197): Could not find class 'android.media.MediaDescription$Builder', referenced from method hb.a
E/dalvikvm( 4197): Could not find class 'android.media.session.MediaController', referenced from method hb.a
E/dalvikvm( 4197): Could not find class 'android.media.session.MediaController', referenced from method hb.a
E/dalvikvm( 4197): Could not find class 'android.transition.Transition', referenced from method hb.a
E/dalvikvm( 4197): Could not find class 'android.transition.Transition', referenced from method hb.a
E/dalvikvm( 4197): Could not find class 'android.media.MediaDescription$Builder', referenced from method hb.a
E/dalvikvm( 4197): Could not find class 'android.transition.Transition', referenced from method hb.a
E/dalvikvm( 4197): Could not find class 'android.app.RemoteInput[]', referenced from method hb.a
E/dalvikvm( 4197): Could not find class 'android.transition.Transition', referenced from method hb.b
E/dalvikvm( 4197): Could not find class 'android.media.MediaDescription$Builder', referenced from method hb.b
E/dalvikvm( 4197): Could not find class 'android.transition.Transition', referenced from method hb.b
E/dalvikvm( 4197): Could not find class 'android.view.accessibility.AccessibilityNodeInfo$AccessibilityAction', referenced from method hb.b
E/dalvikvm( 4197): Could not find class 'android.media.MediaDescription', referenced from method hb.c
E/dalvikvm( 4197): Could not find class 'android.media.MediaDescription$Builder', referenced from method hb.c
E/dalvikvm( 4197): Could not find class 'android.view.accessibility.AccessibilityNodeInfo$CollectionInfo', referenced from method hb.c
E/dalvikvm( 4197): Could not find class 'android.media.MediaDescription', referenced from method hb.d
E/dalvikvm( 4197): Could not find class 'android.view.accessibility.AccessibilityNodeInfo$CollectionItemInfo', referenced from method hb.d
E/dalvikvm( 4197): Could not find class 'android.media.MediaDescription', referenced from method hb.e
E/dalvikvm( 4197): Could not find class 'android.media.MediaDescription', referenced from method hb.f
E/dalvikvm( 4197): Could not find class 'android.media.MediaDescription', referenced from method hb.g
E/dalvikvm( 4197): Could not find class 'android.media.MediaDescription', referenced from method hb.h
E/dalvikvm( 4197): Could not find class 'android.media.MediaDescription', referenced from method hb.i
E/dalvikvm( 4197): Could not find class 'android.media.MediaDescription$Builder', referenced from method hb.j
E/dalvikvm( 4197): Could not find class 'android.media.session.MediaController', referenced from method hb.k
E/dalvikvm( 4197): Could not find class 'android.media.session.MediaController', referenced from method hb.l
E/dalvikvm( 4197): Could not find class 'android.media.session.MediaController', referenced from method hb.m
E/dalvikvm( 4197): Could not find class 'android.media.session.MediaController', referenced from method hb.n
E/dalvikvm( 4197): Could not find class 'android.media.session.MediaController$TransportControls', referenced from method hb.o
E/dalvikvm( 4197): Could not find class 'android.media.session.MediaController$TransportControls', referenced from method hb.p
E/dalvikvm( 4197): Could not find class 'android.media.session.PlaybackState', referenced from method hb.q
E/dalvikvm( 4197): Could not find class 'android.media.session.PlaybackState', referenced from method hb.r
E/dalvikvm( 4197): Could not find class 'android.media.session.PlaybackState', referenced from method hb.s
E/dalvikvm( 4197): Could not find class 'android.media.session.PlaybackState', referenced from method hb.t
E/dalvikvm( 4197): Could not find class 'android.media.session.PlaybackState', referenced from method hb.u
E/dalvikvm( 4197): Could not find class 'android.media.session.PlaybackState', referenced from method hb.v
E/dalvikvm( 4197): Could not find class 'android.media.session.PlaybackState', referenced from method hb.w
E/dalvikvm( 4197): Could not find class 'android.media.session.PlaybackState', referenced from method hb.x
E/dalvikvm( 4197): Could not find class 'android.media.session.PlaybackState', referenced from method hb.y
E/dalvikvm( 4197): Could not find class 'android.media.session.PlaybackState$CustomAction', referenced from method lyk.getAction
E/dalvikvm( 4197): Could not find class 'android.media.session.PlaybackState$CustomAction', referenced from method lyk.getExtras
E/dalvikvm( 4197): Could not find class 'android.media.session.PlaybackState$CustomAction', referenced from method lyk.getIcon
E/dalvikvm( 4197): Could not find class 'android.media.session.PlaybackState$CustomAction', referenced from method lyk.getName
E/dalvikvm( 4197): Could not find class 'android.content.pm.LauncherApps', referenced from method lyk.isWearAppInstalledL
E/dalvikvm( 4197): Could not find class 'android.media.MediaMetadata', referenced from method lyk.writeToParcel
E/dalvikvm( 4235): Could not find class 'com.google.android.apps.gsa.assist.GsaVoiceInteractionSessionService', referenced from method com.google.android.apps.gsa.assist.GsaVoiceInteractionSessionService_MembersInjector.aD
E/dalvikvm( 4235): Could not find class 'com.google.android.apps.gsa.tasks.BackgroundTasksJobService', referenced from method com.google.android.apps.gsa.tasks.r.aD
E/dalvikvm( 4235): Could not find class 'com.google.android.apps.gsa.tasks.VelvetBackgroundTasksJobService', referenced from method com.google.android.apps.gsa.tasks.bk.aD
E/NetworkScheduler.SR(  711): Invalid parameter app
E/NetworkScheduler.SR(  711): Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
E/OpenGLRenderer( 4262): Getting MAX_TEXTURE_SIZE from GradienCache
E/OpenGLRenderer( 4262): Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
E/dalvikvm( 4235): Could not find class 'android.net.ConnectivityManager$NetworkCallback', referenced from method com.google.android.apps.gsa.staticplugins.au.p.<init>
E/dalvikvm( 4235): Could not find class 'android.net.NetworkRequest$Builder', referenced from method com.google.android.apps.gsa.staticplugins.au.p.hi
F/libc    ( 4262): Fatal signal 4 (SIGILL) at 0x97ca3471 (code=2), thread 4317 (SDLThread)
E/Corkscrew(  140): unrecognized dwarf lower part encoding: 0xa8
E/Finsky  ( 4074): [1] com.google.android.finsky.wear.bl.a(847): onConnectionFailed: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null, message=null}
E/OpenGLRenderer( 4463): Getting MAX_TEXTURE_SIZE from GradienCache
E/OpenGLRenderer( 4463): Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
F/libc    ( 4463): Fatal signal 4 (SIGILL) at 0x97ca8471 (code=2), thread 4479 (SDLThread)
E/Corkscrew(  140): unrecognized dwarf lower part encoding: 0xa8
E/dalvikvm( 4549): Could not find class 'android.app.job.JobScheduler', referenced from method bhy.a
E/dalvikvm( 4549): Could not find class 'android.app.job.JobScheduler', referenced from method bhy.b
E/dalvikvm( 4549): Could not find class 'javax.net.ssl.SNIHostName', referenced from method com.google.android.gms.org.conscrypt.Platform.getSSLParameters
E/dalvikvm( 4549): Could not find class 'javax.net.ssl.SNIServerName', referenced from method com.google.android.gms.org.conscrypt.Platform.setSSLParameters
E/dalvikvm( 4549): Could not find class 'com.google.android.gms.org.conscrypt.OpenSSLExtendedSessionImpl', referenced from method com.google.android.gms.org.conscrypt.Platform.wrapSSLSession
E/dalvikvm( 4549): Could not find class 'com.google.android.gms.org.conscrypt.OpenSSLExtendedSessionImpl', referenced from method com.google.android.gms.org.conscrypt.SSLParametersImpl.getSessionToReuse
E/NetworkScheduler.SR(  711): Invalid parameter app
E/NetworkScheduler.SR(  711): Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
E/Drive.UninstallOperation( 1021): Package still installed com.sample.openfltest
E/NetworkScheduler.SR(  711): Invalid parameter app
E/NetworkScheduler.SR(  711): Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
E/OpenGLRenderer( 4690): Getting MAX_TEXTURE_SIZE from GradienCache
E/OpenGLRenderer( 4690): Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
E/OpenGLRenderer( 4744): Getting MAX_TEXTURE_SIZE from GradienCache
E/OpenGLRenderer( 4744): Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
E/OpenGLRenderer( 4776): Getting MAX_TEXTURE_SIZE from GradienCache
E/OpenGLRenderer( 4776): Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
F/libc    ( 4776): Fatal signal 4 (SIGILL) at 0x97ca3471 (code=2), thread 4790 (SDLThread)
E/Corkscrew(  140): unrecognized dwarf lower part encoding: 0xa8
E/InputDispatcher(  405): channel '528db6f0 org.openfl.samples.piratepig/org.openfl.samples.piratepig.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
E/NetworkScheduler.SR(  711): Invalid parameter app
E/NetworkScheduler.SR(  711): Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
E/NetworkScheduler.SR(  711): Invalid parameter app
E/NetworkScheduler.SR(  711): Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
E/Drive.UninstallOperation( 1021): Package still installed com.sample.openfltest
E/OpenGLRenderer( 4874): Getting MAX_TEXTURE_SIZE from GradienCache
E/OpenGLRenderer( 4874): Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
F/libc    ( 4874): Fatal signal 4 (SIGILL) at 0x97ca5471 (code=2), thread 4890 (SDLThread)
E/Corkscrew(  140): unrecognized dwarf lower part encoding: 0xa8
E/InputDispatcher(  405): channel '5293296c com.sample.openfltest/com.sample.openfltest.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
E/OpenGLRenderer( 4901): Getting MAX_TEXTURE_SIZE from GradienCache
E/OpenGLRenderer( 4901): Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
F/libc    ( 4901): Fatal signal 4 (SIGILL) at 0x97ca4471 (code=2), thread 4915 (SDLThread)
E/Corkscrew(  140): unrecognized dwarf lower part encoding: 0xa8
E/NetworkScheduler.SR(  711): Invalid parameter app
E/NetworkScheduler.SR(  711): Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
E/Drive.UninstallOperation( 1021): Package still installed com.sample.openfltest
E/NetworkScheduler.SR(  711): Invalid parameter app
E/NetworkScheduler.SR(  711): Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
E/OpenGLRenderer( 5006): Getting MAX_TEXTURE_SIZE from GradienCache
E/OpenGLRenderer( 5006): Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
F/libc    ( 5006): Fatal signal 4 (SIGILL) at 0x97ba4471 (code=2), thread 5023 (SDLThread)
E/Corkscrew(  140): unrecognized dwarf lower part encoding: 0xa8
E/InputDispatcher(  405): channel '528fe268 com.sample.openfltest/com.sample.openfltest.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!

The error might be in the assets code. What if instead of adding a bitmap, you draw a rectangle?

class Main extends Sprite {
    public function new() {
        super();
        graphics.beginFill(0x000000);
        graphics.drawRectangle(0, 0, 200, 100);
    }
}

I don’t think the issue is in the assets code as it works on my phone (but not on the emulator).
I tested with ADB emulator (rather than genymotion) and, in ADB, it do not crash but the bitmap is rendered as a black rectangle (see screenshot):

I will try with the simple rectangle drawing.

I tried your code (just changed the color of the rectangle to red) in ADB emulator

graphics.beginFill(0xFF0000);
 graphics.drawRect(0, 0, 200, 100);

and the rectangle is rendered as black…

EDIT: same thing with the genymotion emulator, the red rectangle is rendered as a black one. But the app do not crash like it was with the Assets version…

Sounds like a problem with OpenGL on the emulator, in general

yes maybe.
I retried today and now I have a completely black screen (rather than a white one with a black rectangle) with exactly the same code as previously…

I also add this line of code;
trace(Lib.current.stage.stageWidth + " " + Lib.current.stage.stageHeight);

And it gives me this output in the adb or genymotion emulators:
-1786923893 -1784421822

This is completely beyond understanding…

Does openfl requiere opengl v3? It looks like only opengl v1 and openfl v2 are supported in the emulators (I have tried with two different graphical card, an Nvidia and an AMD, and an opengl test app from the playstore and in every case, opengl v3 was signaled as unsupported)

OpenGL 3 is generally better, but OpenGL versions and OpenGL ES versions are entirely different. OpenGL ES 2.0 is like a subset of OpenGL 3 or 4