-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Open
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: crashStack traces logged to the consoleStack traces logged to the consolec: fatal crashCrashes that terminate the processCrashes that terminate the processcustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.engineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.found in release: 3.0Found to occur in 3.0Found to occur in 3.0found in release: 3.1Found to occur in 3.1Found to occur in 3.1p: webviewThe WebView pluginThe WebView pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyAndroid applications specificallyteam-androidOwned by Android platform teamOwned by Android platform teamtriaged-androidTriaged by Android platform teamTriaged by Android platform team
Description
When using a webview inside of a scrollview, some content renders a completely distorted page and some content even crashes the app. This problem only affects Androidm the same app, on iOS the same code results in a correclty rendered web page. Rendering the same content also works fine on Android, when not embedding the webview inside of a scrollview.
Steps to Reproduce
- Execute
flutter runon the code sample - Observe the rendered page (flutter.dev): it will be shown completely distorted
- Some html contents also crash my app on my test devices
Expected results:
A web view that is shown within a scrollable view should render content corretly and without crashing the app.
Actual results:
A completely distorted page, some html code also crashes the app.
Code sample
import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';
// import 'package:flutter_inappwebview/flutter_inappwebview.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Crash Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const MyHomePage(title: 'Crash'),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({Key? key, required this.title}) : super(key: key);
final String title;
@override
State<MyHomePage> createState() => _MyHomePageState();
}
class _MyHomePageState extends State<MyHomePage> {
late double _webViewHeight;
late WebViewController _controller;
@override
void didChangeDependencies() {
_webViewHeight = MediaQuery.of(context).size.height;
super.didChangeDependencies();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: SingleChildScrollView(
child: Column(
children: [
const Text('Some scrollable header'),
SizedBox(
height: _webViewHeight,
child: WebView(
javascriptMode: JavascriptMode.unrestricted,
onWebViewCreated: (controller) {
_controller = controller;
controller.loadUrl('https://flutter.dev/');
},
onPageFinished: (url) async {
final height =
await _controller.runJavascriptReturningResult(
'document.body.scrollHeight');
setState(() {
_webViewHeight = double.parse(height) + 10.0;
});
},
),
),
],
),
));
}
}Logs
flutter run --verbose
[ +238 ms] executing: [C:\Users\User\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +733 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +1 ms] fb57da5f945d02ef4f98dfd9409a72b7cce74268
[ +1 ms] executing: [C:\Users\User\flutter/] git tag --points-at fb57da5f945d02ef4f98dfd9409a72b7cce74268
[ +148 ms] Exit code 0 from: git tag --points-at fb57da5f945d02ef4f98dfd9409a72b7cce74268
[ +1 ms] 3.0.1
[ +19 ms] executing: [C:\Users\User\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +112 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ +1 ms] origin/stable
[ ] executing: [C:\Users\User\flutter/] git ls-remote --get-url origin
[ +104 ms] Exit code 0 from: git ls-remote --get-url origin
[ +1 ms] https://github.com/flutter/flutter.git
[ +341 ms] executing: [C:\Users\User\flutter/] git rev-parse --abbrev-ref HEAD
[ +111 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ +1 ms] stable
[ +228 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +11 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +191 ms] executing: C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe devices -l
[ +199 ms] List of devices attached
emulator-5554 device product:sdk_gphone_x86 model:sdk_gphone_x86 device:generic_x86_arm
transport_id:5
[ +35 ms] C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 shell getprop
[ +223 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ +3 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ +21 ms] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[ +2 ms] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ +1 ms] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ +5 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +515 ms] Skipping pub get: version match.
[ +151 ms] Found plugin webview_flutter at
C:\Users\User\flutter\.pub-cache\hosted\pub.dartlang.org\webview_flutter-3.0.4\
[ +23 ms] Found plugin webview_flutter_android at
C:\Users\User\flutter\.pub-cache\hosted\pub.dartlang.org\webview_flutter_android-2.8.9\
[ +14 ms] Found plugin webview_flutter_wkwebview at
C:\Users\User\flutter\.pub-cache\hosted\pub.dartlang.org\webview_flutter_wkwebview-2.8.0\
[ +176 ms] Found plugin webview_flutter at
C:\Users\User\flutter\.pub-cache\hosted\pub.dartlang.org\webview_flutter-3.0.4\
[ +12 ms] Found plugin webview_flutter_android at
C:\Users\User\flutter\.pub-cache\hosted\pub.dartlang.org\webview_flutter_android-2.8.9\
[ +11 ms] Found plugin webview_flutter_wkwebview at
C:\Users\User\flutter\.pub-cache\hosted\pub.dartlang.org\webview_flutter_wkwebview-2.8.0\
[ +37 ms] Generating
C:\Users\User\Development\bug\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[ +298 ms] ro.hardware = ranchu
[ +40 ms] Using hardware rendering with device sdk gphone x86. If you notice graphics artifacts, consider enabling
software
rendering with "--enable-software-rendering".
[ +91 ms] Initializing file store
[ +40 ms] Skipping target: gen_localizations
[ +19 ms] gen_dart_plugin_registrant: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have
updated contents: C:\Users\User\Development\bug\.dart_tool\package_config_subset}
[ +83 ms] Found plugin webview_flutter at
C:\Users\User\flutter\.pub-cache\hosted\pub.dartlang.org\webview_flutter-3.0.4\
[ +9 ms] Found plugin webview_flutter_android at
C:\Users\User\flutter\.pub-cache\hosted\pub.dartlang.org\webview_flutter_android-2.8.9\
[ +9 ms] Found plugin webview_flutter_wkwebview at
C:\Users\User\flutter\.pub-cache\hosted\pub.dartlang.org\webview_flutter_wkwebview-2.8.0\
[ +20 ms] gen_dart_plugin_registrant: Complete
[ +9 ms] Skipping target: _composite
[ +8 ms] complete
[ +21 ms] Launching lib\main.dart on sdk gphone x86 in debug mode...
[ +19 ms] C:\Users\User\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev
C:\Users\User\flutter\bin\cache\dart-sdk\bin\snapshots\frontend_server.dart.snapshot --sdk-root
C:\Users\User\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --target=flutter
--debugger-module-names --experimental-emit-debug-metadata -DFLUTTER_WEB_AUTO_DETECT=true --output-dill
C:\Users\User\AppData\Local\Temp\flutter_tools.fb260c8d\flutter_tool.ecb6883a\app.dill --packages
C:\Users\User\Development\bug\.dart_tool\package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false
--enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root --initialize-from-dill
build\c075001b96339384a97db4862b8ab8db.cache.dill.track.dill --enable-experiment=alternative-invalidation-strategy
[ +43 ms] executing: C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 shell -x logcat -v
time -t 1
[ +51 ms] <- compile package:bug/main.dart
[ +266 ms] --------- beginning of main
05-28 15:53:40.921 I/goldfish_avcdec( 440): received EOS, re-create host context
[ +34 ms] executing: C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe version
[ +110 ms] Android Debug Bridge version 1.0.41
Version 33.0.0-8141338
Installed as C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe
[ +8 ms] executing: C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe start-server
[ +92 ms] Building APK
[ +42 ms] Running Gradle task 'assembleDebug'...
[ +16 ms] Using gradle from C:\Users\User\Development\bug\android\gradlew.bat.
[ +53 ms] executing: C:\Program Files\Android\Android Studio\jre\bin\java -version
[ +392 ms] Exit code 0 from: C:\Program Files\Android\Android Studio\jre\bin\java -version
[ +3 ms] openjdk version "11.0.12" 2021-07-20
OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)
OpenJDK 64-Bit Server VM (build 11.0.12+7-b1504.28-7817840, mixed mode)
[ +5 ms] executing: C:\Program Files\Android\Android Studio\jre\bin\java -version
[ +371 ms] Exit code 0 from: C:\Program Files\Android\Android Studio\jre\bin\java -version
[ +3 ms] openjdk version "11.0.12" 2021-07-20
OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)
OpenJDK 64-Bit Server VM (build 11.0.12+7-b1504.28-7817840, mixed mode)
[ +5 ms] executing: C:\Program Files\Android\Android Studio\jre\bin\java -version
[ +357 ms] Exit code 0 from: C:\Program Files\Android\Android Studio\jre\bin\java -version
[ +3 ms] openjdk version "11.0.12" 2021-07-20
OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)
OpenJDK 64-Bit Server VM (build 11.0.12+7-b1504.28-7817840, mixed mode)
[ +5 ms] executing: [C:\Users\User\Development\bug\android/] C:\Users\User\Development\bug\android\gradlew.bat
-Pverbose=true -Ptarget-platform=android-x86 -Ptarget=C:\Users\User\Development\bug\lib\main.dart
-Pbase-application-name=android.app.Application -Pdart-defines=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ==
-Pdart-obfuscation=false -Ptrack-widget-creation=true -Ptree-shake-icons=false -Pfilesystem-scheme=org-dartlang-root
assembleDebug
[+2347 ms] Welcome to Gradle 7.4!
[ +3 ms] Here are the highlights of this release:
[ +2 ms] - Aggregated test and JaCoCo reports
[ +1 ms] - Marking additional test source directories as tests in IntelliJ
[ +2 ms] - Support for Adoptium JDKs in Java toolchains
[ +2 ms] For more details see https://docs.gradle.org/7.4/release-notes.html
[+5992 ms] > Task :app:preBuild UP-TO-DATE
[ +14 ms] > Task :app:preDebugBuild UP-TO-DATE
[ +4 ms] > Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
[+29948 ms] > Task :app:compileFlutterBuildDebug
[+10219 ms] > Task :app:packLibsflutterBuildDebug
[ +7 ms] > Task :webview_flutter_android:preBuild UP-TO-DATE
[ +3 ms] > Task :webview_flutter_android:preDebugBuild UP-TO-DATE
[ +3 ms] > Task :webview_flutter_android:compileDebugAidl NO-SOURCE
[ +4 ms] > Task :app:compileDebugAidl NO-SOURCE
[ +4 ms] > Task :webview_flutter_android:packageDebugRenderscript NO-SOURCE
[ +9 ms] > Task :app:compileDebugRenderscript NO-SOURCE
[ +61 ms] > Task :app:generateDebugBuildConfig
[ +3 ms] > Task :app:cleanMergeDebugAssets UP-TO-DATE
[ +2 ms] > Task :webview_flutter_android:writeDebugAarMetadata
[ +1 ms] > Task :app:mergeDebugShaders
[ +1 ms] > Task :app:compileDebugShaders NO-SOURCE
[ +3 ms] > Task :app:generateDebugAssets UP-TO-DATE
[ +1 ms] > Task :webview_flutter_android:mergeDebugShaders
[ +1 ms] > Task :webview_flutter_android:compileDebugShaders NO-SOURCE
[ +1 ms] > Task :webview_flutter_android:generateDebugAssets UP-TO-DATE
[ +68 ms] > Task :webview_flutter_android:packageDebugAssets
[ +109 ms] > Task :app:mergeDebugAssets
[ +6 ms] > Task :app:checkDebugAarMetadata
[ +893 ms] > Task :app:copyFlutterAssetsDebug
[ +4 ms] > Task :app:generateDebugResValues
[ +2 ms] > Task :app:generateDebugResources
[ +3 ms] > Task :webview_flutter_android:compileDebugRenderscript NO-SOURCE
[ +5 ms] > Task :webview_flutter_android:generateDebugResValues
[ +4 ms] > Task :webview_flutter_android:generateDebugResources
[ +73 ms] > Task :webview_flutter_android:packageDebugResources
[+1665 ms] > Task :app:createDebugCompatibleScreenManifests
[ +387 ms] > Task :app:extractDeepLinksDebug
[ +237 ms] > Task :webview_flutter_android:extractDeepLinksDebug
[ +14 ms] > Task :webview_flutter_android:compileDebugLibraryResources
[ +5 ms] > Task :webview_flutter_android:processDebugManifest
[ +5 ms] > Task :webview_flutter_android:generateDebugBuildConfig
[ +81 ms] > Task :webview_flutter_android:parseDebugLocalResources
[ +137 ms] > Task :webview_flutter_android:javaPreCompileDebug
[ +31 ms] > Task :app:javaPreCompileDebug
[ +6 ms] > Task :app:processDebugJavaRes NO-SOURCE
[ +8 ms] > Task :webview_flutter_android:processDebugJavaRes NO-SOURCE
[ +2 ms] > Task :webview_flutter_android:bundleLibResDebug NO-SOURCE
[ +1 ms] > Task :app:mergeDebugResources
[ +1 ms] > Task :app:checkDebugDuplicateClasses
[ +117 ms] > Task :app:processDebugMainManifest
[ +6 ms] > Task :app:processDebugManifest
[ +204 ms] > Task :app:processDebugManifestForPackage
[ +21 ms] > Task :app:mergeDebugJniLibFolders
[ +1 ms] > Task :webview_flutter_android:mergeDebugJniLibFolders
[ +66 ms] > Task :webview_flutter_android:mergeDebugNativeLibs NO-SOURCE
[ +4 ms] > Task :webview_flutter_android:copyDebugJniLibsProjectOnly
[ +2 ms] > Task :webview_flutter_android:generateDebugRFile
[ +5 ms] > Task :app:validateSigningDebug
[ +15 ms] > Task :app:writeDebugAppMetadata
[ +82 ms] > Task :app:desugarDebugFileDependencies
[ +14 ms] > Task :app:writeDebugSigningConfigVersions
[ +265 ms] > Task :webview_flutter_android:stripDebugDebugSymbols NO-SOURCE
[ +22 ms] > Task :webview_flutter_android:copyDebugJniLibsProjectAndLocalJars
[+1064 ms] > Task :app:compressDebugAssets
[ +681 ms] Execution optimizations have been disabled for task ':app:compressDebugAssets' to ensure correctness due to
the following reasons:
[ +531 ms] - Gradle detected a problem with the following location:
'C:\Users\User\Development\bug\build\app\intermediates\assets\debug\mergeDebugAssets'. Reason: Task
':app:compressDebugAssets' uses this output of task ':app:copyFlutterAssetsDebug' without declaring an explicit or
implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
Please refer to https://docs.gradle.org/7.4/userguide/validation_problems.html#implicit_dependency for more details
about this problem.
[+2703 ms] > Task :webview_flutter_android:compileDebugJavaWithJavac
[ +7 ms] Note: Some input files use or override a deprecated API.
[ +7 ms] Note: Recompile with -Xlint:deprecation for details.
[ +492 ms] > Task :webview_flutter_android:bundleLibRuntimeToJarDebug
[ +3 ms] > Task :webview_flutter_android:bundleLibCompileToJarDebug
[ +1 ms] > Task :app:processDebugResources
[ +1 ms] > Task :app:mergeExtDexDebug
[ +282 ms] > Task :webview_flutter_android:extractDebugAnnotations
[+3007 ms] > Task :app:mergeDebugNativeLibs
[+18792 ms] > Task :app:compileDebugKotlin
[ +801 ms] > Task :app:compileDebugJavaWithJavac
[ +526 ms] > Task :app:dexBuilderDebug
[+1521 ms] > Task :app:stripDebugDebugSymbols
[ +486 ms] Unable to strip the following libraries, packaging them as they are: libflutter.so.
[ +313 ms] > Task :webview_flutter_android:mergeDebugGeneratedProguardFiles UP-TO-DATE
[ +35 ms] > Task :webview_flutter_android:mergeDebugConsumerProguardFiles UP-TO-DATE
[ +24 ms] > Task :webview_flutter_android:prepareDebugArtProfile UP-TO-DATE
[ +3 ms] > Task :webview_flutter_android:prepareLintJarForPublish UP-TO-DATE
[ +11 ms] > Task :webview_flutter_android:mergeDebugJavaResource
[ +3 ms] > Task :webview_flutter_android:syncDebugLibJars
[ +2 ms] > Task :webview_flutter_android:bundleDebugAar
[ +1 ms] > Task :webview_flutter_android:assembleDebug
[ +271 ms] > Task :app:mergeDebugJavaResource
[ +599 ms] > Task :app:mergeDexDebug
[+4040 ms] > Task :app:packageDebug
[ +53 ms] > Task :app:createDebugApkListingFileRedirect
[ +413 ms] > Task :app:assembleDebug
[ +42 ms] Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
[ +7 ms] You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from
your own scripts or plugins.
[ +3 ms] See https://docs.gradle.org/7.4/userguide/command_line_interface.html#sec:command_line_warnings
[ +2 ms] Execution optimizations have been disabled for 1 invalid unit(s) of work during this build to ensure
correctness.
[ +1 ms] Please consult deprecation warnings for more details.
[ +4 ms] BUILD SUCCESSFUL in 1m 29s
[ +2 ms] 61 actionable tasks: 56 executed, 5 up-to-date
[ +615 ms] Running Gradle task 'assembleDebug'... (completed in 91,8s)
[ +96 ms] calculateSha: LocalDirectory: 'C:\Users\User\Development\bug\build\app\outputs\flutter-apk'/app.apk
[+1249 ms] √ Built build\app\outputs\flutter-apk\app-debug.apk.
[ +17 ms] executing: C:\Users\User\AppData\Local\Android\Sdk\build-tools\31.0.0\aapt dump xmltree
C:\Users\User\Development\bug\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[ +82 ms] Exit code 0 from: C:\Users\User\AppData\Local\Android\Sdk\build-tools\31.0.0\aapt dump xmltree
C:\Users\User\Development\bug\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[ +4 ms] N: android=http://schemas.android.com/apk/res/android
E: manifest (line=2)
A: android:versionCode(0x0101021b)=(type 0x10)0x1
A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1f
A: android:compileSdkVersionCodename(0x01010573)="12" (Raw: "12")
A: package="com.example.bug" (Raw: "com.example.bug")
A: platformBuildVersionCode=(type 0x10)0x1f
A: platformBuildVersionName=(type 0x10)0xc
E: uses-sdk (line=7)
A: android:minSdkVersion(0x0101020c)=(type 0x10)0x13
A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1f
E: uses-permission (line=15)
A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
E: application (line=17)
A: android:label(0x01010001)="bug" (Raw: "bug")
A: android:icon(0x01010002)=@0x7f080000
A: android:name(0x01010003)="android.app.Application" (Raw: "android.app.Application")
A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw:
"androidx.core.app.CoreComponentFactory")
E: activity (line=23)
A: android:theme(0x01010000)=@0x7f0a0000
A: android:name(0x01010003)="com.example.bug.MainActivity" (Raw: "com.example.bug.MainActivity")
A: android:exported(0x01010010)=(type 0x12)0xffffffff
A: android:launchMode(0x0101001d)=(type 0x10)0x1
A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
E: meta-data (line=38)
A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw:
"io.flutter.embedding.android.NormalTheme")
A: android:resource(0x01010025)=@0x7f0a0001
E: intent-filter (line=42)
E: action (line=43)
A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
E: category (line=45)
A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw:
"android.intent.category.LAUNCHER")
E: meta-data (line=52)
A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
A: android:value(0x01010024)=(type 0x10)0x2
E: uses-library (line=56)
A: android:name(0x01010003)="androidx.window.extensions" (Raw: "androidx.window.extensions")
A: android:required(0x0101028e)=(type 0x12)0x0
E: uses-library (line=59)
A: android:name(0x01010003)="androidx.window.sidecar" (Raw: "androidx.window.sidecar")
A: android:required(0x0101028e)=(type 0x12)0x0
[ +14 ms] Stopping app 'app.apk' on sdk gphone x86.
[ +2 ms] executing: C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 shell am
force-stop com.example.bug
[ +399 ms] executing: C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 shell pm list
packages com.example.bug
[ +369 ms] package:com.example.bug
[ +9 ms] executing: C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 shell cat
/data/local/tmp/sky.com.example.bug.sha1
[ +202 ms] 23ea5cba1980e9a44f4703cbe2e02795744637c4
[ +6 ms] Installing APK.
[ +4 ms] Installing build\app\outputs\flutter-apk\app.apk...
[ +1 ms] executing: C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 install -t -r
C:\Users\User\Development\bug\build\app\outputs\flutter-apk\app.apk
[+1952 ms] Performing Streamed Install
Success
[ +6 ms] Installing build\app\outputs\flutter-apk\app.apk... (completed in 1.956ms)
[ +3 ms] executing: C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 shell echo -n
1cf08a6872c2d9958ec368a4e343ce48cf9f38c9 > /data/local/tmp/sky.com.example.bug.sha1
[ +108 ms] executing: C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 shell -x logcat -v
time -t 1
[ +384 ms] --------- beginning of system
05-28 15:55:33.726 W/BroadcastQueue( 538): Background execution not allowed: receiving Intent {
act=android.intent.action.PACKAGE_ADDED dat=package:com.example.bug flg=0x4000010 (has extras) } to
com.google.android.ims/.receivers.RcsAutoStartReceiver
[ +26 ms] executing: C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 shell am start -a
android.intent.action.RUN -f 0x20000000 --ez enable-dart-profiling true --ez enable-checked-mode true --ez
verify-entry-points true com.example.bug/com.example.bug.MainActivity
[ +463 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.bug/.MainActivity (has
extras) }
[ +4 ms] Waiting for observatory port to be available...
[+3073 ms] Observatory URL on device: http://127.0.0.1:33679/uagGnwOoe7I=/
[ +10 ms] executing: C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -s emulator-5554 forward tcp:0
tcp:33679
[ +107 ms] 57950
[ +2 ms] Forwarded host port 57950 to device port 33679 for Observatory
[ +18 ms] Caching compiled dill
[ +70 ms] Connecting to service protocol: http://127.0.0.1:57950/uagGnwOoe7I=/
[ +631 ms] Launching a Dart Developer Service (DDS) instance at http://127.0.0.1:0, connecting to VM service at
http://127.0.0.1:57950/uagGnwOoe7I=/.
[ +327 ms] DDS is listening at http://127.0.0.1:57954/flCMKkZuzX8=/.
[ +142 ms] Successfully connected to service protocol: http://127.0.0.1:57950/uagGnwOoe7I=/
[ +138 ms] DevFS: Creating new filesystem on the device (null)
[ +62 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.bug/code_cache/bugJJXMHS/bug/)
[ +7 ms] Updating assets
[ +197 ms] Syncing files to device sdk gphone x86...
[ +8 ms] <- reset
[ +2 ms] Compiling dart to kernel with 0 updated files
[ +2 ms] Processing bundle.
[ +3 ms] <- recompile package:bug/main.dart 6ecb46af-36a4-47ca-9193-cb7297b55f10
[ +1 ms] <- 6ecb46af-36a4-47ca-9193-cb7297b55f10
[ +6 ms] Bundle processing done.
[ +382 ms] Updating files.
[ +3 ms] DevFS: Sync finished
[ +3 ms] Syncing files to device sdk gphone x86... (completed in 409ms)
[ +2 ms] Synced 0.0MB.
[ +5 ms] <- accept
[ +16 ms] Connected to _flutterView/0xeea440e0.
[ +7 ms] Flutter run key commands.
[ +5 ms] r Hot reload.
[ +2 ms] R Hot restart.
[ +2 ms] h List all available interactive commands.
[ +3 ms] d Detach (terminate "flutter run" but leave application running).
[ +2 ms] c Clear the screen
[ +1 ms] q Quit (terminate the application on the device).
[ +2 ms] Running with sound null safety
[ +3 ms] An Observatory debugger and profiler on sdk gphone x86 is available at: http://127.0.0.1:57954/flCMKkZuzX8=/
[+1179 ms] I/WebViewFactory(17753): Loading com.google.android.webview version 83.0.4103.106 (code 410410681)
[ +9 ms] I/com.example.bu(17753): The ClassLoaderContext is a special shared library.
[ +7 ms] D/nativeloader(17753): classloader namespace configured for unbundled product apk.
library_path=/product/app/WebViewGoogle/lib/x86:/product/app/WebViewGoogle/WebViewGoogle.apk!/lib/x86:/product/app/Trich
romeLibrary/TrichromeLibrary.apk!/lib/x86:/product/lib:/system/product/lib
[ +59 ms] I/com.example.bu(17753): The ClassLoaderContext is a special shared library.
[ +4 ms] D/nativeloader(17753): classloader namespace configured for unbundled product apk.
library_path=/product/app/WebViewGoogle/lib/x86:/product/app/WebViewGoogle/WebViewGoogle.apk!/lib/x86:/product/app/Trich
romeLibrary/TrichromeLibrary.apk!/lib/x86:/product/lib:/system/product/lib
[ +82 ms] I/cr_LibraryLoader(17753): Loaded native library version number "83.0.4103.106"
[ +9 ms] I/cr_CachingUmaRecorder(17753): Flushed 3 samples from 3 histograms.
[ +121 ms] I/TetheringManager(17753): registerTetheringEventCallback:com.example.bug
[ +24 ms] W/chromium(17753): [WARNING:dns_config_service_posix.cc(341)] Failed to read DnsConfig.
[ +357 ms] I/Choreographer(17753): Skipped 40 frames! The application may be doing too much work on its main thread.
[ +491 ms] W/Gralloc4(17753): allocator 3.x is not supported
[ +18 ms] E/FrameEvents(17753): updateAcquireFence: Did not find frame.
[ +389 ms] E/chromium(17753): [ERROR:gl_surface_egl.cc(549)] eglChooseConfig failed with error EGL_SUCCESS
[ +28 ms] D/EGL_emulation(17753): eglCreateContext: 0xeea0d130: maj 2 min 0 rcv 2
[ +6 ms] D/EGL_emulation(17753): eglMakeCurrent: 0xeea0d130: ver 2 0 (tinfo 0xeed6fc90) (first time)
[ +50 ms] E/FrameEvents(17753): updateAcquireFence: Did not find frame.
[ +82 ms] The Flutter DevTools debugger and profiler on sdk gphone x86 is available at:
http://127.0.0.1:9105?uri=http://127.0.0.1:57954/flCMKkZuzX8=/
[ +46 ms] D/HostConnection(17753): HostConnection::get() New Host Connection established 0xeea0e010, tid 17850
[ +3 ms] W/com.example.bu(17753): Accessing hidden method Landroid/media/AudioManager;->getOutputLatency(I)I
(greylist, reflection, allowed)
[ +58 ms] D/HostConnection(17753): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2
ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem
ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands
ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache
ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_has_shared_slots_host_memory_allocator
ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit
ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma GL_OES_vertex_array_object
GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_2
[ +13 ms] E/chromium(17753): [ERROR:gl_surface_egl.cc(549)] eglChooseConfig failed with error EGL_SUCCESS
[ +10 ms] W/cr_media(17753): Requires BLUETOOTH permission
[ +19 ms] E/FrameEvents(17753): updateAcquireFence: Did not find frame.
[ +335 ms] I/VideoCapabilities(17753): Unsupported profile 4 for video/mp4v-es
[ +10 ms] W/cr_MediaCodecUtil(17753): HW encoder for video/avc is not available on this device.
[ +109 ms] D/EGL_emulation(17753): eglCreateContext: 0xeea26500: maj 2 min 0 rcv 2
[ +6 ms] D/EGL_emulation(17753): eglMakeCurrent: 0xeea26500: ver 2 0 (tinfo 0xbb262bd0) (first time)
[ +215 ms] E/FrameEvents(17753): updateAcquireFence: Did not find frame.
[+2686 ms] I/chatty (17753): uid=10164(com.example.bug) RenderThread identical 18 lines
[ +3 ms] E/FrameEvents(17753): updateAcquireFence: Did not find frame.
[+2263 ms] E/FrameEvents(17753): updateAcquireFence: Did not find frame.
[ +835 ms] E/FrameEvents(17753): updateAcquireFence: Did not find frame.
[ +108 ms] I/cr_MediaCodecBridge(17753): create MediaCodec video decoder, mime video/avc
[ +19 ms] I/OMXClient(17753): IOmx service obtained
[ +25 ms] I/MediaCodec(17753): MediaCodec will operate in async mode
[ +6 ms] D/SurfaceUtils(17753): connecting to surface 0xe9352e58, reason connectToSurface
[ +4 ms] I/MediaCodec(17753): [OMX.android.goldfish.h264.decoder] setting surface generation to 18179073
[ +2 ms] D/SurfaceUtils(17753): disconnecting from surface 0xe9352e58, reason connectToSurface(reconnect)
[ +4 ms] D/SurfaceUtils(17753): connecting to surface 0xe9352e58, reason connectToSurface(reconnect)
[ +6 ms] E/ACodec (17753): [OMX.android.goldfish.h264.decoder] setPortMode on output to DynamicANWBuffer failed w/
err -1010
[ +63 ms] D/SurfaceUtils(17753): disconnecting from surface 0xe9352e58, reason setNativeWindowSizeFormatAndUsage
[ +2 ms] D/SurfaceUtils(17753): connecting to surface 0xe9352e58, reason setNativeWindowSizeFormatAndUsage
[ +2 ms] D/SurfaceUtils(17753): set up nativeWindow 0xe9352e58 for 1632x1080, color 0x13, rotation 0, usage 0x1002900
[ +44 ms] I/cr_MediaCodecBridge(17753): create MediaCodec video decoder, mime video/avc
[ +52 ms] I/OMXClient(17753): IOmx service obtained
[ +11 ms] I/MediaCodec(17753): MediaCodec will operate in async mode
[ +3 ms] D/SurfaceUtils(17753): connecting to surface 0xe93579e8, reason connectToSurface
[ +1 ms] I/MediaCodec(17753): [OMX.android.goldfish.h264.decoder] setting surface generation to 18179074
[ +1 ms] D/SurfaceUtils(17753): disconnecting from surface 0xe93579e8, reason connectToSurface(reconnect)
[ +1 ms] D/SurfaceUtils(17753): connecting to surface 0xe93579e8, reason connectToSurface(reconnect)
[ +1 ms] E/ACodec (17753): [OMX.android.goldfish.h264.decoder] setPortMode on output to DynamicANWBuffer failed w/
err -1010
[ +40 ms] D/SurfaceUtils(17753): disconnecting from surface 0xe93579e8, reason setNativeWindowSizeFormatAndUsage
[ +6 ms] D/SurfaceUtils(17753): connecting to surface 0xe93579e8, reason setNativeWindowSizeFormatAndUsage
[ +2 ms] D/SurfaceUtils(17753): set up nativeWindow 0xe93579e8 for 1632x1080, color 0x13, rotation 0, usage 0x1002900
[ +391 ms] E/FrameEvents(17753): updateAcquireFence: Did not find frame.
[ +38 ms] I/cr_MediaCodecBridge(17753): create MediaCodec video decoder, mime video/avc
[ +23 ms] I/OMXClient(17753): IOmx service obtained
[ +18 ms] I/MediaCodec(17753): MediaCodec will operate in async mode
[ +1 ms] D/SurfaceUtils(17753): connecting to surface 0xe935c578, reason connectToSurface
[ +1 ms] I/MediaCodec(17753): [OMX.android.goldfish.h264.decoder] setting surface generation to 18179075
[ +3 ms] D/SurfaceUtils(17753): disconnecting from surface 0xe935c578, reason connectToSurface(reconnect)
[ +2 ms] D/SurfaceUtils(17753): connecting to surface 0xe935c578, reason connectToSurface(reconnect)
[ +2 ms] E/ACodec (17753): [OMX.android.goldfish.h264.decoder] setPortMode on output to DynamicANWBuffer failed w/
err -1010
[ +52 ms] D/SurfaceUtils(17753): disconnecting from surface 0xe935c578, reason setNativeWindowSizeFormatAndUsage
[ +3 ms] D/SurfaceUtils(17753): connecting to surface 0xe935c578, reason setNativeWindowSizeFormatAndUsage
[ +3 ms] D/SurfaceUtils(17753): set up nativeWindow 0xe935c578 for 1632x1080, color 0x13, rotation 0, usage 0x1002900
[ +430 ms] E/FrameEvents(17753): updateAcquireFence: Did not find frame.
[ +29 ms] E/GraphicBufferAllocator(17753): Failed to allocate (1080 x 29899) layerCount 1 format 1 usage 100: 5
[ +6 ms] E/BufferQueueProducer(17753): [SurfaceTexture-0-17753-0](id:455900000000,api:1,p:17753,c:17753)
dequeueBuffer: createGraphicBuffer failed
[ +3 ms] W/OpenGLRenderer(17753): dequeueBuffer failed, error = -12; switching to fallback
[ +41 ms] E/Surface (17753): getSlotFromBufferLocked: unknown buffer: 0x0
[+1484 ms] D/NdkImageReader(17753): acquireImageLocked: Overriding buffer format YUV_420_888 to 0x13.
[+9021 ms] W/cr_MediaCodecBridge(17753): Releasing: OMX.android.goldfish.h264.decoder
[ +16 ms] D/SurfaceUtils(17753): connecting to surface 0xe9362a38, reason connectToSurface
[ +1 ms] I/MediaCodec(17753): [OMX.android.goldfish.h264.decoder] setting surface generation to 18179076
[ +1 ms] D/SurfaceUtils(17753): disconnecting from surface 0xe9362a38, reason connectToSurface(reconnect)
[ +1 ms] D/SurfaceUtils(17753): connecting to surface 0xe9362a38, reason connectToSurface(reconnect)
[ +1 ms] D/SurfaceUtils(17753): disconnecting from surface 0xe9362a38, reason setNativeWindowSizeFormatAndUsage
[ +1 ms] D/SurfaceUtils(17753): connecting to surface 0xe9362a38, reason setNativeWindowSizeFormatAndUsage
[ +7 ms] D/SurfaceUtils(17753): set up nativeWindow 0xe9362a38 for 1632x1080, color 0x13, rotation 0, usage 0x1002900
[ +2 ms] D/SurfaceUtils(17753): disconnecting from surface 0xe93579e8, reason disconnectFromSurface
[ +2 ms] W/cr_MediaCodecBridge(17753): Codec released
[ +2 ms] W/cr_MediaCodecBridge(17753): Releasing: OMX.android.goldfish.h264.decoder
[ +4 ms] D/SurfaceUtils(17753): connecting to surface 0xe9361108, reason connectToSurface
[ +2 ms] I/MediaCodec(17753): [OMX.android.goldfish.h264.decoder] setting surface generation to 18179077
[ +2 ms] D/SurfaceUtils(17753): disconnecting from surface 0xe9361108, reason connectToSurface(reconnect)
[ +2 ms] D/SurfaceUtils(17753): connecting to surface 0xe9361108, reason connectToSurface(reconnect)
[ +2 ms] D/SurfaceUtils(17753): disconnecting from surface 0xe9361108, reason setNativeWindowSizeFormatAndUsage
[ +2 ms] D/SurfaceUtils(17753): connecting to surface 0xe9361108, reason setNativeWindowSizeFormatAndUsage
[ +5 ms] D/SurfaceUtils(17753): set up nativeWindow 0xe9361108 for 1632x1080, color 0x13, rotation 0, usage 0x1002900
[ +10 ms] D/SurfaceUtils(17753): disconnecting from surface 0xe935c578, reason disconnectFromSurface
[ +5 ms] W/cr_MediaCodecBridge(17753): Codec released
[ +6 ms] D/SurfaceUtils(17753): disconnecting from surface 0xe9362a38, reason disconnectFromSurface
[ +2 ms] D/SurfaceUtils(17753): disconnecting from surface 0xe9361108, reason disconnectFromSurface
[+18745 ms] E/chromium(17753): [ERROR:image_reader_gl_owner.cc(263)] no buffers currently available in the reader queue
flutter analyze
Running "flutter pub get" in bug... 2.646ms
Analyzing bug...
No issues found! (ran in 37.3s)
flutter doctor -v
[√] Flutter (Channel stable, 3.0.1, on Microsoft Windows [Version 10.0.22000.708], locale de-DE)
• Flutter version 3.0.1 at C:\Users\User\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision fb57da5f94 (9 days ago), 2022-05-19 15:50:29 -0700
• Engine revision caaafc5604
• Dart version 2.17.1
• DevTools version 2.12.2
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at C:\Users\User\AppData\Local\Android\Sdk
• Platform android-32, build-tools 31.0.0
• ANDROID_SDK_ROOT = C:\Users\User\AppData\Local\Android\Sdk
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.0.5)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.0.32112.339
• Windows 10 SDK version 10.0.19041.0
[√] Android Studio (version 2021.2)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)
[√] VS Code (version 1.67.2)
• VS Code at C:\Users\User\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.40.0
[√] Connected device (4 available)
• sdk gphone x86 (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22000.708]
• Chrome (web) • chrome • web-javascript • Google Chrome 101.0.4951.67
• Edge (web) • edge • web-javascript • Microsoft Edge 101.0.1210.53
[√] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!
anhtuan23, robert-virkus, Sheng20152, Spencer231, hanlyynadackal and 71 moreJosephNK, boichuk-oleh, mateusfccp, usajip, backviet and 5 more
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listc: crashStack traces logged to the consoleStack traces logged to the consolec: fatal crashCrashes that terminate the processCrashes that terminate the processcustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.engineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.found in release: 3.0Found to occur in 3.0Found to occur in 3.0found in release: 3.1Found to occur in 3.1Found to occur in 3.1p: webviewThe WebView pluginThe WebView pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-androidAndroid applications specificallyAndroid applications specificallyteam-androidOwned by Android platform teamOwned by Android platform teamtriaged-androidTriaged by Android platform teamTriaged by Android platform team
