Bug 158125

Summary: Android Viewer fails in Google Play CI: "No suitable EGL configuration found"
Product: LibreOffice Reporter: Michael Weghorn <m.weghorn>
Component: Android ViewerAssignee: Michael Weghorn <m.weghorn>
Status: RESOLVED FIXED    
Severity: normal CC: m.weghorn
Priority: medium    
Version: 7.6.2.1 release   
Hardware: All   
OS: All   
Whiteboard: target:24.2.0 target:7.6.4 target:7.6.3
Crash report or crash signature: Regression By:
Attachments: Screenshot of device specification as shown in Google Play console
ADB logcat from Google Play console

Description Michael Weghorn 2023-11-09 08:05:19 UTC
Created attachment 190736 [details]
Screenshot of device specification as shown in Google Play console

With a pre-release build for 7.6.3, using the libreoffice-7-6-3 branch as of commit 7f61102f02cd53276d15d7f3d80a291fd9ce48e4, the app crashred for 1 of the 11 devices used for automated testing in the Google Play CI  with this stack trace:

Exception org.mozilla.gecko.gfx.GLController$GLControllerException: No suitable EGL configuration found
  at org.mozilla.gecko.gfx.GLController.chooseConfig (GLController.java:219)
  at org.mozilla.gecko.gfx.GLController.initEGL (GLController.java:172)
  at org.mozilla.gecko.gfx.GLController.initEGLContext (GLController.java:176)
  at org.mozilla.gecko.gfx.GLController.initGLContext (GLController.java:57)
  at org.mozilla.gecko.gfx.RenderControllerThread.doSurfaceCreated (RenderControllerThread.java:132)
  at org.mozilla.gecko.gfx.RenderControllerThread.execute (RenderControllerThread.java:52)
  at org.mozilla.gecko.gfx.RenderControllerThread.run (RenderControllerThread.java:30)

A screenshot of the device specifications as shown in the Google Play Console is attached.
Comment 1 Michael Weghorn 2023-11-09 08:06:23 UTC
Created attachment 190737 [details]
ADB logcat from Google Play console
Comment 2 Michael Weghorn 2023-11-09 10:12:09 UTC
Pending fix:
https://gerrit.libreoffice.org/c/core/+/159204

With a test-build including the 7-6-3 backport ( https://gerrit.libreoffice.org/c/core/+/159042 ), this passes Google CI now, and the screencast of the device that previously crashed also shows that the sample docs it uses are rendered fine.
Comment 3 Commit Notification 2023-11-09 12:17:06 UTC
Michael Weghorn committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/d9a43fa5f94839d79cbd8524ba5c0b1865e6ad52

tdf#158125 android: Don't insist on RGB 565 EGL config

It will be available in 24.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 4 Commit Notification 2023-11-10 09:30:09 UTC
Michael Weghorn committed a patch related to this issue.
It has been pushed to "libreoffice-7-6":

https://git.libreoffice.org/core/commit/0a47e3d1034282853fb3b61a3b3bcf31f536c2de

tdf#158125 android: Don't insist on RGB 565 EGL config

It will be available in 7.6.4.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 5 Commit Notification 2023-11-16 22:30:17 UTC
Michael Weghorn committed a patch related to this issue.
It has been pushed to "libreoffice-7-6-3":

https://git.libreoffice.org/core/commit/b2d1bb588852c8d1f410f45b07774335d6b4f6ba

tdf#158125 android: Don't insist on RGB 565 EGL config

It will be available in 7.6.3.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.