Closed cacothi closed 2 years ago
Same my app just freezes, and I can't do anything about it. Have yet no idea why bugsnag start isn't called separately, otherwise if something fails whole app freezes
I had internet turned off, but that should not freeze the app, but let it though
D/Bugsnag ( 9749): Loaded: LastRunInfo(consecutiveLaunchCrashes=0, crashed=false, crashedDuringLaunch=false)
D/Bugsnag ( 9749): Persisted: consecutiveLaunchCrashes=0
D/Bugsnag ( 9749): crashed=false
D/Bugsnag ( 9749): crashedDuringLaunch=false
D/Bugsnag ( 9749): Plugin 'com.bugsnag.android.BugsnagReactNativePlugin' is not on the classpath - functionality will not be enabled.
W/BugsnagNDK( 9749): Initialization complete!
I/Bugsnag ( 9749): Initialised NDK Plugin
I/Bugsnag ( 9749): Initialised ANR Plugin
D/Bugsnag ( 9749): No startupcrash events to flush to Bugsnag.
D/Bugsnag ( 9749): No regular events to flush to Bugsnag.
D/Bugsnag ( 9749): Bugsnag loaded
D/Bugsnag ( 6931): SessionTracker#flushStoredSession() - attempting delivery
I/Bugsnag ( 6931): Session API request finished with status UNDELIVERED
W/Bugsnag ( 6931): Leaving session payload for future delivery
D/Bugsnag ( 6931): SessionTracker#flushStoredSession() - attempting delivery
I/Bugsnag ( 6931): Session API request finished with status UNDELIVERED
W/Bugsnag ( 6931): Leaving session payload for future delivery
D/Bugsnag ( 6931): SessionTracker#trackSessionIfNeeded() - session captured by Client
D/Bugsnag ( 6931): SessionTracker#trackSessionIfNeeded() - attempting initial delivery
I/Bugsnag ( 6931): Session API request finished with status UNDELIVERED`_
it does work on Android when i-net is turned on, but doesn't when off
Hi @cacothi.
This looks like it is likely a known dependency issue when using Cocoapods and M1 architecture.
There appears to be some similar errors encountered : https://stackoverflow.com/questions/71815618/swift-cocoa-pods-issue-library-ruby-gems-2-6-0-gems-ffi-1-15-5-lib-ffi-c-bund
This suggests doing the following:
sudo arch -x86_64 gem install ffi
Then
arch -x86_64 pod install
The other suggestion would be to update your version of Ruby to >2.7.0
Hi @ebelevics, are you also seeing the freezing issue on Android or also on iOS?
On Android physical device. On iOS can't test it as internet is required to verify the build on phone. I also tried to use try-catch bugsnag.start in order to bypass it, but no luck
P.S. tried running those command line, but did do a trick
Ok, for some reason now it did passed through on Android device without internet, with same messages as stated above. Even tho the code remained almost the same.
I'll just add this, maybe it might help. But it's the code that did not worked before, after some while now works.
bugsnag.start(
apiKey: Platform.isAndroid
? FlutterConfig.get(BUGSNAG_ANDROID_API_ENV_KEY)
: FlutterConfig.get(BUGSNAG_IOS_API_ENV_KEY),
releaseStage: "release",
// onError callbacks can be used to modify or reject certain events
runApp: () async {
//--SETUP--//
await setup();
await mainContainer.read(authProvider.notifier).getUser();
runApp(
UncontrolledProviderScope(
container: mainContainer,
child: const MainApp(),
),
);
},
onError: [(event) => kReleaseMode],
);
OK, it seems a little unusual if no code changes were made, but now works. Can you walk me through the exact steps you are taking?
It may be worth mentioning that sessions would be sent separate to error events. The logs above look like we are trying to send through session information but failing due to the lack of internet. These should then be stored on the device and sent when an internet connection is restored. If you are able to reproduce the issue consistently, it might be interesting to see what happens if you were to turn off the session capture temporarily. https://docs.bugsnag.com/platforms/flutter/configuration-options/#auto-track-sessions and repeat the steps. It could help narrow down if there is a connection between the issue you are seeing and the session information delivery when internet connectivity is restored.
Ok, I'll let you know if I'll be able to reproduce this issue on consistent basis
HI @ebelevics, just checking in to see if you've been able to reproduce? I'm going to close this for now but happy to reopen if there is any further information you can share.
Describe the bug
Hi Team,
I've simply followed the initial steps to add Bugsnag on my Flutter app and it didn't enable my app to start.
iOS: Error Details are attached below Android: No error is issued, but the app freezes on the launch screen
Steps to reproduce
as per steps on https://app.bugsnag.com/app/app/overview
void main() => bugsnag.start( apiKey: 'KEY', runApp: () => runApp(const MyFlutterApp()), );
[✓] Flutter (Channel stable, 3.0.3, on macOS 12.4 21F79 darwin-arm, locale en-AU) [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 13.4.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2020.3) [✓] VS Code (version 1.68.1) [✓] Connected device (5 available) [✓] HTTP Host Availability
void main() async {
WidgetsFlutterBinding.ensureInitialized(); final settingsController = SettingsController(SettingsService()); await settingsController.loadSettings();
await Firebase.initializeApp( options: DefaultFirebaseOptions.currentPlatform, );
return bugsnag.start( apiKey: Config.budgsnagKey, runApp: () => (MyApp( settingsController: settingsController, initialLink: initialLink )) ); }
Launching lib/main.dart on iPhone in debug mode... Automatically signing iOS for device deployment using specified development team in Xcode project: XXX CocoaPods' output: ↳ Preparing Analyzing dependencies Inspecting targets to integrate Using
ARCHS
setting to build architectures of targetPods-Runner
: (``) Finding Podfile changes A bugsnag_flutterFlutter
fromFlutter
-> Fetching podspec foramplitude_flutter
from.symlinks/plugins/amplitude_flutter/ios
-> Fetching podspec forbugsnag_flutter
from.symlinks/plugins/bugsnag_flutter/ios
-> Fetching podspec forcloud_firestore
from.symlinks/plugins/cloud_firestore/ios
cloud_firestore: Using Firebase SDK version '8.15.0' defined in 'firebase_core' -> Fetching podspec fordevice_info
from.symlinks/plugins/device_info/ios
-> Fetching podspec fordevice_info_plus
from.symlinks/plugins/device_info_plus/ios
-> Fetching podspec forfirebase_analytics
from.symlinks/plugins/firebase_analytics/ios
firebase_analytics: Using Firebase SDK version '8.15.0' defined in 'firebase_core' -> Fetching podspec forfirebase_auth
from.symlinks/plugins/firebase_auth/ios
firebase_auth: Using Firebase SDK version '8.15.0' defined in 'firebase_core' -> Fetching podspec forfirebase_core
from.symlinks/plugins/firebase_core/ios
firebase_core: Using Firebase SDK version '8.15.0' defined in 'firebase_core' -> Fetching podspec forfirebase_dynamic_links
from.symlinks/plugins/firebase_dynamic_links/ios
firebase_dynamic_links: Using Firebase SDK version '8.15.0' defined in 'firebase_core' -> Fetching podspec forfirebase_messaging
from.symlinks/plugins/firebase_messaging/ios
firebase_messaging: Using Firebase SDK version '8.15.0' defined in 'firebase_core' -> Fetching podspec forflutter_appauth
from.symlinks/plugins/flutter_appauth/ios
-> Fetching podspec forflutter_facebook_auth
from.symlinks/plugins/flutter_facebook_auth/ios
-> Fetching podspec forflutter_inappwebview
from.symlinks/plugins/flutter_inappwebview/ios
-> Fetching podspec forflutter_native_image
from.symlinks/plugins/flutter_native_image/ios
-> Fetching podspec forgoogle_sign_in
from.symlinks/plugins/google_sign_in/ios
-> Fetching podspec forimage_picker_ios
from.symlinks/plugins/image_picker_ios/ios
-> Fetching podspec formixpanel_flutter
from.symlinks/plugins/mixpanel_flutter/ios
-> Fetching podspec forpackage_info_plus
from.symlinks/plugins/package_info_plus/ios
-> Fetching podspec forpath_provider_ios
from.symlinks/plugins/path_provider_ios/ios
-> Fetching podspec forsign_in_with_apple
from.symlinks/plugins/sign_in_with_apple/ios
-> Fetching podspec forsqflite
from.symlinks/plugins/sqflite/ios
-> Fetching podspec forurl_launcher_ios
from.symlinks/plugins/url_launcher_ios/ios
Resolving dependencies ofPodfile
CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: all_pods_versions_f_4_d.txt exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: Specs/f/4/d/Amplitude/8.10.0/Amplitude.podspec.json exists! Returning local because checking is only performed in repo update CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only performed in repo update ――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――Command
Report
Stack
Plugins
Podfile
Error
――― TEMPLATE END ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― [!] Oh no, an error occurred. Search for existing GitHub issues similar to yours: https://github.com/CocoaPods/CocoaPods/search?q=dlopen%28%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Fffi-1.15.5%2Flib%2Fffi_c.bundle%2C+0x0009%29%3A+tried%3A+%27%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Fffi-1.15.5%2Flib%2Fffi_c.bundle%27+%28mach-o+file%2C+but+is+an+incompatible+architecture+%28have+%27x86_64%27%2C+need+%27arm64e%27%29%29+-+%2FLibrary%2FRuby%2FGems%2F2.6.0%2Fgems%2Fffi-1.15.5%2Flib%2Fffi_c.bundle&type=Issues If none exists, create a ticket, with the template displayed above, on: https://github.com/CocoaPods/CocoaPods/issues/new Be sure to first read the contributing guide for details on how to properly submit a ticket: https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md Don't forget to anonymize any private data! Looking for related issues on cocoapods/cocoapods... Error output from CocoaPods: ↳ Searching for inspections failed: undefined method `map' for nil:NilClass Exception: Error running pod install Exited