Skip to content

[Bug]: Thread 1: EXC_BAD_ACCESS (code=1, address=0x0) #2216

@phanvanluan94

Description

@phanvanluan94

Platform

iOS 16

Plugin

connectivity_plus

Version

4.0.2

Flutter SDK

3.13.6

Steps to reproduce

I got this crash issue when opening app on iOS 16.

Screenshot 2023-10-04 at 08 14 48

Note: It worked well on iOS 17

Code Sample

reaction<ConnectivityResult?>((_) => connectivityStream.value, (result) {
   _isNoInternet = result == ConnectivityResult.none;
})

Logs

2023-10-04 08:10:49.101196+0700 Runner[98845:7984311] Metal GPU Frame Capture Enabled
2023-10-04 08:10:49.101269+0700 Runner[98845:7984311] Metal API Validation Enabled
2023-10-04 08:10:49.135236+0700 Runner[98845:7984311] [VERBOSE-2:FlutterDarwinContextMetalImpeller.mm(37)] Using the Impeller rendering backend.
2023-10-04 08:10:49.140243+0700 Runner[98845:7984311] Warning: Unable to create restoration in progress marker file
2023-10-04 08:10:49.149366+0700 Runner[98845:7984311] <SKPaymentQueue: 0x2836f0080>: No observers found that respond to "paymentQueue:shouldAddStorePayment:forProduct:", will not check for purchase intents
2023-10-04 08:10:49.198220+0700 Runner[98845:7984646] 10.15.0 - [FirebaseAnalytics][I-ACS023007] Analytics v.10.15.0 started
2023-10-04 08:10:49.202261+0700 Runner[98845:7984646] 10.15.0 - [FirebaseAnalytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
2023-10-04 08:10:49.202559+0700 Runner[98845:7984646] 10.15.0 - [FirebaseAnalytics][I-ACS025036] App Delegate Proxy is disabled

Flutter Doctor

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.13.6, on macOS 14.0 23A344 darwin-arm64, locale
    en)
[✓] Android toolchain - develop for Android devices (Android SDK version
    34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.2)
[✓] VS Code (version 1.82.2)
[✓] Connected device (4 available)
[✓] Network resources

• No issues found!
luanphan@Luans-MacBook-Pro saigon-traffic-cam % flutter doctor -v
[✓] Flutter (Channel stable, 3.13.6, on macOS 14.0 23A344 darwin-arm64, locale
    en)
    • Flutter version 3.13.6 on channel stable at
      /Users/luanphan/ext_libs/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ead455963c (7 days ago), 2023-09-26 18:28:17 -0700
    • Engine revision a794cf2681
    • Dart version 3.1.3
    • DevTools version 2.25.0

[✓] Android toolchain - develop for Android devices (Android SDK version
    34.0.0)
    • Android SDK at /Users/luanphan/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Applications/Android
      Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A240d
    • CocoaPods version 1.13.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.2)
    • 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
      17.0.6+0-17.0.6b802.4-9586694)

[✓] VS Code (version 1.82.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.74.0

[✓] Connected device (4 available)
    • Nhi Iphone (3) (mobile)    • 00008110-000C51CE1E81401E            • ios
      • iOS 16.6.1 20G81
    • iPhone 15 Pro Max (mobile) • 2D0B6C91-2974-4B5E-8575-B9A3AFC34A9D • ios
      • com.apple.CoreSimulator.SimRuntime.iOS-17-0 (simulator)
    • macOS (desktop)            • macos                                •
      darwin-arm64   • macOS 14.0 23A344 darwin-arm64
    • Chrome (web)               • chrome                               •
      web-javascript • Google Chrome 117.0.5938.132

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Checklist before submitting a bug

  • I Google'd a solution and I couldn't find it
  • I searched on StackOverflow for a solution and I couldn't find it
  • I read the README.md file of the plugin
  • I'm using the latest version of the plugin
  • All dependencies are up to date with flutter pub upgrade
  • I did a flutter clean
  • I tried running the example project

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingduplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions