bundletool icon indicating copy to clipboard operation
bundletool copied to clipboard

command: no GL extensions found.

Open JulianKingman opened this issue 3 years ago • 5 comments

Describe the bug On an m1 Mac, trying to install apks on an emulator, I get the error Error: Unexpected output of 'dumpsys SurfaceFlinger' command: no GL extensions found. A google search turns up nothing...

Bundletool version(s) affected Version: 2.2.22

Stacktrace

bundletool install-apks --apks /Users/julian/Downloads/myapp.apks --device-id emulator-5554
[BT:1.9.1] Error: Unexpected output of 'dumpsys SurfaceFlinger' command: no GL extensions found.
com.android.tools.build.bundletool.model.exceptions.AdbOutputParseException: Unexpected output of 'dumpsys SurfaceFlinger' command: no GL extensions found.
	at com.android.tools.build.bundletool.model.exceptions.InternalExceptionBuilder.build(InternalExceptionBuilder.java:57)
	at com.android.tools.build.bundletool.device.GlExtensionsParser.parse(GlExtensionsParser.java:72)
	at com.android.tools.build.bundletool.device.DdmlibDevice.getGlExtensions(DdmlibDevice.java:147)
	at com.android.tools.build.bundletool.device.DeviceAnalyzer.getDeviceSpec(DeviceAnalyzer.java:62)
	at com.android.tools.build.bundletool.commands.InstallApksCommand.execute(InstallApksCommand.java:185)
	at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:91)
	at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:49)

To Reproduce

  1. Convert aab to APKs
  2. Attempt to install APKs onto emulator

Expected behavior Successfully installs APK

Known workaround None

Environment: OS: macOS 12.3

Additional context Add any other context about the problem here.

JulianKingman avatar Apr 12 '22 16:04 JulianKingman

Can't reproduce on my M1.

ymakhno avatar Nov 04 '22 01:11 ymakhno

@ymakhno Hi, I have reproduced Apple M1 Ventura 13.1

I'm entering: bundletool install-apks --apks=/Users/nodl-e/Desktop/release.apks Gives me back: Error: Unexpected output of 'dumpsys SurfaceFlinger' command: no GL extensions found. com.android.tools.build.bundletool.model.exceptions.AdbOutputParseException: Unexpected output of 'dumpsys SurfaceFlinger' command: no GL extensions found. Device: Redmi Note 8 Pro 12.0.8 I changed the device to Samsung and everything worked, there may be problems with the devices of the Redmi line

dmitrievaGelena avatar Feb 27 '23 15:02 dmitrievaGelena

Hi Gelena,

Could you please invoke adb shell dumpsys SurfaceFlinger on the affected device and attach its output?

ymakhno avatar Feb 28 '23 13:02 ymakhno

@ymakhno Hi, I entered: adb shell dumpsys SurfaceFlinger

console gave me: nothing Did the command need to be entered in the console or in android studio?

dmitrievaGelena avatar Mar 01 '23 08:03 dmitrievaGelena

I'm reproduce in OPPO [email protected] . java -jar /xxxx/dist/bundletool-all-1.15.5.jar install-apks --apks=/AEApps/AutoTest/test/xxxxx.apks --device-id=Y54L6LDQ9T4D6HMZ --timeout-millis=1200000 WARNING: Unexpected output of 'dumpsys SurfaceFlinger' command: no GL extensions found. [BT:1.15.5] Error: SDK version (22) of the device is not supported. com.android.tools.build.bundletool.model.exceptions.IncompatibleDeviceException: SDK version (22) of the device is not supported. at com.android.tools.build.bundletool.model.exceptions.UserExceptionBuilder.build(UserExceptionBuilder.java:58) at com.android.tools.build.bundletool.device.SdkVersionMatcher.checkDeviceCompatibleInternal(SdkVersionMatcher.java:132) at com.android.tools.build.bundletool.device.SdkVersionMatcher.checkDeviceCompatibleInternal(SdkVersionMatcher.java:31) at com.android.tools.build.bundletool.device.TargetingDimensionMatcher.checkDeviceCompatible(TargetingDimensionMatcher.java:121) at com.android.tools.build.bundletool.device.VariantMatcher.checkCompatibleWithVariantTargetingHelper(VariantMatcher.java:157) at com.android.tools.build.bundletool.device.VariantMatcher.lambda$checkCompatibleWithVariantTargeting$4(VariantMatcher.java:141) ...too much stacks Run adb manually:adb -s Y54L6LDQ9T4D6HMZ shell dumpsys SurfaceFlinger too much stacks but normally print: first line:Build configuration: [sf] [libui] [libgui] Sync configuration: [using: EGL_ANDROID_native_fence_sync EGL_KHR_wait_sync] DispSync configuration: app phase -8000000 ns, sf phase -8000000 ns, present offset 0 ns (refresh 16798253 ns) Visible layers (count = 13) ... ... last line: Total allocated (estimate): 110349.50 KB

MrGuoRanDuo avatar Oct 19 '23 07:10 MrGuoRanDuo