Skip to content

type 'NoOpSentrySpan' is not a subtype of type 'SentryTracer' in type cast #2500

@fodedoumbouya

Description

@fodedoumbouya

Platform

Flutter Mobile Android

Obfuscation

Enabled

Debug Info

Enabled

Doctor

flutter doctor -v ─╯
[✓] Flutter (Channel master, 3.28.0-1.0.pre.101, on macOS 15.2 24C101 darwin-arm64, locale en-CN)
• Flutter version 3.28.0-1.0.pre.101 on channel master at /Users//development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 26ea690af8 (3 days ago), 2024-12-13 04:26:25 -0500
• Engine revision 3c263a38f5
• Dart version 3.7.0 (build 3.7.0-243.0.dev)
• DevTools version 2.41.0

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /Users//Library/Android/sdk
• Platform android-35, build-tools 34.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
This is the JDK bundled with the latest Android Studio installation on this machine.
To manually set the JDK path, use: flutter config --jdk-dir="path/to/jdk".
• Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16A242d
• CocoaPods version 1.16.2

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

[✓] Android Studio (version 2023.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 17.0.7+0-17.0.7b1000.6-10550314)

[✓] Android Studio (version 2021.2)
• Android Studio at /Users//Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/212.5712.43.2112.8609683/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.12+0-b1504.28-7817840)

[✓] IntelliJ IDEA Ultimate Edition (version 2023.2.2)
• IntelliJ at /Applications/IntelliJ IDEA.app
• 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

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

[✓] Connected device (4 available)
• sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64 • Android 14 (API 34) (emulator)
• macOS (desktop) • macos • darwin-arm64 • macOS 15.2 24C101 darwin-arm64
• Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 15.2 24C101 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 131.0.6778.140

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

• No issues found!

Version

sentry_flutter: ^8.11.0

Steps to Reproduce

  1. flutter 3.28.0
  2. sentry_flutter: ^8.11.0

Expected Result

after upgrading to flutter 3.28.0 and sentry_flutter: ^8.11.0 I have this error and I already initialized with SentryWidgetsFlutterBinding.ensureInitialized();

Actual Result

[sentry] [debug] FramesTrackingIntegration successfully initialized with an expected frame duration of 16ms
[sentry] [debug] release: [email protected]+71
I/Choreographer( 9888): Skipped 32 frames! The application may be doing too much work on its main thread.
[sentry] [error] Error while capturing native app start
type 'NoOpSentrySpan' is not a subtype of type 'SentryTracer' in type cast
#0 TimeToInitialDisplayTracker.track (package:sentry_flutter/src/navigation/time_to_initial_display_tracker.dart:54:32)
#1 TimeToDisplayTracker.track (package:sentry_flutter/src/navigation/time_to_display_tracker.dart:29:24)
#2 NativeAppStartHandler.call (package:sentry_flutter/src/integrations/native_app_start_handler.dart:46:40)

#3 NativeAppStartIntegration.call.timingsCallback (package:sentry_flutter/src/integrations/native_app_start_integration.dart:59:11)

Are you willing to submit a PR?

None

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Done

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions