Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Conversation

@bparrishMines
Copy link
Contributor

@bparrishMines bparrishMines commented Jul 27, 2021

According to the logs from Firebase Test Lab, the tests have this error on timeouts:

07-26 23:28:25.498: I/flutter(19917): (The following exception is now available via WidgetTester.takeException:)
07-26 23:28:25.547: I/flutter(19917): ��╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞����������������������������������������������������
07-26 23:28:25.547: I/flutter(19917): The following PlatformException was thrown running a test:
07-26 23:28:25.547: I/flutter(19917): PlatformException(error, Neither user 10223 nor current process has android.permission.WAKE_LOCK.,
07-26 23:28:25.547: I/flutter(19917): null, java.lang.SecurityException: Neither user 10223 nor current process has
07-26 23:28:25.547: I/flutter(19917): android.permission.WAKE_LOCK.
07-26 23:28:25.547: I/flutter(19917): 	at android.os.Parcel.createException(Parcel.java:2071)
07-26 23:28:25.547: I/flutter(19917): 	at android.os.Parcel.readException(Parcel.java:2039)
07-26 23:28:25.547: I/flutter(19917): 	at android.os.Parcel.readException(Parcel.java:1987)
07-26 23:28:25.547: I/flutter(19917): 	at android.view.IWindowSession$Stub$Proxy.addToDisplay(IWindowSession.java:1242)
07-26 23:28:25.547: I/flutter(19917): 	at android.view.ViewRootImpl.setView(ViewRootImpl.java:888)
07-26 23:28:25.547: I/flutter(19917): 	at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:387)
07-26 23:28:25.547: I/flutter(19917): 	at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:95)
07-26 23:28:25.547: I/flutter(19917): 	at android.app.Dialog.show(Dialog.java:342)
07-26 23:28:25.547: I/flutter(19917): 	at android.app.Presentation.show(Presentation.java:257)
07-26 23:28:25.547: I/flutter(19917): 	at io.flutter.plugin.platform.VirtualDisplayController.resize(VirtualDisplayController.java:161)
07-26 23:28:25.547: I/flutter(19917): 	at
07-26 23:28:25.547: I/flutter(19917): io.flutter.plugin.platform.PlatformViewsController$1.resizePlatformView(PlatformViewsController.java:285)
07-26 23:28:25.547: I/flutter(19917): 	at
07-26 23:28:25.547: I/flutter(19917): io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.resize(PlatformViewsChannel.java:138)
07-26 23:28:25.547: I/flutter(19917): 	at
07-26 23:28:25.547: I/flutter(19917): io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(PlatformViewsChannel.java:65)
07-26 23:28:25.547: I/flutter(19917): 	at
07-26 23:28:25.547: I/flutter(19917): io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
07-26 23:28:25.547: I/flutter(19917): 	at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
07-26 23:28:25.547: I/flutter(19917): 	at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:818)
07-26 23:28:25.547: I/flutter(19917): 	at android.os.MessageQueue.nativePollOnce(Native Method)
07-26 23:28:25.547: I/flutter(19917): 	at android.os.MessageQueue.next(MessageQueue.java:336)
07-26 23:28:25.547: I/flutter(19917): 	at android.os.Looper.loop(Looper.java:174)
07-26 23:28:25.547: I/flutter(19917): 	at android.app.ActivityThread.main(ActivityThread.java:7356)
07-26 23:28:25.547: I/flutter(19917): 	at java.lang.reflect.Method.invoke(Native Method)
07-26 23:28:25.547: I/flutter(19917): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
07-26 23:28:25.547: I/flutter(19917): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
07-26 23:28:25.547: I/flutter(19917): Caused by: android.os.RemoteException: Remote stack trace:
07-26 23:28:25.547: I/flutter(19917): 	at android.app.ContextImpl.enforce(ContextImpl.java:1896)
07-26 23:28:25.547: I/flutter(19917): 	at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:1924)
07-26 23:28:25.547: I/flutter(19917): 	at
07-26 23:28:25.547: I/flutter(19917): com.android.server.power.PowerManagerService$BinderService.acquireWakeLock(PowerManagerService.java:4309)
07-26 23:28:25.547: I/flutter(19917): 	at android.os.PowerManager$WakeLock.acquireLocked(PowerManager.java:2127)
07-26 23:28:25.547: I/flutter(19917): 	at android.os.PowerManager$WakeLock.acquire(PowerManager.java:2093)
07-26 23:28:25.547: I/flutter(19917): )
07-26 23:28:25.547: I/flutter(19917): When the exception was thrown, this was the stack:
07-26 23:28:25.547: I/flutter(19917): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:597:7)
07-26 23:28:25.547: I/flutter(19917): #1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:158:18)
07-26 23:28:25.547: I/flutter(19917): <asynchronous suspension>
07-26 23:28:25.547: I/flutter(19917): <asynchronous suspension>
07-26 23:28:25.547: I/flutter(19917): (elided one frame from package:stack_trace)
07-26 23:28:25.547: I/flutter(19917): The test description was:
07-26 23:28:25.547: I/flutter(19917):   resize webview
07-26 23:28:25.547: I/flutter(19917): 

I haven't seen this locally, so it may be something with Firebase Test Lab?

@google-cla google-cla bot added the cla: yes label Jul 27, 2021
@github-actions github-actions bot added p: webview_flutter Edits files for a webview_flutter plugin platform-android labels Jul 27, 2021
@stuartmorgan-g
Copy link
Contributor

Looks like this has been an issue before in general:
flutter/flutter#42349
flutter/flutter#42451

@blasten
Copy link

blasten commented Jul 27, 2021

Merging to try to fix the tree

@blasten blasten merged commit 2727efc into flutter:master Jul 27, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Jul 27, 2021
@bparrishMines bparrishMines deleted the webview_fix_again branch July 27, 2021 20:13
fotiDim pushed a commit to fotiDim/plugins that referenced this pull request Sep 13, 2021
amantoux pushed a commit to amantoux/plugins that referenced this pull request Sep 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes p: webview_flutter Edits files for a webview_flutter plugin platform-android

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants