sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: rustdesk
Issue: Give movement priority to host rather than client + multiple connections mouse move priority issue
Labels: enhancement,help wanted,Fund

Right now the client has priority over the host for controlling the mouse. Teamviewer/anydesk use the opposite. Any movement the host does with the mouse will always override any movement the client connected makes. 

I think rustdesk should follow the same logic.

<!-- POLAR PLEDGE BADGE START -->
## Upvote & Fund

- We're using [Polar.sh](https://polar.sh/rustdesk) so you can upvote and help fund this issue.
- We receive the funding once the issue is completed & confirmed by you.
- Thank you in advance for helping prioritize & fund our backlog.

<a href="https://polar.sh/rustdesk/rustdesk/issues/40">
<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://polar.sh/api/github/rustdesk/rustdesk/issues/40/pledge.svg?darkmode=1">
  <img alt="Fund with Polar" src="https://polar.sh/api/github/rustdesk/rustdesk/issues/40/pledge.svg">
</picture>
</a>
<!-- POLAR PLEDGE BADGE END -->
Repository: pytorch
Issue: TSAN issues in autograd
Labels: module: autograd,triaged

## 🐛 Bug

TSAN complains with the following stack trace:

```
WARNING: ThreadSanitizer: data race (pid=3252828)
  Write of size 1 at 0x7b4c00120538 by thread T100:
    #0 torch::autograd::Node::topological_nr() const caffe2/torch/csrc/autograd/function.h:334 (libcaffe2_libtorch.so+0x1ec6639)
    #1 torch::autograd::Node::update_topological_nr(torch::autograd::Edge const&) caffe2/torch/csrc/autograd/function.h:241 (libcaffe2_libtorch.so+0x1ec59bb)
    #2 torch::autograd::Node::set_next_edges(std::vector<torch::autograd::Edge, std::allocator<torch::autograd::Edge> >&&) caffe2/torch/csrc/autograd/function.h:261 (libcaffe2_libtorch.so+0x1ec37b3)
 
  Previous write of size 1 at 0x7b4c00120538 by thread T102:
    #0 torch::autograd::Node::topological_nr() const caffe2/torch/csrc/autograd/function.h:334 (libcaffe2_libtorch.so+0x1ec6639)
    #1 torch::autograd::Node::update_topological_nr(torch::autograd::Edge const&) caffe2/torch/csrc/autograd/function.h:241 (libcaffe2_libtorch.so+0x1ec59bb)
    #2 torch::autograd::Node::set_next_edges(std::vector<torch::autograd::Edge, std::allocator<torch::autograd::Edge> >&&) caffe2/torch/csrc/autograd/function.h:261 (libcaffe2_libtorch.so+0x1ec37b3)
```


## To Reproduce

Run `test_backward_ddp_inside` with `@mode/dev-tsan`

cc @ezyang @albanD @zou3519 @gqchen @pearu @nikitaved @soulitzer @Lezcano
Repository: go
Issue: cmd/vet: enable fuzz checks in 'tests' analysis pass
Labels: Proposal,Proposal-Accepted,NeedsInvestigation,Analysis,fuzz

There are several things that vet can do to support native fuzzing. This issue tracks all of the potential checks that could be added.

Vet should fail if...

 
- [ ] the inputs to any `f.Add` call don't match the ones in `f.Fuzz`
- [ ]  there is any code after `f.Fuzz`
- [x]   the `f.Fuzz` function is missing a `*testing.T` as its first parameter
- [x]   there is any call to a `*testing.F` method from within the `f.Fuzz` function
Repository: pytorch
Issue: TSAN issues in at::RecordFunction
Labels: triaged,oncall: profiler

## 🐛 Bug

```
WARNING: ThreadSanitizer: data race (pid=3678841)
  Read of size 8 at 0x7b040007a4f8 by thread T118:
    #0 std::__uniq_ptr_impl<at::RecordFunction::State, std::default_delete<at::RecordFunction::State> >::_M_ptr() const 
    #1 std::unique_ptr<at::RecordFunction::State, std::default_delete<at::RecordFunction::State> >::get() const 
    #2 std::unique_ptr<at::RecordFunction::State, std::default_delete<at::RecordFunction::State> >::operator bool() const 
    #3 bool std::operator!=<at::RecordFunction::State, std::default_delete<at::RecordFunction::State> >(std::unique_ptr<at::RecordFunction::State, std::default_delete<at::RecordFunction::State> > const&, std::nullptr_t) 
    #4 at::RecordFunction::isActive() const caffe2/aten/src/ATen/record_function.h:253 (libcaffe2_aten_ATen-core.so+0x1ee746)
    #5 at::RecordFunction::end() caffe2/aten/src/ATen/record_function.cpp:496 (libcaffe2_aten_ATen-core.so+0x647e3f)
    #6 torch::autograd::profiler::_call_end_callbacks_on_fut(at::Tensor const&, c10::intrusive_ptr<c10::ivalue::Future, c10::detail::intrusive_target_default_null_type<c10::ivalue::Future> > const&)::$_0::operator()(c10::ivalue::Future&) const caffe2/torch/csrc/autograd/record_function_ops.cpp:52 (libcaffe2_libtorch.so+0x36033c3)

  Previous write of size 8 at 0x7b040007a4f8 by main thread:
    #0 std::enable_if<__and_<std::__not_<std::__is_tuple_like<at::RecordFunction::State*> >, std::is_move_constructible<at::RecordFunction::State*>, std::is_move_assignable<at::RecordFunction::State*> >::value, void>::type std::swap<at::RecordFunction::State*>(at::RecordFunction::State*&, at::RecordFunction::State*&) 
    #1 std::unique_ptr<at::RecordFunction::State, std::default_delete<at::RecordFunction::State> >::reset(at::RecordFunction::State*) 
    #2 at::RecordFunction::end() caffe2/aten/src/ATen/record_function.cpp:498 (libcaffe2_aten_ATen-core.so+0x647eaf)
    #3 torch::autograd::profiler::record_function_exit(at::Tensor const&) caffe2/torch/csrc/autograd/record_function_ops.cpp:35 (libcaffe2_libtorch.so+0x35fd0f2)
    #4 c10::impl::detail::WrapFunctionIntoRuntimeFunctor_<void (*)(at::Tensor const&), void, c10::guts::typelist::typelist<at::Tensor const&> >::operator()(at::Tensor const&) caffe2/aten/src/ATen/core/boxing/impl/WrapFunctionIntoRuntimeFunctor.h:18 (libcaffe2_libtorch.so+0x3600f10)
```
## To Reproduce

Run `test_async_record_function_cbs_jit_call` with @mode/dev-tsan

cc @ilia-cher @gdankel @ngimel @nbcsm @guotuofeng @guyang3532 @gaoteng-git
Repository: react-native
Issue: Android TextInput placeholder with custom font has incorrect height
Labels: Issue: Author Provided Repro,Component: TextInput

## Description
TextInput placeholders that do not use the default android font and differ in their wrap point from the default font may be cut off.  For example, if the default font does not wrap, and the custom font is slightly wider and does wrap to the next line, the placeholder will NOT reflect this wrapping, and the TextInput will only be one line.

## React Native version:
```
System:
    OS: macOS 11.2.3
    CPU: (8) x64 Intel(R) Core(TM) i7-1068NG7 CPU @ 2.30GHz
    Memory: 91.84 MB / 32.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.0.0 - /usr/local/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 7.10.0 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.10.1 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
    Android SDK:
      API Levels: 28, 29, 30
      Build Tools: 28.0.3, 29.0.2, 30.0.3, 31.0.0
      System Images: android-30 | Google APIs Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 4.1 AI-201.8743.12.41.6953283
    Xcode: 12.4/12D4e - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.10 - /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.1 => 17.0.1 
    react-native: 0.64.1 => 0.64.1 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found
```

## Steps To Reproduce
- Create text input with placeholder string that does not wrap with default font, but does wrap with custom font.
- Second line will not be visible.
## Expected Results
Placeholder should adjust height according to its font.

## Snack, code example, screenshot, or link to a repository:
https://snack.expo.io/@computerjazz/textinput-android-bug

expected behavior (in this case placeholder text is long enough that it ALSO would wrap using default font)
![Screen Shot 2021-05-18 at 9 27 19 ](https://user-images.githubusercontent.com/6730148/118689050-7d118680-b7bb-11eb-9b8a-bb53a0b225d2.png)

actual behavior (placeholder text using "serif" font wraps to a 3rd line, but if it were to use the default font it would not wrap, and as a result placeholder gets cut off):
![Screen Shot 2021-05-18 at 9 22 40 ](https://user-images.githubusercontent.com/6730148/118689179-94507400-b7bb-11eb-8fbf-517a67fc4fa5.png)

For reference, here's the same text using default font, note that it does not wrap to a 3rd line:
![Screen Shot 2021-05-18 at 9 30 30 ](https://user-images.githubusercontent.com/6730148/118689397-ce217a80-b7bb-11eb-821f-1e799b29d269.png)
Repository: go
Issue: internal/fuzz: implement better prioritization algorithm in fuzzing engine
Labels: NeedsInvestigation,fuzz

Currently, every item in the corpus is equally likely to be mutated by the fuzzing engine. The coordinator loops through each item in the corpus sequentially, and passes each one to a worker to be mutated.

However, we should consider more heavily prioritizing interesting inputs that were more recently discovered, rather than giving them equal weight to older corpus entries. go-fuzz runs a "smash" which "gives some minimal attention to every new input." https://github.com/dvyukov/go-fuzz/blob/master/go-fuzz/worker.go#L444

(from @rolandshoemaker)
The go-fuzz implementation of this is essentially the deterministic fuzzing stage of AFL, described in section 6 of https://lcamtuf.coredump.cx/afl/technical_details.txt. It definitely seems like a good idea, but I think an implementation requires figuring out a way to return multiple new inputs from the fuzz function since there are likely to be >1 new interesting inputs discovered (another option could be to return some kind of signal in the fuzzResponse that the deterministic stage didn't finish, and an indication of where in the stage it should be restarted from, but that seems overly complicated).
Repository: youtube-dl
Issue: Request for a new site: means.tv
Labels: site-support-request

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->


## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2021.05.16. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that site you are requesting is not dedicated to copyright infringement, see https://yt-dl.org/copyright-infringement. youtube-dl does not support such sites. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
- Search the bugtracker for similar site support requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->

- [x] I'm reporting a new site support request
- [x] I've verified that I'm running youtube-dl version **2021.05.16**
- [x] I've checked that all provided URLs are alive and playable in a browser
- [x] I've checked that none of provided URLs violate any copyrights
- [x] I've searched the bugtracker for similar site support requests including closed ones


## Example URLs

<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->

- Single video: https://means.tv/programs/preservingworlds?cid=1699447
- Single video: https://means.tv/programs/arthousepolitics?categoryId=20473
- Playlist: https://means.tv/programs/preservingworlds


## Description

[Means.tv](https://means.tv) is "the world's first worker owned streaming service", and hosts a number of independent movies and shows. Some of its content is free, other content requires a user to be logged in and to have a paid subscription. A user can be logged in but have an inactive subscription, in which case the content will still be unavailable.
Repository: opencv
Issue: Fundamental matrix code is fragile and thoughts for improvement
Labels: category: calib3d,RFC

<!--
If you have a question rather than reporting a bug please go to https://forum.opencv.org where you get much faster responses.
If you need further assistance please read [How To Contribute](https://github.com/opencv/opencv/wiki/How_to_contribute).

This is a template helping you to create an issue which can be processed as quickly as possible. This is the bug reporting section for the OpenCV library.
-->

##### System information (version)
- OpenCV = 3.2
- Operating System / Platform => Linux 64 bit
- Compiler = GCC

##### Detailed description

I found out that with certain input interest points, the fundamental matrix output by OpenCV is wrong.  I used a set with many hundreds of interest points, and with both RANSAC and the LMEDS outlier removal option with various outlier thresholds. It was consistently giving the wrong results.

Wiggling those interest points by adding random noise made it give the right result, but that is not a good solution.

This appears to be a long-standing problem, described in the documentation at:

https://docs.opencv.org/master/da/de9/tutorial_py_epipolar_geometry.html

and with no good solution there. 

The solution which worked for me was based on the following observation. If the fundamental matrix is found correctly using given interest points, and the two images are rectified using that matrix, for example using stereoRectifyUncalibrated(), then the y component of the disparity between the rectified images must be close to 0. That is the same as saying that if the rectification matrices are applied to the interest points, each pair of transformed interest points must have the y difference very close to 0.

Based on this, I implemented a RANSAC algorithm for finding the fundamental matrix where the error metric is precisely the above. If the fundamental matrix is F, and the rectification matrices are H1 and H2, then for given interest point matches P1 and P2, the error is abs( (H1*P1).y - (H2*P2).y ).

The existing code in the OpenCV repository uses RANSAC too, but I think its error metric is not as good. I found the code here:

https://github.com/opencv/opencv/blob/68d15fc62edad980f1ffa15ee478438335f39cc3/modules/calib3d/src/fundam.cpp#L796

It seems to encode the fundamental matrix property m1 * F * m2 = 0, where m1 and m2 are the interest points, and I think this is not robust enough. 

Any thoughts?
Repository: create-react-app
Issue: Cannot compile code using abstract construct signatures (typescript 4.2)
Labels: stale

`react-scripts` with the `cra-template-typescript` does not seem to support some features of typescript 4.2. Specifically I get an error when using [abstract construct signatures](https://devblogs.microsoft.com/typescript/announcing-typescript-4-2/#abstract-construct-signatures).

Does `react-scripts` just not support typescript 4.2 yet? 

# Reproduce

1. `yarn create react-app ts42test --template typescript`
2. Change typescript version in `package.json` to `^4.2.4`
3. Add `type Constructor<T = {}> = abstract new (...args: any[]) => T;` somewhere
4. `yarn start`

```
./src/App.tsx
SyntaxError: /ts42test/src/App.tsx: Missing semicolon (5:35)

  3 | import './App.css';
  4 |
> 5 | type Constructor<T = {}> = abstract new (...args: any[]) => T;
    |                                    ^
  6 |
  7 | function App() {
  8 |   return (
```
Repository: create-react-app
Issue: npm start throws ELIFECYCLE error with error code 1 when run in Windows while node is working fine
Labels: stale,needs triage,issue: bug report


C:\Users\Vineet\Desktop\sam\sam>npm start

> sam@0.1.0 start C:\Users\Vineet\Desktop\sam\sam
> react-scripts start

internal/fs/utils.js:312
    throw err;
    ^

Error: ENOENT: no such file or directory, lstat 'C:\Users\Vineet\AppData\Local\Temp;C:'
    at Object.realpathSync (fs.js:1796:7)
    at Object.<anonymous> (C:\Users\Vineet\Desktop\sam\sam\node_modules\temp-dir\index.js:9:13)
    at Module._compile (internal/modules/cjs/loader.js:1068:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
    at Module.load (internal/modules/cjs/loader.js:933:32)
    at Function.Module._load (internal/modules/cjs/loader.js:774:14)
    at Module.require (internal/modules/cjs/loader.js:957:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (C:\Users\Vineet\Desktop\sam\sam\node_modules\tempy\index.js:5:17)
    at Module._compile (internal/modules/cjs/loader.js:1068:30) {
  errno: -4058,
  syscall: 'lstat',
  code: 'ENOENT',
  path: 'C:\\Users\\Vineet\\AppData\\Local\\Temp;C:'
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sam@0.1.0 start: `react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sam@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Vineet\AppData\Roaming\npm-cache\_logs\2021-05-18T04_19_57_574Z-debug.log
Repository: pytorch
Issue: `set_per_process_memory_fraction()` does not ensure max used GPU memory below fraction
Labels: module: cuda,triaged

## Issue

`torch.cuda.set_per_process_memory_fraction(fraction)` doesn't result in a maximum used GPU memory at process level bounded by the indicated fraction (between 0 and 1).
For example, form nvidia-smi I know that the total available memory on a given GPU is GPU  10989 MB.
However, having called `torch.cuda.set_per_process_memory_fraction(fraction)`, I can observe in nvidia-smi a training instance using 6509 MB which is above 10989 * 0.5 = 5494.5 MB.
Is this expected?
Could it be a failure to take into account the CUDA context and/or other sources of GPU memory usage?

## To Reproduce

1. call `torch.cuda.set_per_process_memory_fraction(0.5)`
1. allocate tensors of increasing size
1. check used GPU memory via nvidia-smi (for accurate measurements)

## Expected behavior

The total amount of GPU memory at process level should always be below the requested fraction.
As the main (only?) use of this function is to share the same GPU across different train/inference processes, this condition needs to be respected to avoid OOM errors.

## Env
```
Linux 4.15.0-142-generic #146-Ubuntu SMP x86_64 GNU/Linux
Python 3.6.9
torch==1.8.1+cu101 (pip)
torchvision==0.9.1+cu101 (pip)
```

cc @ngimel
Repository: flutter
Issue: [deferred-components]Flutter Module don't support deferred-components
Labels: c: new feature,platform-android,engine,a: existing-apps,P3,team-android,triaged-android

In the Flutter Application project, I successfully used the new feature of deferred-components. But in the Flutter Module project, the following error appears when compiling：

```
build/android_deferred_components_setup_files/plugin/build.gradle (created)
build/android_deferred_components_setup_files/plugin/src/main/AndroidManifest.xml (created)
=================================================================================
                     Deferred components prebuild validation
=================================================================================
Newly generated android files:
  - deferred_components_module/build/android_deferred_components_setup_files/plugin/build.gradle
  - deferred_components_module/build/android_deferred_components_setup_files/plugin/src/main/AndroidManifest.xml
  - deferred_components_module/build/android_deferred_components_setup_files/app/src/main/res/values/strings.xml

The above files have been placed into `build/android_deferred_components_setup_files`,
a temporary directory. The files should be reviewed and moved into the project's
`android` directory.
---------------------------------------------------------------------------------

Setup verification can be skipped by passing the `--no-validate-deferred-components`
flag, however, doing so may put your app at risk of not functioning even if the
build is successful.
=================================================================================
Setup for deferred components incomplete. See recommended actions.
```

It seems that Flutter Module does not support deferred-components, and there are plans to support it in the future？

This's my version of Flutter: 

```
[✓] Flutter (Channel beta, 2.2.0-10.3.pre, on Mac OS X 10.13.6 17G14042 darwin-x64, locale zh-Hans-CN)
    • Flutter version 2.2.0-10.3.pre at /Users/qq/Downloads/flutter_macos_2.2.0-10.3.pre-beta
    • Framework revision 06e2fd6357 (10 days ago), 2021-05-08 11:28:22 -0700
    • Engine revision a123e75c60
    • Dart version 2.13.0 (build 2.13.0-211.14.beta)
```
Repository: go
Issue: cmd/go: PKG_CONFIG var misparsed when containing spaces
Labels: NeedsInvestigation

<!--
Please answer these questions before submitting your issue. Thanks!
For questions please use one of our forums: https://github.com/golang/go/wiki/Questions
-->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.16.4 windows/amd64
</pre>

### Does this issue reproduce with the latest release?
Yes


### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=%USERPROFILE%\AppData\Local\go-build
set GOENV=%USERPROFILE%\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=%USERPROFILE%\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=%USERPROFILE%\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\Program Files\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=C:\Program Files\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.16.4
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=%USERPROFILE%\AppData\Local\Temp\go-build1383865701=/tmp/go-build -gno-record-gcc-switches
</pre></details>

### What did you do?

<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
-->
While testing whether it would be possible to do
`PKG_CONFIG="go run test.com config" go run .`

I noticed that the var is passed through `strings.Fields`
https://github.com/golang/go/blob/4df662fb373480b5055e645120558bb536fae42c/src/cmd/go/internal/work/exec.go#L1375
https://github.com/golang/go/blob/4df662fb373480b5055e645120558bb536fae42c/src/cmd/go/internal/work/exec.go#L2654-L2660

Even if the use case of `PKG_CONFIG="go run test.com config"` isn't supposed to work, the code will break if the dir to pkg-config contains spaces
## What did you expect to see?
successful build


### What did you see instead?
```
flag provided but not defined: -cflags
Go is a tool for managing Go source code.
<insert go help text>
```

Issue is related to #41400 but creating a new issue as it is a different var.