Skip to content

eglGetDisplay failed EGL_BAD_PARAMETER #1160

Closed

Description

@paradisehuman

EelaTaxi.zip

Steps to Reproduce

  1. Set linking on SDK and User Assemblies
  2. Check AOT Compilation
  3. Check Use LLVM Optimizing Compiler
  4. Archive the packge
  5. Run on Huawei Honor3 or Huawei G700 or Huawei G610 or Huawei Y330

I attached the APK file.

Tip1 : Everything is working fine without checking AOT Compilation and Use LLVM Optimizing Compiler even on Huawei devices that I mentioned .

Tip2 : On other devices ( except Huawei devices that I mentioned ) everything is working fine even with checking AOT Compilation and Use LLVM Optimizing.

Tip3 : Huawei devices Android versions are 4.2.2 and 4.2.1

Expected Behavior

Runing the Program

Actual Behavior

Force close on splashview

Version Information

Visual Studio 15.5.2

Log File

android.view.HardwareRenderer$GlRenderer.initializeEgl
HardwareRenderer.java - line 878
java.lang.RuntimeException: eglGetDisplay failed EGL_BAD_PARAMETER
eglGetDisplay failed EGL_BAD_PARAMETER
1- android.view.HardwareRenderer$GlRenderer.initializeEgl HardwareRenderer.java:878
2- android.view.HardwareRenderer$GlRenderer.initialize HardwareRenderer.java:829
3- android.view.ViewRootImpl.performTraversals ViewRootImpl.java:1806
4- android.view.ViewRootImpl.doTraversal ViewRootImpl.java:1211
5- android.view.ViewRootImpl$TraversalRunnable.run ViewRootImpl.java:5039
6- android.view.Choreographer$CallbackRecord.run Choreographer.java:776
7- android.view.Choreographer.doCallbacks Choreographer.java:579
8- android.view.Choreographer.doFrame Choreographer.java:548
9- android.view.Choreographer$FrameDisplayEventReceiver.run Choreographer.java:762
10- android.os.Handler.handleCallback Handler.java:800
11- android.os.Handler.dispatchMessage Handler.java:100
12- android.os.Looper.loop Looper.java:194
13- android.app.ActivityThread.main ActivityThread.java:5433
14- java.lang.reflect.Method.invokeNative Method.java
15- java.lang.reflect.Method.invoke Method.java:525
16- com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run ZygoteInit.java:924
17- com.android.internal.os.ZygoteInit.main ZygoteInit.java:691
18- dalvik.system.NativeStart.main NativeStart.java

Activity

  1. added
    Area: App+Library Build
    on Jan 5, 2018
  2. added
    Area: App Runtime
    on Jan 5, 2018
  3. radekdoulik commented on Jan 5, 2018

    @radekdoulik
    Member

    Do you know how it behaves with AOT enabled and LLVM disabled?

  4. paradisehuman commented on Jan 5, 2018

    @paradisehuman
    Author

    @radekdoulik Hi. I think I tested and I got same result. I dont sure exactly.

  5. jonpryor commented on Jan 5, 2018

    @jonpryor
    Contributor

    What's odd is that your app doesn't appear to explicitly use OpenGL, yet the failure is around GL usage.

    @paradisehuman: Would you be able to provide more adb logcat output, e.g. everything from the process corresponding to your app?

  6. paradisehuman commented on Jan 5, 2018

    @paradisehuman
    Author

    @jonpryor I don’t have Huawei phones beside me right now , but I can provide your requested information tomorrow probably.

  7. paradisehuman commented on Jan 6, 2018

    @paradisehuman
    Author

    @jonpryor I attached an image file that includes logcat information.
    untitled

  8. paradisehuman commented on Jan 6, 2018

    @paradisehuman
    Author

    @radekdoulik I have tested without checking LLVM Optimizing Compiler and I got force close.
    For your info, Progourd is enable also.

  9. paradisehuman commented on Feb 19, 2018

    @paradisehuman
    Author

    Is there any news for fixing that ? @radekdoulik @jonpryor

  10. cbagpipe commented on Oct 22, 2020

    @cbagpipe

    Experiencing this bug too on IRBIS TX68 (Android 4.2, GPU: Mali-400 MP2)
    Visual Studio 2019 (16.7.6)
    NuGets (Xamarin Forms version, etc):
    изображение

    logcat-dump.txt

    Exception at line 1964

  11. added a commit that references this issue on Jan 29, 2021
  12. jonathanpeppers commented on Jun 1, 2022

    @jonathanpeppers
    Member

    Is this issue still happening in .NET 6 Android projects? Thanks!

  13. added
    need-info
    on Jun 1, 2022
  14. ghost closed this as completedon Jun 8, 2022
  15. ghost locked as resolved and limited conversation to collaborators on Jul 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area: App RuntimeArea: App+Library Buildneed-info

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions