googleads / googleads-mobile-flutter

A Flutter plugin for the Google Mobile Ads SDK
Apache License 2.0
340 stars 284 forks source link

Rewarded Ads re-render StatelessWidget after re-enter app from home screen icon #578

Closed PonyPC closed 1 year ago

PonyPC commented 2 years ago

Plugin Version

1.2.0

Steps to Reproduce

  1. When the rewarded ad shows, not click the close button, back to home screen, then click the app icon, and the app reloaded.

Expected results: The rewarded ad remains at screen

Actual results: app reloaded

maheshj01 commented 2 years ago

Hi @PonyPC, Thanks for filing the issue. I tried the below code sample, But I am not able to reproduce the issue. The widget does not rebuild on bring to the foreground. Please share a minimal and complete code sample to reproduce the issue.

code sample ```dart // import 'dart:math' as math; import 'dart:io'; import 'package:flutter/material.dart'; import 'package:google_mobile_ads/google_mobile_ads.dart'; class AdsDemo extends StatefulWidget { const AdsDemo({ Key? key, }) : super(key: key); @override State createState() => _AdsDemoState(); } class _AdsDemoState extends State { // Anuncios int _numInterstitialLoadAttempts = 0; int maxFailedLoadAttempts = 3; late RewardedAd? _rewardedAd; int _numRewardedLoadAttempts = 0; late InterstitialAd? _interstitialAd; @override void initState() { super.initState(); // load interstitial ad _createInterstitialAd(); _createRewardedAd(); } static const AdRequest request = AdRequest( keywords: ['foo', 'bar'], contentUrl: 'http://foo.com/bar.html', nonPersonalizedAds: true, ); void _createInterstitialAd() { InterstitialAd.load( adUnitId: Platform.isAndroid ? 'ca-app-pub-3940256099942544/1033173712' : 'ca-app-pub-3940256099942544/4411468910', request: request, adLoadCallback: InterstitialAdLoadCallback( onAdLoaded: (InterstitialAd ad) { print('$ad loaded'); _interstitialAd = ad; _numInterstitialLoadAttempts = 0; _interstitialAd!.setImmersiveMode(true); }, onAdFailedToLoad: (LoadAdError error) { print('InterstitialAd failed to load: $error.'); _numInterstitialLoadAttempts += 1; _interstitialAd = null; if (_numInterstitialLoadAttempts < maxFailedLoadAttempts) { _createInterstitialAd(); } }, )); } void _showInterstitialAd() { if (_interstitialAd == null) { print('Warning: attempt to show interstitial before loaded.'); return; } _interstitialAd!.fullScreenContentCallback = FullScreenContentCallback( onAdShowedFullScreenContent: (InterstitialAd ad) => print('ad onAdShowedFullScreenContent.'), onAdDismissedFullScreenContent: (InterstitialAd ad) { print('$ad onAdDismissedFullScreenContent.'); ad.dispose(); _createInterstitialAd(); }, onAdFailedToShowFullScreenContent: (InterstitialAd ad, AdError error) { print('$ad onAdFailedToShowFullScreenContent: $error'); ad.dispose(); _createInterstitialAd(); }, ); _interstitialAd!.show(); _interstitialAd = null; } void _createRewardedAd() { RewardedAd.load( adUnitId: Platform.isAndroid ? 'ca-app-pub-3940256099942544/5224354917' : 'ca-app-pub-3940256099942544/1712485313', request: request, rewardedAdLoadCallback: RewardedAdLoadCallback( onAdLoaded: (RewardedAd ad) { print('$ad loaded.'); _rewardedAd = ad; _numRewardedLoadAttempts = 0; }, onAdFailedToLoad: (LoadAdError error) { print('RewardedAd failed to load: $error'); _rewardedAd = null; _numRewardedLoadAttempts += 1; if (_numRewardedLoadAttempts < maxFailedLoadAttempts) { _createRewardedAd(); } }, )); } void _showRewardedAd() { if (_rewardedAd == null) { print('Warning: attempt to show rewarded before loaded.'); return; } _rewardedAd!.fullScreenContentCallback = FullScreenContentCallback( onAdShowedFullScreenContent: (RewardedAd ad) => print('ad onAdShowedFullScreenContent.'), onAdDismissedFullScreenContent: (RewardedAd ad) { print('$ad onAdDismissedFullScreenContent.'); ad.dispose(); _createRewardedAd(); }, onAdFailedToShowFullScreenContent: (RewardedAd ad, AdError error) { print('$ad onAdFailedToShowFullScreenContent: $error'); ad.dispose(); _createRewardedAd(); }, ); _rewardedAd!.setImmersiveMode(true); _rewardedAd!.show( onUserEarnedReward: (AdWithoutView ad, RewardItem reward) { print('$ad with reward $RewardItem(${reward.amount}, ${reward.type})'); }); _rewardedAd = null; } @override void dispose() { _interstitialAd?.dispose(); _rewardedAd!.dispose(); super.dispose(); } @override Widget build(BuildContext context) { print('AdsDemo build'); return Scaffold( appBar: AppBar( title: const Text("sample ad"), ), body: Container( child: Column( children: [ Center( child: ElevatedButton( onPressed: () async { _showRewardedAd(); }, child: const Text('show rewarded ad'))), ], ), ), ); } } void main() { WidgetsFlutterBinding.ensureInitialized(); //Running the app without the below code will print the device id in log cat MobileAds.instance.updateRequestConfiguration( RequestConfiguration(testDeviceIds: ['INSERT TEST DEVICE ID HERE'])); MobileAds.instance.initialize(); runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( primarySwatch: Colors.blue, ), home: const AdsDemo()); } } ```
flutter doctor -v (mac) ``` [✓] Flutter (Channel stable, 3.0.1, on macOS 12.3 21E230 darwin-arm, locale en-IN) • Flutter version 3.0.1 at /Users/mahesh/Documents/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision fb57da5f94 (3 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 /Users/mahesh/Library/Android/sdk • Platform android-32, build-tools 31.0.0 • ANDROID_HOME = /Users/mahesh/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763) • All Android licenses accepted. [!] Xcode - develop for iOS and macOS (Xcode 13.2.1) • Xcode at /Applications/Xcode.app/Contents/Developer ! CocoaPods 1.10.2 out of date (1.11.0 is recommended). CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side. Without CocoaPods, plugins will not work on iOS or macOS. For more info, see https://flutter.dev/platform-plugins To upgrade see https://guides.cocoapods.org/using/getting-started.html#installation for instructions. [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 2021.1) • Android Studio at /Applications/Android Studio.app/Contents • 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.11+0-b60-7772763) [✓] IntelliJ IDEA Community Edition (version 2021.2.1) • IntelliJ at /Applications/IntelliJ IDEA CE.app • Flutter plugin version 61.2.4 • Dart plugin version 212.5080.8 [✓] VS Code (version 1.66.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.40.0 [✓] Connected device (4 available) • Redmi K20 Pro (mobile) • 192.168.1.2:5555 • android-arm64 • Android 11 (API 30) • iPhone 12 Pro (mobile) • 19FD0231-BFF0-441D-B584-AD94C4084525 • ios • com.apple.CoreSimulator.SimRuntime.iOS-15-2 (simulator) • macOS (desktop) • macos • darwin-arm64 • macOS 12.3 21E230 darwin-arm • Chrome (web) • chrome • web-javascript • Google Chrome 101.0.4951.64 [✓] HTTP Host Availability • All required HTTP hosts are available ! Doctor found issues in 1 category. ```
PonyPC commented 2 years ago

Don't switch app to foreground. Try click the app icon on home screen

PonyPC commented 2 years ago

Your code sample can reproduce the issue too.

maheshj01 commented 2 years ago

Thanks for the clarification @PonyPC, I can reproduce the issue moving he app to background and clicking the app icon rebuilds the whole widget. Code sample in the above comment

logs ``` Launching lib/main.dart on sdk gphone arm64 in debug mode... Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01 Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01 Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 ✓ Built build/app/outputs/flutter-apk/app-debug.apk. W/FlutterActivityAndFragmentDelegate(27670): A splash screen was provided to Flutter, but this is deprecated. See flutter.dev/go/android-splash-migration for migration steps. Connecting to VM Service at ws://127.0.0.1:56280/l60QouL906M=/ws W/FA-Ads (27670): Analytics storage consent denied; will not get app instance id I/ple.ads_exampl(27670): The ClassLoaderContext is a special shared library. I/ple.ads_exampl(27670): The ClassLoaderContext is a special shared library. I/DynamiteModule(27670): Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:221310604 I/DynamiteModule(27670): Selected remote version of com.google.android.gms.ads.dynamite, version >= 221310604 D/DynamitePackage(27670): Instantiated singleton DynamitePackage. D/DynamitePackage(27670): Instantiating com.google.android.gms.ads.ChimeraMobileAdsSettingManagerCreatorImpl I/flutter (27670): AdsDemo build W/ConnectionStatusConfig(27670): Dynamic lookup for intent failed for action: com.google.android.gms.leibniz.events.service.START W/GmsClient(27670): unable to connect to service: com.google.android.gms.leibniz.events.service.START on com.google.android.gms I/WebViewFactory(27670): Loading com.google.android.webview version 101.0.4951.61 (code 495106134) W/ple.ads_exampl(27670): Accessing hidden method Landroid/os/Trace;->isTagEnabled(J)Z (greylist, reflection, allowed) W/ple.ads_exampl(27670): Accessing hidden method Landroid/os/Trace;->traceBegin(JLjava/lang/String;)V (greylist, reflection, allowed) W/ple.ads_exampl(27670): Accessing hidden method Landroid/os/Trace;->traceEnd(J)V (greylist, reflection, allowed) W/ple.ads_exampl(27670): Accessing hidden method Landroid/os/Trace;->asyncTraceBegin(JLjava/lang/String;I)V (greylist, reflection, allowed) W/ple.ads_exampl(27670): Accessing hidden method Landroid/os/Trace;->asyncTraceEnd(JLjava/lang/String;I)V (greylist, reflection, allowed) I/cr_WVCFactoryProvider(27670): Loaded version=101.0.4951.61 minSdkVersion=29 isBundle=true multiprocess=true packageId=2 I/cr_LibraryLoader(27670): Successfully loaded native library I/cr_CachingUmaRecorder(27670): Flushed 9 samples from 9 histograms. D/HostConnection(27670): HostConnection::get() New Host Connection established 0xb4000074f9c23b90, tid 27946 W/ple.ads_exampl(27670): Accessing hidden method Landroid/media/AudioManager;->getOutputLatency(I)I (greylist, reflection, allowed) D/HostConnection(27670): 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_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_3_0 D/EGL_emulation(27670): eglCreateContext: 0xb4000074e9c9b5b0: maj 3 min 0 rcv 3 D/EGL_emulation(27670): eglMakeCurrent: 0xb4000074e9c9b5b0: ver 3 0 (tinfo 0xb400007489c9b370) (first time) W/cr_media(27670): Requires BLUETOOTH permission D/EGL_emulation(27670): eglCreateContext: 0xb4000074e9c9b5b0: maj 3 min 0 rcv 3 D/DynamitePackage(27670): Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl I/Ads (27670): Use RequestConfiguration.Builder().setTestDeviceIds(Arrays.asList("37B2E83F0935251E53408AEA377C62CD")) to get test ads on this device. D/EGL_emulation(27670): eglCreateContext: 0xb4000074e9c9fbd0: maj 3 min 0 rcv 3 I/DynamiteModule(27670): Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:221310604 I/DynamiteModule(27670): Selected remote version of com.google.android.gms.ads.dynamite, version >= 221310604 V/DynamiteModule(27670): Dynamite loader version >= 2, using loadModule2NoCrashUtils I/Ads (27670): Use RequestConfiguration.Builder().setTestDeviceIds(Arrays.asList("37B2E83F0935251E53408AEA377C62CD")) to get test ads on this device. W/Ads (27670): Not retrying to fetch app settings W/Ads (27670): Not retrying to fetch app settings W/AdColonyMediationAdapter(27670): Unexpected SDK version format: . Returning 0.0.0 for SDK version. I/AdColony [INFO](27670): Configuring AdColony D/EGL_emulation(27670): eglCreateContext: 0xb4000074e9ca2300: maj 3 min 0 rcv 3 D/EGL_emulation(27670): eglCreateContext: 0xb4000074e9ca1ac0: maj 3 min 0 rcv 3 D/EGL_emulation(27670): eglCreateContext: 0xb4000074e9c9db80: maj 3 min 0 rcv 3 D/EGL_emulation(27670): eglCreateContext: 0xb4000074e9ca4f00: maj 3 min 0 rcv 3 W/ple.ads_exampl(27670): Accessing hidden method Landroid/media/AudioTrack;->getLatency()I (greylist, reflection, allowed) I/ExoPlayerImpl(27670): Init ExoPlayerLib/2.4.2 [emulator_arm64, sdk_gphone_arm64, Google, 30] I/DynamiteModule(27670): Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:221310604 I/DynamiteModule(27670): Selected remote version of com.google.android.gms.ads.dynamite, version >= 221310604 D/MetadataUtil(27670): Skipped unknown metadata entry: gsst D/MetadataUtil(27670): Skipped unknown metadata entry: gstd D/CCodec (27670): allocate(c2.android.aac.decoder) I/Codec2Client(27670): Available Codec2 services: "software" I/flutter (27670): Instance of 'InterstitialAd' loaded I/CCodec (27670): Created component [c2.android.aac.decoder] D/CCodecConfig(27670): read media type: audio/mp4a-latm D/ReflectedParamUpdater(27670): extent() != 1 for single value type: algo.buffers.max-count.values D/ReflectedParamUpdater(27670): extent() != 1 for single value type: output.subscribed-indices.values D/ReflectedParamUpdater(27670): extent() != 1 for single value type: input.buffers.allocator-ids.values D/ReflectedParamUpdater(27670): extent() != 1 for single value type: output.buffers.allocator-ids.values D/ReflectedParamUpdater(27670): extent() != 1 for single value type: algo.buffers.allocator-ids.values D/ReflectedParamUpdater(27670): extent() != 1 for single value type: output.buffers.pool-ids.values D/ReflectedParamUpdater(27670): extent() != 1 for single value type: algo.buffers.pool-ids.values I/CCodecConfig(27670): query failed after returning 19 values (BAD_INDEX) D/CCodecConfig(27670): c2 config diff is Dict { D/CCodecConfig(27670): c2::u32 coded.aac-packaging.value = 0 D/CCodecConfig(27670): c2::u32 coded.bitrate.value = 64000 D/CCodecConfig(27670): c2::u32 coded.pl.level = 0 D/CCodecConfig(27670): c2::u32 coded.pl.profile = 8192 D/CCodecConfig(27670): c2::i32 coding.drc.album-mode.value = 0 D/CCodecConfig(27670): c2::float coding.drc.attenuation-factor.value = 1 D/CCodecConfig(27670): c2::float coding.drc.boost-factor.value = 1 D/CCodecConfig(27670): c2::i32 coding.drc.compression-mode.value = 3 D/CCodecConfig(27670): c2::i32 coding.drc.effect-type.value = 3 D/CCodecConfig(27670): c2::float coding.drc.encoded-level.value = 0.25 D/CCodecConfig(27670): c2::float coding.drc.reference-level.value = -16 D/CCodecConfig(27670): c2::u32 input.buffers.max-size.value = 8192 D/CCodecConfig(27670): c2::u32 input.delay.value = 0 D/CCodecConfig(27670): string input.media-type.value = "audio/mp4a-latm" D/CCodecConfig(27670): c2::u32 output.delay.value = 2 D/CCodecConfig(27670): c2::float output.drc.output-loudness.value = 0.25 D/CCodecConfig(27670): string output.media-type.value = "audio/raw" D/CCodecConfig(27670): c2::u32 raw.channel-count.value = 1 D/CCodecConfig(27670): c2::u32 raw.max-channel-count.value = 8 D/CCodecConfig(27670): c2::u32 raw.sample-rate.value = 44100 D/CCodecConfig(27670): } D/CCodec (27670): [c2.android.aac.decoder] buffers are bound to CCodec for this session D/CCodecConfig(27670): no c2 equivalents for language D/CCodecConfig(27670): no c2 equivalents for flags D/CCodecConfig(27670): config failed => CORRUPTED D/CCodecConfig(27670): c2 config diff is c2::u32 raw.channel-count.value = 2 W/Codec2Client(27670): query -- param skipped: index = 1107298332. D/CCodec (27670): client requested max input size 547, which is smaller than what component recommended (8192); overriding with component recommendation. W/CCodec (27670): This behavior is subject to change. It is recommended that app developers double check whether the requested max input size is in reasonable range. D/CCodec (27670): setup formats input: AMessage(what = 0x00000000) = { D/CCodec (27670): int32_t aac-drc-album-mode = 0 D/CCodec (27670): int32_t aac-drc-boost-level = 127 D/CCodec (27670): int32_t aac-drc-cut-level = 127 D/CCodec (27670): int32_t aac-drc-effect-type = 3 D/CCodec (27670): int32_t aac-drc-heavy-compression = 3 D/CCodec (27670): int32_t aac-encoded-target-level = -1 D/CCodec (27670): int32_t aac-max-output-channel_count = 8 D/CCodec (27670): int32_t aac-target-ref-level = 64 D/CCodec (27670): int32_t channel-count = 2 D/CCodec (27670): int32_t level = 0 D/CCodec (27670): int32_t max-input-size = 8192 D/CCodec (27670): string mime = "audio/mp4a-latm" D/CCodec (27670): int32_t profile = 2 D/CCodec (27670): int32_t sample-rate = 44100 D/CCodec (27670): } and output: AMessage(what = 0x00000000) = { D/CCodec (27670): int32_t aac-drc-album-mode = 0 D/CCodec (27670): int32_t aac-drc-boost-level = 127 D/CCodec (27670): int32_t aac-drc-cut-level = 127 D/CCodec (27670): int32_t aac-drc-effect-type = 3 D/CCodec (27670): int32_t aac-drc-heavy-compression = 3 D/CCodec (27670): int32_t aac-drc-output-loudness = -1 D/CCodec (27670): int32_t aac-encoded-target-level = -1 D/CCodec (27670): int32_t aac-max-output-channel_count = 8 D/CCodec (27670): int32_t aac-target-ref-level = 64 D/CCodec (27670): int32_t channel-count = 2 D/CCodec (27670): string mime = "audio/raw" D/CCodec (27670): int32_t sample-rate = 44100 D/CCodec (27670): } W/Codec2Client(27670): query -- param skipped: index = 1342179345. W/Codec2Client(27670): query -- param skipped: index = 2415921170. W/Codec2Client(27670): query -- param skipped: index = 1610614798. E/FMQ (27670): grantorIdx must be less than 3 E/FMQ (27670): grantorIdx must be less than 3 D/CCodecBufferChannel(27670): [c2.android.aac.decoder#411] Created input block pool with allocatorID 16 => poolID 17 - OK (0) I/CCodecBufferChannel(27670): [c2.android.aac.decoder#411] Created output block pool with allocatorID 16 => poolID 26 - OK D/CCodecBufferChannel(27670): [c2.android.aac.decoder#411] Configured output block pool ids 26 => OK E/ion (27670): ioctl c0044901 failed with code -1: Inappropriate ioctl for device E/FMQ (27670): grantorIdx must be less than 3 E/FMQ (27670): grantorIdx must be less than 3 D/CCodecConfig(27670): c2 config diff is c2::i32 coding.drc.compression-mode.value = 1 D/CCodecBuffers(27670): [c2.android.aac.decoder#411:Output[N]] popFromStashAndRegister: output format changed to AMessage(what = 0x00000000) = { D/CCodecBuffers(27670): int32_t aac-drc-album-mode = 0 D/CCodecBuffers(27670): int32_t aac-drc-boost-level = 127 D/CCodecBuffers(27670): int32_t aac-drc-cut-level = 127 D/CCodecBuffers(27670): int32_t aac-drc-effect-type = 3 D/CCodecBuffers(27670): int32_t aac-drc-heavy-compression = 1 D/CCodecBuffers(27670): int32_t aac-drc-output-loudness = -1 D/CCodecBuffers(27670): int32_t aac-encoded-target-level = -1 D/CCodecBuffers(27670): int32_t aac-max-output-channel_count = 8 D/CCodecBuffers(27670): int32_t aac-target-ref-level = 64 D/CCodecBuffers(27670): int32_t channel-count = 2 D/CCodecBuffers(27670): string mime = "audio/raw" D/CCodecBuffers(27670): int32_t sample-rate = 44100 D/CCodecBuffers(27670): } D/CCodec (27670): allocate(c2.android.avc.decoder) I/CCodec (27670): Created component [c2.android.avc.decoder] D/CCodecConfig(27670): read media type: video/avc D/ReflectedParamUpdater(27670): extent() != 1 for single value type: algo.buffers.max-count.values D/ReflectedParamUpdater(27670): extent() != 1 for single value type: output.subscribed-indices.values D/ReflectedParamUpdater(27670): extent() != 1 for single value type: input.buffers.allocator-ids.values D/ReflectedParamUpdater(27670): extent() != 1 for single value type: output.buffers.allocator-ids.values D/ReflectedParamUpdater(27670): extent() != 1 for single value type: algo.buffers.allocator-ids.values D/ReflectedParamUpdater(27670): extent() != 1 for single value type: output.buffers.pool-ids.values D/ReflectedParamUpdater(27670): extent() != 1 for single value type: algo.buffers.pool-ids.values D/ReflectedParamUpdater(27670): ignored struct field coded.color-format.locations D/CCodecConfig(27670): ignoring local param raw.size (0xd2001800) as it is already supported D/CCodecConfig(27670): ignoring local param raw.color (0xd2001809) as it is already supported D/ReflectedParamUpdater(27670): ignored struct field raw.hdr-static-info.mastering I/CCodecConfig(27670): query failed after returning 12 values (BAD_INDEX) D/CCodecConfig(27670): c2 config diff is Dict { D/CCodecConfig(27670): c2::u32 coded.pl.level = 20496 D/CCodecConfig(27670): c2::u32 coded.pl.profile = 20481 D/CCodecConfig(27670): c2::u32 coded.vui.color.matrix = 0 D/CCodecConfig(27670): c2::u32 coded.vui.color.primaries = 0 D/CCodecConfig(27670): c2::u32 coded.vui.color.range = 2 D/CCodecConfig(27670): c2::u32 coded.vui.color.transfer = 0 D/CCodecConfig(27670): c2::u32 default.color.matrix = 0 D/CCodecConfig(27670): c2::u32 default.color.primaries = 0 D/CCodecConfig(27670): c2::u32 default.color.range = 0 D/CCodecConfig(27670): c2::u32 default.color.transfer = 0 D/CCodecConfig(27670): c2::u32 input.buffers.max-size.value = 2097152 D/CCodecConfig(27670): c2::u32 input.delay.value = 0 D/CCodecConfig(27670): string input.media-type.value = "video/avc" D/CCodecConfig(27670): c2::u32 output.delay.value = 8 D/CCodecConfig(27670): string output.media-type.value = "video/raw" D/CCodecConfig(27670): c2::u32 raw.color.matrix = 0 D/CCodecConfig(27670): c2::u32 raw.color.primaries = 0 D/CCodecConfig(27670): c2::u32 raw.color.range = 2 D/CCodecConfig(27670): c2::u32 raw.color.transfer = 0 D/CCodecConfig(27670): c2::u32 raw.max-size.height = 240 D/CCodecConfig(27670): c2::u32 raw.max-size.width = 320 D/CCodecConfig(27670): c2::u32 raw.pixel-format.value = 35 D/CCodecConfig(27670): c2::i32 raw.rotation.flip = 0 D/CCodecConfig(27670): c2::i32 raw.rotation.value = 0 D/CCodecConfig(27670): c2::u32 raw.sar.height = 1 D/CCodecConfig(27670): c2::u32 raw.sar.width = 1 D/CCodecConfig(27670): c2::u32 raw.size.height = 240 D/CCodecConfig(27670): c2::u32 raw.size.width = 320 D/CCodecConfig(27670): c2: W/ColorUtils(27670): expected specified color aspects (2:0:0:0) D/HostConnection(27670): HostConnection::get() New Host Connection established 0xb4000074f9c2a010, tid 28105 D/HostConnection(27670): 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_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_3_0 D/EGL_emulation(27670): eglCreateContext: 0xb4000074e9caa0d0: maj 3 min 0 rcv 3 D/EGL_emulation(27670): eglMakeCurrent: 0xb4000074e9caa0d0: ver 3 0 (tinfo 0xb400007489cc7b60) (first time) E/EGL_emulation(27670): eglQueryContext 32c0 EGL_BAD_ATTRIBUTE E/EGL_emulation(27670): tid 28105: eglQueryContext(2019): error 0x3004 (EGL_BAD_ATTRIBUTE) D/SurfaceUtils(27670): connecting to surface 0xb4000075e9c82cf0, reason connectToSurface I/MediaCodec(27670): [c2.android.avc.decoder] setting surface generation to 28334081 D/SurfaceUtils(27670): disconnecting from surface 0xb4000075e9c82cf0, reason connectToSurface(reconnect) D/SurfaceUtils(27670): connecting to surface 0xb4000075e9c82cf0, reason connectToSurface(reconnect) D/CCodec (27670): [c2.android.avc.decoder] buffers are bound to CCodec for this session D/CCodecConfig(27670): no c2 equivalents for csd-1 D/CCodecConfig(27670): no c2 equivalents for native-window D/CCodecConfig(27670): no c2 equivalents for flags D/CCodecConfig(27670): config failed => CORRUPTED D/CCodecConfig(27670): c2 config diff is c2::u32 raw.max-size.height = 720 D/CCodecConfig(27670): c2::u32 raw.max-size.width = 1280 D/CCodecConfig(27670): c2::u32 raw.size.height = 720 D/CCodecConfig(27670): c2::u32 raw.size.width = 1280 W/Codec2Client(27670): query -- param skipped: index = 1107298332. D/CCodec (27670): client requested max input size 37664, which is smaller than what component recommended (2097152); overriding with component recommendation. W/CCodec (27670): This behavior is subject to change. It is recommended that app developers double check whether the requested max input size is in reasonable range. D/CCodec (27670): setup formats input: AMessage(what = 0x00000000) = { D/CCodec (27670): int32_t height = 720 D/CCodec (27670): int32_t level = 65536 D/CCodec (27670): int32_t max-input-size = 2097152 D/CCodec (27670): string mime = "video/avc" D/CCodec (27670): int32_t profile = 65536 D/CCodec (27670): int32_t width = 1280 D/CCodec (27670): Rect crop(0, 0, 1279, 719) D/CCodec (27670): } and output: AMessage(what = 0x00000000) = { D/CCodec (27670): int32_t android._color-format = 2135033992 D/CCodec (27670): int32_t android._video-scaling = 1 D/CCodec (27670): Rect crop(0, 0, 1279, 719) D/CCodec (27670): int32_t color-standard = 1 D/CCodec (27670): int32_t color-range = 2 D/CCodec (27670): int32_t color-transfer = 3 D/CCodec (27670): int32_t height = 720 D/CCodec (27670): int32_t max-height = 720 D/CCodec (27670): int32_t max-width = 1280 D/CCodec (27670): string mime = "video/raw" D/CCodec (27670): int32_t rotation-degrees = 0 D/CCodec (27670): int32_t sar-height = 1 D/CCodec (27670): int32_t sar-width = 1 D/CCodec (27670): int32_t width = 1280 D/CCodec (27670): int32_t android._dataspace = 260 D/CCodec (27670): int32_t color-format = 2130708361 D/CCodec (27670): } W/Codec2Client(27670): query -- param skipped: index = 1342179345. W/Codec2Client(27670): query -- param skipped: index = 2415921170. W/Codec2Client(27670): query -- param skipped: index = 1610614798. E/FMQ (27670): grantorIdx must be less than 3 E/FMQ (27670): grantorIdx must be less than 3 D/CCodecBufferChannel(27670): [c2.android.avc.decoder#653] Created input block pool with allocatorID 16 => poolID 18 - OK (0) D/CCodecBufferChannel(27670): [c2.android.avc.decoder#653] Query output surface allocator returned 0 params => BAD_INDEX (6) I/CCodecBufferChannel(27670): [c2.android.avc.decoder#653] Created output block pool with allocatorID 18 => poolID 27 - OK D/CCodecBufferChannel(27670): [c2.android.avc.decoder#653] Configured output block pool ids 27 => OK D/Codec2-OutputBufferQueue(27670): remote graphic buffer migration 0/0 D/Codec2Client(27670): generation remote change 28334081 W/Gralloc4(27670): allocator 3.x is not supported E/FMQ (27670): grantorIdx must be less than 3 W/AudioTrack(27670): Use of stream types is deprecated for operations other than volume control W/AudioTrack(27670): See the documentation of AudioTrack() for what to use instead with android.media.AudioAttributes to qualify your playback use case D/PipelineWatcher(27670): onInputBufferReleased: frameIndex not found (16); ignored I/DynamiteModule(27670): Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:221310604 I/DynamiteModule(27670): Selected remote version of com.google.android.gms.ads.dynamite, version >= 221310604 I/flutter (27670): Instance of 'RewardedAd' loaded. D/CCodecConfig(27670): c2 config diff is c2::u32 output.delay.value = 1 D/CCodecConfig(27670): c2::u32 raw.color.matrix = 1 D/CCodecConfig(27670): c2::u32 raw.color.primaries = 1 D/CCodecConfig(27670): c2::u32 raw.color.transfer = 3 D/CCodecConfig(27670): c2::u32 raw.crop.height = 720 D/CCodecConfig(27670): c2::u32 raw.crop.left = 0 D/CCodecConfig(27670): c2::u32 raw.crop.top = 0 D/CCodecConfig(27670): c2::u32 raw.crop.width = 1280 D/BufferPoolAccessor2.0(27670): bufferpool2 0xb400007549c7cec8 : 5(40960 size) total buffers - 5(40960 size) used buffers - 1/7 (recycle/alloc) - 6/23 (fetch/transfer) D/BufferPoolAccessor2.0(27670): evictor expired: 1, evicted: 1 D/BufferPoolAccessor2.0(27670): bufferpool2 0xb400007549c63a18 : 4(8388608 size) total buffers - 4(8388608 size) used buffers - 0/4 (recycle/alloc) - 4/20 (fetch/transfer) D/BufferPoolAccessor2.0(27670): evictor expired: 1, evicted: 1 W/CCodec (27670): previous call to queue exceeded timeout E/MediaCodec(27670): Codec reported err 0x80000000, actionCode 0, while in state 6 D/SurfaceUtils(27670): disconnecting from surface 0xb4000075e9c82cf0, reason disconnectFromSurface D/CCodecBufferChannel(27670): [c2.android.avc.decoder#653] MediaCodec discarded an unknown buffer E/BufferQueueProducer(27670): [SurfaceTexture-1-27670-0](id:6c1600000000,api:0,p:-1,c:27670) cancelBuffer: BufferQueue has no connected producer D/CCodecBufferChannel(27670): [c2.android.avc.decoder#653] MediaCodec discarded an unknown buffer E/BufferQueueProducer(27670): [SurfaceTexture-1-27670-0](id:6c1600000000,api:0,p:-1,c:27670) cancelBuffer: BufferQueue has no connected producer D/CCodecBufferChannel(27670): [c2.android.avc.decoder#653] MediaCodec discarded an unknown buffer E/BufferQueueProducer(27670): [SurfaceTexture-1-27670-0](id:6c1600000000,api:0,p:-1,c:27670) cancelBuffer: BufferQueue has no connected producer D/CCodecBufferChannel(27670): [c2.android.avc.decoder#653] MediaCodec discarded an unknown buffer E/BufferQueueProducer(27670): [SurfaceTexture-1-27670-0](id:6c1600000000,api:0,p:-1,c:27670) cancelBuffer: BufferQueue has no connected producer D/CCodecBufferChannel(27670): [c2.android.avc.decoder#653] MediaCodec discarded an unknown buffer E/BufferQueueProducer(27670): [SurfaceTexture-1-27670-0](id:6c1600000000,api:0,p:-1,c:27670) cancelBuffer: BufferQueue has no connected producer D/CCodecBufferChannel(27670): [c2.android.avc.decoder#653] MediaCodec discarded an unknown buffer E/BufferQueueProducer(27670): [SurfaceTexture-1-27670-0](id:6c1600000000,api:0,p:-1,c:27670) cancelBuffer: BufferQueue has no connected producer D/CCodecBufferChannel(27670): [c2.android.avc.decoder#653] MediaCodec discarded an unknown buffer E/BufferQueueProducer(27670): [SurfaceTexture-1-27670-0](id:6c1600000000,api:0,p:-1,c:27670) cancelBuffer: BufferQueue has no connected producer D/CCodecBufferChannel(27670): [c2.android.avc.decoder#653] MediaCodec discarded an unknown buffer E/BufferQueueProducer(27670): [SurfaceTexture-1-27670-0](id:6c1600000000,api:0,p:-1,c:27670) cancelBuffer: BufferQueue has no connected producer D/CCodecBufferChannel(27670): [c2.android.avc.decoder#653] MediaCodec discarded an unknown buffer E/BufferQueueProducer(27670): [SurfaceTexture-1-27670-0](id:6c1600000000,api:0,p:-1,c:27670) cancelBuffer: BufferQueue has no connected producer D/CCodecBufferChannel(27670): [c2.android.avc.decoder#653] MediaCodec discarded an unknown buffer E/BufferQueueProducer(27670): [SurfaceTexture-1-27670-0](id:6c1600000000,api:0,p:-1,c:27670) cancelBuffer: BufferQueue has no connected producer D/CCodecBufferChannel(27670): [c2.android.avc.decoder#653] MediaCodec discarded an unknown buffer E/BufferQueueProducer(27670): [SurfaceTexture-1-27670-0](id:6c1600000000,api:0,p:-1,c:27670) cancelBuffer: BufferQueue has no connected producer D/CCodecBufferChannel(27670): [c2.android.avc.decoder#653] MediaCodec discarded an unknown buffer E/BufferQueueProducer(27670): [SurfaceTexture-1-27670-0](id:6c1600000000,api:0,p:-1,c:27670) cancelBuffer: BufferQueue has no connected producer I/hw-BpHwBinder(27670): onLastStrongRef automatically unlinking death recipients E/BufferQueueProducer(27670): [SurfaceTexture-1-27670-0](id:6c1600000000,api:0,p:-1,c:27670) detachBuffer: BufferQueue has no connected producer E/ExoPlayerImplInternal(27670): Internal runtime error. E/ExoPlayerImplInternal(27670): java.lang.IllegalStateException E/ExoPlayerImplInternal(27670): at android.media.MediaCodec.native_dequeueInputBuffer(Native Method) E/ExoPlayerImplInternal(27670): at android.media.MediaCodec.dequeueInputBuffer(MediaCodec.java:2855) E/ExoPlayerImplInternal(27670): at com.google.android.gms.ads.exoplayer3.mediacodec.c.E(:com.google.android.gms.policy_ads_fdr_dynamite@221310604@221310604057.439654529.439654529:1) E/ExoPlayerImplInternal(27670): at com.google.android.gms.ads.exoplayer3.mediacodec.c.z(:com.google.android.gms.policy_ads_fdr_dynamite@221310604@221310604057.439654529.439654529:28) E/ExoPlayerImplInternal(27670): at com.google.android.gms.ads.exoplayer3.n.handleMessage(:com.google.android.gms.policy_ads_fdr_dynamite@221310604@221310604057.439654529.439654529:42) E/ExoPlayerImplInternal(27670): at android.os.Handler.dispatchMessage(Handler.java:102) E/ExoPlayerImplInternal(27670): at android.os.Looper.loop(Looper.java:223) E/ExoPlayerImplInternal(27670): at android.os.HandlerThread.run(HandlerThread.java:67) W/Ads (27670): Precache error W/Ads (27670): com.google.android.gms.ads.exoplayer3.c W/Ads (27670): at com.google.android.gms.ads.exoplayer3.n.handleMessage(:com.google.android.gms.policy_ads_fdr_dynamite@221310604@221310604057.439654529.439654529:153) W/Ads (27670): at android.os.Handler.dispatchMessage(Handler.java:102) W/Ads (27670): at android.os.Looper.loop(Looper.java:223) W/Ads (27670): at android.os.HandlerThread.run(HandlerThread.java:67) W/Ads (27670): Caused by: java.lang.IllegalStateException W/Ads (27670): at android.media.MediaCodec.native_dequeueInputBuffer(Native Method) W/Ads (27670): at android.media.MediaCodec.dequeueInputBuffer(MediaCodec.java:2855) W/Ads (27670): at com.google.android.gms.ads.exoplayer3.mediacodec.c.E(:com.google.android.gms.policy_ads_fdr_dynamite@221310604@221310604057.439654529.439654529:1) W/Ads (27670): at com.google.android.gms.ads.exoplayer3.mediacodec.c.z(:com.google.android.gms.policy_ads_fdr_dynamite@221310604@221310604057.439654529.439654529:28) W/Ads (27670): at com.google.android.gms.ads.exoplayer3.n.handleMessage(:com.google.android.gms.policy_ads_fdr_dynamite@221310604@221310604057.439654529.439654529:42) W/Ads (27670): ... 3 more D/CCodecBufferChannel(27670): [c2.android.aac.decoder#411] MediaCodec discarded an unknown buffer I/chatty (27670): uid=10174(com.example.ads_example) identical 4 lines D/CCodecBufferChannel(27670): [c2.android.aac.decoder#411] MediaCodec discarded an unknown buffer I/hw-BpHwBinder(27670): onLastStrongRef automatically unlinking death recipients D/BufferPoolAccessor2.0(27670): bufferpool2 0xb400007549c7cec8 : 0(0 size) total buffers - 0(0 size) used buffers - 1/7 (recycle/alloc) - 6/23 (fetch/transfer) E/ExoPlayerImplInternal(27670): Stop failed. E/ExoPlayerImplInternal(27670): java.lang.IllegalStateException E/ExoPlayerImplInternal(27670): at android.media.MediaCodec.native_stop(Native Method) E/ExoPlayerImplInternal(27670): at android.media.MediaCodec.stop(MediaCodec.java:2251) E/ExoPlayerImplInternal(27670): at com.google.android.gms.ads.exoplayer3.mediacodec.c.O(:com.google.android.gms.policy_ads_fdr_dynamite@221310604@221310604057.439654529.439654529:3) E/ExoPlayerImplInternal(27670): at com.google.android.gms.ads.exoplayer3.video.h.O(:com.google.android.gms.policy_ads_fdr_dynamite@221310604@221310604057.439654529.439654529:1) E/ExoPlayerImplInternal(27670): at com.google.android.gms.ads.exoplayer3.mediacodec.c.h(:com.google.android.gms.policy_ads_fdr_dynamite@221310604@221310604057.439654529.439654529:1) E/ExoPlayerImplInternal(27670): at com.google.android.gms.ads.exoplayer3.video.h.h(:com.google.android.gms.policy_ads_fdr_dynamite@221310604@221310604057.439654529.439654529:3) E/ExoPlayerImplInternal(27670): at com.google.android.gms.ads.exoplayer3.a.e(:com.google.android.gms.policy_ads_fdr_dynamite@221310604@221310604057.439654529.439654529:2) E/ExoPlayerImplInternal(27670): at com.google.android.gms.ads.exoplayer3.n.q(:com.google.android.gms.policy_ads_fdr_dynamite@221310604@221310604057.439654529.439654529:4) E/ExoPlayerImplInternal(27670): at com.google.android.gms.ads.exoplayer3.n.x(:com.google.android.gms.policy_ads_fdr_dynamite@221310604@221310604057.439654529.439654529:0) E/ExoPlayerImplInternal(27670): at com.google.android.gms.ads.exoplayer3.n.handleMessage(:com.google.android.gms.policy_ads_fdr_dynamite@221310604@221310604057.439654529.439654529:153) E/ExoPlayerImplInternal(27670): at android.os.Handler.dispatchMessage(Handler.java:102) E/ExoPlayerImplInternal(27670): at android.os.Looper.loop(Looper.java:223) E/ExoPlayerImplInternal(27670): at android.os.HandlerThread.run(HandlerThread.java:67) D/BufferPoolAccessor2.0(27670): bufferpool2 0xb400007549c63a18 : 0(0 size) total buffers - 0(0 size) used buffers - 0/4 (recycle/alloc) - 4/20 (fetch/transfer) D/BufferPoolAccessor2.0(27670): evictor expired: 1, evicted: 1 D/BufferPoolAccessor2.0(27670): bufferpool2 0xb400007549c7cec8 : 0(0 size) total buffers - 0(0 size) used buffers - 1/7 (recycle/alloc) - 6/23 (fetch/transfer) D/BufferPoolAccessor2.0(27670): evictor expired: 1, evicted: 1 D/DynamitePackage(27670): Instantiating com.google.android.gms.ads.ChimeraAdOverlayCreatorImpl I/flutter (27670): ad onAdShowedFullScreenContent. I/flutter (27670): Instance of 'RewardedAd' with reward RewardItem(10, coins) D/EGL_emulation(27670): eglCreateContext: 0xb4000074e9ca4da0: maj 3 min 0 rcv 3 D/EGL_emulation(27670): eglCreateContext: 0xb4000074e9caaff0: maj 3 min 0 rcv 3 D/HostConnection(27670): HostConnection::get() New Host Connection established 0xb4000074f9c26110, tid 28213 D/HostConnection(27670): 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_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_3_0 D/EGL_emulation(27670): eglMakeCurrent: 0xb4000074e9caaff0: ver 3 0 (tinfo 0xb400007489cc96c0) (first time) W/FlutterActivityAndFragmentDelegate(27670): A splash screen was provided to Flutter, but this is deprecated. See flutter.dev/go/android-splash-migration for migration steps. D/HostConnection(27670): HostConnection::get() New Host Connection established 0xb4000074f9c2b390, tid 28212 D/HostConnection(27670): 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_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_3_0 D/EGL_emulation(27670): eglMakeCurrent: 0xb4000074e9ca4da0: ver 3 0 (tinfo 0xb400007489cacd70) (first time) D/EGL_emulation(27670): eglCreateContext: 0xb4000074e9caeb10: maj 3 min 0 rcv 3 I/flutter (27670): AdsDemo build D/DynamitePackage(27670): Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl I/Ads (27670): Use RequestConfiguration.Builder().setTestDeviceIds(Arrays.asList("37B2E83F0935251E53408AEA377C62CD")) to get test ads on this device. I/DynamiteModule(27670): Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:221310604 I/DynamiteModule(27670): Selected remote version of com.google.android.gms.ads.dynamite, version >= 221310604 V/DynamiteModule(27670): Dynamite loader version >= 2, using loadModule2NoCrashUtils I/Ads (27670): Use RequestConfiguration.Builder().setTestDeviceIds(Arrays.asList("37B2E83F0935251E53408AEA377C62CD")) to get test ads on this device. W/Ads (27670): Not retrying to fetch app settings D/EGL_emulation(27670): eglCreateContext: 0xb4000074e9cabdb0: maj 3 min 0 rcv 3 D/EGL_emulation(27670): eglCreateContext: 0xb4000074e9cabf10: maj 3 min 0 rcv 3 I/ExoPlayerImpl(27670): Init ExoPlayerLib/2.4.2 [emulator_arm64, sdk_gphone_arm64, Google, 30] D/MetadataUtil(27670): Skipped unknown metadata entry: gsst D/MetadataUtil(27670): Skipped unknown metadata entry: gstd D/CCodec (27670): allocate(c2.android.aac.decoder) I/DynamiteModule(27670): Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:221310604 I/DynamiteModule(27670): Selected remote version of com.google.android.gms.ads.dynamite, version >= 221310604 I/CCodec (27670): Created component [c2.android.aac.decoder] D/CCodecConfig(27670): read media type: audio/mp4a-latm D/ReflectedParamUpdater(27670): extent() != 1 for single value type: algo.buffers.max-count.values D/ReflectedParamUpdater(27670): extent() != 1 for single value type: output.subscribed-indices.values D/ReflectedParamUpdater(27670): extent() != 1 for single value type: input.buffers.allocator-ids.values D/ReflectedParamUpdater(27670): extent() != 1 for single value type: output.buffers.allocator-ids.values D/ReflectedParamUpdater(27670): extent() != 1 for single value type: algo.buffers.allocator-ids.values D/ReflectedParamUpdater(27670): extent() != 1 for single value type: output.buffers.pool-ids.values D/ReflectedParamUpdater(27670): extent() != 1 for single value type: algo.buffers.pool-ids.values I/CCodecConfig(27670): query failed after returning 19 values (BAD_INDEX) D/CCodecConfig(27670): c2 config diff is Dict { D/CCodecConfig(27670): c2::u32 coded.aac-packaging.value = 0 D/CCodecConfig(27670): c2::u32 coded.bitrate.value = 64000 D/CCodecConfig(27670): c2::u32 coded.pl.level = 0 D/CCodecConfig(27670): c2::u32 coded.pl.profile = 8192 D/CCodecConfig(27670): c2::i32 coding.drc.album-mode.value = 0 D/CCodecConfig(27670): c2::float coding.drc.attenuation-factor.value = 1 D/CCodecConfig(27670): c2::float coding.drc.boost-factor.value = 1 D/CCodecConfig(27670): c2::i32 coding.drc.compression-mode.value = 3 D/CCodecConfig(27670): c2::i32 coding.drc.effect-type.value = 3 D/CCodecConfig(27670): c2::float coding.drc.encoded-level.value = 0.25 D/CCodecConfig(27670): c2::float coding.drc.reference-level.value = -16 D/CCodecConfig(27670): c2::u32 input.buffers.max-size.value = 8192 D/CCodecConfig(27670): c2::u32 input.delay.value = 0 D/CCodecConfig(27670): string input.media-type.value = "audio/mp4a-latm" D/CCodecConfig(27670): c2::u32 output.delay.value = 2 D/CCodecConfig(27670): c2::float output.drc.output-loudness.value = 0.25 D/CCodecConfig(27670): string output.media-type.value = "audio/raw" D/CCodecConfig(27670): c2::u32 raw.channel-count.value = 1 D/CCodecConfig(27670): c2::u32 raw.max-channel-count.value = 8 D/CCodecConfig(27670): c2::u32 raw.sample-rate.value = 44100 D/CCodecConfig(27670): } D/CCodec (27670): [c2.android.aac.decoder] buffers are bound to CCodec for this session D/CCodecConfig(27670): no c2 equivalents for language D/CCodecConfig(27670): no c2 equivalents for flags D/CCodecConfig(27670): config failed => CORRUPTED D/CCodecConfig(27670): c2 config diff is c2::u32 raw.channel-count.value = 2 W/Codec2Client(27670): query -- param skipped: index = 1107298332. D/CCodec (27670): client requested max input size 547, which is smaller than what component recommended (8192); overriding with component recommendation. W/CCodec (27670): This behavior is subject to change. It is recommended that app developers double check whether the requested max input size is in reasonable range. D/CCodec (27670): setup formats input: AMessage(what = 0x00000000) = { D/CCodec (27670): int32_t aac-drc-album-mode = 0 D/CCodec (27670): int32_t aac-drc-boost-level = 127 D/CCodec (27670): int32_t aac-drc-cut-level = 127 D/CCodec (27670): int32_t aac-drc-effect-type = 3 D/CCodec (27670): int32_t aac-drc-heavy-compression = 3 D/CCodec (27670): int32_t aac-encoded-target-level = -1 D/CCodec (27670): int32_t aac-max-output-channel_count = 8 D/CCodec (27670): int32_t aac-target-ref-level = 64 D/CCodec (27670): int32_t channel-count = 2 D/CCodec (27670): int32_t level = 0 D/CCodec (27670): int32_t max-input-size = 8192 D/CCodec (27670): string mime = "audio/mp4a-latm" D/CCodec (27670): int32_t profile = 2 D/CCodec (27670): int32_t sample-rate = 44100 D/CCodec (27670): } and output: AMessage(what = 0x00000000) = { D/CCodec (27670): int32_t aac-drc-album-mode = 0 D/CCodec (27670): int32_t aac-drc-boost-level = 127 D/CCodec (27670): int32_t aac-drc-cut-level = 127 D/CCodec (27670): int32_t aac-drc-effect-type = 3 D/CCodec (27670): int32_t aac-drc-heavy-compression = 3 D/CCodec (27670): int32_t aac-drc-output-loudness = -1 D/CCodec (27670): int32_t aac-encoded-target-level = -1 D/CCodec (27670): int32_t aac-max-output-channel_count = 8 D/CCodec (27670): int32_t aac-target-ref-level = 64 D/CCodec (27670): int32_t channel-count = 2 D/CCodec (27670): string mime = "audio/raw" D/CCodec (27670): int32_t sample-rate = 44100 D/CCodec (27670): } W/Codec2Client(27670): query -- param skipped: index = 1342179345. W/Codec2Client(27670): query -- param skipped: index = 2415921170. W/Codec2Client(27670): query -- param skipped: index = 1610614798. E/FMQ (27670): grantorIdx must be less than 3 E/FMQ (27670): grantorIdx must be less than 3 D/CCodecBufferChannel(27670): [c2.android.aac.decoder#180] Created input block pool with allocatorID 16 => poolID 19 - OK (0) D/BufferPoolAccessor2.0(27670): bufferpool2 0xb400007549c7cec8 : 0(0 size) total buffers - 0(0 size) used buffers - 1/7 (recycle/alloc) - 6/23 (fetch/transfer) D/BufferPoolAccessor2.0(27670): Destruction - bufferpool2 0xb400007549c7cec8 cached: 0/0M, 0/0% in use; allocs: 7, 14% recycled; transfers: 23, 74% unfetched D/BufferPoolAccessor2.0(27670): bufferpool2 0xb400007549c63a18 : 0(0 size) total buffers - 0(0 size) used buffers - 0/4 (recycle/alloc) - 4/20 (fetch/transfer) D/BufferPoolAccessor2.0(27670): Destruction - bufferpool2 0xb400007549c63a18 cached: 0/0M, 0/0% in use; allocs: 4, 0% recycled; transfers: 20, 80% unfetched I/CCodecBufferChannel(27670): [c2.android.aac.decoder#180] Created output block pool with allocatorID 16 => poolID 28 - OK D/CCodecBufferChannel(27670): [c2.android.aac.decoder#180] Configured output block pool ids 28 => OK E/FMQ (27670): grantorIdx must be less than 3 E/FMQ (27670): grantorIdx must be less than 3 D/CCodecConfig(27670): c2 config diff is c2::i32 coding.drc.compression-mode.value = 1 D/CCodecBuffers(27670): [c2.android.aac.decoder#180:Output[N]] popFromStashAndRegister: output format changed to AMessage(what = 0x00000000) = { D/CCodecBuffers(27670): int32_t aac-drc-album-mode = 0 D/CCodecBuffers(27670): int32_t aac-drc-boost-level = 127 D/CCodecBuffers(27670): int32_t aac-drc-cut-level = 127 D/CCodecBuffers(27670): int32_t aac-drc-effect-type = 3 D/CCodecBuffers(27670): int32_t aac-drc-heavy-compression = 1 D/CCodecBuffers(27670): int32_t aac-drc-output-loudness = -1 D/CCodecBuffers(27670): int32_t aac-encoded-target-level = -1 D/CCodecBuffers(27670): int32_t aac-max-output-channel_count = 8 D/CCodecBuffers(27670): int32_t aac-target-ref-level = 64 D/CCodecBuffers(27670): int32_t channel-count = 2 D/CCodecBuffers(27670): string mime = "audio/raw" D/CCodecBuffers(27670): int32_t sample-rate = 44100 D/CCodecBuffers(27670): } D/CCodec (27670): allocate(c2.android.avc.decoder) I/CCodec (27670): Created component [c2.android.avc.decoder] D/CCodecConfig(27670): read media type: video/avc D/ReflectedParamUpdater(27670): extent() != 1 for single value type: algo.buffers.max-count.values D/ReflectedParamUpdater(27670): extent() != 1 for single value type: output.subscribed-indices.values D/ReflectedParamUpdater(27670): extent() != 1 for single value type: input.buffers.allocator-ids.values D/ReflectedParamUpdater(27670): extent() != 1 for single value type: output.buffers.allocator-ids.values D/ReflectedParamUpdater(27670): extent() != 1 for single value type: algo.buffers.allocator-ids.values D/ReflectedParamUpdater(27670): extent() != 1 for single value type: output.buffers.pool-ids.values D/ReflectedParamUpdater(27670): extent() != 1 for single value type: algo.buffers.pool-ids.values D/ReflectedParamUpdater(27670): ignored struct field coded.color-format.locations D/CCodecConfig(27670): ignoring local param raw.size (0xd2001800) as it is already supported D/CCodecConfig(27670): ignoring local param raw.color (0xd2001809) as it is already supported D/ReflectedParamUpdater(27670): ignored struct field raw.hdr-static-info.mastering I/CCodecConfig(27670): query failed after returning 12 values (BAD_INDEX) D/CCodecConfig(27670): c2 config diff is Dict { D/CCodecConfig(27670): c2::u32 coded.pl.level = 20496 D/CCodecConfig(27670): c2::u32 coded.pl.profile = 20481 D/CCodecConfig(27670): c2::u32 coded.vui.color.matrix = 0 D/CCodecConfig(27670): c2::u32 coded.vui.color.primaries = 0 D/CCodecConfig(27670): c2::u32 coded.vui.color.range = 2 D/CCodecConfig(27670): c2::u32 coded.vui.color.transfer = 0 D/CCodecConfig(27670): c2::u32 default.color.matrix = 0 D/CCodecConfig(27670): c2::u32 default.color.primaries = 0 D/CCodecConfig(27670): c2::u32 default.color.range = 0 D/CCodecConfig(27670): c2::u32 default.color.transfer = 0 D/CCodecConfig(27670): c2::u32 input.buffers.max-size.value = 2097152 D/CCodecConfig(27670): c2::u32 input.delay.value = 0 D/CCodecConfig(27670): string input.media-type.value = "video/avc" D/CCodecConfig(27670): c2::u32 output.delay.value = 8 D/CCodecConfig(27670): string output.media-type.value = "video/raw" D/CCodecConfig(27670): c2::u32 raw.color.matrix = 0 D/CCodecConfig(27670): c2::u32 raw.color.primaries = 0 D/CCodecConfig(27670): c2::u32 raw.color.range = 2 D/CCodecConfig(27670): c2::u32 raw.color.transfer = 0 D/CCodecConfig(27670): c2::u32 raw.max-size.height = 240 D/CCodecConfig(27670): c2::u32 raw.max-size.width = 320 D/CCodecConfig(27670): c2::u32 raw.pixel-format.value = 35 D/CCodecConfig(27670): c2::i32 raw.rotation.flip = 0 D/CCodecConfig(27670): c2::i32 raw.rotation.value = 0 D/CCodecConfig(27670): c2::u32 raw.sar.height = 1 D/CCodecConfig(27670): c2::u32 raw.sar.width = 1 D/CCodecConfig(27670): c2::u32 raw.size.height = 240 D/CCodecConfig(27670): c2::u32 raw.size.width = 320 D/CCodecConfig(27670): c2: W/ColorUtils(27670): expected specified color aspects (2:0:0:0) D/HostConnection(27670): HostConnection::get() New Host Connection established 0xb4000074f9c2f950, tid 28256 D/HostConnection(27670): 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_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_3_0 D/EGL_emulation(27670): eglCreateContext: 0xb4000074e9caa180: maj 3 min 0 rcv 3 D/EGL_emulation(27670): eglMakeCurrent: 0xb4000074e9caa180: ver 3 0 (tinfo 0xb400007489cbfd00) (first time) E/EGL_emulation(27670): eglQueryContext 32c0 EGL_BAD_ATTRIBUTE E/EGL_emulation(27670): tid 28256: eglQueryContext(2019): error 0x3004 (EGL_BAD_ATTRIBUTE) D/SurfaceUtils(27670): connecting to surface 0xb4000075e9ca4df0, reason connectToSurface I/MediaCodec(27670): [c2.android.avc.decoder] setting surface generation to 28334082 D/SurfaceUtils(27670): disconnecting from surface 0xb4000075e9ca4df0, reason connectToSurface(reconnect) D/SurfaceUtils(27670): connecting to surface 0xb4000075e9ca4df0, reason connectToSurface(reconnect) D/CCodec (27670): [c2.android.avc.decoder] buffers are bound to CCodec for this session D/CCodecConfig(27670): no c2 equivalents for csd-1 D/CCodecConfig(27670): no c2 equivalents for native-window D/CCodecConfig(27670): no c2 equivalents for flags D/CCodecConfig(27670): config failed => CORRUPTED D/CCodecConfig(27670): c2 config diff is c2::u32 raw.max-size.height = 720 D/CCodecConfig(27670): c2::u32 raw.max-size.width = 1280 D/CCodecConfig(27670): c2::u32 raw.size.height = 720 D/CCodecConfig(27670): c2::u32 raw.size.width = 1280 W/Codec2Client(27670): query -- param skipped: index = 1107298332. D/CCodec (27670): client requested max input size 37664, which is smaller than what component recommended (2097152); overriding with component recommendation. W/CCodec (27670): This behavior is subject to change. It is recommended that app developers double check whether the requested max input size is in reasonable range. D/CCodec (27670): setup formats input: AMessage(what = 0x00000000) = { D/CCodec (27670): int32_t height = 720 D/CCodec (27670): int32_t level = 65536 D/CCodec (27670): int32_t max-input-size = 2097152 D/CCodec (27670): string mime = "video/avc" D/CCodec (27670): int32_t profile = 65536 D/CCodec (27670): int32_t width = 1280 D/CCodec (27670): Rect crop(0, 0, 1279, 719) D/CCodec (27670): } and output: AMessage(what = 0x00000000) = { D/CCodec (27670): int32_t android._color-format = 2135033992 D/CCodec (27670): int32_t android._video-scaling = 1 D/CCodec (27670): Rect crop(0, 0, 1279, 719) D/CCodec (27670): int32_t color-standard = 1 D/CCodec (27670): int32_t color-range = 2 D/CCodec (27670): int32_t color-transfer = 3 D/CCodec (27670): int32_t height = 720 D/CCodec (27670): int32_t max-height = 720 D/CCodec (27670): int32_t max-width = 1280 D/CCodec (27670): string mime = "video/raw" D/CCodec (27670): int32_t rotation-degrees = 0 D/CCodec (27670): int32_t sar-height = 1 D/CCodec (27670): int32_t sar-width = 1 D/CCodec (27670): int32_t width = 1280 D/CCodec (27670): int32_t android._dataspace = 260 D/CCodec (27670): int32_t color-format = 2130708361 D/CCodec (27670): } W/Codec2Client(27670): query -- param skipped: index = 1342179345. W/Codec2Client(27670): query -- param skipped: index = 2415921170. W/Codec2Client(27670): query -- param skipped: index = 1610614798. E/FMQ (27670): grantorIdx must be less than 3 E/FMQ (27670): grantorIdx must be less than 3 D/CCodecBufferChannel(27670): [c2.android.avc.decoder#626] Created input block pool with allocatorID 16 => poolID 20 - OK (0) D/CCodecBufferChannel(27670): [c2.android.avc.decoder#626] Query output surface allocator returned 0 params => BAD_INDEX (6) I/CCodecBufferChannel(27670): [c2.android.avc.decoder#626] Created output block pool with allocatorID 18 => poolID 29 - OK D/CCodecBufferChannel(27670): [c2.android.avc.decoder#626] Configured output block pool ids 29 => OK D/Codec2-OutputBufferQueue(27670): remote graphic buffer migration 0/0 D/Codec2Client(27670): generation remote change 28334082 I/DynamiteModule(27670): Considering local module com.google.android.gms.ads.dynamite:0 and remote module com.google.android.gms.ads.dynamite:221310604 I/DynamiteModule(27670): Selected remote version of com.google.android.gms.ads.dynamite, version >= 221310604 E/FMQ (27670): grantorIdx must be less than 3 I/flutter (27670): Instance of 'InterstitialAd' loaded I/flutter (27670): Instance of 'RewardedAd' loaded. I/ple.ads_exampl(27670): Background concurrent copying GC freed 30867(2146KB) AllocSpace objects, 47(3564KB) LOS objects, 49% free, 8532KB/16MB, paused 1.726ms total 153.903ms W/AudioTrack(27670): Use of stream types is deprecated for operations other than volume control W/AudioTrack(27670): See the documentation of AudioTrack() for what to use instead with android.media.AudioAttributes to qualify your playback use case D/CCodecConfig(27670): c2 config diff is c2::u32 output.delay.value = 1 D/CCodecConfig(27670): c2::u32 raw.color.matrix = 1 D/CCodecConfig(27670): c2::u32 raw.color.primaries = 1 D/CCodecConfig(27670): c2::u32 raw.color.transfer = 3 D/CCodecConfig(27670): c2::u32 raw.crop.height = 720 D/CCodecConfig(27670): c2::u32 raw.crop.left = 0 D/CCodecConfig(27670): c2::u32 raw.crop.top = 0 D/CCodecConfig(27670): c2::u32 raw.crop.width = 1280 D/BufferPoolAccessor2.0(27670): bufferpool2 0xb400007549c691f8 : 5(40960 size) total buffers - 5(40960 size) used buffers - 1/7 (recycle/alloc) - 6/25 (fetch/transfer) D/BufferPoolAccessor2.0(27670): evictor expired: 3, evicted: 1 D/BufferPoolAccessor2.0(27670): bufferpool2 0xb400007549c6d2b8 : 4(8388608 size) total buffers - 4(8388608 size) used buffers - 0/4 (recycle/alloc) - 4/20 (fetch/transfer) D/BufferPoolAccessor2.0(27670): evictor expired: 1, evicted: 1 W/CCodec (27670): previous call to queue exceeded timeout E/MediaCodec(27670): Codec reported err 0x80000000, actionCode 0, while in state 6 D/SurfaceUtils(27670): disconnecting from surface 0xb4000075e9ca4df0, reason disconnectFromSurface D/CCodecBufferChannel(27670): [c2.android.avc.decoder#626] MediaCodec discarded an unknown buffer E/BufferQueueProducer(27670): [SurfaceTexture-1-27670-2](id:6c1600000002,api:0,p:-1,c:27670) cancelBuffer: BufferQueue has no connected producer D/CCodecBufferChannel(27670): [c2.android.avc.decoder#626] MediaCodec discarded an unknown buffer E/BufferQueueProducer(27670): [SurfaceTexture-1-27670-2](id:6c1600000002,api:0,p:-1,c:27670) cancelBuffer: BufferQueue has no connected producer D/CCodecBufferChannel(27670): [c2.android.avc.decoder#626] MediaCodec discarded an unknown buffer E/BufferQueueProducer(27670): [SurfaceTexture-1-27670-2](id:6c1600000002,api:0,p:-1,c:27670) cancelBuffer: BufferQueue has no connected producer D/CCodecBufferChannel(27670): [c2.android.avc.decoder#626] MediaCodec discarded an unknown buffer E/BufferQueueProducer(27670): [SurfaceTexture-1-27670-2](id:6c1600000002,api:0,p:-1,c:27670) cancelBuffer: BufferQueue has no connected producer D/CCodecBufferChannel(27670): [c2.android.avc.decoder#626] MediaCodec discarded an unknown buffer E/BufferQueueProducer(27670): [SurfaceTexture-1-27670-2](id:6c1600000002,api:0,p:-1,c:27670) cancelBuffer: BufferQueue has no connected producer D/CCodecBufferChannel(27670): [c2.android.avc.decoder#626] MediaCodec discarded an unknown buffer E/BufferQueueProducer(27670): [SurfaceTexture-1-27670-2](id:6c1600000002,api:0,p:-1,c:27670) cancelBuffer: BufferQueue has no connected producer D/CCodecBufferChannel(27670): [c2.android.avc.decoder#626] MediaCodec discarded an unknown buffer E/BufferQueueProducer(27670): [SurfaceTexture-1-27670-2](id:6c1600000002,api:0,p:-1,c:27670) cancelBuffer: BufferQueue has no connected producer D/CCodecBufferChannel(27670): [c2.android.avc.decoder#626] MediaCodec discarded an unknown buffer E/BufferQueueProducer(27670): [SurfaceTexture-1-27670-2](id:6c1600000002,api:0,p:-1,c:27670) cancelBuffer: BufferQueue has no connected producer D/CCodecBufferChannel(27670): [c2.android.avc.decoder#626] MediaCodec discarded an unknown buffer E/BufferQueueProducer(27670): [SurfaceTexture-1-27670-2](id:6c1600000002,api:0,p:-1,c:27670) cancelBuffer: BufferQueue has no connected producer D/CCodecBufferChannel(27670): [c2.android.avc.decoder#626] MediaCodec discarded an unknown buffer E/BufferQueueProducer(27670): [SurfaceTexture-1-27670-2](id:6c1600000002,api:0,p:-1,c:27670) cancelBuffer: BufferQueue has no connected producer D/CCodecBufferChannel(27670): [c2.android.avc.decoder#626] MediaCodec discarded an unknown buffer E/BufferQueueProducer(27670): [SurfaceTexture-1-27670-2](id:6c1600000002,api:0,p:-1,c:27670) cancelBuffer: BufferQueue has no connected producer D/CCodecBufferChannel(27670): [c2.android.avc.decoder#626] MediaCodec discarded an unknown buffer E/BufferQueueProducer(27670): [SurfaceTexture-1-27670-2](id:6c1600000002,api:0,p:-1,c:27670) cancelBuffer: BufferQueue has no connected producer I/hw-BpHwBinder(27670): onLastStrongRef automatically unlinking death recipients E/BufferQueueProducer(27670): [SurfaceTexture-1-27670-2](id:6c1600000002,api:0,p:-1,c:27670) detachBuffer: BufferQueue has no connected producer E/ExoPlayerImplInternal(27670): Internal runtime error. E/ExoPlayerImplInternal(27670): java.lang.IllegalStateException E/ExoPlayerImplInternal(27670): at android.media.MediaCodec.native_dequeueInputBuffer(Native Method) E/ExoPlayerImplInternal(27670): at android.media.MediaCodec.dequeueInputBuffer(MediaCodec.java:2855) E/ExoPlayerImplInternal(27670): at com.google.android.gms.ads.exoplayer3.mediacodec.c.E(:com.google.android.gms.policy_ads_fdr_dynamite@221310604@221310604057.439654529.439654529:1) E/ExoPlayerImplInternal(27670): at com.google.android.gms.ads.exoplayer3.mediacodec.c.z(:com.google.android.gms.policy_ads_fdr_dynamite@221310604@221310604057.439654529.439654529:28) E/ExoPlayerImplInternal(27670): at com.google.android.gms.ads.exoplayer3.n.handleMessage(:com.google.android.gms.policy_ads_fdr_dynamite@221310604@221310604057.439654529.439654529:42) E/ExoPlayerImplInternal(27670): at android.os.Handler.dispatchMessage(Handler.java:102) E/ExoPlayerImplInternal(27670): at android.os.Looper.loop(Looper.java:223) E/ExoPlayerImplInternal(27670): at android.os.HandlerThread.run(HandlerThread.java:67) D/CCodecBufferChannel(27670): [c2.android.aac.decoder#180] MediaCodec discarded an unknown buffer I/chatty (27670): uid=10174(com.example.ads_example) identical 4 lines D/CCodecBufferChannel(27670): [c2.android.aac.decoder#180] MediaCodec discarded an unknown buffer W/Ads (27670): Precache error W/Ads (27670): com.google.android.gms.ads.exoplayer3.c W/Ads (27670): at com.google.android.gms.ads.exoplayer3.n.handleMessage(:com.google.android.gms.policy_ads_fdr_dynamite@221310604@221310604057.439654529.439654529:153) W/Ads (27670): at android.os.Handler.dispatchMessage(Handler.java:102) W/Ads (27670): at android.os.Looper.loop(Looper.java:223) W/Ads (27670): at android.os.HandlerThread.run(HandlerThread.java:67) W/Ads (27670): Caused by: java.lang.IllegalStateException W/Ads (27670): at android.media.MediaCodec.native_dequeueInputBuffer(Native Method) W/Ads (27670): at android.media.MediaCodec.dequeueInputBuffer(MediaCodec.java:2855) W/Ads (27670): at com.google.android.gms.ads.exoplayer3.mediacodec.c.E(:com.google.android.gms.policy_ads_fdr_dynamite@221310604@221310604057.439654529.439654529:1) W/Ads (27670): at com.google.android.gms.ads.exoplayer3.mediacodec.c.z(:com.google.android.gms.policy_ads_fdr_dynamite@221310604@221310604057.439654529.439654529:28) W/Ads (27670): at com.google.android.gms.ads.exoplayer3.n.handleMessage(:com.google.android.gms.policy_ads_fdr_dynamite@221310604@221310604057.439654529.439654529:42) W/Ads (27670): ... 3 more I/hw-BpHwBinder(27670): onLastStrongRef automatically unlinking death recipients E/ExoPlayerImplInternal(27670): Stop failed. E/ExoPlayerImplInternal(27670): java.lang.IllegalStateException E/ExoPlayerImplInternal(27670): at android.media.MediaCodec.native_stop(Native Method) E/ExoPlayerImplInternal(27670): at android.media.MediaCodec.stop(MediaCodec.java:2251) E/ExoPlayerImplInternal(27670): at com.google.android.gms.ads.exoplayer3.mediacodec.c.O(:com.google.android.gms.policy_ads_fdr_dynamite@221310604@221310604057.439654529.439654529:3) E/ExoPlayerImplInternal(27670): at com.google.android.gms.ads.exoplayer3.video.h.O(:com.google.android.gms.policy_ads_fdr_dynamite@221310604@221310604057.439654529.439654529:1) E/ExoPlayerImplInternal(27670): at com.google.android.gms.ads.exoplayer3.mediacodec.c.h(:com.google.android.gms.policy_ads_fdr_dynamite@221310604@221310604057.439654529.439654529:1) E/ExoPlayerImplInternal(27670): at com.google.android.gms.ads.exoplayer3.video.h.h(:com.google.android.gms.policy_ads_fdr_dynamite@221310604@221310604057.439654529.439654529:3) E/ExoPlayerImplInternal(27670): at com.google.android.gms.ads.exoplayer3.a.e(:com.google.android.gms.policy_ads_fdr_dynamite@221310604@221310604057.439654529.439654529:2) E/ExoPlayerImplInternal(27670): at com.google.android.gms.ads.exoplayer3.n.q(:com.google.android.gms.policy_ads_fdr_dynamite@221310604@221310604057.439654529.439654529:4) E/ExoPlayerImplInternal(27670): at com.google.android.gms.ads.exoplayer3.n.x(:com.google.android.gms.policy_ads_fdr_dynamite@221310604@221310604057.439654529.439654529:0) E/ExoPlayerImplInternal(27670): at com.google.android.gms.ads.exoplayer3.n.handleMessage(:com.google.android.gms.policy_ads_fdr_dynamite@221310604@221310604057.439654529.439654529:153) E/ExoPlayerImplInternal(27670): at android.os.Handler.dispatchMessage(Handler.java:102) E/ExoPlayerImplInternal(27670): at android.os.Looper.loop(Looper.java:223) E/ExoPlayerImplInternal(27670): at android.os.HandlerThread.run(HandlerThread.java:67) D/BufferPoolAccessor2.0(27670): bufferpool2 0xb400007549c6d2b8 : 0(0 size) total buffers - 0(0 size) used buffers - 0/4 (recycle/alloc) - 4/20 (fetch/transfer) D/BufferPoolAccessor2.0(27670): evictor expired: 1, evicted: 1 D/BufferPoolAccessor2.0(27670): bufferpool2 0xb400007549c691f8 : 0(0 size) total buffers - 0(0 size) used buffers - 1/7 (recycle/alloc) - 6/25 (fetch/transfer) D/BufferPoolAccessor2.0(27670): evictor expired: 1, evicted: 1 ```
flutter doctor -v (mac) ``` [✓] Flutter (Channel stable, 3.0.1, on macOS 12.3 21E230 darwin-arm, locale en-IN) • Flutter version 3.0.1 at /Users/mahesh/Documents/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision fb57da5f94 (3 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 /Users/mahesh/Library/Android/sdk • Platform android-32, build-tools 31.0.0 • ANDROID_HOME = /Users/mahesh/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763) • All Android licenses accepted. [!] Xcode - develop for iOS and macOS (Xcode 13.2.1) • Xcode at /Applications/Xcode.app/Contents/Developer ! CocoaPods 1.10.2 out of date (1.11.0 is recommended). CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side. Without CocoaPods, plugins will not work on iOS or macOS. For more info, see https://flutter.dev/platform-plugins To upgrade see https://guides.cocoapods.org/using/getting-started.html#installation for instructions. [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 2021.1) • Android Studio at /Applications/Android Studio.app/Contents • 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.11+0-b60-7772763) [✓] IntelliJ IDEA Community Edition (version 2021.2.1) • IntelliJ at /Applications/IntelliJ IDEA CE.app • Flutter plugin version 61.2.4 • Dart plugin version 212.5080.8 [✓] VS Code (version 1.66.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.40.0 [✓] Connected device (4 available) • Redmi K20 Pro (mobile) • 192.168.1.2:5555 • android-arm64 • Android 11 (API 30) • iPhone 12 Pro (mobile) • 19FD0231-BFF0-441D-B584-AD94C4084525 • ios • com.apple.CoreSimulator.SimRuntime.iOS-15-2 (simulator) • macOS (desktop) • macos • darwin-arm64 • macOS 12.3 21E230 darwin-arm • Chrome (web) • chrome • web-javascript • Google Chrome 101.0.4951.64 [✓] HTTP Host Availability • All required HTTP hosts are available ! Doctor found issues in 1 category. ```
huycozy commented 1 year ago

We’re closing this issue due to inactivity. If you’re still impacted, please create a new issue via the Developer Forum.