Allow users to ignore specific lines during kics-scan

Describe the solution you'd like
Kics already allow users to disable scan on whole files. But for most cases, I think it would be more useful to just ignores lines of files and not the entire file.
From a security point of view, it's not because one line on my file could not be analysed that I want to exclude the rest of my file (that could hide some more security breaches).
Additional context
It could be useful for temporary issues and/or too specific context problem (could probably solve #4419)

Regarding this issue this is the approach we are thinking of:
Users would be able to use two comments as commands in order to ignore specific lines

kics ignore-block
kics ignore-line

kics ignore-block
This command ignores the object and all its key-value pairs beneath the line of the command
kics ignore-line
This command ignores the line beneath the line of the command
Dockerfile

line 6 is ignored from the comment on line 5
line 10, 11 are ignored from the comment on lines 9
line 15, 16, 17, 18 (whole from the block) are ignored from the comment on lines 14

Terraform

lines 4, 5, 6 are ignored from the comment on line 3
lines 11, 12, 13 are ignored from the comments on line 10
line 18 is ignored from the comment on line 17

YAML

lines 4, 5 are ignored from the comment on lines 3
line 11 is ignored from the comment on lines 10
lines 17, 18, 19 are ignored from the comment on lines 16
lines 22, 23, 24, 25 are ignored from the comment on lines 21

JSON
It is not possible to add this feature since JSON files don't support comments

@joaoReigota1 It would be great !

This does not work:
Tried this:
// kics ignore-block
resource "aws_s3_bucket" "bucket" {
#checkov:skip=CKV_AWS_144:This bucket is not required to have cross-region replication enabled because it only contains test data.
count               = local.create_bucket ? 1 : 0
bucket              = var.bucket_name
force_destroy       = var.force_destroy
object_lock_enabled = var.object_lock_enabled
}
#######################
Log Bucket creation
#######################
// kics ignore-block
resource "aws_s3_bucket" "log_bucket" {
#checkov:skip=CKV_AWS_144:This bucket is not required to have cross-region replication enabled because it only contains test data.
count  = local.create_bucket ? 1 : 0
bucket = var.log_bucket_name
}
Tried this:
###################
Bucket creation
###################
#kics ignore-line
resource "aws_s3_bucket" "read_only_bucket" {
#checkov:skip=CKV_AWS_144:This is too aggressive for most cases.  This should depend on the data being stored.
#kics ignore-line
bucket = var.bucket_name_read_only
}
#######################
Log Bucket creation
#######################
#kics ignore-line
resource "aws_s3_bucket" "read_only_log_bucket" {
#checkov:skip=CKV_AWS_144:This is too aggressive for most cases.  This should depend on the data being stored.
#kics ignore-line
bucket = var.log_bucket_name_read_only
}
Still shows up in report

@balq60 The comment needs to start with kics-scan, not kics. See https://github.com/Checkmarx/kics/blob/master/docs/running-kics.md


trap command is a component of bash and not an executable.

/usr/bin/trap "rm -f $npipe" EXIT
file does not exist in folder

@cah-roger-bauer - What is the real issue with this in terraform module ? Please give more info to investigate/understand this further.

when the system didnt build properly, troubleshooting line by line in the start us script led me to this.
in the ;/usr/bin/ folder there is no executable "trap", hence it was not completing the command
if you remove the /usr/bin  from the line, it calls trap as its a subcomponent of the shell

@cah-roger-bauer  - seems like this is an system/infra issue.  closing this now.

unsure of why you would close a ticket that is still an issue, someone should fix the tpl file, remove command that doesnt work -or put it in the proper way.

@cah-roger-bauer  please the steps to reproduce this issue. These steps help in reproduce this issue at our end.

#!/bin/bash
Setup console and startup-script logging
LOG_FILE=/var/log/cloud/startup-script.log
[[ -f $LOG_FILE ]] || /usr/bin/touch $LOG_FILE
npipe=/tmp/$$.tmp
/usr/bin/trap "rm -f $npipe" EXIT    <---- this will not function as the file    /usr/bin/trap    is not located in that folder, hence it cant do the 2nd portion of what is expected to do.
#To verify TESTING:
#ls /usr/bin/trap*
output:   ls: cannot access trap: No such file or directory
or execute:
#/usr/bin/trap "rm -f $npipe"
/usr/bin/mknod $npipe p
/usr/bin/tee <$npipe -a $LOG_FILE /dev/ttyS0 &
exec 1>&-
exec 1>$npipe
exec 2>&1

Created INFRAANO-641 for internal PM tracking

fixed in v1.1.2


Possible to Segment a single organ

Hello,
Is there a way to segment a single organ such as the liver or brain?  I am hoping to speed up the segmentation code, rather than use the:
***  --task total
option which takes a long time.  I am running this on a CPU only system :(.
Thanks!

You can use the option --roi_subset liver. For large images this can decrease runtime a lot. For more details please see the documentation.


An unsupported status: fail_no_external_power

Using version <IP_ADDRESS> of the integration I got the following warnings:
Logger: weconnect
Source: /srv/homeassistant/lib/python3.9/site-packages/weconnect/addressable.py:309
First occurred: February 13, 2022, 8:09:13 PM (54 occurrences)
Last logged: February 13, 2022, 11:59:55 PM

/vehicles/WWWWWWWWWWWW/domains/charging/chargingStatus/request/1/status: An unsupported status: fail_no_external_power was provided, known values are [successful, fail, polling_timeout, in_progress, queued, delayed, timeout, fail_vehicle_is_offline, fail_ignition_on, fail_battery_low, fail_plug_error, fail_charge_plug_not_connected, unknown status] please report this as a bug

I think this has been fixed in weconnect==0.36.4

Is getting worked on!
https://github.com/tillsteinbach/WeConnect-python/issues/40#issuecomment-1041467801


two page just one can scrollup

i have two page use it ,but one can't, this css ' transform : translate3D(0,0,0) ' all in.

Could you describe it a bit more clearly and then reopen it.


What is the license of this package?

I'm porting this to Macaron, thanks!

@Unknwon thanks for raising this, I was unaware the license is missing - it is a MIT license.

Thanks!


Find-a-housing-counselor: Ignore map on voiceover

Changes

Adds aria-hidden="true" attribute to housing counselor mapbox map.
Adds z-index setting to mapbox map container CSS to contain layering of zoom buttons.
Converts tabs to spaces in CSS file.

Testing

Pull branch.
Visit /find-a-housing-counselor/

Mega menu bug:

Expand menu and see that zoom buttons in map don't overlap the mega menu.
Compare to http://consumerfinance.gov/find-a-housing-counselor and see that zoom buttons in map DO overlap the mega menu.

Accessibility:

Turn on VoiceOver with cmd + f5.
Click on page and hit tab to get focus on "HOME".
Hit ctrl+option+right arrow keys repeatedly to see that voiceover does not enter the map.
Compare to http://consumerfinance.gov/find-a-housing-counselor and see that VoiceOver does enter map tiles.

Diff with whitespace removed


Grafana Charts: Dynamic Generation

Description
Users can access Grafana charts whether or not they have the data to support them. This can lead to a confusing user experience when charts are broken or say "No Data".
Describe the solution you'd like
Ideally, I'd like to see us implement dynamic generation of charts based on data the user definitely has in their DB. Thus we only provision charts that will be filled with data.
Has the Feature been Requested Before?
We have talked about it.

Not a viable solution.
Not cost effective, too much involve not much gain.
Close for now, feel free to re-open


Fix output location for errors block

Previously the location of the pretty block for ERRORS has been
accidentally changed from stdout to stderr. This patch reverts this
mistake.
Signed-off-by: Vinzenz Feenstra<EMAIL_ADDRESS>

e2e tests


How to install super-gradients in jetson nano?

💡 Your Question
Subject: Issue Installing super-gradient Package on Jetson Nano

Hi there,
I am currently working on implementing YOLO NAS (Neural Architecture Search) and have successfully trained my model. Now, I am in the process of running the trained model on a Jetson Nano (2GB) for inference.
To perform inference with YOLO NAS on the Jetson Nano, I understand that I need to install the "super-gradient" package, which provides a "get" method for inference.
This is the kind of code I am using,
import super_gradients
yolo_nas = super_gradients.training.models.get("yolo_nas_l", pretrained_weights="coco").cuda()
model_predictions  = yolo_nas.predict("https://deci-pretrained-models.s3.amazonaws.com/sample_images/beatles-abbeyroad.jpg").show()

However, I am encountering difficulties during the installation process.
I have followed the installation instructions using the command:

Installation Command:
pip install super-gradient

Unfortunately, I am facing the following error:
Building wheels for collected packages: onnxsim
  Building wheel for onnxsim (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [84 lines of output]
      fatal: not a git repository (or any of the parent directories): .git
      fatal: not a git repository (or any of the parent directories): .git
      /usr/lib/python3.8/distutils/dist.py:274: UserWarning: Unknown distribution option: 'long_description_content_type'
        warnings.warn(msg)
      running bdist_wheel
      running build
      running build_py
      running create_version
      creating build
      creating build/lib.linux-aarch64-3.8
      creating build/lib.linux-aarch64-3.8/onnxsim
      copying onnxsim/model_info.py -> build/lib.linux-aarch64-3.8/onnxsim
      copying onnxsim/model_checking.py -> build/lib.linux-aarch64-3.8/onnxsim
      copying onnxsim/__init__.py -> build/lib.linux-aarch64-3.8/onnxsim
      copying onnxsim/version.py -> build/lib.linux-aarch64-3.8/onnxsim
      copying onnxsim/__main__.py -> build/lib.linux-aarch64-3.8/onnxsim
      copying onnxsim/onnx_simplifier.py -> build/lib.linux-aarch64-3.8/onnxsim
      running egg_info
      writing onnxsim.egg-info/PKG-INFO
      writing dependency_links to onnxsim.egg-info/dependency_links.txt
      writing entry points to onnxsim.egg-info/entry_points.txt
      writing requirements to onnxsim.egg-info/requires.txt
      writing top-level names to onnxsim.egg-info/top_level.txt
      reading manifest file 'onnxsim.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no files found matching '*.c' under directory 'onnxsim'
      warning: no files found matching '*.proto' under directory 'onnxsim'
      warning: no previously-included files matching '*' found under directory 'third_party/onnxruntime'
      warning: no previously-included files matching '*' found under directory 'third_party/onnx-optimizer/build'
      warning: no previously-included files matching '*' found under directory 'third_party/onnx/build'
      warning: no previously-included files matching '*' found under directory 'third_party/onnx/onnx/backend'
      writing manifest file 'onnxsim.egg-info/SOURCES.txt'
      copying onnxsim/cpp2py_export.cc -> build/lib.linux-aarch64-3.8/onnxsim
      copying onnxsim/cxxopts.hpp -> build/lib.linux-aarch64-3.8/onnxsim
      copying onnxsim/onnxsim.cpp -> build/lib.linux-aarch64-3.8/onnxsim
      copying onnxsim/onnxsim.h -> build/lib.linux-aarch64-3.8/onnxsim
      creating build/lib.linux-aarch64-3.8/onnxsim/bin
      copying onnxsim/bin/onnxsim_bin.cpp -> build/lib.linux-aarch64-3.8/onnxsim/bin
      copying onnxsim/bin/onnxsim_option.cpp -> build/lib.linux-aarch64-3.8/onnxsim/bin
      copying onnxsim/bin/onnxsim_option.h -> build/lib.linux-aarch64-3.8/onnxsim/bin
      running build_ext
      running cmake_build
 Run command ['/usr/bin/cmake', '-DPython_INCLUDE_DIR=/usr/include/python3.8', '-DPython_EXECUTABLE=/home/akash/Desktop/AkashCodes/BtechProject/myenv/bin/python', '-DPYTHON_EXECUTABLE=/home/akash/Desktop/AkashCodes/BtechProject/myenv/bin/python', '-DBUILD_ONNX_PYTHON=OFF', '-DONNXSIM_PYTHON=ON', '-DONNXSIM_BUILTIN_ORT=OFF', '-DONNX_USE_LITE_PROTO=OFF', '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', '-DONNX_NAMESPACE=onnx', '-DPY_EXT_SUFFIX=.cpython-38-aarch64-linux-gnu.so', '-DONNX_OPT_USE_SYSTEM_PROTOBUF=OFF', '-DCMAKE_BUILD_TYPE=Release', '-DONNX_ML=1', '/tmp/pip-install-8jv7ddgd/onnxsim_0c5854ac48fd4f5ba3360977a0269ac0']
      CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
        CMake 3.22 or higher is required.  You are running version 3.10.2

      -- Configuring incomplete, errors occurred!
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-8jv7ddgd/onnxsim_0c5854ac48fd4f5ba3360977a0269ac0/setup.py", line 279, in <module>
          setuptools.setup(
        File "/home/akash/Desktop/AkashCodes/BtechProject/myenv/lib/python3.8/site-packages/setuptools/__init__.py", line 129, in setup
          return distutils.core.setup(**attrs)
        File "/usr/lib/python3.8/distutils/core.py", line 148, in setup
          dist.run_commands()
        File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands
          self.run_command(cmd)
        File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
          cmd_obj.run()
        File "/usr/lib/python3/dist-packages/wheel/bdist_wheel.py", line 204, in run
          self.run_command('build')
        File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
          self.distribution.run_command(command)
        File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
          cmd_obj.run()
        File "/usr/lib/python3.8/distutils/command/build.py", line 135, in run
          self.run_command(cmd_name)
        File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
          self.distribution.run_command(command)
        File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
          cmd_obj.run()
        File "/tmp/pip-install-8jv7ddgd/onnxsim_0c5854ac48fd4f5ba3360977a0269ac0/setup.py", line 220, in run
          self.run_command('cmake_build')
        File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
          self.distribution.run_command(command)
        File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
          cmd_obj.run()
        File "/tmp/pip-install-8jv7ddgd/onnxsim_0c5854ac48fd4f5ba3360977a0269ac0/setup.py", line 194, in run
          subprocess.check_call(cmake_args)
        File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['/usr/bin/cmake', '-DPython_INCLUDE_DIR=/usr/include/python3.8', '-DPython_EXECUTABLE=/home/akash/Desktop/AkashCodes/BtechProject/myenv/bin/python', '-DPYTHON_EXECUTABLE=/home/akash/Desktop/AkashCodes/BtechProject/myenv/bin/python', '-DBUILD_ONNX_PYTHON=OFF', '-DONNXSIM_PYTHON=ON', '-DONNXSIM_BUILTIN_ORT=OFF', '-DONNX_USE_LITE_PROTO=OFF', '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', '-DONNX_NAMESPACE=onnx', '-DPY_EXT_SUFFIX=.cpython-38-aarch64-linux-gnu.so', '-DONNX_OPT_USE_SYSTEM_PROTOBUF=OFF', '-DCMAKE_BUILD_TYPE=Release', '-DONNX_ML=1', '/tmp/pip-install-8jv7ddgd/onnxsim_0c5854ac48fd4f5ba3360977a0269ac0']' returned non-zero exit status 1.
      [end of output]
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for onnxsim
  Running setup.py clean for onnxsim
Failed to build onnxsim
ERROR: Could not build wheels for onnxsim, which is required to install pyproject.toml-based projects

By looking at the error , it seems like there is error in building onnxsim wheel.
Please help me , I do not know how do I proceed further due to which I am unable to run the YOLO NAS model in jetson nano.
Given the current roadblock, I am open to exploring alternative methods for running the YOLO NAS model on the Jetson Nano. If there are any recommended alternatives or workarounds, please provide the necessary guidance.
I would appreciate any guidance or assistance you can provide to resolve this issue and successfully install the super-gradient package on my Jetson Nano.
Thank you for your time and support.
Versions
No response

To run model on Jetson (especially a Nano) you should NOT use native pytorch model - it would be horribly slow.
Instead you should consider running a model using TensorRT. For this you need to export YoloNAS to ONNX graph first and then convert it to TRT engine.
You can learn how to do it here:

https://github.com/Deci-AI/super-gradients/blob/master/src/super_gradients/examples/model_export/models_export.ipynb
https://github.com/Deci-AI/super-gradients/blob/master/notebooks/YoloNAS_Inference_using_TensorRT.ipynb


Add get-recent-prioritization-fees command to cli

Problem
No method to get recent prioritization fees in the CLI
Summary of Changes
Add a command
Fixes #

Codecov Report
Attention: Patch coverage is 24.00000% with 19 lines in your changes are missing coverage. Please review.

Project coverage is 81.9%. Comparing base (8c5a33a) to head (99735d3).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##           master     #805     +/-   ##
=========================================
- Coverage    81.9%    81.9%   -0.1%
=========================================
  Files         851      851
  Lines      231480   231505     +25
=========================================
- Hits       189745   189697     -48
- Misses      41735    41808     +73

I haven't looked at the math here yet, but building a String to return with if verbose cases doesn't feel great to me, since we already have solana-cli-output handling for regular, quiet, and verbose displays. Can you please put the data in a display struct instead? That will also provide JSON output support by default, which I'm sure people are going to want for this subcommand.

Ok, it should support JSON now with cli-output, please check my work.


classes: Can't assign private field in implicit constructor by value

I would expect the following to compile:
class A {
    priv: i64
}

function main() {
    let priv = 1
    let a1 = A(priv)
    let a2 = A(priv: 2)
    println("OK")
}

I get the following error:
Error: No function with matching signature found.
───┬─ test.jakt:8:14
 7 │     let a1 = A(priv)
 8 │     let a2 = A(priv: 2)
   │              ╰─ No function with matching signature found.
 9 │     println("OK")
───┴─
Error: Can't access field 'priv' when calling implicit constructor of 'A' because it is marked private
───┬─ test.jakt:8:16
 7 │     let a1 = A(priv)
 8 │     let a2 = A(priv: 2)
   │                   ╰─ Can't access field 'priv' when calling implicit constructor of 'A' because it is marked private
 9 │     println("OK")
───┴─

It doesn't complain for the first one, only when you try to set it inline in the constructor. Workaround is to just let a variable of the same name to pass to the constructor.
Cheers,
Hugh

The first one shouldn't actually pass, the above PR fixes this situation.
As for workarounds, you should either make it private, create a setter or a factory function that sets it for you, something like:
class A {
    priv: i64

    public fn create(something: i64) throws -> A {
        return A(priv: something)
    }
}


Running Tests Clarification

I am completely new to Red, but I've been meaning to try it out for some time, so I was happy to see it show up in Exercism!
I was reading the docs here: https://exercism.org/docs/tracks/red/tests which I see is in docs/TESTS.md
It states "Once you get the first test passing, change the value assigned to ignore-after word at the beginning of the test script and run it again."
I see that there are tests with ignore-after in this project, but the first three that I've downloaded (hello-world, two-fer, and reverse-string) have something like
test-init/limit %reverse-string.red 1  and no mention of ignore-after
Granted this didn't mean anything for the hello-world project.
I figured it out, so it wasn't insurmountable. I'm just wondering if the docs should mention the line in the test script (or show an example)
Thanks for the course, I'm enjoying it so far!

This is some good feedback, though I think rather than adding clarification to the documentation about how to modify the test script, we should update the tests to not require any modifications. We could have the test scripts take a single argument for ignore-after, or give it a named argument if we think there might be more features to add later.
So to run the first 3 tests it could be like
red exercise-test.red 3

I think that is a great idea! That way the test script wouldn’t have to be modified at all.

Addressing this in 78635f46f9 .


Update service.md

Service type LoadBalancer has a property for clusterIP which should be loadBalancerIP for service type LoadBalancer.

@bxavi Thanks you for your contribution.
Could you please sign the CLA before the PR can be reviewed.
You can follow the steps documented here: https://git.k8s.io/community/CLA.md

No. This is not how a LB service works.
The ClusterIP's scope is for inside the cluster.
The LB IP is not supposed to be specified when you create a Service, it is
filled by the Service controller when an external load balancer is created.

Hi @bxavi, thanks for opening this PR. The loadBalancerIP  field Is deprecated.
However, you can sign the CLA so you can open new PRs in the future.

Note:
The.spec.loadBalancerIP field for a Service was deprecated in Kubernetes v1.24.

/hold
Changes in this PR are not valid.

@bxavi Please note that as mentioned above, the CLA requirements must be met before proceeding with the review. Since there has been no response from your end and as mentioned in the comments above, the change is invalid, we will close the PR.
/close


ERROR: C:/users/admin/_bazel_admin/cex646by/external/org_tensorflow/tensorflow/core/util/BUILD:374:24: output 'external/org_tensorflow/tensorflow/core/util/version_info.cc' was not created
ERROR: C:/users/admin/_bazel_admin/cex646by/external/org_tensorflow/tensorflow/core/util/BUILD:374:24: Action external/org_tensorflow/tensorflow/core/util/version_info.cc failed: not all outputs were created or valid
Target //mediapipe/examples/desktop/hand_tracking:hand_tracking_cpu failed to build
Use --verbose_failures to see the command lines of failed build steps.
Any help is much appreciated!

Hi @mysticidiot, Can you check this Duplicate #1658 and try the workarounds mentioned in it

Hi @sgowroji, so if I understand correctly, I should downgrade Bazel version to 3.7.2? Or should I downgrade the Python version since the issue in bazelbuild/bazel#13053 mentioned using a lower version of JDK.
What bazel version and python version would you recommend?

Hi @mysticidiot, Can you try executing the command bazel clean --expunge  and please follow the steps from here. Python 3.7 to 3.9 and Bazel 3.7.2  to higher.

Hey. I resolved the issue by downgrading my Bazel version to 3.7.2 and Python 3.7.6
The example codes are working now. Thank you!


Add French translation

Add the French translation for the UI as announecd in #3 .

Wow, that was fast. Thanks!


Support hostnameType from eksctl

I would love if the output eksctl yaml had an option to use instance hostnames instead of IP address based names.
It was merged in this PR https://github.com/weaveworks/eksctl/pull/6651 and needs the following option added to the VPC config
vpc:
    hostnameType: resource-name

I wouldn't mind if you made this the default behavior :grin:

@rothgar thanks for the feature request!
I'll add a flag to eksdemo cluster create to set this. Looks like we'll need to wait for the v0.144.0 release and it will then set this as the minimum required eksctl version.
I agree this could make a good default setting. If others have a strong opinion on default please add your thoughts.

@rothgar add the feature.  But that is the plan. Even our docs state that ip-name is legacy.


Attention - Version 2 replication is disallowed. Remote cluster has nodes with versions less than 2.2.

Hi,
I just tried to install the ETC (elastic Transpost Couchbase) plugin on my ES cluster.
ES info
"version" : {
"number" : "1.4.2",
"build_hash" : "927caff6f05403e936c20bf4529f144f0c89fd8c",
"build_timestamp" : "2014-12-16T14:11:12Z",
"build_snapshot" : false,
"lucene_version" : "4.10.2"
},
Tried to setup XDCR from Couchbase
Version: 3.0.1 Community Edition (build-1444)
and I used :
bin/plugin -install transport-couchbase -url https://github.com/couchbaselabs/elasticsearch-transport-couchbase/releases/download/2.1.1-RC/elasticsearch-transport-couchbase-2.1.1-SNAPSHOT.zip
I am getting this in CB when trying to configue the XDCR
Attention - Version 2 replication is disallowed. Remote cluster has nodes with versions less than 2.2.
I followed the :
|  Plugin                       |  Couchbase    | ElasticSearch    |
+------------------------------------------------------------------+
| master                        |  3.x, 2.5.x   | 1.3.0 - 1.5.2    |
+------------------------------------------------------------------+
| 2.1                           |  3.x, 2.5.x   | 1.3.0 - 1.5.2    |
Versioning guideline any hints please on how to get this working or where to get a version that actually works ?

Did you set protocol to Version 1?

If you are using Couchbase Server 2.2 or later, click Advanced settings and change the XDCR Protocol setting to Version 1

See https://github.com/couchbaselabs/elasticsearch-transport-couchbase#usage

------ >   Advanced settings and change the XDCR Protocol setting to Version 1  <------------
Starting Data Transfer
Press the button labeled "Create Replication"
Select the bucket from source cluster you wish to send to ElasticSearch
Next select the cluster you defined in step 4.
Type in the name of the ElasticSearch index you wish to store the data in. This index must already exist.
If you are using Couchbase Server 2.2 or later, click Advanced settings and change the XDCR Protocol setting to Version 1
from (https://github.com/couchbaselabs/elasticsearch-transport-couchbase)


Add bindings for rust

Thanks for doing this work. I was about to add this to lapce but there are missing bindings, can you add them please?
Something like https://github.com/UserNobody14/tree-sitter-dart/tree/master/bindings

I intentionally left them out because they are just automatically generated by the tree-sitter-cli and I didn't want to check them in to the repo. I'd still rather not check them in. Does Lapce need them to be in the repo?

Yeah it does. Seems like helix-editor also requires it.

Helix supports slint highlighting and didn't require the bindings

But I can add them if it's needed. It's not the end of the world

Helix supports slint highlighting and didn't require the bindings

Oh I didn't realise it was already supported. That's cool!

But I can add them if it's needed. It's not the end of the world I guess

Maybe as a temporary thing? I'll raise an issue with lapce.

Hey boss, looks like every other tree-sitter out there including all the ones in the official repo are including the generated bindings in the repo.

Add PR for lapce to use this - https://github.com/lapce/lapce/pull/2407
Will submit a new PR to change remote for it once my PR here is merged.


fixed the favicon in homepage

Related Issue

Issue No. #332

Changes you made: Fixes the Favicon icon issue as earlier it was not visible in the homepage. Now, added favicon to header of home page.

Describe the changes :
added the favicon image and also added some inline style.
Favicon is visible in homepage header.
Check list :

[x ] I have followed code style of this project.
[x] I have read the CONTRIBUTING document.
[x] All the aspects mentioned in the issue are covered.
[x] The website is properly working after my changes.
[x] 🌟 ed the repo

Type of change :

[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)

Output Screenshots :

@petwal-tanishka Why you have chnaged the favourites page ?
I told to change in home page and our tours page as favicon is not visible in these two pages.
Plz put the screenshot of web where you have changed, not the image of code.

@petwal-tanishka Plz make new proper PR.


M06-L12-EX01-TASK02-STEP04: Repo folder change (bicep --> infra) not updated with image

Contact Details
<EMAIL_ADDRESS>What happened?
Exercise : 01
Task: 02
Step: 04
Description of issue:
Pull request #564 updated a folder name (bicep --> infra) and updated 1 image but missed another image. The image with step 4 needs an update as well.
This image Instructions/Labs/images/m06/newfile.png still shows the 'bicep` folder:
Lab
Deployments using Azure Bicep templates
Relevant screenshots
paste here 😉
Do you want to help us? 👏

[ ] Create a Pull Request by following this project's Contribution Guide

Fixed. Thanks!


Repository cloned to the wrong directory

[Development]$ git clone git@github.com:zrzka/stash-git-test.git
[Development]$ cd stash-git-tes/
[stash-git-tes]$

See, missing t at the end of the folder name.

I am also noting the missing letter in at least on of my GitHub repos.


[Issue]: pgvector query returning byts instead of string

Describe the issue
When running the pgvector example I get the following error:
m:\OneDrive\Documents\dev\DISCO\pgVector\.venv\lib\site-packages\huggingface_hub\file_download.py:1132: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
  warnings.warn(
m:\OneDrive\Documents\dev\DISCO\pgVector\.venv\lib\site-packages\huggingface_hub\file_download.py:1132: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
  warnings.warn(
Trying to create collection.
2024-05-12 19:51:30,510 - autogen.agentchat.contrib.retrieve_user_proxy_agent - INFO - Use the existing collection `flaml_collection`.
File M:\OneDrive\Documents\dev\DISCO\pgVector\..\website\docs does not exist. Skipping.
2024-05-12 19:51:30,974 - autogen.agentchat.contrib.retrieve_user_proxy_agent - INFO - Found 2 chunks.
2024-05-12 19:51:30,975 - autogen.agentchat.contrib.vectordb.pgvectordb - INFO - Error executing select on non-existent table: flaml_collection. Creating it instead. Error: relation "flaml_collection" does not exist
LINE 1: SELECT id, metadatas, documents, embedding FROM flaml_collec...
                                                        ^
2024-05-12 19:51:31,007 - autogen.agentchat.contrib.vectordb.pgvectordb - INFO - Created table flaml_collection
VectorDB returns doc_ids:  [[b'bdfbc921', b'7968cf3c']]
Traceback (most recent call last):
  File "m:\OneDrive\Documents\dev\DISCO\pgVector\autogen_pgvector_1.py", line 84, in <module>
    chat_result = ragproxyagent.initiate_chat(
  File "m:\OneDrive\Documents\dev\DISCO\pgVector\.venv\lib\site-packages\autogen\agentchat\conversable_agent.py", line 1004, in initiate_chat
    msg2send = message(_chat_info["sender"], _chat_info["recipient"], kwargs)
  File "m:\OneDrive\Documents\dev\DISCO\pgVector\.venv\lib\site-packages\autogen\agentchat\contrib\retrieve_user_proxy_agent.py", line 631, in message_generator
    doc_contents = sender._get_context(sender._results)
  File "m:\OneDrive\Documents\dev\DISCO\pgVector\.venv\lib\site-packages\autogen\agentchat\contrib\retrieve_user_proxy_agent.py", line 426, in _get_context
    _doc_tokens = self.custom_token_count_function(doc["content"], self._model)
  File "m:\OneDrive\Documents\dev\DISCO\pgVector\.venv\lib\site-packages\autogen\token_count_utils.py", line 69, in count_token
    raise ValueError(f"input must be str, list or dict, but we got {type(input)}")
ValueError: input must be str, list or dict, but we got <class 'bytes'>

After some investigation psycopg (3.1.19) always returns the id and descriptions fields as bytes.  pgvectordb.py is expecting strings.
It is unclear why these 2 fields are always returned as bytes.  Other fields in other tables on my postgres server do return strings as expected.
The only workaround I can find is to decode in pgvectordb.py:

Is this an issue others are facing?
Steps to reproduce

Install postgres 16.3 on ubuntu 22.04
Configure postgres for remote access
Install pgvector from source.
Add pgvector plugin to postgres
Run example: https://github.com/microsoft/autogen/blob/main/notebook/agentchat_pgvector_RetrieveChat.ipynb

Screenshots and logs

Additional Information
pyautogen-0.2.27

Same issue here, stack trace:
    chat_result = ragproxyagent.initiate_chat(
  File "/root/anaconda3/envs/qqy/lib/python3.10/site-packages/autogen/agentchat/conversable_agent.py", line 988, in initiate_chat
    msg2send = message(_chat_info["sender"], _chat_info["recipient"], kwargs)
  File "/root/anaconda3/envs/qqy/lib/python3.10/site-packages/autogen/agentchat/contrib/retrieve_user_proxy_agent.py", line 631, in message_generator
    doc_contents = sender._get_context(sender._results)
  File "/root/anaconda3/envs/qqy/lib/python3.10/site-packages/autogen/agentchat/contrib/retrieve_user_proxy_agent.py", line 426, in _get_context
    _doc_tokens = self.custom_token_count_function(doc["content"], self._model)
  File "/root/anaconda3/envs/qqy/lib/python3.10/site-packages/autogen/token_count_utils.py", line 65, in count_token
    return _num_token_from_text(input, model=model)
  File "/root/anaconda3/envs/qqy/lib/python3.10/site-packages/autogen/token_count_utils.py", line 75, in _num_token_from_text
    encoding = tiktoken.encoding_for_model(model)
  File "/root/anaconda3/envs/qqy/lib/python3.10/site-packages/tiktoken/model.py", line 101, in encoding_for_model
    return get_encoding(encoding_name_for_model(model_name))
  File "/root/anaconda3/envs/qqy/lib/python3.10/site-packages/tiktoken/model.py", line 77, in encoding_name_for_model
    if model_name in MODEL_TO_ENCODING:
TypeError: unhashable type: 'dict'

Thank you @capella-ben for reporting! @Knucklessg1 , could you help take a look?

I will take a look into this.

I will take a look into this.

Hi @Knucklessg1 , did you get a chance to look into this? Thanks.

@thinkall Apologies for the delay getting to this, there were other priorities.
I have availability now to investigate this issue in more detail.


/api/v2/project/:id/children (undocumented)

The undocumented API call /api/v2/project/:id/children does not give an invalid path response, but rather the following:
{
  "status": "KO",
  "message": {
    "obj": [
      {
        "msg": [
          "error.expected.jsobject"
        ],
        "args": []
      }
    ]
  }
}

This is now documented in the Swagger UI and the response is valid. I still need to remove the old documentation as it is not necessary and out of date.


address all idnits

See http://www.ietf.org/tools/idnits/ .
We should do this once all all other issues are closed and changes to the text are essentially done.

Hmmm...I'm not sure I actually understand how to read this idnits output.  :-/

Ah, this is much more readable (than uploading a txt file):
https://www6.ietf.org/tools/idnits?url=https://www.ietf.org/archive/id/draft-google-self-published-geofeeds-04.txt

I think the latest version addresses all legitimate nits.  I'll have a look when the upload window re-opens.

Newest version (-05) addresses all open issues.

... and I forgot to close. Done.


one file got error will interrupt the scan

Hello~
I found some problems.
Now:

Without throw  (https://github.com/bucaran/fly-eslint/blob/master/index.js#L10)
I can get the whole result:

Oh, thank you for digging in this plugin! I knew there was something weird about it, but hadn't had a chance to look at it. :smile: Do you want to send me a fix :smile:

const CLIEngine = require("eslint").CLIEngine

function createLinter (cli) {
  const fmt = cli.getFormatter()
  return (file) => {
    const report = cli.executeOnFiles([file])
    const msg = fmt(report.results)
    if (msg === "") return 0
    console.error(msg)
    return parseInt(report.errorCount + report.warningCount)
  }
}

module.exports = function () {
  this.eslint = function (opts) {
    const lint = createLinter(new CLIEngine(opts))
    return this.unwrap((files) => {
      let problems = 0
      files.forEach(file => {
        problems += lint(file)
      })
      if (problems > 0) throw problems + " problems."
    })
  }
}

Maybe this could fix, but I don't know your coding style :smile:


Can't upload picture on instagram-example

Uploading a local file fails.
Image URL is required.
Schema validation error

Is this still occurring? I need a good image uploading example if anyone has one.


Minor: Add warning about pubsub client to Beam 2.36.0 blog

GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

R: @cozos does this capture the issue?
CC: @dpcollins-google

Yes, that looks great. Thank you!


'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 387 pos 12: '_initialButtons == kPrimaryButton': is not true

@override
  Widget build(BuildContext context) {
    return Container(
      width: 200,
      height: 100,
    );
}

then 2 fingers simultaneously click the Container

Logs

I/HiTouch_PressGestureDetector(30551): ACTION_POINTER_DOWN.
I/flutter (30551): ══╡ EXCEPTION CAUGHT BY GESTURE LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter (30551): The following assertion was thrown while dispatching a pointer event:
I/flutter (30551): 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 357 pos 12: '_initialButtons ==
I/flutter (30551): kPrimaryButton': is not true.
I/flutter (30551):
I/flutter (30551): Either the assertion indicates an error in the framework itself, or we should provide substantially
I/flutter (30551): more information in this error message to help you determine and fix the underlying cause.
I/flutter (30551): In either case, please report this assertion by filing a bug on GitHub:
I/flutter (30551):   https://github.com/flutter/flutter/issues/new?template=BUG.md
I/flutter (30551):
I/flutter (30551): When the exception was thrown, this was the stack:
I/flutter (30551): #2      DragGestureRecognizer._checkStart (package:flutter/src/gestures/monodrag.dart:357:12)
I/flutter (30551): #3      DragGestureRecognizer.acceptGesture (package:flutter/src/gestures/monodrag.dart:298:7)
I/flutter (30551): #4      GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27)
I/flutter (30551): #5      _WidgetsFlutterBinding&BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:222:20)
I/flutter (30551): #6      _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:198:22)
I/flutter (30551): #7      _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:156:7)
I/flutter (30551): #8      _WidgetsFlutterBinding&BindingBase&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:102:7)
I/flutter (30551): #9      _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:86:7)
I/flutter (30551): #13     _invoke1 (dart:ui/hooks.dart:250:10)
I/flutter (30551): #14     _dispatchPointerDataPacket (dart:ui/hooks.dart:159:5)
I/flutter (30551): (elided 5 frames from class _AssertionError and package dart:async)
I/flutter (30551):
I/flutter (30551): Event:
I/flutter (30551):   PointerUpEvent#e1106(position: Offset(106.9, 368.5), timeStamp: 283:24:16.081000, pointer: 4,
I/flutter (30551):   kind: touch, device: 1, down: false, pressure: 0.2, pressureMin: 0.0)
I/flutter (30551): Target:
I/flutter (30551):   <WidgetsFlutterBinding>
I/flutter (30551): ════════════════════════════════════════════════════════════════════════════════════════════════════
V/AudioManager(30551): playSoundEffect   effectType: 0
V/AudioManager(30551): querySoundEffectsEnabled...
I/ViewRootImpl(30551): jank_removeInvalidNode all the node in jank list is out of time
I/flutter (30551): Another exception was thrown: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 387 pos 12: '_initialButtons == kPrimaryButton': is not true.

Same here:

E/flutter (22777): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 357 pos 12: '_initialButtons == kPrimaryButton': is not true.
E/flutter (22777): #0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:40:39)
E/flutter (22777): #1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
E/flutter (22777): #2      DragGestureRecognizer._checkStart (package:flutter/src/gestures/monodrag.dart:357:12)
E/flutter (22777): #3      DragGestureRecognizer.acceptGesture (package:flutter/src/gestures/monodrag.dart:298:7)
E/flutter (22777): #4      GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27)
E/flutter (22777): #5      GestureArenaManager.release (package:flutter/src/gestures/arena.dart:199:7)
E/flutter (22777): #6      DoubleTapGestureRecognizer._reset (package:flutter/src/gestures/multitap.dart:260:44)
E/flutter (22777): #7      _rootRun (dart:async/zone.dart:1120:38)
E/flutter (22777): #8      _CustomZone.run (dart:async/zone.dart:1021:19)
E/flutter (22777): #9      _CustomZone.runGuarded (dart:async/zone.dart:923:7)
E/flutter (22777): #10     _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:963:23)
E/flutter (22777): #11     _rootRun (dart:async/zone.dart:1124:13)
E/flutter (22777): #12     _CustomZone.run (dart:async/zone.dart:1021:19)
E/flutter (22777): #13     _CustomZone.bindCallback. (dart:async/zone.dart:947:23)
E/flutter (22777): #14     Timer._createTimer. (dart:async-patch/timer_patch.dart:21:15)
E/flutter (22777): #15     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:382:19)
E/flutter (22777): #16     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:416:5)
E/flutter (22777): #17     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)
E/flutter (22777):
I/flutter (22777): Another exception was thrown: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 387 pos 12: '_initialButtons == kPrimaryButton': is not true.

Here is the code:
`import 'package:flutter/material.dart';
import 'package:multi_image_picker/multi_image_picker.dart';
class DetailPhotoScreen extends StatefulWidget {
final _image;
DetailPhotoScreen(this._image);
@override
_DetailPhotoScreenState createState() => _DetailPhotoScreenState(_image);
}
class _DetailPhotoScreenState extends State
with TickerProviderStateMixin{
final _image;
double _scale = 1.0;
Offset _translate = Offset(0.0, 0.0);
Animation _scaling;
AnimationController _controller;
@override
void initState() {
super.initState();
_controller = AnimationController(duration: Duration(milliseconds: 250), vsync: this);
_scaling = Tween<double>(begin: 0.0, end: 1.0).animate(_controller);

_scaling.addListener((){
  setState((){
    _scale = _scaling.value;
  });
});

}
_DetailPhotoScreenState(this._image);
@override
Widget build(BuildContext context) {
return Stack(
children: [
GestureDetector(
onDoubleTap: () {
setState(() {
_translate = Offset(0.0, 0.0);
_scale = 1.0;
});
},
child: Center(
child: Container(
color: Colors.black,
child: GestureDetector(
onPanUpdate: (x) {
setState(() {
_translate = _translate + x.delta;
});
},
child: Transform.translate(
offset: _translate,
child: Transform.scale(
scale: _scale,
child: AssetThumb(
asset: _image,
width: _image.originalWidth,
height: _image.originalHeight,
),
),
),
),
),
),
),
Align(
alignment: AlignmentDirectional.bottomEnd,
child: Container(
width: 50.0,
height: 50.0,
margin: EdgeInsets.only(right: 80.0, bottom: 15.0),
child: RaisedButton.icon(
onPressed: () {
setState((){
if (_scale < 10){
_scaling = Tween(begin: _scale, end: _scale2.0).animate(_controller);
_controller.reset();
_controller.forward();
}
});
},
icon: Icon(Icons.zoom_in, color: Colors.white70),
label: Text(""),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(25.0))),
color: Theme.of(context).primaryColor,
),
),
),
Align(
alignment: AlignmentDirectional.bottomEnd,
child: Container(
width: 50.0,
height: 50.0,
margin: EdgeInsets.only(right: 15.0, bottom: 15.0),
child: RaisedButton.icon(
onPressed: () {
setState((){
if (_scale > 0.1){
_scaling = Tween(begin: _scale, end: _scale0.5).animate(_controller);
_controller.reset();
_controller.forward();
}
});
},
icon: Icon(Icons.zoom_out, color: Colors.white70),
label: Text(""),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(25.0))),
color: Theme.of(context).primaryColor,
),
),
),
],
);
}
}
`

but I don't want to listener onDoubleTap.

Same here:

E/flutter (22777): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 357 pos 12: '_initialButtons == kPrimaryButton': is not true.
E/flutter (22777): #0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:40:39)
E/flutter (22777): #1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
E/flutter (22777): #2      DragGestureRecognizer._checkStart (package:flutter/src/gestures/monodrag.dart:357:12)
E/flutter (22777): #3      DragGestureRecognizer.acceptGesture (package:flutter/src/gestures/monodrag.dart:298:7)
E/flutter (22777): #4      GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27)
E/flutter (22777): #5      GestureArenaManager.release (package:flutter/src/gestures/arena.dart:199:7)
E/flutter (22777): #6      DoubleTapGestureRecognizer._reset (package:flutter/src/gestures/multitap.dart:260:44)
E/flutter (22777): #7      _rootRun (dart:async/zone.dart:1120:38)
E/flutter (22777): #8      _CustomZone.run (dart:async/zone.dart:1021:19)
E/flutter (22777): #9      _CustomZone.runGuarded (dart:async/zone.dart:923:7)
E/flutter (22777): #10     _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:963:23)
E/flutter (22777): #11     _rootRun (dart:async/zone.dart:1124:13)
E/flutter (22777): #12     _CustomZone.run (dart:async/zone.dart:1021:19)
E/flutter (22777): #13     _CustomZone.bindCallback. (dart:async/zone.dart:947:23)
E/flutter (22777): #14     Timer._createTimer. (dart:async-patch/timer_patch.dart:21:15)
E/flutter (22777): #15     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:382:19)
E/flutter (22777): #16     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:416:5)
E/flutter (22777): #17     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)
E/flutter (22777):
I/flutter (22777): Another exception was thrown: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 387 pos 12: '_initialButtons == kPrimaryButton': is not true.

Here is the code:
import 'package:flutter/material.dart';
import 'package:multi_image_picker/multi_image_picker.dart';

class DetailPhotoScreen extends StatefulWidget {
  final _image;

  DetailPhotoScreen(this._image);

  @override
  _DetailPhotoScreenState createState() => _DetailPhotoScreenState(_image);
}

class _DetailPhotoScreenState extends State<DetailPhotoScreen>
    with TickerProviderStateMixin{
  final _image;
  double _scale = 1.0;
  Offset _translate = Offset(0.0, 0.0);
  Animation<double> _scaling;
  AnimationController _controller;

  @override
  void initState() {
    super.initState();
    _controller = AnimationController(duration: Duration(milliseconds: 250), vsync: this);

    _scaling = Tween<double>(begin: 0.0, end: 1.0).animate(_controller);

    _scaling.addListener((){
      setState((){
        _scale = _scaling.value;
      });
    });
  }

  _DetailPhotoScreenState(this._image);

  @override
  Widget build(BuildContext context) {
    return Stack(
      children: <Widget>[
        GestureDetector(
          onDoubleTap: () {
            setState(() {
              _translate = Offset(0.0, 0.0);
              _scale = 1.0;
            });
          },
          child: Center(
            child: Container(
              color: Colors.black,
              child: GestureDetector(
                onPanUpdate: (x) {
                  setState(() {
                    _translate = _translate + x.delta;
                  });
                },
                child: Transform.translate(
                  offset: _translate,
                  child: Transform.scale(
                    scale: _scale,
                    child: AssetThumb(
                      asset: _image,
                      width: _image.originalWidth,
                      height: _image.originalHeight,
                    ),
                  ),
                ),
              ),
            ),
          ),
        ),
        Align(
          alignment: AlignmentDirectional.bottomEnd,
          child: Container(
            width: 50.0,
            height: 50.0,
            margin: EdgeInsets.only(right: 80.0, bottom: 15.0),
            child: RaisedButton.icon(
              onPressed: () {
                setState((){
                  if (_scale < 10){
                    _scaling = Tween<double>(begin: _scale, end: _scale*2.0).animate(_controller);
                    _controller.reset();
                    _controller.forward();
                  }
                });
              },
              icon: Icon(Icons.zoom_in, color: Colors.white70),
              label: Text(""),
              shape: RoundedRectangleBorder(
                  borderRadius: BorderRadius.all(Radius.circular(25.0))),
              color: Theme.of(context).primaryColor,
            ),
          ),
        ),
        Align(
          alignment: AlignmentDirectional.bottomEnd,
          child: Container(
            width: 50.0,
            height: 50.0,
            margin: EdgeInsets.only(right: 15.0, bottom: 15.0),
            child: RaisedButton.icon(
              onPressed: () {
                setState((){
                  if (_scale > 0.1){
                    _scaling = Tween<double>(begin: _scale, end: _scale*0.5).animate(_controller);
                    _controller.reset();
                    _controller.forward();
                  }
                });
              },
              icon: Icon(Icons.zoom_out, color: Colors.white70),
              label: Text(""),
              shape: RoundedRectangleBorder(
                  borderRadius: BorderRadius.all(Radius.circular(25.0))),
              color: Theme.of(context).primaryColor,
            ),
          ),
        ),
      ],
    );
  }
}

but I don't want to listener onDoubleTap.

Same here:

E/flutter (22777): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 357 pos 12: '_initialButtons == kPrimaryButton': is not true.
E/flutter (22777): #0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:40:39)
E/flutter (22777): #1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
E/flutter (22777): #2      DragGestureRecognizer._checkStart (package:flutter/src/gestures/monodrag.dart:357:12)
E/flutter (22777): #3      DragGestureRecognizer.acceptGesture (package:flutter/src/gestures/monodrag.dart:298:7)
E/flutter (22777): #4      GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27)
E/flutter (22777): #5      GestureArenaManager.release (package:flutter/src/gestures/arena.dart:199:7)
E/flutter (22777): #6      DoubleTapGestureRecognizer._reset (package:flutter/src/gestures/multitap.dart:260:44)
E/flutter (22777): #7      _rootRun (dart:async/zone.dart:1120:38)
E/flutter (22777): #8      _CustomZone.run (dart:async/zone.dart:1021:19)
E/flutter (22777): #9      _CustomZone.runGuarded (dart:async/zone.dart:923:7)
E/flutter (22777): #10     _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:963:23)
E/flutter (22777): #11     _rootRun (dart:async/zone.dart:1124:13)
E/flutter (22777): #12     _CustomZone.run (dart:async/zone.dart:1021:19)
E/flutter (22777): #13     _CustomZone.bindCallback. (dart:async/zone.dart:947:23)
E/flutter (22777): #14     Timer._createTimer. (dart:async-patch/timer_patch.dart:21:15)
E/flutter (22777): #15     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:382:19)
E/flutter (22777): #16     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:416:5)
E/flutter (22777): #17     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)
E/flutter (22777):
I/flutter (22777): Another exception was thrown: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 387 pos 12: '_initialButtons == kPrimaryButton': is not true.

Here is the code:
import 'package:flutter/material.dart';
import 'package:multi_image_picker/multi_image_picker.dart';

class DetailPhotoScreen extends StatefulWidget {
  final _image;

  DetailPhotoScreen(this._image);

  @override
  _DetailPhotoScreenState createState() => _DetailPhotoScreenState(_image);
}

class _DetailPhotoScreenState extends State<DetailPhotoScreen>
    with TickerProviderStateMixin{
  final _image;
  double _scale = 1.0;
  Offset _translate = Offset(0.0, 0.0);
  Animation<double> _scaling;
  AnimationController _controller;

  @override
  void initState() {
    super.initState();
    _controller = AnimationController(duration: Duration(milliseconds: 250), vsync: this);

    _scaling = Tween<double>(begin: 0.0, end: 1.0).animate(_controller);

    _scaling.addListener((){
      setState((){
        _scale = _scaling.value;
      });
    });
  }

  _DetailPhotoScreenState(this._image);

  @override
  Widget build(BuildContext context) {
    return Stack(
      children: <Widget>[
        GestureDetector(
          onDoubleTap: () {
            setState(() {
              _translate = Offset(0.0, 0.0);
              _scale = 1.0;
            });
          },
          child: Center(
            child: Container(
              color: Colors.black,
              child: GestureDetector(
                onPanUpdate: (x) {
                  setState(() {
                    _translate = _translate + x.delta;
                  });
                },
                child: Transform.translate(
                  offset: _translate,
                  child: Transform.scale(
                    scale: _scale,
                    child: AssetThumb(
                      asset: _image,
                      width: _image.originalWidth,
                      height: _image.originalHeight,
                    ),
                  ),
                ),
              ),
            ),
          ),
        ),
        Align(
          alignment: AlignmentDirectional.bottomEnd,
          child: Container(
            width: 50.0,
            height: 50.0,
            margin: EdgeInsets.only(right: 80.0, bottom: 15.0),
            child: RaisedButton.icon(
              onPressed: () {
                setState((){
                  if (_scale < 10){
                    _scaling = Tween<double>(begin: _scale, end: _scale*2.0).animate(_controller);
                    _controller.reset();
                    _controller.forward();
                  }
                });
              },
              icon: Icon(Icons.zoom_in, color: Colors.white70),
              label: Text(""),
              shape: RoundedRectangleBorder(
                  borderRadius: BorderRadius.all(Radius.circular(25.0))),
              color: Theme.of(context).primaryColor,
            ),
          ),
        ),
        Align(
          alignment: AlignmentDirectional.bottomEnd,
          child: Container(
            width: 50.0,
            height: 50.0,
            margin: EdgeInsets.only(right: 15.0, bottom: 15.0),
            child: RaisedButton.icon(
              onPressed: () {
                setState((){
                  if (_scale > 0.1){
                    _scaling = Tween<double>(begin: _scale, end: _scale*0.5).animate(_controller);
                    _controller.reset();
                    _controller.forward();
                  }
                });
              },
              icon: Icon(Icons.zoom_out, color: Colors.white70),
              label: Text(""),
              shape: RoundedRectangleBorder(
                  borderRadius: BorderRadius.all(Radius.circular(25.0))),
              color: Theme.of(context).primaryColor,
            ),
          ),
        ),
      ],
    );
  }
}

but I don't want to listener onDoubleTap.

when I click the empty area, it will throw this error.

但我只是想要显示一个文本而已，不需要加GestureDetector手势处理呢。 ，然后2个手指同时点击点击报错了， 难道在APP内每个文本显示的Text都加上GestureDetector去处理这个问题吗
------------------ 原始邮件 ------------------
发件人<EMAIL_ADDRESS>发送时间: 2019年7月18日(星期四) 凌晨5:05
收件人<EMAIL_ADDRESS>抄送: "kecson"kecson<EMAIL_ADDRESS>主题: Re: [flutter/flutter] 'package:flutter/src/gestures/monodrag.dart':Failed assertion: line 387 pos 12: '_initialButtons == kPrimaryButton': is nottrue (#36350)
Same here:
E/flutter (22777): [ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 357 pos 12: '_initialButtons == kPrimaryButton': is not true.
E/flutter (22777): #0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:40:39)
E/flutter (22777): #1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
E/flutter (22777): #2      DragGestureRecognizer._checkStart (package:flutter/src/gestures/monodrag.dart:357:12)
E/flutter (22777): #3      DragGestureRecognizer.acceptGesture (package:flutter/src/gestures/monodrag.dart:298:7)
E/flutter (22777): #4      GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27)
E/flutter (22777): #5      GestureArenaManager.release (package:flutter/src/gestures/arena.dart:199:7)
E/flutter (22777): #6      DoubleTapGestureRecognizer._reset (package:flutter/src/gestures/multitap.dart:260:44)
E/flutter (22777): #7      _rootRun (dart:async/zone.dart:1120:38)
E/flutter (22777): #8      _CustomZone.run (dart:async/zone.dart:1021:19)
E/flutter (22777): #9      _CustomZone.runGuarded (dart:async/zone.dart:923:7)
E/flutter (22777): #10     _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:963:23)
E/flutter (22777): #11     _rootRun (dart:async/zone.dart:1124:13)
E/flutter (22777): #12     _CustomZone.run (dart:async/zone.dart:1021:19)
E/flutter (22777): #13     _CustomZone.bindCallback. (dart:async/zone.dart:947:23)
E/flutter (22777): #14     Timer._createTimer. (dart:async-patch/timer_patch.dart:21:15)
E/flutter (22777): #15     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:382:19)
E/flutter (22777): #16     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:416:5)
E/flutter (22777): #17     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)
E/flutter (22777):
I/flutter (22777): Another exception was thrown: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 387 pos 12: '_initialButtons == kPrimaryButton': is not true.
Here is the code:
`import 'package:flutter/material.dart';
import 'package:multi_image_picker/multi_image_picker.dart';
class DetailPhotoScreen extends StatefulWidget {
final _image;
DetailPhotoScreen(this._image);
@override
_DetailPhotoScreenState createState() => _DetailPhotoScreenState(_image);
}
class _DetailPhotoScreenState extends State
with TickerProviderStateMixin{
final _image;
double _scale = 1.0;
Offset _translate = Offset(0.0, 0.0);
Animation _scaling;
AnimationController _controller;
@override
void initState() {
super.initState();
_controller = AnimationController(duration: Duration(milliseconds: 250), vsync: this);
_scaling = Tween(begin: 0.0, end: 1.0).animate(_controller); _scaling.addListener((){   setState((){     _scale = _scaling.value;   }); });
}
_DetailPhotoScreenState(this._image);
@override
Widget build(BuildContext context) {
return Stack(
children: [
GestureDetector(
onDoubleTap: () {
setState(() {
_translate = Offset(0.0, 0.0);
_scale = 1.0;
});
},
child: Center(
child: Container(
color: Colors.black,
child: GestureDetector(
onPanUpdate: (x) {
setState(() {
_translate = _translate + x.delta;
});
},
child: Transform.translate(
offset: _translate,
child: Transform.scale(
scale: _scale,
child: AssetThumb(
asset: _image,
width: _image.originalWidth,
height: _image.originalHeight,
),
),
),
),
),
),
),
Align(
alignment: AlignmentDirectional.bottomEnd,
child: Container(
width: 50.0,
height: 50.0,
margin: EdgeInsets.only(right: 80.0, bottom: 15.0),
child: RaisedButton.icon(
onPressed: () {
setState((){
if (_scale < 10){
_scaling = Tween(begin: _scale, end: _scale2.0).animate(_controller);
_controller.reset();
_controller.forward();
}
});
},
icon: Icon(Icons.zoom_in, color: Colors.white70),
label: Text(""),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(25.0))),
color: Theme.of(context).primaryColor,
),
),
),
Align(
alignment: AlignmentDirectional.bottomEnd,
child: Container(
width: 50.0,
height: 50.0,
margin: EdgeInsets.only(right: 15.0, bottom: 15.0),
child: RaisedButton.icon(
onPressed: () {
setState((){
if (_scale > 0.1){
_scaling = Tween(begin: _scale, end: _scale0.5).animate(_controller);
_controller.reset();
_controller.forward();
}
});
},
icon: Icon(Icons.zoom_out, color: Colors.white70),
label: Text(""),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(25.0))),
color: Theme.of(context).primaryColor,
),
),
),
],
);
}
}
`
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Met the same issue. happened on an iOS device, not sure about Android.
I rapidly tap a GestureDetector with two fingers. This assert will block all later touches. The user cannot continue to use the app after that.

I'm guessing it's the same issue as #37466, which I have a fix that has just been merged. Please check if the current master (or wait until the next release of your channel) fixes this problem.

Thanks, when is it released to a stable channel?

Is there any workaround before the fix released to a stable channel？

@danieldai My suggestion is to switch to dev channel for now, and beta channel once a new beta is out.  My apology for the inconvenience.

Status: Waiting for this to land on stable.

I add a long press event to solve

Status: Waiting for this to land on stable.

Hii, is this fix been landed on stable version?

@phj7777777 Yes, this will be landed in the upcoming stable that has just been frozen.

I think this issue fixed in stable 1.12.13+hotfix.5.
Did you forget to colse issue or is there still a problem?

this issue fixed in stable 1.12.13+hotfix.5.

The problem still exists - there is no scenario, but screen is getting frozen randomly. When tapping on screen we get the following log:
ViewRootImpl@131b3b9[FlutterActivity]: ViewPostIme pointer 0
ViewRootImpl@131b3b9[FlutterActivity]: ViewPostIme pointer 1
Another exception was thrown: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 407 pos 12: '_initialButtons == kPrimaryButton': is not true.
flutter doctor:
[✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Linux, locale en_US.UTF-8)
• Flutter version 1.12.13+hotfix.5 at /home/artem/Development/flutter
• Framework revision 27321ebbad (8 days ago), 2019-12-10 18:15:01 -0800
• Engine revision 2994f7e1e6
• Dart version 2.7.0
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /home/artem/Development/android-sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: /home/artem/Development/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Android Studio (version 3.5)
• Android Studio at /home/artem/Development/android-studio
• Flutter plugin version 42.1.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] Connected device (2 available)
• Nexus 5   • 07e3ff7c0de4bdf7 • android-arm   • Android 6.0.1 (API 23)
• SM N970U1 • R58MA5ZACRT      • android-arm64 • Android 9 (API 28)
• No issues found!

@33-Elephants Can you come up with a minimal example and/or reproducible steps?

It also happened to me just now, in development, using a iPad testing device, on v1.12.13+hotfix.5.

The issue still persists and it screen freezes.
`
Flutter 1.17.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision f7a6a7906b (3 weeks ago) • 2020-05-12 18:39:00 -0700
Engine • revision 6bc433c6b6
Tools • Dart 2.8.2
(base) SW-LP10342:tribes malav.desai$ flutter doctor -v
[✓] Flutter (Channel stable, v1.17.1, on Mac OS X 10.15.4 19E287, locale en-IN)
• Flutter version 1.17.1 at /Users/malav.desai/Project/flutter
• Framework revision f7a6a7906b (3 weeks ago), 2020-05-12 18:39:00 -0700
• Engine revision 6bc433c6b6
• Dart version 2.8.2
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /Users/malav.desai/Library/Android/sdk
• Platform android-29, build-tools 29.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_212-release-1586-b4-5784211)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.5, Build version 11E608c
• CocoaPods version 1.9.1
[✓] Android Studio (version 3.6)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 44.0.2
• Dart plugin version 192.7761
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
[✓] Connected device (1 available)
• HD1901 • 917fed4e • android-arm64 • Android 10 (API 29)
• No issues found!
`

Container(
height: MediaQuery.of(context).size.height * 0.5,
child: CarouselSlider(
options: CarouselOptions(
viewportFraction: 0.75,
aspectRatio: 4 / 5,
height: MediaQuery.of(context).size.height,
enlargeCenterPage: true,
autoPlay: false,
enableInfiniteScroll: false,
),
items: state.user.userTribes
.map(
(UserTribe userTribe) => Card(
shape: RoundedRectangleBorder(
borderRadius: CustomTheme.circular()),
child: GestureDetector(
                              dragStartBehavior: DragStartBehavior.start,
                              onTap: () async {
                                await userRepository.updateUserTribeId(
                                  userTribe.user.id,
                                  userTribe.tribe.id,
                                );
                                Navigator.of(context).push(
                                  MaterialPageRoute(
                                    builder: (context) =>
                                        BlocProvider<ConversationBloc>(
                                      create: (context) =>
                                          ConversationBloc()
                                            ..add(
                                              GetConversation(
                                                userId: userTribe.user.id,
                                                tribeId:
                                                    userTribe.tribe.id,
                                              ),
                                            ),
                                      child: ConversationScreen(),
                                    ),
                                  ),
                                );
                              },
                              child: Stack(
                                children: <Widget>[
                                  Container(
                                    decoration: BoxDecoration(
                                      borderRadius:
                                          CustomTheme.circular(),
                                      image: DecorationImage(
                                        fit: BoxFit.cover,
                                        image: userTribe.tribe.imageUrl ==
                                                null
                                            ? AssetImage(
                                                "assets/images/wallpaper.png")
                                            : NetworkImage(
                                                userTribe.tribe.imageUrl),
                                      ),
                                    ),
                                  ),
                                  Container(
                                    width: double.infinity,
                                    decoration: BoxDecoration(
                                      borderRadius:
                                          CustomTheme.circular(),
                                      gradient: LinearGradient(
                                          begin: Alignment.topLeft,
                                          end: Alignment.bottomRight,
                                          colors: [
                                            Colors.grey.shade900,
                                            Colors.transparent
                                          ],
                                          stops: [
                                            0.0,
                                            1.0
                                          ]),
                                    ),
                                    child: Padding(
                                      padding: EdgeInsets.all(20),
                                      child: Column(
                                        crossAxisAlignment:
                                            CrossAxisAlignment.start,
                                        children: <Widget>[
                                          Text(
                                            userTribe.tribe.name,
                                            style: Theme.of(context)
                                                .textTheme
                                                .headline1,
                                          ),
                                          SizedBox(height: 10),
                                          Text(
                                            userTribe.tribe.hintText,
                                            style: Theme.of(context)
                                                .textTheme
                                                .bodyText1,
                                          ),

                                        ],
                                      ),
                                    ),
                                  ),

                                ],
                              ),
                            ),
                          ),
                        )
                        .toList(),
                  ),
                ),

`
Container(
height: MediaQuery.of(context).size.height * 0.5,
child: CarouselSlider(
options: CarouselOptions(
viewportFraction: 0.75,
aspectRatio: 4 / 5,
height: MediaQuery.of(context).size.height,
enlargeCenterPage: true,
autoPlay: false,
enableInfiniteScroll: false,
),
items: state.user.userTribes
.map(
(UserTribe userTribe) => Card(
shape: RoundedRectangleBorder(
borderRadius: CustomTheme.circular()),
child: GestureDetector(
                              dragStartBehavior: DragStartBehavior.start,
                              onTap: () async {
                                await userRepository.updateUserTribeId(
                                  userTribe.user.id,
                                  userTribe.tribe.id,
                                );
                                Navigator.of(context).push(
                                  MaterialPageRoute(
                                    builder: (context) =>
                                        BlocProvider<ConversationBloc>(
                                      create: (context) =>
                                          ConversationBloc()
                                            ..add(
                                              GetConversation(
                                                userId: userTribe.user.id,
                                                tribeId:
                                                    userTribe.tribe.id,
                                              ),
                                            ),
                                      child: ConversationScreen(),
                                    ),
                                  ),
                                );
                              },
                              child: Stack(
                                children: <Widget>[
                                  Container(
                                    decoration: BoxDecoration(
                                      borderRadius:
                                          CustomTheme.circular(),
                                      image: DecorationImage(
                                        fit: BoxFit.cover,
                                        image: userTribe.tribe.imageUrl ==
                                                null
                                            ? AssetImage(
                                                "assets/images/wallpaper.png")
                                            : NetworkImage(
                                                userTribe.tribe.imageUrl),
                                      ),
                                    ),
                                  ),
                                  Container(
                                    width: double.infinity,
                                    decoration: BoxDecoration(
                                      borderRadius:
                                          CustomTheme.circular(),
                                      gradient: LinearGradient(
                                          begin: Alignment.topLeft,
                                          end: Alignment.bottomRight,
                                          colors: [
                                            Colors.grey.shade900,
                                            Colors.transparent
                                          ],
                                          stops: [
                                            0.0,
                                            1.0
                                          ]),
                                    ),
                                    child: Padding(
                                      padding: EdgeInsets.all(20),
                                      child: Column(
                                        crossAxisAlignment:
                                            CrossAxisAlignment.start,
                                        children: <Widget>[
                                          Text(
                                            userTribe.tribe.name,
                                            style: Theme.of(context)
                                                .textTheme
                                                .headline1,
                                          ),
                                          SizedBox(height: 10),
                                          Text(
                                            userTribe.tribe.hintText,
                                            style: Theme.of(context)
                                                .textTheme
                                                .bodyText1,
                                          ),

                                        ],
                                      ),
                                    ),
                                  ),

                                ],
                              ),
                            ),
                          ),
                        )
                        .toList(),
                  ),
                ),

`

not yet 1.17

i have same issue. Are there any bug fix or workaround solution ?
flutter: ══╡ EXCEPTION CAUGHT BY GESTURE LIBRARY ╞═══════════════════════════════════════════════════════════
flutter: The following assertion was thrown while routing a pointer event:
flutter: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 416 pos 12: '_initialButtons ==
flutter: kPrimaryButton': is not true.
flutter:
flutter: Either the assertion indicates an error in the framework itself, or we should provide substantially
flutter: more information in this error message to help you determine and fix the underlying cause.
flutter: In either case, please report this assertion by filing a bug on GitHub:
flutter:   https://github.com/flutter/flutter/issues/new?template=BUG.md
flutter:
flutter: When the exception was thrown, this was the stack:
flutter: #2      DragGestureRecognizer._checkEnd
package:flutter/…/gestures/monodrag.dart:416
flutter: #3      DragGestureRecognizer.didStopTrackingLastPointer
package:flutter/…/gestures/monodrag.dart:358
flutter: #4      OneSequenceGestureRecognizer.stopTrackingPointer
package:flutter/…/gestures/recognizer.dart:343
flutter: #5      DragGestureRecognizer._giveUpPointer
package:flutter/…/gestures/monodrag.dart:367
flutter: #6      DragGestureRecognizer.handleEvent
package:flutter/…/gestures/monodrag.dart:256
flutter: #7      PointerRouter._dispatch
package:flutter/…/gestures/pointer_router.dart:78
igunes@igunes ios % flutter doctor -v
[✓] Flutter (Channel stable, 1.20.3, on Mac OS X 10.15.6 19G2021, locale en-TR)
• Flutter version 1.20.3 at /users/igunes/flutter
• Framework revision 216dee60c0 (13 days ago), 2020-09-01 12:24:47 -0700
• Engine revision d1bc06f032
• Dart version 2.9.2
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
• Android SDK at /Users/igunes/Library/Android/sdk
• Platform android-30, build-tools 30.0.0
• 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-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.7)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.7, Build version 11E801a
• CocoaPods version 1.9.3
[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 48.1.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build
1.8.0_242-release-1644-b3-6222593)
[✓] VS Code (version 1.49.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.14.1
[✓] Connected device (1 available)
• Mustafa’s iPad (mobile) • ec9cc0171e4772f3dbca05f0c732828429310826 • ios •
iOS 13.5.1

I have the same issue too.
════════ Exception caught by gesture library ═══════════════════════════════════
The following assertion was thrown while dispatching a pointer event:
'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 379 pos 12: '_initialButtons == kPrimaryButton': is not true.
Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=BUG.md

When the exception was thrown, this was the stack
#2      DragGestureRecognizer._checkStart
package:flutter/…/gestures/monodrag.dart
#3      DragGestureRecognizer.acceptGesture
package:flutter/…/gestures/monodrag.dart
#4      GestureArenaManager.sweep
package:flutter/…/gestures/arena.dart
#5      GestureBinding.handleEvent
package:flutter/…/gestures/binding.dart
#6      GestureBinding.dispatchEvent
package:flutter/…/gestures/binding.dart
...
Event: PointerUpEvent#d0714(position: Offset(26.0, 242.3))
position: Offset(26.0, 242.3)
Target:
════════════════════════════════════════════════════════════════════════════════
══╡ EXCEPTION CAUGHT BY GESTURE LIBRARY ╞═══════════════════════════════════════════════════════════
The following assertion was thrown while dispatching a pointer event:
'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 379 pos 12: '_initialButtons ==
kPrimaryButton': is not true.
Either the assertion indicates an error in the framework itself, or we should provide substantially
more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=BUG.md
When the exception was thrown, this was the stack:
#2      DragGestureRecognizer._checkStart
package:flutter/…/gestures/monodrag.dart
#3      DragGestureRecognizer.acceptGesture
package:flutter/…/gestures/monodrag.dart
#4      GestureArenaManager.sweep
package:flutter/…/gestures/arena.dart
#5      GestureBinding.handleEvent
package:flutter/…/gestures/binding.dart
#6      GestureBinding.dispatchEvent
package:flutter/…/gestures/binding.dart
#7      GestureBinding._handlePointerEvent
package:flutter/…/gestures/binding.dart
#8      GestureBinding._flushPointerEventQueue
package:flutter/…/gestures/binding.dart
#9      GestureBinding._handlePointerDataPacket
package:flutter/…/gestures/binding.dart
#13     _invoke1  (dart:ui/hooks.dart:267:10)
#14     _dispatchPointerDataPacket  (dart:ui/hooks.dart:176:5)
(elided 5 frames from class _AssertionError and dart:async)
Event:
PointerUpEvent#d0714(position: Offset(26.0, 242.3))
Target:

════════════════════════════════════════════════════════════════════════════════════════════════════
Another exception was thrown: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════ Exception caught by gesture library ═══════════════════════════════════
'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════════════════════════════════════════════════════════════════════════════
Another exception was thrown: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════ Exception caught by gesture library ═══════════════════════════════════
'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════════════════════════════════════════════════════════════════════════════
Another exception was thrown: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════ Exception caught by gesture library ═══════════════════════════════════
'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════════════════════════════════════════════════════════════════════════════
Another exception was thrown: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════ Exception caught by gesture library ═══════════════════════════════════
'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════════════════════════════════════════════════════════════════════════════
Another exception was thrown: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════ Exception caught by gesture library ═══════════════════════════════════
'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════════════════════════════════════════════════════════════════════════════
Another exception was thrown: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════ Exception caught by gesture library ═══════════════════════════════════
'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════════════════════════════════════════════════════════════════════════════
Another exception was thrown: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════ Exception caught by gesture library ═══════════════════════════════════
'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════════════════════════════════════════════════════════════════════════════
Another exception was thrown: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════ Exception caught by gesture library ═══════════════════════════════════
'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════════════════════════════════════════════════════════════════════════════
Another exception was thrown: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════ Exception caught by gesture library ═══════════════════════════════════
'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 409 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════════════════════════════════════════════════════════════════════════════
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 1.20.3, on Microsoft Windows [Version 10.0.18363.1082], locale de-DE)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
[√] Android Studio (version 3.5)
[√] VS Code, 64-bit edition (version 1.49.0)
[√] Connected device (1 available)
• No issues found!

i have same issue. Are there any bug fix or workaround solution ? When i use tabbar like dummy user with two or three finger (gesture) it freeze all tab bar views.
flutter: ══╡ EXCEPTION CAUGHT BY GESTURE LIBRARY ╞═══════════════════════════════════════════════════════════
flutter: The following assertion was thrown while routing a pointer event:
flutter: 'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 416 pos 12: '_initialButtons ==
flutter: kPrimaryButton': is not true.
flutter:
flutter: Either the assertion indicates an error in the framework itself, or we should provide substantially
flutter: more information in this error message to help you determine and fix the underlying cause.
flutter: In either case, please report this assertion by filing a bug on GitHub:
flutter: https://github.com/flutter/flutter/issues/new?template=BUG.md
flutter:
flutter: When the exception was thrown, this was the stack:
flutter: #2 DragGestureRecognizer._checkEnd
package:flutter/…/gestures/monodrag.dart:416
flutter: #3 DragGestureRecognizer.didStopTrackingLastPointer
package:flutter/…/gestures/monodrag.dart:358
flutter: #4 OneSequenceGestureRecognizer.stopTrackingPointer
package:flutter/…/gestures/recognizer.dart:343
flutter: #5 DragGestureRecognizer._giveUpPointer
package:flutter/…/gestures/monodrag.dart:367
flutter: #6 DragGestureRecognizer.handleEvent
package:flutter/…/gestures/monodrag.dart:256
flutter: #7 PointerRouter._dispatch
package:flutter/…/gestures/pointer_router.dart:78
igunes@igunes ios % flutter doctor -v
[✓] Flutter (Channel stable, 1.20.3, on Mac OS X 10.15.6 19G2021, locale en-TR)
• Flutter version 1.20.3 at /users/igunes/flutter
• Framework revision 216dee6 (13 days ago), 2020-09-01 12:24:47 -0700
• Engine revision d1bc06f032
• Dart version 2.9.2
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
• Android SDK at /Users/igunes/Library/Android/sdk
• Platform android-30, build-tools 30.0.0
• 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-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.7)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.7, Build version 11E801a
• CocoaPods version 1.9.3
[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 48.1.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build
1.8.0_242-release-1644-b3-6222593)
[✓] VS Code (version 1.49.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.14.1
[✓] Connected device (1 available)
• Mustafa’s iPad (mobile) • ec9cc0171e4772f3dbca05f0c732828429310826 • ios •
iOS 13.5.1

I am starting to get this error too. Happens when I scroll the page quickly with the mouse pointer (seeing this on iOS14 Simulator). Error is:
══╡ EXCEPTION CAUGHT BY GESTURE LIBRARY ╞═══════════════════════════════════════════════════════════
The following assertion was thrown while dispatching a pointer event:
'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 379 pos 12: '_initialButtons ==
kPrimaryButton': is not true.
Either the assertion indicates an error in the framework itself, or we should provide substantially
more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=BUG.md
When the exception was thrown, this was the stack:
#2      DragGestureRecognizer._checkStart
package:flutter/…/gestures/monodrag.dart:379
#3      DragGestureRecognizer.acceptGesture
package:flutter/…/gestures/monodrag.dart:310
#4      GestureArenaManager.sweep
package:flutter/…/gestures/arena.dart:158
#5      GestureBinding.handleEvent
package:flutter/…/gestures/binding.dart:224
#6      GestureBinding.dispatchEvent
package:flutter/…/gestures/binding.dart:200
#7      GestureBinding._handlePointerEvent
package:flutter/…/gestures/binding.dart:158
#8      GestureBinding._flushPointerEventQueue
package:flutter/…/gestures/binding.dart:104
#9      GestureBinding._handlePointerDataPacket
package:flutter/…/gestures/binding.dart:88
#13     _invoke1  (dart:ui/hooks.dart:267:10))
#14     _dispatchPointerDataPacket  (dart:ui/hooks.dart:176:5))
(elided 5 frames from class _AssertionError and dart:async)
Event:
  PointerUpEvent#73670(position: Offset(0.0, 812.0))
Target:
  <WidgetsFlutterBinding>
════════════════════════════════════════════════════════════════════════════════════════════════════

════════ Exception caught by gesture library ═══════════════════════════════════
The following assertion was thrown while dispatching a pointer event:

and flutter doctor:
[✓] Flutter (Channel stable, 1.20.4, on Mac OS X 10.15.7 19H2, locale en-GB)
• Flutter version 1.20.4 at /Applications/flutter
• Framework revision fba99f6cf9 (4 weeks ago), 2020-09-14 15:32:52 -0700
• Engine revision d1bc06f032
• Dart version 2.9.2
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/alexblack/Library/Android/sdk
• Platform android-29, build-tools 29.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_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 12.0.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.0.1, Build version 12A7300
• CocoaPods version 1.9.3
[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 42.1.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] VS Code (version 1.50.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.9.1
[✓] Connected device (1 available)
• iPhone 11 Pro (mobile) • 5CFD3069-FA5A-4B04-9E94-E80AFB173593 • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-0 (simulator)

Same issue here. How to solve it? Help!!

Started having the same issue on iOS 14 simulator. For me it happens consistently when using a CustomScrollView with a SliverAppBar, either by just scrolling or when tapping the back button after having scrolled.
══╡ EXCEPTION CAUGHT BY GESTURE LIBRARY ╞═══════════════════════════════════════════════════════════
The following assertion was thrown while routing a pointer event:
'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 435 pos 12: '_initialButtons ==
kPrimaryButton': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially
more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=BUG.md

When the exception was thrown, this was the stack:
#2      DragGestureRecognizer._checkEnd
package:flutter/…/gestures/monodrag.dart
#3      DragGestureRecognizer.didStopTrackingLastPointer
package:flutter/…/gestures/monodrag.dart
#4      OneSequenceGestureRecognizer.stopTrackingPointer
package:flutter/…/gestures/recognizer.dart
#5      DragGestureRecognizer._giveUpPointer
package:flutter/…/gestures/monodrag.dart
#6      DragGestureRecognizer.handleEvent
package:flutter/…/gestures/monodrag.dart
#7      PointerRouter._dispatch
package:flutter/…/gestures/pointer_router.dart
#8      PointerRouter._dispatchEventToRoutes.<anonymous closure>
package:flutter/…/gestures/pointer_router.dart
#9      _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:377:8)
#10     PointerRouter._dispatchEventToRoutes
package:flutter/…/gestures/pointer_router.dart
#11     PointerRouter.route
package:flutter/…/gestures/pointer_router.dart
#12     GestureBinding.handleEvent
package:flutter/…/gestures/binding.dart
#13     GestureBinding.dispatchEvent
package:flutter/…/gestures/binding.dart
#14     RendererBinding.dispatchEvent
package:flutter/…/rendering/binding.dart
#15     GestureBinding._handlePointerEvent
package:flutter/…/gestures/binding.dart
#16     GestureBinding._flushPointerEventQueue
package:flutter/…/gestures/binding.dart
#17     GestureBinding._handlePointerDataPacket
package:flutter/…/gestures/binding.dart
#21     _invoke1 (dart:ui/hooks.dart:265:10)
#22     _dispatchPointerDataPacket (dart:ui/hooks.dart:174:5)
(elided 5 frames from class _AssertionError and dart:async)

router: Instance of 'PointerRouter'
route: Closure: (PointerEvent) => void from Function 'handleEvent':.
event: PointerMoveEvent#c9147(position: Offset(0.0, 812.0))
════════════════════════════════════════════════════════════════════════════════════════════════════

@LorTos This issue is happening to me too!

This is happening to me in the simulator as well.

This issue is happening to me too!

Same here, ios 14 Emulator and I'm getting this error on a SliverAppBar inside a NestedScrollView. I didn' still try on a real device

Why this issue is closed if it's not fixed? I face this problem at Flutter (Channel stable, 1.22.4, on Microsoft Windows [versão 10.0.18363.1198], locale pt-BR)
════════ Exception caught by gesture library ═══════════════════════════════════════════════════════
The following _CastError was thrown while dispatching a pointer event:
Null check operator used on a null value

When the exception was thrown, this was the stack:
#0      DragGestureRecognizer.acceptGesture (package:flutter/src/gestures/monodrag.dart:321:60)
#1      GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:157:27)
#2      GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:362:20)
#3      GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:338:22)
#4      RendererBinding.dispatchEvent (package:flutter/src/rendering/binding.dart:267:11)
...
Event: PointerUpEvent#8ccd7(position: Offset(190.5, 166.8))
  position: Offset(190.5, 166.8)
Target: <WidgetsFlutterBinding>
════════════════════════════════════════════════════════════════════════════════════════════════════
D/ViewRootImpl@6393b6f[MainActivity]( 2551): ViewPostIme pointer 0

════════ Exception caught by gesture library ═══════════════════════════════════════════════════════
'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 435 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════════════════════════════════════════════════════════════════════════════════════════════════
D/ViewRootImpl@6393b6f[MainActivity]( 2551): ViewPostIme pointer 1
D/ViewRootImpl@6393b6f[MainActivity]( 2551): ViewPostIme pointer 0

════════ Exception caught by gesture library ═══════════════════════════════════════════════════════
'package:flutter/src/gestures/monodrag.dart': Failed assertion: line 435 pos 12: '_initialButtons == kPrimaryButton': is not true.
════════════════════════════════════════════════════════════════════════════════════════════════════
D/ViewRootImpl@6393b6f[MainActivity]( 2551): ViewPostIme pointer 1

Why is this closed? Just got into this problem.
1.22.5 • channel stable

Why is this closed? Just got into this problem.
1.22.5 • channel stable

problem still exist even after last upgrade to version 1.22.6

problem still exist even after last upgrade to version 1.22.6

I'm facing the same problem on flutter 1.22.4. iOS simulator 14.4 iPhone 12 Pro Max.

I'm aware that many people are still encountering related crashes and this definitely needs fixing. Another ticket has been opened in https://github.com/flutter/flutter/issues/75061 where some people has posted some investigations. For now I myself am too occupied on another project to investigate this issue, but I still encourage everyone to post reproduction and/or investigation into the new issue, if any, and I'll come back as soon as possible. My apology for not being able to drive it right now.

same issue with me

@niypoo Can you check which version you're on with flutter --version? This should have landed to 2.0.2 (https://github.com/flutter/flutter/commit/8962f6dc68ec8e2206ac2fa874da4a453856c7d3)

Yep, same here with the most recent Flutter version..

Same here with Android emulator