Closed Navil closed 1 year ago
Hi @Navil Are you implementing native ads in the carousel?
You should narrow down the issue by removing the usage of 3rd party plugins/packages one by one, unrelated/unaffected pages, and isolating the affected page/widget that can be run independently. If the issue's still reproducible, please provide that main.dart
file.
But if it can't be reproducible locally, please try to get the complete crash stack trace in text format and share it here so that we can verify the issue properly. Thank you!
Thank you for your input @huycozy , I am not using native ads. Once I disabled "Video" ads, the crash disappeared. And we are able to reproduce it with specific ads once we enable it again. The video on top shows such an ad. Also quite interesting is, that is only happens on iOS.
Is there a way I can forward you the entire sentry event (with stack traces) somewhere as I am not sure if it contains any sensitive data?
What kind of ads are you implementing there in the carousel? (banner ad, native ad).
I guess this issue is not reproducible with test ad id, right? In this case, can you please try running project in release
mode (--release
) to see if the crash can be reproducible? If it appears, please share the crash stack trace here or you can share it to my email (in my GH profile) so that we have more information to investigate the issue. Thank you!
It is a banner ad. I will sent you the sentry event.
I will try to reproduce it in release mode.
Does the crash occur in release mode?
I received the log you sent to me via email. It seems the crash occurs on AppDelegate.swift
file at line 5th. Do you implement any other code there? Can you please also share the code in ios/Runner/AppDelegate.swift
? (You should remove any sensitive code if any)
Hey the code in there looks like this:
import UIKit
import Flutter
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
}
The code looks normal and nothing seems to cause the crash here. Please check this in release
mode. If it's reproducible, please provide the complete output of flutter run --release -v
. Thank you!
I do not have an iOS device and the emulator tells me: Release mode is not supported by iPhone 14 Pro Max. Any other thing I could do to help in the investigation?
Yes, you can't run release mode in the emulator/simulator. Unfortunately, it seems there is no other choice. Providing a full stack trace by running locally will help us better investigate the issue.
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens, logs and the output of 'flutter doctor -v'. All system setups can be slightly different so it's always better to open new issues and reference the related ones. Thanks for your contribution.
[REQUIRED] Step 1: Describe your environment
Plugin Version
3.0.0, but also happened before
Platform
It only happens on iOS
[REQUIRED] Step 2: Describe the problem
Steps to Reproduce
It does only happen with specific ads and when scrolling to the ad fast.
Crash: https://github.com/googleads/googleads-mobile-flutter/assets/3436399/a551eb58-9221-4ac4-8839-5ff2a1e60427
No Crash: https://github.com/googleads/googleads-mobile-flutter/assets/3436399/25d363f2-1011-4e34-ae50-e6f9e3a51c43
Expected results: The app should not crash
Actual results: The app crashes
Sentry output
As I cannot reproduce it locally and it only happens with specific ads, here the information I found on sentry:
The loaded ad: (I dont know what data I can show here publicy so I replaced ca-app-pub and my App name)
As mentioned, it does not happen with all ads. The ad above is one where is crashes and we can consistently reproduce it on production when those apps are offered.
I can send the full Sentry event if needed.
``` ``` Resolving dependencies... _fe_analyzer_shared 61.0.0 (62.0.0 available) analyzer 5.13.0 (6.0.0 available) cancellation_token 1.6.1 (2.0.1 available) collection 1.17.1 (1.17.2 available) dots_indicator 2.1.2 (3.0.0 available) dropdown_button2 2.1.4 (2.3.5 available) file 6.1.4 (7.0.0 available) injector 2.0.0 (3.0.0 available) intl 0.18.0 (0.18.1 available) matcher 0.12.15 (0.12.16 available) material_color_utilities 0.2.0 (0.8.0 available) objectid 2.1.0 (3.0.0 available) source_span 1.9.1 (1.10.0 available) stack_trace 1.11.0 (1.11.1 available) stream_channel 2.1.1 (2.1.2 available) stylish_bottom_bar 1.0.0 (1.0.3 available) test_api 0.5.1 (0.6.1 available) visibility_detector 0.3.3 (0.4.0+2 available) ! webview_flutter_wkwebview 3.5.0 (overridden) (3.7.0 available) ``` ``` Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 3.10.6, on Microsoft Windows [Version 10.0.19045.3208], locale de-AT) [√] Windows Version (Installed version of Windows is version 10 or higher) [√] Android toolchain - develop for Android devices (Android SDK version 32.0.0-rc1) [√] Android Studio (version 2021.2) [√] IntelliJ IDEA Ultimate Edition (version 2020.3) [√] VS Code (version 1.80.0) [!] Connected device ! No devices available [√] Network resources ! Doctor found issues in 1 category. ``` ```