-
-
Notifications
You must be signed in to change notification settings - Fork 271
Description
Platform
Flutter Web
Obfuscation
Disabled
Debug Info
Disabled
Doctor
[✓] Flutter (Channel stable, 3.32.8, on macOS 15.3.1 24D70 darwin-arm64, locale en-US) [986ms]
• Flutter version 3.32.8 on channel stable
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision edada7c56e (6 weeks ago), 2025-07-25 14:08:03 +0000
• Engine revision ef0cd00091
• Dart version 3.8.1
• DevTools version 2.45.1
[!] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [1,754ms]
• Android SDK
• Platform android-35, build-tools 35.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 21.0.3+-79915917-b509.11)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 16.1) [1,864ms]
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16B40
• CocoaPods version 1.16.2
[✓] Chrome - develop for the web [133ms]
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2024.2) [133ms]
• 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 21.0.3+-79915917-b509.11)
[✓] IntelliJ IDEA Ultimate Edition (version 2024.3) [132ms]
• IntelliJ at
• Flutter plugin version 83.0.4
• Dart plugin version 243.23654.44
[✓] IntelliJ IDEA Ultimate Edition (version 2024.3.3) [56ms]
• IntelliJ at /
• Flutter plugin version 83.0.4
• Dart plugin version 243.23654.44
[✓] VS Code (version 1.103.2) [11ms]
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.116.0
[✓] Connected device (2 available) [6.2s]
• macOS (desktop) • macos • darwin-arm64 • macOS 15.3.1 24D70 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 139.0.7258.155
[✓] Network resources [234ms]
• All expected network resources are available.
Version
9.6.0
Steps to Reproduce
Seems like this is happening after 9.6.0 and on web.
This is the affected code in "lib/src/event_processor/enricher/web_enricher_event_processor.dart":
int? _getMemorySize() {
// https://developer.mozilla.org/en-US/docs/Web/API/Navigator/deviceMemory
// ignore: invalid_null_aware_operator
final size = _window.navigator.deviceMemory?.toDouble();
final memoryByteSize = size != null ? size * 1024 * 1024 * 1024 : null;
return memoryByteSize?.toInt();
}
Expected Result
_getDevice() not crashing
Actual Result
[sentry] [error] An exception occurred while processing event by a processor
[sentry] _TypeError (TypeError: null: type 'Null' is not a subtype of type 'double')
[sentry] _StackTrace (dart-sdk/lib/internal/js_dev_runtime/private/ddc_runtime/errors.dart 266:3 throw
errors.dart:266
dart-sdk/lib/_internal/js_dev_runtime/private/profile.dart 117:39 _asDouble
profile.dart:117
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 316:9 getProperty
operations.dart:316
package:sentry/src/event_processor/enricher/web_enricher_event_processor.dart 73:36 [_getMemorySize]
web_enricher_event_processor.dart:73
package:sentry/src/event_processor/enricher/web_enricher_event_processor.dart 60:43
web_enricher_event_processor.dart:60
package:sentry/src/event_processor/enricher/web_enricher_event_processor.dart 58:12 [_getDevice]
web_enricher_event_processor.dart:58
package:sentry/src/event_processor/enricher/web_enricher_event_processor.dart 28:18
web_enricher_event_processor.dart:28
package:sentry/src/event_processor/enricher/web_enricher_event_processor.dart 27:11 apply
web_enricher_event_processor.dart:27
package:sentry/src/event_processor/run_event_processors.dart 25:26
Are you willing to submit a PR?
None
Metadata
Metadata
Assignees
Projects
Status