Skip to content

[tool_crash] SessionNotCreatedException #141010

Closed as not planned
Closed as not planned

Description

@KarthikPrabhu123

Command

flutter drive --driver=test_driver/integration_test.dart --target=integration_test/app_test.dart -d chrome

Steps to Reproduce

  1. ...
  2. ...
  3. ...

Logs

SessionNotCreatedException

#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:144:19)
<asynchronous suspension>
#6      DriveCommand.runCommand (package:flutter_tools/src/commands/drive.dart:323:30)
<asynchronous suspension>
#7      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1297:27)
<asynchronous suspension>
#8      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150: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:339:9)
<asynchronous suspension>
#11     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#12     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:285:5)
<asynchronous suspension>
#13     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:115:9)
<asynchronous suspension>
�[32m[✓]�[39m Flutter (Channel stable, 3.13.6, on Ubuntu 20.04.6 LTS 5.15.0-91-generic, locale en_US.UTF-8)
    �[32m•�[39m Flutter version 3.13.6 on channel stable at /home/karthik/snap/flutter/common/flutter
    �[32m•�[39m Upstream repository https://github.com/flutter/flutter.git
    �[32m•�[39m Framework revision ead455963c (3 months ago), 2023-09-26 18:28:17 -0700
    �[32m•�[39m Engine revision a794cf2681
    �[32m•�[39m Dart version 3.1.3
    �[32m•�[39m DevTools version 2.25.0

�[32m[✓]�[39m Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    �[32m•�[39m Android SDK at /home/karthik/Android/Sdk
    �[32m•�[39m Platform android-33, build-tools 33.0.0
    �[32m•�[39m Java binary at: /snap/android-studio/140/jbr/bin/java
    �[32m•�[39m Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)
    �[32m•�[39m All Android licenses accepted.

�[32m[✓]�[39m Chrome - develop for the web
    �[32m•�[39m Chrome at google-chrome

�[32m[✓]�[39m Linux toolchain - develop for Linux desktop
    �[32m•�[39m clang version 10.0.0-4ubuntu1
    �[32m•�[39m cmake version 3.16.3
    �[32m•�[39m ninja version 1.10.0
    �[32m•�[39m pkg-config version 0.29.1

�[32m[✓]�[39m Android Studio (version 2022.3)
    �[32m•�[39m Android Studio at /snap/android-studio/128/android-studio
    �[32m•�[39m Flutter plugin version 76.1.2
    �[32m•�[39m Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    �[32m•�[39m Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

�[32m[✓]�[39m Android Studio (version 2023.1)
    �[32m•�[39m Android Studio at /snap/android-studio/140
    �[32m•�[39m Flutter plugin version 77.1.2
    �[32m•�[39m Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    �[32m•�[39m Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)

�[32m[✓]�[39m VS Code (version unknown)
    �[32m•�[39m VS Code at /snap/code/current
    �[32m•�[39m Flutter extension version 3.80.0
    �[31m✗�[39m Unable to determine VS Code version.

�[32m[✓]�[39m Connected device (2 available)
    �[32m•�[39m Linux (desktop) • linux  • linux-x64      • Ubuntu 20.04.6 LTS 5.15.0-91-generic
    �[32m•�[39m Chrome (web)    • chrome • web-javascript • Google Chrome 120.0.6099.109

�[32m[✓]�[39m Network resources
    �[32m•�[39m All expected network resources are available.

�[32m•�[39m No issues found!

Flutter Application Metadata

Type: app
Version: 1.0.0+1
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: stable
Creation framework version: 135454a

Plugins

integration_test

Activity

  1. added
    in triagePresently being triaged by the triage team
    on Jan 5, 2024
  2. dam-ease commented on Jan 5, 2024

    @dam-ease

    Thanks for filing this issue @KarthikPrabhu123. This seems to be similar to #123602. You can see #123602 (comment) and #123602 (comment) for solution and check if it works for you.
    Also check #131297 (comment) and see what chromedriver version are you using and whether Downgrading chromedriver than your current version solves the issue or not.
    Closing from here, as this isn't related to flutter but could be related to the chromedriver version's compatibility. If you disagree, write in comments and I'll reopen it.

  3. added
    r: duplicateIssue is closed as a duplicate of an existing issue
    and removed
    in triagePresently being triaged by the triage team
    on Jan 5, 2024
  4. KarthikPrabhu123 commented on Jan 5, 2024

    @KarthikPrabhu123
    Author

    As mentioned in the #131297(comment), I downgraded the Chrome driver version to (ChromeDriver 114.0.5735.90 ) and am currently facing the same error. 

  5. added
    in triagePresently being triaged by the triage team
    c: crashStack traces logged to the console
    toolAffects the "flutter" command-line tool. See also t: labels.
    platform-webWeb applications specifically
    f: integration_testThe flutter/packages/integration_test plugin
    team-toolOwned by Flutter Tool team
    and removed
    r: duplicateIssue is closed as a duplicate of an existing issue
    in triagePresently being triaged by the triage team
    on Jan 8, 2024
  6. added
    P3Issues that are less important to the Flutter project
    triaged-toolTriaged by Flutter Tool team
    on Jan 9, 2024
  7. ZhuChanJuan commented on May 9, 2024

    @ZhuChanJuan

    actually this issue doesn't relate to the chromedriver version's compatibility.
    please check my issue detail : #148029

  8. HeinrichJanzing commented on Nov 6, 2024

    @HeinrichJanzing

    I encounter the same problem on Windows and am unable to run our integration tests. Considering the many reported and closed duplicates so far, the impact of the issue and the lack of a workaround, the assigned P3 priority is a bit disappointing, no?

    A colleague on macOS has no issues.

    For what it's worth, I get the same issue using -d web-server too.

  9. ylruiz commented on Feb 11, 2025

    @ylruiz

    We are experiencing the same issue in version 3.27.1. Is there any plan to solve this issue on any update on it?

  10. github-actions commented on Jul 25, 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.

  11. locked as resolved and limited conversation to collaborators on Jul 25, 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

    P3Issues that are less important to the Flutter projectc: crashStack traces logged to the consolef: integration_testThe flutter/packages/integration_test pluginplatform-webWeb applications specificallyteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions