Skip to content

SessionNotCreatedException thrown from flutter drive command #169006

Closed as duplicate

Description

@kenzieschmoll

command

flutter drive --driver=test_driver/integration_test.dart --target=integration_test/test/live_connection/devtools_extensions_test.dart -d web-server --web-browser-flag=--disable-gpu --web-browser-flag=--headless=old --web-browser-flag=--disable-search-engine-choice-screen --dart-define=test_args={"service_uri":"ws://127.0.0.1:63038/sE0IlL7QZgA=/ws"} --dart-define=debug_devtools_server=http://127.0.0.1:63001/

exception

SessionNotCreatedException: SessionNotCreatedException (500): session not created: probably user data directory is already in use, please specify a unique value for --user-data-dir argument, or don't use --user-data-dir

#0      parseW3cResponse (package:webdriver/src/handler/w3c/utils.dart:81:9)
#1      W3cSessionHandler.parseCreateResponse (package:webdriver/src/handler/w3c/session.dart:19:21)
#2      InferSessionHandler.parseCreateResponse (package:webdriver/src/handler/infer_handler.dart:106:34)
#3      AsyncRequestClient.send (package:webdriver/src/common/request_client.dart:96:32)
<asynchronous suspension>
#4      createDriver (package:webdriver/async_core.dart:62:19)
<asynchronous suspension>
#5      WebDriverService.startTest (package:flutter_tools/src/drive/web_driver_service.dart:172:19)
<asynchronous suspension>
#6      DriveCommand.runCommand (package:flutter_tools/src/commands/drive.dart:374:30)
<asynchronous suspension>
#7      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1551:27)
<asynchronous suspension>
#8      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:154:19)
<asynchronous suspension>
#9      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#10     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:501:9)
<asynchronous suspension>
#11     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:154:19)
<asynchronous suspension>
#12     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:438:5)
<asynchronous suspension>
#13     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:98:11)
<asynchronous suspension>
#14     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:154:19)
<asynchronous suspension>
#15     main (package:flutter_tools/executable.dart:102:3)
<asynchronous suspension>

flutter doctor

[!] Flutter (Channel [user-branch], 3.32.0-1.0.pre.378, on macOS 15.4.1 24E263 darwin-arm64, locale en) [1,142ms]
    ! Flutter version 3.32.0-1.0.pre.378 on channel [user-branch] at /Users/kenzieschmoll/develop/flutter
      Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
      If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/setup.
    ! Upstream repository unknown source is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss this error.
    • Framework revision 48f87a5fe7 (2 weeks ago), 2025-05-02 10:19:21 +0200
    • Engine revision 48f87a5fe7
    • Dart version 3.9.0 (build 3.9.0-76.0.dev)
    • DevTools version 2.46.0-dev.0
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.1) [2.0s]
    • Android SDK at /Users/kenzieschmoll/Library/Android/sdk
    • Emulator version 35.5.4.0 (build_id 13061114) (CL:N/A)
    • Platform android-35, build-tools 35.0.1
    • Java binary at: /Applications/Android Studio Preview.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.5+-13047016-b750.29)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.2) [1,101ms]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16C5032a
    • CocoaPods version 1.16.2

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

[✓] Android Studio (version 2024.3.2) [77ms]
    • Android Studio at /Applications/Android Studio Preview.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.5+-13047016-b750.29)

[✓] Android Studio (version 2024.3) [75ms]
    • 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.5+-13047016-b750.29)

[✓] IntelliJ IDEA Community Edition (version 2025.1.1) [75ms]
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 85.3.2
    • Dart plugin version 251.25410.28

[✓] VS Code (version 1.100.0) [3ms]
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.111.20250501

[✓] Connected device (5 available) [5.8s]
    • sdk gphone64 arm64 (mobile) • emulator-5554                        • android-arm64  • Android 15 (API 35) (emulator)
    • iPhone 16 Pro (mobile)      • FED096DB-762F-4022-9433-42858CBD5E32 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-18-2 (simulator)
    • macOS (desktop)             • macos                                • darwin-arm64   • macOS 15.4.1 24E263 darwin-arm64
    • Web Server (web)            • web-server                           • web-javascript • Flutter Tools
    • Chrome (web)                • chrome                               • web-javascript • Google Chrome 136.0.7103.114

[✓] Network resources [1,212ms]
    • All expected network resources are available.

! Doctor found issues in 1 category.

Activity

  1. darshankawar commented on May 19, 2025

    @darshankawar
    Member

    Closing as duplicate of #141010

  2. added
    r: duplicateIssue is closed as a duplicate of an existing issue
    and removed
    in triagePresently being triaged by the triage team
    on May 19, 2025
  3. github-actions commented on Jun 2, 2025

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  4. locked as resolved and limited conversation to collaborators on Jun 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: duplicateIssue is closed as a duplicate of an existing issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions