Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in flutter web, embed a table in singlechildscrollview or ListView, using mouse to drag will cause error. #77211

Closed
zhushuihua opened this issue Mar 4, 2021 · 17 comments
Assignees
Labels
assigned for triage issue is assigned to a domain expert for further triage c: crash Stack traces logged to the console engine flutter/engine repository. See also e: labels. f: gestures flutter/packages/flutter/gestures repository. platform-web Web applications specifically r: duplicate Issue is closed as a duplicate of an existing issue

Comments

@zhushuihua
Copy link

zhushuihua commented Mar 4, 2021

code sample
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(),
    );
  }
}
class MyHomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: SingleChildScrollView(
          child: Table(
        defaultColumnWidth: IntrinsicColumnWidth(),
        children: [
          for (var i = 0; i < 100; i++)
            TableRow(
              children: [
                Text(
                  '$i',
                  style: TextStyle(fontSize: 25),
                )
              ],
            )
        ],
      )),
    );
  }
}

the following is the error:

Error: Assertion failed: org-dartlang-sdk:///flutter_web_sdk/lib/_engine/engine/pointer_converter.dart:286:18
!state.down
is not true
    at Object.throw_ [as throw] (http://localhost:50475/dart_sdk.js:5334:11)
    at Object.assertFailed (http://localhost:50475/dart_sdk.js:5270:15)
    at _engine.PointerDataConverter.new.convert (http://localhost:50475/dart_sdk.js:165955:47)
    at _engine._PointerAdapter.new.[_convertEventsToPointerData] (http://localhost:50475/dart_sdk.js:165404:36)
    at http://localhost:50475/dart_sdk.js:165339:44
    at http://localhost:50475/dart_sdk.js:165308:16
    at http://localhost:50475/dart_sdk.js:165007:11
@zhushuihua
Copy link
Author

This is happening in beta version 1.26.x and flutter 2.0 stable.
But it is working properly with 1.25.0-8.3.pre

@zhushuihua zhushuihua changed the title in flutter web, embed a table in singlechildscrollview, using mouse to drag will cause error. in flutter web, embed a table in singlechildscrollview or ListView, using mouse to drag will cause error. Mar 4, 2021
@pedromassangocode pedromassangocode added the in triage Presently being triaged by the triage team label Mar 4, 2021
@pedromassangocode
Copy link

Hi @zhushuihua
I cannot reproduce this issue on latest master and stable channel.

gif

flutter doctor -v
[✓] Flutter (Channel master, 2.1.0-11.0.pre.97, on macOS 11.2.1 20D74 darwin-x64, locale en-AO)
    • Flutter version 2.1.0-11.0.pre.97 at /Users/pedromassango/Code/flutter_master
    • Framework revision c14c8d8177 (86 minutes ago), 2021-03-03 21:40:34 -0800
    • Engine revision 72bbc5d92c
    • Dart version 2.13.0 (build 2.13.0-93.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/pedromassango/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.1, Build version 12A7403
    ! CocoaPods 1.9.3 out of date (1.10.0 is recommended).
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To upgrade see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.

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

[✓] Android Studio (version 4.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 1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Community Edition (version 2020.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 54.0.3
    • Dart plugin version 203.6912

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

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 11.2.1 20D74 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 88.0.4324.192

! Doctor found issues in 1 category.
[✓] Flutter (Channel stable, 2.0.0, on macOS 11.2.1 20D74 darwin-x64, locale en-AO)
    • Flutter version 2.0.0 at /Users/pedromassango/Code/flutter_stable
    • Framework revision 60bd88df91 (14 hours ago), 2021-03-03 09:13:17 -0800
    • Engine revision 40441def69
    • Dart version 2.12.0

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Users/pedromassango/Library/Android/sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.1, Build version 12A7403
    ! CocoaPods 1.9.3 out of date (1.10.0 is recommended).
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To upgrade see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.

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

[✓] Android Studio (version 4.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 1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Community Edition (version 2020.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 54.0.3
    • Dart plugin version 203.6912

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

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 11.2.1 20D74 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 88.0.4324.192

! Doctor found issues in 1 category.

@pedromassangocode pedromassangocode added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Mar 4, 2021
@zhushuihua
Copy link
Author

Please use your left mouse to drag and swipe up and down.

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Mar 4, 2021
@zhushuihua
Copy link
Author

Simply left-click the list and drag the list up and down several times, the error will appear in the console.

@kubatatami
Copy link

I have same issue in two projects after update to flutter 2.0 stable. Dragging ListView is the easiest way to reproduce but it also happens randomly in many other situation like FlatButton clicks.
Tested in chrome and Safari on Big Sur.

@pedromassangocode
Copy link

pedromassangocode commented Mar 4, 2021

I still cannot reproduce this scrolling the list using left-click + dragging.

gif

Please share your flutter doctor -v.

@pedromassangocode pedromassangocode added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Mar 4, 2021
@zhushuihua
Copy link
Author

[✓] Flutter (Channel stable, 2.0.0, on macOS 11.2.2 20D80 darwin-x64, locale en-SG)
• Flutter version 2.0.0 at /Users/zhushuihua/flutter
• Framework revision 60bd88d (21 hours ago), 2021-03-03 09:13:17 -0800
• Engine revision 40441de
• Dart version 2.12.0

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /Users/zhushuihua/Library/Android/sdk
• Platform android-29, build-tools 28.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.4, Build version 12D4e
• CocoaPods version 1.10.1

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

[✓] Android Studio (version 4.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 1.8.0_242-release-1644-b3-6915495)

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

[✓] Connected device (1 available)
• Chrome (web) • chrome • web-javascript • Google Chrome 88.0.4324.192

• No issues found!

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Mar 4, 2021
@zhushuihua
Copy link
Author

zhushuihua commented Mar 4, 2021

Could you please click and drag it up and down more times?

@zhushuihua
Copy link
Author

Actually, I have even tried my second macbook. Initially, it seems to be ok but after a while the error came out...

@zhushuihua
Copy link
Author

20210304231627325.mp4

@zhushuihua
Copy link
Author

Please understand that when I use my macbook pro 15 inch, it is very easy to show up. But for my macbook pro 13 inch, it is not so frequent, sometimes I need to try more time to get the error message, but surely, it will come up. Please also try more devices at your side to verify this issue.

@yjbanov yjbanov added the platform-web Web applications specifically label Mar 4, 2021
@yjbanov yjbanov added the assigned for triage issue is assigned to a domain expert for further triage label Mar 4, 2021
@yjbanov
Copy link
Contributor

yjbanov commented Mar 4, 2021

There are several issue pointing to the same apparent cause: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+PointerDataConverter+label%3Aplatform-web

@zhushuihua
Copy link
Author

It seems the problem persists in flutter version 2.01.

@pedromassangocode pedromassangocode added engine flutter/engine repository. See also e: labels. f: gestures flutter/packages/flutter/gestures repository. passed first triage c: crash Stack traces logged to the console and removed in triage Presently being triaged by the triage team labels Mar 5, 2021
@zhushuihua
Copy link
Author

The problem is still there for version flutter 2.02.

@zhushuihua
Copy link
Author

it seems the dev version 2.1.0-12.1.pre doesn't have this issue. So far, everything is running fine.

@mdebbar
Copy link
Contributor

mdebbar commented Mar 22, 2021

This is a duplicate of #75280. The fix will be included in the next hotfix release.

@mdebbar mdebbar closed this as completed Mar 22, 2021
@pedromassangocode pedromassangocode added the r: duplicate Issue is closed as a duplicate of an existing issue label Mar 23, 2021
@github-actions
Copy link

github-actions bot commented Aug 4, 2021

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
assigned for triage issue is assigned to a domain expert for further triage c: crash Stack traces logged to the console engine flutter/engine repository. See also e: labels. f: gestures flutter/packages/flutter/gestures repository. platform-web Web applications specifically r: duplicate Issue is closed as a duplicate of an existing issue
Projects
None yet
Development

No branches or pull requests

5 participants