Skip to content

Safari high memory usage #93404

Open
Open
@vixez

Description

@vixez

Details

Target Platform: Web
Target OS version/browser: macOS Big Sur 11.5.2 (20G95) - Safari 14.1.2 (16611.3.10.1.6)
Devices: Mac

Unless I'm looking at the wrong place, it looks like Safari is using a lot of memory for my Flutter app.
In comparison with Chrome, this is not the case.

Left Safari, right Chrome.

Screenshot 2021-11-10 at 16 56 34

If I should be measuring the memory differently, please let me know (I'm not a web developer).
Both are by loading the main page, exact same state.

We are building with
flutter build web --dart-define=SENTRY_RELEASE=$SENTRY_RELEASE -t lib/$FLAVOR_ENTRYPOINT --release --source-maps --web-renderer canvaskit

Logs

Logs
   info • The declaration '_createRide' isn't referenced • lib/screens/drivers/detail/drivers_detail_screen.dart:82:8 • unused_element
   info • The declaration '_formatBillingAddress' isn't referenced • lib/screens/drivers/detail/tabs/general/driver_details_general_info_tab.dart:270:10 • unused_element
   info • Don't import implementation files from another package • lib/screens/signin_signup/views/mobile/signin_link_not_verified_sent_mobile_view.dart:3:8 • implementation_imports
   info • Don't import implementation files from another package • lib/screens/signin_signup/views/mobile/signin_link_sent_mobile_view.dart:3:8 • implementation_imports
   info • Don't import implementation files from another package • lib/screens/signin_signup/views/mobile/signin_magic_link_sent_mobile_view.dart:3:8 • implementation_imports
   info • Don't import implementation files from another package • lib/screens/signin_signup/views/mobile/signin_register_existing_user_linked_mobile_view.dart:3:8 • implementation_imports
   info • 'vsync' is deprecated and shouldn't be used. This field is now ignored. This feature was deprecated after v2.2.0-10.1.pre. • lib/screens/signin_signup/views/mobile/signin_signup_mobile_view.dart:56:31 •
          deprecated_member_use
   info • 'vsync' is deprecated and shouldn't be used. This field is now ignored. This feature was deprecated after v2.2.0-10.1.pre. • lib/screens/signin_signup/views/tablet/signin_signup_tablet_view.dart:76:37 •
          deprecated_member_use

8 issues found. (ran in 11.7s)

[✓] Flutter (Channel stable, 2.5.3, on macOS 11.5.2 20G95 darwin-x64, locale en-GB)
    • Flutter version 2.5.3 at /Users/glennruysschaert/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 18116933e7 (4 weeks ago), 2021-10-15 10:46:35 -0700
    • Engine revision d3ea636dc5
    • Dart version 2.14.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/glennruysschaert/Library/Android/sdk
    • Platform android-31, build-tools 30.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 13.1, Build version 13A1030d
    • CocoaPods version 1.11.2

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

[✓] Android Studio (version 2020.3)
    • 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 11.0.10+0-b96-7281165)

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

[✓] Connected device (3 available)
    • Glenn’s iPad (mobile) • 00008101-000D4D112139003A • ios            • iOS 15.0.2 19A404
    • macOS (desktop)       • macos                     • darwin-x64     • macOS 11.5.2 20G95 darwin-x64
    • Chrome (web)          • chrome                    • web-javascript • Google Chrome 95.0.4638.69

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listbrowser: safari-macosonly manifests in Safari on macOSc: performanceRelates to speed or footprint issues (see "perf:" labels)customer: crowdAffects or could affect many people, though not necessarily a specific customer.found in release: 2.5Found to occur in 2.5found in release: 2.6Found to occur in 2.6has reproducible stepsThe issue has been confirmed reproducible and is ready to work onperf: memoryPerformance issues related to memoryplatform-webWeb applications specificallyteam-webOwned by Web platform teamtriaged-webTriaged by Web platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions