Closed robert-virkus closed 4 weeks ago
👋 @robert-virkus
NOTE: This comment is auto-generated.
Are you sure you have already searched for the same problem?
Some people open new issues but they didn't search for something similar or for the same issue. Please, search for it using the GitHub issue search box or on the official inappwebview.dev website, or, also, using Google, StackOverflow, etc. before posting a new one. You may already find an answer to your problem!
If this is really a new issue, then thank you for raising it. I will investigate it and get back to you as soon as possible. Please, make sure you have given me as much context as possible! Also, if you didn't already, post a code example that can replicate this issue.
In the meantime, you can already search for some possible solutions online! Because this plugin uses native WebView, you can search online for the same issue adding android WebView [MY ERROR HERE]
or ios WKWebView [MY ERROR HERE]
keywords.
Following these steps can save you, me, and other people a lot of time, thanks!
I think this is an global Android problem with any kind of webviews.
I have the same problem
I have the same problem, any update?
I have the same problem
me too is any updated?
Facing same issue.
I have the same problem
This issue is stale and has been automatically closed because it has been open for more than 365 days with no activity. Please reopen a new issue if you still have it.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue.
Environment
Device information:
Description
With a hybrid webview that is embedded in a column, after loading a long webpage and then measuring the document height and then setting the height of webview (by wrapping it into a SizedBox), the app crashes or the webview is rendered empty after setting the height. It seems to be dependent on the free memory if the app crashes or "only" the webview is shown empty.
Expected behavior: WebView does not crash / renders correctly.
Current behavior: For long web-pages the web view crashes:
On iOS the same app works fine.
Steps to reproduce
GIVEN the app runs on Android (tested with Android 10, 11 and 12) AND using current InAppWebView version v5.4.3+7.
Sample App
```dart import 'package:flutter/material.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 StateStacktrace/Logcat
Logs
``` PS C:\Users\User\Development\bug _in_app_webview> flutter run --verbose [ +171 ms] executing: [C:\Users\User\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ +481 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H [ +1 ms] cd41fdd495f6944ecd3506c21e94c6567b073278 [ +2 ms] executing: [C:\Users\User\flutter/] git tag --points-at cd41fdd495f6944ecd3506c21e94c6567b073278 [ +153 ms] Exit code 0 from: git tag --points-at cd41fdd495f6944ecd3506c21e94c6567b073278 [ +1 ms] 3.0.2 [ +25 ms] executing: [C:\Users\User\flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +124 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ +1 ms] origin/stable [ +1 ms] executing: [C:\Users\User\flutter/] git ls-remote --get-url origin [ +143 ms] Exit code 0 from: git ls-remote --get-url origin [ +1 ms] https://github.com/flutter/flutter.git [ +300 ms] executing: [C:\Users\User\flutter/] git rev-parse --abbrev-ref HEAD [ +124 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ +1 ms] stable [ +208 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ +1 ms] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ +17 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update. [ +1 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. [ +1 ms] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +162 ms] executing: C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe devices -l [ +167 ms] List of devices attached ae1dc0ac device product:renoir_eea model:M2101K9G device:renoir transport_id:15 [ +24 ms] C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -s ae1dc0ac shell getprop [ +195 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ +12 ms] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +340 ms] Skipping pub get: version match. [ +74 ms] Found plugin flutter_inappwebview at C:\Users\User\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_inappwebview-5.4.3+7\ [ +114 ms] Found plugin flutter_inappwebview at C:\Users\User\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_inappwebview-5.4.3+7\ [ +60 ms] Generating C:\Users\User\Development\bug _in_app_webview\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java [ +242 ms] ro.hardware = qcom [ +85 ms] Initializing file store [ +29 ms] Skipping target: gen_localizations [ +11 ms] gen_dart_plugin_registrant: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents: C:\Users\User\Development\bug _in_app_webview\.dart_tool\package_config_subset} [ +42 ms] Found plugin flutter_inappwebview at C:\Users\User\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_inappwebview-5.4.3+7\ [ +40 ms] gen_dart_plugin_registrant: Complete [ +5 ms] Skipping target: _composite [ +8 ms] complete [ +25 ms] Launching lib\main.dart on M2101K9G in debug mode... [ +26 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.40af8b04\flutter_tool.5f865de9\app.dill --packages C:\Users\User\Development\bug _in_app_webview\.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 [ +27 ms] executing: C:\Users\User\AppData\Local\Android\Sdk\build-tools\31.0.0\aapt dump xmltree C:\Users\User\Development\bug _in_app_webview\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml [ +84 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 _in_app_webview\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml [ +2 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: queries (line=17) E: intent (line=18) E: action (line=19) A: android:name(0x01010003)="android.support.customtabs.action.CustomTabsService" (Raw: "android.support.customtabs.action.CustomTabsService") E: application (line=23) A: android:label(0x01010001)="bug" (Raw: "bug") A: android:icon(0x01010002)=@0x7f0d0000 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=29) A: android:theme(0x01010000)=@0x7f0f00a3 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=44) A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme") A: android:resource(0x01010025)=@0x7f0f00a4 E: intent-filter (line=48) E: action (line=49) A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN") E: category (line=51) A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER") E: meta-data (line=58) A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding") A: android:value(0x01010024)=(type 0x10)0x2 E: activity (line=62) A: android:theme(0x01010000)=@0x7f0f0005 A: android:name(0x01010003)="com.pichillilorenzo.flutter_inappwebview.in_app_browser.InAppBrowserActivity" (Raw: "com.pichillilorenzo.flutter_inappwebview.in_app_browser.InAppBrowserActivity") A: android:exported(0x01010010)=(type 0x12)0xffffffff A: android:configChanges(0x0101001f)=(type 0x11)0x400035b4 E: activity (line=67) A: android:theme(0x01010000)=@0x7f0f0117 A: android:name(0x01010003)="com.pichillilorenzo.flutter_inappwebview.chrome_custom_tabs.ChromeCustomTabsActivity" (Raw: "com.pichillilorenzo.flutter_inappwebview.chrome_custom_tabs.ChromeCustomTabsActivity") A: android:exported(0x01010010)=(type 0x12)0xffffffff E: activity (line=71) A: android:theme(0x01010000)=@0x7f0f0117 A: android:name(0x01010003)="com.pichillilorenzo.flutter_inappwebview.chrome_custom_tabs.TrustedWebActivity" (Raw: "com.pichillilorenzo.flutter_inappwebview.chrome_custom_tabs.TrustedWebActivity") A: android:exported(0x01010010)=(type 0x12)0xffffffff E: activity (line=75) A: android:theme(0x01010000)=@0x7f0f0117 A: android:name(0x01010003)="com.pichillilorenzo.flutter_inappwebview.chrome_custom_tabs.ChromeCustomTabsActivitySingleInstance" (Raw: "com.pichillilorenzo.flutter_inappwebview.chrome_custom_tabs.ChromeCustomTabsActivitySingleInstance") A: android:exported(0x01010010)=(type 0x12)0xffffffff A: android:launchMode(0x0101001d)=(type 0x10)0x3 E: activity (line=80) A: android:theme(0x01010000)=@0x7f0f0117 A: android:name(0x01010003)="com.pichillilorenzo.flutter_inappwebview.chrome_custom_tabs.TrustedWebActivitySingleInstance" (Raw: "com.pichillilorenzo.flutter_inappwebview.chrome_custom_tabs.TrustedWebActivitySingleInstance") A: android:exported(0x01010010)=(type 0x12)0xffffffff A: android:launchMode(0x0101001d)=(type 0x10)0x3 E: receiver (line=86) A: android:name(0x01010003)="com.pichillilorenzo.flutter_inappwebview.chrome_custom_tabs.ActionBroadcastReceiver" (Raw: "com.pichillilorenzo.flutter_inappwebview.chrome_custom_tabs.ActionBroadcastReceiver") A: android:enabled(0x0101000e)=(type 0x12)0xffffffff A: android:exported(0x01010010)=(type 0x12)0x0 E: meta-data (line=91) A: android:name(0x01010003)="io.flutter.embedded_views_preview" (Raw: "io.flutter.embedded_views_preview") A: android:value(0x01010024)=(type 0x12)0xffffffff E: uses-library (line=95) A: android:name(0x01010003)="androidx.window.extensions" (Raw: "androidx.window.extensions") A: android:required(0x0101028e)=(type 0x12)0x0 E: uses-library (line=98) A: android:name(0x01010003)="androidx.window.sidecar" (Raw: "androidx.window.sidecar") A: android:required(0x0101028e)=(type 0x12)0x0 E: provider (line=102) A: android:name(0x01010003)="androidx.startup.InitializationProvider" (Raw: "androidx.startup.InitializationProvider") A: android:exported(0x01010010)=(type 0x12)0x0 A: android:authorities(0x01010018)="com.example.bug.androidx-startup" (Raw: "com.example.bug.androidx-startup") E: meta-data (line=106) A: android:name(0x01010003)="androidx.emoji2.text.EmojiCompatInitializer" (Raw: "androidx.emoji2.text.EmojiCompatInitializer") A: android:value(0x01010024)="androidx.startup" (Raw: "androidx.startup") E: meta-data (line=109) A: android:name(0x01010003)="androidx.lifecycle.ProcessLifecycleInitializer" (Raw: "androidx.lifecycle.ProcessLifecycleInitializer") A: android:value(0x01010024)="androidx.startup" (Raw: "androidx.startup") [ +46 ms] executing: C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -s ae1dc0ac shell -x logcat -v time -t 1 [ +68 ms] <- compile package:bug/main.dart [ +361 ms] --------- beginning of main 06-17 11:06:43.882 E/cnss-daemon( 1491): wlan_service_update_sys_param: unable to open /proc/sys/net/ipv4/tcp_use_userconfig [ +40 ms] executing: C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe version [ +105 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 [ +6 ms] executing: C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe start-server [ +115 ms] Building APK [ +45 ms] Running Gradle task 'assembleDebug'... [ +15 ms] Using gradle from C:\Users\User\Development\bug _in_app_webview\android\gradlew.bat. [ +83 ms] executing: C:\Program Files\Android\Android Studio\jre\bin\java -version [ +340 ms] Exit code 0 from: C:\Program Files\Android\Android Studio\jre\bin\java -version [ +1 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) [ +4 ms] executing: C:\Program Files\Android\Android Studio\jre\bin\java -version [ +323 ms] Exit code 0 from: C:\Program Files\Android\Android Studio\jre\bin\java -version [ +1 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) [ +4 ms] executing: C:\Program Files\Android\Android Studio\jre\bin\java -version [ +333 ms] Exit code 0 from: C:\Program Files\Android\Android Studio\jre\bin\java -version [ +1 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 _in_app_webview\android/] C:\Users\User\Development\bug _in_app_webview\android\gradlew.bat -Pverbose=true -Ptarget-platform=android-arm64 -Ptarget=C:\Users\User\Development\bug _in_app_webview\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 [+6806 ms] > Task :app:preBuild UP-TO-DATE [ +2 ms] > Task :app:preDebugBuild UP-TO-DATE [ +1 ms] > Task :app:mergeDebugNativeDebugMetadata NO-SOURCE [+27186 ms] > Task :app:compileFlutterBuildDebug [ +1 ms] Parameter format not correct - [ +292 ms] > Task :app:packLibsflutterBuildDebug UP-TO-DATE [ +2 ms] > Task :flutter_inappwebview:preBuild UP-TO-DATE [ +1 ms] > Task :flutter_inappwebview:preDebugBuild UP-TO-DATE [ +1 ms] > Task :flutter_inappwebview:compileDebugAidl NO-SOURCE [ +1 ms] > Task :app:compileDebugAidl NO-SOURCE [ +1 ms] > Task :flutter_inappwebview:packageDebugRenderscript NO-SOURCE [ +1 ms] > Task :app:compileDebugRenderscript NO-SOURCE [ +1 ms] > Task :app:generateDebugBuildConfig UP-TO-DATE [ +1 ms] > Task :flutter_inappwebview:writeDebugAarMetadata UP-TO-DATE [ +80 ms] > Task :app:checkDebugAarMetadata UP-TO-DATE [ +94 ms] > Task :app:cleanMergeDebugAssets [ +1 ms] > Task :app:mergeDebugShaders UP-TO-DATE [ +1 ms] > Task :app:compileDebugShaders NO-SOURCE [ +1 ms] > Task :app:generateDebugAssets UP-TO-DATE [ +1 ms] > Task :flutter_inappwebview:mergeDebugShaders UP-TO-DATE [ +1 ms] > Task :flutter_inappwebview:compileDebugShaders NO-SOURCE [ +1 ms] > Task :flutter_inappwebview:generateDebugAssets UP-TO-DATE [ +1 ms] > Task :flutter_inappwebview:packageDebugAssets UP-TO-DATE [ +1 ms] > Task :app:mergeDebugAssets [ +791 ms] > Task :app:copyFlutterAssetsDebug [ +2 ms] > Task :app:generateDebugResValues UP-TO-DATE [ +1 ms] > Task :app:generateDebugResources UP-TO-DATE [ +2 ms] > Task :flutter_inappwebview:compileDebugRenderscript NO-SOURCE [ +1 ms] > Task :flutter_inappwebview:generateDebugResValues UP-TO-DATE [ +1 ms] > Task :flutter_inappwebview:generateDebugResources UP-TO-DATE [ +1 ms] > Task :flutter_inappwebview:packageDebugResources UP-TO-DATE [ +1 ms] > Task :app:mergeDebugResources UP-TO-DATE [ +99 ms] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE [ +3 ms] > Task :app:extractDeepLinksDebug UP-TO-DATE [ +1 ms] > Task :flutter_inappwebview:extractDeepLinksDebug UP-TO-DATE [ +1 ms] > Task :flutter_inappwebview:processDebugManifest UP-TO-DATE [ +1 ms] > Task :app:processDebugMainManifest UP-TO-DATE [ +1 ms] > Task :app:processDebugManifest UP-TO-DATE [ +12 ms] > Task :app:processDebugManifestForPackage UP-TO-DATE [ +1 ms] > Task :flutter_inappwebview:compileDebugLibraryResources UP-TO-DATE [ +1 ms] > Task :flutter_inappwebview:parseDebugLocalResources UP-TO-DATE [ +73 ms] > Task :flutter_inappwebview:generateDebugRFile UP-TO-DATE [ +108 ms] > Task :app:processDebugResources UP-TO-DATE [ +14 ms] > Task :flutter_inappwebview:generateDebugBuildConfig UP-TO-DATE [ +71 ms] > Task :flutter_inappwebview:javaPreCompileDebug UP-TO-DATE [ +2 ms] > Task :flutter_inappwebview:compileDebugJavaWithJavac UP-TO-DATE [ +2 ms] > Task :flutter_inappwebview:bundleLibCompileToJarDebug UP-TO-DATE [ +500 ms] > Task :app:compileDebugKotlin UP-TO-DATE [ +7 ms] > Task :app:javaPreCompileDebug UP-TO-DATE [ +8 ms] > Task :app:compileDebugJavaWithJavac UP-TO-DATE [ +73 ms] > Task :app:processDebugJavaRes NO-SOURCE [ +2 ms] > Task :flutter_inappwebview:processDebugJavaRes NO-SOURCE [ +1 ms] > Task :flutter_inappwebview:bundleLibResDebug NO-SOURCE [ +307 ms] > Task :app:mergeDebugJavaResource UP-TO-DATE [ +2 ms] > Task :flutter_inappwebview:bundleLibRuntimeToJarDebug UP-TO-DATE [ +1 ms] > Task :app:checkDebugDuplicateClasses UP-TO-DATE [ +95 ms] > Task :app:dexBuilderDebug UP-TO-DATE [ +3 ms] > Task :app:desugarDebugFileDependencies UP-TO-DATE [ +192 ms] > Task :app:mergeExtDexDebug UP-TO-DATE [ +17 ms] > Task :app:mergeDebugJniLibFolders UP-TO-DATE [ +2 ms] > Task :flutter_inappwebview:mergeDebugJniLibFolders UP-TO-DATE [ +2 ms] > Task :flutter_inappwebview:mergeDebugNativeLibs NO-SOURCE [ +1 ms] > Task :flutter_inappwebview:copyDebugJniLibsProjectOnly UP-TO-DATE [ +1 ms] > Task :app:mergeDebugNativeLibs UP-TO-DATE [ +116 ms] > Task :app:stripDebugDebugSymbols UP-TO-DATE [ +7 ms] > Task :app:validateSigningDebug UP-TO-DATE [ +2 ms] > Task :app:writeDebugAppMetadata UP-TO-DATE [ +1 ms] > Task :app:writeDebugSigningConfigVersions UP-TO-DATE [ +2 ms] > Task :flutter_inappwebview:stripDebugDebugSymbols NO-SOURCE [ +1 ms] > Task :flutter_inappwebview:copyDebugJniLibsProjectAndLocalJars UP-TO-DATE [ +139 ms] > Task :flutter_inappwebview:extractDebugAnnotations UP-TO-DATE [ +2 ms] > Task :app:mergeDexDebug UP-TO-DATE [ +104 ms] > Task :flutter_inappwebview:mergeDebugGeneratedProguardFiles UP-TO-DATE [ +1 ms] > Task :flutter_inappwebview:mergeDebugConsumerProguardFiles UP-TO-DATE [ +1 ms] > Task :flutter_inappwebview:prepareDebugArtProfile UP-TO-DATE [ +1 ms] > Task :flutter_inappwebview:prepareLintJarForPublish UP-TO-DATE [ +1 ms] > Task :flutter_inappwebview:mergeDebugJavaResource UP-TO-DATE [ +1 ms] > Task :flutter_inappwebview:syncDebugLibJars UP-TO-DATE [ +1 ms] > Task :flutter_inappwebview:bundleDebugAar UP-TO-DATE [ +1 ms] > Task :flutter_inappwebview:assembleDebug UP-TO-DATE [ +882 ms] > Task :app:compressDebugAssets [ +1 ms] Execution optimizations have been disabled for task ':app:compressDebugAssets' to ensure correctness due to the following reasons: [ +1 ms] - Gradle detected a problem with the following location: 'C:\Users\User\Development\bug _in_app_webview\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. [+1239 ms] > Task :app:packageDebug [ +1 ms] > Task :app:createDebugApkListingFileRedirect UP-TO-DATE [ +263 ms] > Task :app:assembleDebug [ +92 ms] Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. [ +2 ms] You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. [ +2 ms] See https://docs.gradle.org/7.4/userguide/command_line_interface.html#sec:command_line_warnings [ +1 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. [ +1 ms] BUILD SUCCESSFUL in 39s [ +1 ms] 61 actionable tasks: 7 executed, 54 up-to-date [ +565 ms] Running Gradle task 'assembleDebug'... (completed in 41,4s) [ +115 ms] calculateSha: LocalDirectory: 'C:\Users\User\Development\bug _in_app_webview\build\app\outputs\flutter-apk'/app.apk [+1606 ms] √ Built build\app\outputs\flutter-apk\app-debug.apk. [ +11 ms] executing: C:\Users\User\AppData\Local\Android\Sdk\build-tools\31.0.0\aapt dump xmltree C:\Users\User\Development\bug _in_app_webview\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml [ +89 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 _in_app_webview\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml [ +2 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: queries (line=17) E: intent (line=18) E: action (line=19) A: android:name(0x01010003)="android.support.customtabs.action.CustomTabsService" (Raw: "android.support.customtabs.action.CustomTabsService") E: application (line=23) A: android:label(0x01010001)="bug" (Raw: "bug") A: android:icon(0x01010002)=@0x7f0d0000 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=29) A: android:theme(0x01010000)=@0x7f0f00a3 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=44) A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme") A: android:resource(0x01010025)=@0x7f0f00a4 E: intent-filter (line=48) E: action (line=49) A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN") E: category (line=51) A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER") E: meta-data (line=58) A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding") A: android:value(0x01010024)=(type 0x10)0x2 E: activity (line=62) A: android:theme(0x01010000)=@0x7f0f0005 A: android:name(0x01010003)="com.pichillilorenzo.flutter_inappwebview.in_app_browser.InAppBrowserActivity" (Raw: "com.pichillilorenzo.flutter_inappwebview.in_app_browser.InAppBrowserActivity") A: android:exported(0x01010010)=(type 0x12)0xffffffff A: android:configChanges(0x0101001f)=(type 0x11)0x400035b4 E: activity (line=67) A: android:theme(0x01010000)=@0x7f0f0117 A: android:name(0x01010003)="com.pichillilorenzo.flutter_inappwebview.chrome_custom_tabs.ChromeCustomTabsActivity" (Raw: "com.pichillilorenzo.flutter_inappwebview.chrome_custom_tabs.ChromeCustomTabsActivity") A: android:exported(0x01010010)=(type 0x12)0xffffffff E: activity (line=71) A: android:theme(0x01010000)=@0x7f0f0117 A: android:name(0x01010003)="com.pichillilorenzo.flutter_inappwebview.chrome_custom_tabs.TrustedWebActivity" (Raw: "com.pichillilorenzo.flutter_inappwebview.chrome_custom_tabs.TrustedWebActivity") A: android:exported(0x01010010)=(type 0x12)0xffffffff E: activity (line=75) A: android:theme(0x01010000)=@0x7f0f0117 A: android:name(0x01010003)="com.pichillilorenzo.flutter_inappwebview.chrome_custom_tabs.ChromeCustomTabsActivitySingleInstance" (Raw: "com.pichillilorenzo.flutter_inappwebview.chrome_custom_tabs.ChromeCustomTabsActivitySingleInstance") A: android:exported(0x01010010)=(type 0x12)0xffffffff A: android:launchMode(0x0101001d)=(type 0x10)0x3 E: activity (line=80) A: android:theme(0x01010000)=@0x7f0f0117 A: android:name(0x01010003)="com.pichillilorenzo.flutter_inappwebview.chrome_custom_tabs.TrustedWebActivitySingleInstance" (Raw: "com.pichillilorenzo.flutter_inappwebview.chrome_custom_tabs.TrustedWebActivitySingleInstance") A: android:exported(0x01010010)=(type 0x12)0xffffffff A: android:launchMode(0x0101001d)=(type 0x10)0x3 E: receiver (line=86) A: android:name(0x01010003)="com.pichillilorenzo.flutter_inappwebview.chrome_custom_tabs.ActionBroadcastReceiver" (Raw: "com.pichillilorenzo.flutter_inappwebview.chrome_custom_tabs.ActionBroadcastReceiver") A: android:enabled(0x0101000e)=(type 0x12)0xffffffff A: android:exported(0x01010010)=(type 0x12)0x0 E: meta-data (line=91) A: android:name(0x01010003)="io.flutter.embedded_views_preview" (Raw: "io.flutter.embedded_views_preview") A: android:value(0x01010024)=(type 0x12)0xffffffff E: uses-library (line=95) A: android:name(0x01010003)="androidx.window.extensions" (Raw: "androidx.window.extensions") A: android:required(0x0101028e)=(type 0x12)0x0 E: uses-library (line=98) A: android:name(0x01010003)="androidx.window.sidecar" (Raw: "androidx.window.sidecar") A: android:required(0x0101028e)=(type 0x12)0x0 E: provider (line=102) A: android:name(0x01010003)="androidx.startup.InitializationProvider" (Raw: "androidx.startup.InitializationProvider") A: android:exported(0x01010010)=(type 0x12)0x0 A: android:authorities(0x01010018)="com.example.bug.androidx-startup" (Raw: "com.example.bug.androidx-startup") E: meta-data (line=106) A: android:name(0x01010003)="androidx.emoji2.text.EmojiCompatInitializer" (Raw: "androidx.emoji2.text.EmojiCompatInitializer") A: android:value(0x01010024)="androidx.startup" (Raw: "androidx.startup") E: meta-data (line=109) A: android:name(0x01010003)="androidx.lifecycle.ProcessLifecycleInitializer" (Raw: "androidx.lifecycle.ProcessLifecycleInitializer") A: android:value(0x01010024)="androidx.startup" (Raw: "androidx.startup") [ +36 ms] Stopping app 'app.apk' on M2101K9G. [ +2 ms] executing: C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -s ae1dc0ac shell am force-stop com.example.bug [ +211 ms] executing: C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -s ae1dc0ac shell pm list packages com.example.bug [ +230 ms] package:com.example.bug [ +3 ms] executing: C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -s ae1dc0ac shell cat /data/local/tmp/sky.com.example.bug.sha1 [ +140 ms] dc4c90965a45c25ca32410b5a2be482652a90d37 [ +2 ms] Installing APK. [ +4 ms] Installing build\app\outputs\flutter-apk\app.apk... [ ] executing: C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -s ae1dc0ac install -t -r C:\Users\User\Development\bug _in_app_webview\build\app\outputs\flutter-apk\app.apk [+3592 ms] Performing Streamed Install Success [ +2 ms] Installing build\app\outputs\flutter-apk\app.apk... (completed in 3,6s) [ +3 ms] executing: C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -s ae1dc0ac shell echo -n e44d7ee7361794d65f863c360ca4fada5ee2acf7 > /data/local/tmp/sky.com.example.bug.sha1 [ +123 ms] executing: C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -s ae1dc0ac shell -x logcat -v time -t 1 [ +469 ms] --------- beginning of main 06-17 11:07:32.724 I/Finsky ( 2743): [2] par.n(8): Invalidating cached PackageState for com.example.bug [ +19 ms] executing: C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -s ae1dc0ac 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 [ +163 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.bug/.MainActivity (has extras) } [ +1 ms] Waiting for observatory port to be available... [ +862 ms] Observatory URL on device: http://127.0.0.1:37743/UugSy9HTtJI=/ [ +3 ms] executing: C:\Users\User\AppData\Local\Android\Sdk\platform-tools\adb.exe -s ae1dc0ac forward tcp:0 tcp:37743 [ +67 ms] 65522 [ +1 ms] Forwarded host port 65522 to device port 37743 for Observatory [ +14 ms] Caching compiled dill [ +61 ms] Connecting to service protocol: http://127.0.0.1:65522/UugSy9HTtJI=/ [ +286 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:65522/UugSy9HTtJI=/. [ +236 ms] DDS is listening at http://127.0.0.1:65525/kGIjQQBVvoA=/. [ +141 ms] Successfully connected to service protocol: http://127.0.0.1:65522/UugSy9HTtJI=/ [ +93 ms] DevFS: Creating new filesystem on the device (null) [ +30 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.bug/code_cache/bug%20_in_app_webviewBLPTEK/bug%20_in_app_webview/) [ +5 ms] Updating assets [ +201 ms] Syncing files to device M2101K9G... [ +5 ms] <- reset [ ] Compiling dart to kernel with 0 updated files [ +1 ms] Processing bundle. [ +3 ms] <- recompile package:bug/main.dart 37b273cd-a4af-466b-aff1-d52de5d6206a [ +1 ms] <- 37b273cd-a4af-466b-aff1-d52de5d6206a [ +6 ms] Bundle processing done. [ +80 ms] D/EgretLoader( 7631): EgretLoader(Context context) [ +2 ms] D/EgretLoader( 7631): The context is not activity [ +6 ms] W/com.example.bu( 7631): Accessing hidden method Ldalvik/system/CloseGuard;->get()Ldalvik/system/CloseGuard; (greylist,core-platform-api, reflection, allowed) [ +1 ms] W/com.example.bu( 7631): Accessing hidden method Ldalvik/system/CloseGuard;->open(Ljava/lang/String;)V (greylist,core-platform-api, reflection, allowed) [ +1 ms] W/com.example.bu( 7631): Accessing hidden method Ldalvik/system/CloseGuard;->warnIfOpen()V (greylist,core-platform-api, reflection, allowed) [ +4 ms] I/System.out( 7631): recordForce value 6 [ +3 ms] D/FrameIndicator( 7631): support status: 1 0x70b6deb018 0x70b6deb4c4 [ +4 ms] W/ContentCatcher( 7631): Failed to notify a WebView [ +9 ms] E/LB ( 7631): fail to open file: No such file or directory [ +1 ms] E/FrameEvents( 7631): updateAcquireFence: Did not find frame. [ +58 ms] Updating files. [ +1 ms] DevFS: Sync finished [ +4 ms] Syncing files to device M2101K9G... (completed in 196ms) [ +2 ms] Synced 0.0MB. [ +7 ms] <- accept [ +12 ms] Connected to _flutterView/0xb40000713a11ce20. [ +8 ms] Flutter run key commands. [ +4 ms] r Hot reload. [ +2 ms] R Hot restart. [ +1 ms] h List all available interactive commands. [ +2 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). [ +1 ms] Running with sound null safety [ +3 ms] An Observatory debugger and profiler on M2101K9G is available at: http://127.0.0.1:65525/kGIjQQBVvoA=/ [ +28 ms] W/com.example.bu( 7631): Accessing hidden method Landroid/media/AudioManager;->getOutputLatency(I)I (greylist, reflection, allowed) [ +3 ms] W/cr_media( 7631): Requires BLUETOOTH permission [ +141 ms] I/com.example.bu( 7631): ProcessProfilingInfo new_methods=1699 is saved saved_to_disk=1 resolve_classes_delay=8000 [ +87 ms] E/FrameEvents( 7631): updateAcquireFence: Did not find frame. [ +38 ms] E/FrameEvents( 7631): updateAcquireFence: Did not find frame. [ +179 ms] The Flutter DevTools debugger and profiler on M2101K9G is available at: http://127.0.0.1:9104?uri=http://127.0.0.1:65525/kGIjQQBVvoA=/ [ +407 ms] E/FrameEvents( 7631): updateAcquireFence: Did not find frame. [ +100 ms] I/flutter ( 7631): SETTING HEIGHT TO 107748.0 [ +40 ms] E/FrameEvents( 7631): updateAcquireFence: Did not find frame. [ +45 ms] E/FrameEvents( 7631): updateAcquireFence: Did not find frame. [ +612 ms] E/qdgralloc( 7631): [AlignUnCompressedRGB] width:1088, height:296320, format:1, tile_enabled:1 [ +3 ms] E/qdgralloc( 7631): [AlignUnCompressedRGB] aligned_w:1088, aligned_h:296320 [ ] E/qdgralloc( 7631): [AlignUnCompressedRGB] width:1088, height:296320, format:1, tile_enabled:1 [ ] E/qdgralloc( 7631): [AlignUnCompressedRGB] aligned_w:1088, aligned_h:296320 [ +1 ms] E/chromium( 7631): [ERROR:skia_output_surface_impl.cc(984)] [ +1 ms] E/chromium( 7631): surface_size=1080x296307 [ +1 ms] E/chromium( 7631): format=4 [ +1 ms] E/chromium( 7631): color_type=4 [ ] E/chromium( 7631): backend_format.isValid()=1 [ +1 ms] E/chromium( 7631): backend_format.backend()=0 [ +1 ms] E/chromium( 7631): backend_format.asGLFormat()=1 [ +1 ms] E/chromium( 7631): backend_format.asVkFormat()=0 [ +1 ms] E/chromium( 7631): backend_format.asVkFormat() vk_format=0 [ +1 ms] E/chromium( 7631): sample_count=1 [ +1 ms] E/chromium( 7631): surface_origin=1 [ +1 ms] E/chromium( 7631): willGlFBO0=1 [ +1 ms] E/FrameEvents( 7631): updateAcquireFence: Did not find frame. [ +1 ms] W/Looper ( 7631): PerfMonitor doFrame : time=605ms vsyncFrame=14607811 latency=9ms procState=-1 [ +1 ms] I/Choreographer( 7631): Skipped 35 frames! The application may be doing too much work on its main thread. [ +671 ms] E/qdgralloc( 7631): [AlignUnCompressedRGB] width:1088, height:296320, format:1, tile_enabled:1 [ +1 ms] E/qdgralloc( 7631): [AlignUnCompressedRGB] aligned_w:1088, aligned_h:296320 [ +1 ms] E/qdgralloc( 7631): [AlignUnCompressedRGB] width:1088, height:296320, format:1, tile_enabled:1 [ +1 ms] E/qdgralloc( 7631): [AlignUnCompressedRGB] aligned_w:1088, aligned_h:296320 [ +38 ms] E/FrameEvents( 7631): updateAcquireFence: Did not find frame. [ +14 ms] W/Looper ( 7631): PerfMonitor doFrame : time=700ms vsyncFrame=14607812 latency=599ms procState=-1 historyMsgCount=2 (msgIndex=1 wall=605ms seq=206 running=5ms runnable=10ms late=9ms h=android.view.Choreographer$FrameHandler c=android.view.Choreographer$FrameDisplayEventReceiver) [ +4 ms] I/Choreographer( 7631): Skipped 41 frames! The application may be doing too much work on its main thread. [ +1 ms] E/qdgralloc( 7631): [AlignUnCompressedRGB] width:1088, height:296320, format:1, tile_enabled:1 [ +1 ms] E/qdgralloc( 7631): [AlignUnCompressedRGB] aligned_w:1088, aligned_h:296320 [ +1 ms] E/qdgralloc( 7631): [AlignUnCompressedRGB] width:1088, height:296320, format:1, tile_enabled:1 [ +1 ms] E/qdgralloc( 7631): [AlignUnCompressedRGB] aligned_w:1088, aligned_h:296320 [ +6 ms] E/FrameEvents( 7631): updateAcquireFence: Did not find frame. [ +1 ms] W/Looper ( 7631): PerfMonitor doFrame : time=11ms vsyncFrame=14607817 latency=696ms procState=-1 historyMsgCount=2 (msgIndex=1 wall=700ms seq=208 running=2ms late=599ms h=android.view.Choreographer$FrameHandler c=android.view.Choreographer$FrameDisplayEventReceiver) [ +6 ms] E/qdgralloc( 7631): [AlignUnCompressedRGB] width:1088, height:296320, format:1, tile_enabled:1 [ +1 ms] E/qdgralloc( 7631): [AlignUnCompressedRGB] aligned_w:1088, aligned_h:296320 [ ] E/qdgralloc( 7631): [AlignUnCompressedRGB] width:1088, height:296320, format:1, tile_enabled:1 [ +1 ms] E/qdgralloc( 7631): [AlignUnCompressedRGB] aligned_w:1088, aligned_h:296320 [ +22 ms] E/qdgralloc( 7631): [AlignUnCompressedRGB] width:1088, height:296320, format:1, tile_enabled:1 [ +1 ms] E/qdgralloc( 7631): [AlignUnCompressedRGB] aligned_w:1088, aligned_h:296320 [ +1 ms] E/qdgralloc( 7631): [AlignUnCompressedRGB] width:1088, height:296320, format:1, tile_enabled:1 [ +1 ms] E/qdgralloc( 7631): [AlignUnCompressedRGB] aligned_w:1088, aligned_h:296320 [ +1 ms] E/com.example.bu( 7631): [SurfaceTexture-0-7631-0] bindTextureImage: error binding external image: 0x502 [ +5 ms] E/flutter ( 7631): [ERROR:flutter/fml/platform/android/jni_util.cc(204)] java.lang.RuntimeException: Error during updateTexImage (see logcat for details) [ +1 ms] E/flutter ( 7631): at android.graphics.SurfaceTexture.nativeUpdateTexImage(Native Method) [ +1 ms] E/flutter ( 7631): at android.graphics.SurfaceTexture.updateTexImage(SurfaceTexture.java:248) [ +1 ms] E/flutter ( 7631): at io.flutter.embedding.engine.renderer.SurfaceTextureWrapper.updateTexImage(SurfaceTextureWrapper.java:55) [ +1 ms] E/flutter ( 7631): [ +1 ms] F/flutter ( 7631): [FATAL:flutter/shell/platform/android/platform_view_android_jni_impl.cc(1322)] Check failed: fml::jni::CheckException(env). [ +1 ms] E/qdgralloc( 7631): [AlignUnCompressedRGB] width:1088, height:296320, format:1, tile_enabled:1 [ +1 ms] E/qdgralloc( 7631): [AlignUnCompressedRGB] aligned_w:1088, aligned_h:296320 [ +1 ms] E/qdgralloc( 7631): [AlignUnCompressedRGB] width:1088, height:296320, format:1, tile_enabled:1 [ +1 ms] E/qdgralloc( 7631): [AlignUnCompressedRGB] aligned_w:1088, aligned_h:296320 [ +2 ms] E/FrameEvents( 7631): updateAcquireFence: Did not find frame. [+1112 ms] W/Adreno-GSL( 7631):