sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Bug in ForkingPickler for multiprocessing spawn context for shared storages on Linux
Labels: module: multiprocessing,triaged

Hello!

This code 

```python
import torch
import multiprocessing


def _mp_foo(*args, **kwargs):
    pass


if __name__ == '__main__':
    ctx = multiprocessing.get_context("spawn")

    t = torch.randn(100)
    t1 = t.narrow(0, 0, 10)
    t2 = t.narrow(0, 0, 10)
    t3 = t.narrow(0, 10, 20)

    p = ctx.Process(
        target=_mp_foo,
        args=(t1, t2, t3),
        daemon=True
    )
    p.start()
    p.join()
```

Ends up with

```
Traceback (most recent call last):
  File "spawn_dup.py", line 22, in <module>
    p.start()
  File "/home/alxmopo3ov/anaconda3/lib/python3.7/multiprocessing/process.py", line 112, in start
    self._popen = self._Popen(self)
  File "/home/alxmopo3ov/anaconda3/lib/python3.7/multiprocessing/context.py", line 284, in _Popen
    return Popen(process_obj)
  File "/home/alxmopo3ov/anaconda3/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 32, in __init__
    super().__init__(process_obj)
  File "/home/alxmopo3ov/anaconda3/lib/python3.7/multiprocessing/popen_fork.py", line 20, in __init__
    self._launch(process_obj)
  File "/home/alxmopo3ov/anaconda3/lib/python3.7/multiprocessing/popen_spawn_posix.py", line 58, in _launch
    cmd, self._fds)
  File "/home/alxmopo3ov/anaconda3/lib/python3.7/multiprocessing/util.py", line 420, in spawnv_passfds
    False, False, None)
ValueError: bad value(s) in fds_to_keep
```

I have not completely investigated the problem, but looks like that issue in ForkingPickler.

When spawning new process, forking pickler for tensors sends several file descriptors for shared tensors. Here https://github.com/google/python-subprocess32/blob/master/_posixsubprocess.c#L129 CPython checks that file descriptors list does not have duplicates.

If we insert prints here https://github.com/python/cpython/blob/master/Lib/multiprocessing/popen_spawn_posix.py#L47 
before and after reduction.dump (which is actually call for ForkingPickler), for this script, you will see this ends up using three identical ids, which corresponds to the same storage of three passed tensors. 

System:
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 14.04.6 LTS
Release:	14.04
Codename:	trusty

I have not read the tensors reduction code yet, but I guess this issue should not be hard to fix
Repository: TypeScript
Issue: Undetected unreachable code
Labels: Suggestion,In Discussion

These are obvious mistakes.

<!--
Please try to reproduce the issue with the latest published version. It may have already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly
-->
**TypeScript Version:**  3.7.x-dev.20191221

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:**

**Code**

```ts
declare const a: boolean;
(() => {
    if (a) return;
    if (a) {
        return; // Unreachable
    }
});
while (1) {
    if (a) break;
    if (a) {
        break; // Unreachable
    }
}
```

**Expected behavior:**
Detect unreachable code.
**Actual behavior:**
not detected.
**Playground Link:** http://www.typescriptlang.org/play/index.html?ts=3.8.0-dev.20191221#code/CYUwxgNghgTiAEYD2A7AzgF3lAXPARkkhCFCgNwCwAUABS0CU8AvAHzwDeN8P8AlgDN4tKEzgYArjArdeg4aM6zevcVIrwA9JvgBVFHChgAFlHwll8AL40rDKtQDuxviWEBGJl2or5IpviGANYOvkL+Sj4qvIGkIVo6+oYmZhZRPDbUVkA

**Related Issues:** <!-- Did you find other bugs that looked similar? -->
Repository: youtube-dl
Issue: subtitles urls only listed when used with "writesubtitles" in extract_info()
Labels: question

## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- Look through the README (http://yt-dl.org/readme) and FAQ (http://yt-dl.org/faq) for similar questions
- Search the bugtracker for similar questions: http://yt-dl.org/search-issues
- Finally, put x into all relevant boxes (like this [x])
-->

- [x] I'm asking a question
- [x] I've looked through the README and FAQ for similar questions
- [x] I've searched the bugtracker for similar questions including closed ones


## Question

I try to gather only subtitles information from youtube videos and therefore use `skip download` in my YoutubeDL instance. I only need the links to the vtt Subtitles of the Youtube Videos but those will just get attached to the result dict if I also use `writesubtitles`.

Is there a way to get the subtitle links without having to download the subtitles as file?
Repository: flutter
Issue: flutter assembly fails if the project path contains ! (exclamation mark) 
Labels: c: regression,tool,platform-windows,P2,team-tool,triaged-tool

flutter assemble (and hence - build and everything) fails if the project path includes a ! character (an exclamation mark). It raises error:
```
--output directory is required for assemble.
```
Discovered today (rather painfully), after an upgrade to 1.12.

## Steps to Reproduce

<!-- Please tell us exactly how to reproduce the problem you are running into. -->

1. Create or open a project from a path containing an exclamation mark.
2. Run 'flutter build apk' 

## Logs

<!--
      Include the full logs of the commands you are running between the lines
      with the backticks below. If you are running any "flutter" commands,
      please include the output of running them with "--verbose"; for example,
      the output of running "flutter --verbose create foo".
-->

```
C:\Users\<cut>\Documents\test-new-version>flutter build apk --debug
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done                        48.6s
√ Built build\app\outputs\apk\debug\app-debug.apk.

C:\Users\<cut>\Documents\test-new-version>cd..
// here changing the dir name to include ! 
C:\Users\<cut>\Documents>cd "!test-new-version"

C:\Users\<cut>\Documents\!test-new-version>flutter build apk --debug
--output directory is required for assemble.

FAILURE: Build failed with an exception.

* Where:
Script 'C:\Software\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 780

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\Software\flutter\bin\flutter.bat'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 11s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done                        12.5s
Gradle task assembleDebug failed with exit code 1

C:\Users\<cut>\Documents\!test-new-version>
```

<!-- If possible, paste the output of running `flutter doctor -v` here. -->

```
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.12.13+hotfix.5, on Microsoft Windows [Version 10.0.18362.535], locale en-US)

[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses
[√] Android Studio (version 3.5)
[√] VS Code, 64-bit edition (version 1.41.0)
[!] Connected device
    ! No devices available

```
Repository: tauri
Issue: Tracking : accessibility (a11y)
Labels: type: documentation,type: feature request

Hi, pretty new here, but as a discussion where ongoing on the project Discord, doing a tracking issue for this seemed like a good idea (Disclaimer : I'm not an accessibility expert at all, let alone a Tauri one, so suggestions are highly encouraged)

Accessibility is something very important, it allows people with vision problems and movement difficulties to use our application.

Electron cover this issue by using Chromium, that since it's a fully featured web browser, already have accessibility feature built-in.

Tauri, on the other side, use many system independent webviews, we must make sure to exploit all their built-in accessibility features, and if possible.

While Tauri can't force everyone into doing accessible application, we must make sure that many point are covered by it :

- Make sure screen readers have access to the website content. Aka being able to read it like a website.
- Make sure others inputs aren't overridden by Tauri, like arrows, tabs, shift + tabs, so navigation on websites can be possible.
Repository: godot
Issue: BUTTON_MASK_MIDDLE and BUTTON_WHEEL_UP both have a value of 4
Labels: discussion,topic:input

**Godot version:**
3.1.2-mono

**OS/device including version:**
Windows 10 LTSC Version 1809 and Manjaro Linux

**Issue description:**
I'm not sure if it's intentional but BUTTON_MASK_MIDDLE and BUTTON_WHEEL_UP in the ButtonList enum both have a value of 4.
BUTTON_MIDDLE has a value of 3 so I would assume BUTTON_MASK_MIDDLE would have a value of 3

**Steps to reproduce:**
Put this C# code anywhere in your project
```cs
foreach (ButtonList item in Enum.GetValues(typeof(ButtonList)))
{
        GD.Print(Convert.ToInt32(item) + " = " + item);
        // Doesn't print WheelUp since it has the same value as MaskMiddle
}

GD.Print(ButtonList.WheelUp + " has a value of " + Convert.ToInt32(ButtonList.WheelUp));
// Should print "WheelUp has a value of 4"
// Prints "MaskMiddle has a value of 4"
```

**Minimal reproduction project:**
[Download from Google Drive](https://drive.google.com/file/d/1mwlu6gneU_b3qYeFnVFQy61HNGmmY3gu/view?usp=sharing)
Repository: pytorch
Issue: Option to apply weights to gradients when using DistributedDataParallel
Labels: oncall: distributed,feature,module: autograd,triaged,module: data parallel

## 🚀 Feature
I would like to propose that the API expose an option to weight the gradients during backpropagation in when using DistributedDataParallel.


## Motivation
Let’s say I have 4 GPUs and I am training a semantic segmentation network on a dataset with an ignore class. As I understand it, in the DataParallel setting, the outputs are aggregated on GPU0, the loss computed, and then the gradient is backpropagated back through each GPU’s model. In the DistributedDataParallel case, L0, L1, L2, L3 are each computed for each GPU’s share of the batch, the losses are backpropagated back through their respective GPU’s model, and the gradients are averaged along the way.

Using DataParallel, the presence of an ignore class makes no difference. Even if one GPU’s mini-batch has a lopsided amount of ignore pixels, the total loss is computed as the weighted average before any backprop occurs. However, what happens when you have a lopsided distribution of ignore pixels on one GPU using DistributedDataParallel? There does not seem to be any mechanism for weighting the average of the gradients; it seems that the averaging is unweighted. Yet in this case, L0, L1, L2, and L3 ought to have their contributions weighted by the ratio of valid pixels when averaging gradients during backpropagation.

## Pitch

I would like to see an optional field to `backward()` to provide weights for each backpropagation channel in DistributedDataParallel.

## Alternatives

Unclear what the alternatives are.


cc @ezyang @SsnL @albanD @zou3519 @gqchen @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @aazzolini @xush6528
Repository: flutter
Issue: Add ability to consume XML fonts <font-family> on Android
Labels: c: new feature,platform-android,engine,a: typography,P2,team-android,triaged-android

[XML fonts](https://developer.android.com/guide/topics/ui/look-and-feel/fonts-in-xml) allow Android apps not to bundle the font assets. Internally, apps use these to pull fonts out of play services.

Would it be possible to consume these from Flutter as well? This could significantly reduce the assets that need to be bundled with Flutter apps on Android.
Repository: ant-design
Issue: TreeSelect - TreeNode `selectable` false is same style as other one
Labels: Inactive

- [x] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### What problem does this feature solve?
Design should update:
https://codesandbox.io/s/r5ff9

### What does the proposed API look like?

N/A

ref: https://github.com/ant-design/ant-design/issues/20399#issuecomment-568638878

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: rust
Issue: illegal instruction on x86_64-linux-android since 1.40.0
Labels: I-crash,O-android,O-x86_64,P-medium,T-compiler,regression-from-stable-to-stable,C-bug

It looks like when running the tests on x86_64-linux-android through qemu (via cross) they seem to fail due to an illegal instruction since the Rust 1.40 release. This happens consistently. 

https://github.com/LiveSplit/livesplit-core/runs/362238400#step:8:141
Repository: pytorch
Issue: pytorch forward hangs in multiprocess environment
Labels: module: multiprocessing,triaged

## 🐛 Bug

<!-- A clear and concise description of what the bug is. -->
This a very peculiar bug I am encountering. I am using MTCNN face detector from https://github.com/TreB1eN/InsightFace_Pytorch/  on pytorch 1.3.1+cpu

The face detection works fine when API is called from __main__ thread. But if I forked a new process and initialized MTCNN as well as face detector model (MobileFaceNet), it hangs in first net forward call (in MTCNN). If load_state_dict for MobileFaceNet is commented out, again it works fine.

## To Reproduce

Steps to reproduce the behavior:

1. Clone https://github.com/TreB1eN/InsightFace_Pytorch/
2. Try following code
```
from mtcnn import MTCNN
from model import MobileFaceNet
import torch
from PIL import Image
from torch.multiprocessing import Process
import cv2
import time

# mtcnn = MTCNN()
myfacenet = MobileFaceNet(512)
facenet_dict = torch.load('./model_mobilefacenet.pth', map_location = torch.device('cpu'))
out = myfacenet.load_state_dict(facenet_dict)

def test():
    mtcnn = MTCNN()
    img = cv2.imread('29.png')
    img2 = Image.fromarray(img)
    print(mtcnn.align_multi(img2, 1, 100))

if __name__ == '__main__':
    p = Process(target=test)
    p.start()
    p.join()
```
3. If test function is called in __main__ thread, this code works fine.
4. If `out = myfacenet.load_state_dict(facenet_dict)` line is removed, again code works fine

<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->

## Environment
pkg | version
--- | ---
Python | 3.7.4
torch |                            1.3.1+cpu   (pip)
Pillow |                           5.4.1      
opencv-python |                    4.1.1.26   
OS | ubuntu 18.04, linux 4.15.0-72-generic
Repository: youtube-dl
Issue: Support request for app.myoutdoortv.com
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 2019.11.28. 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 **2019.11.28**
- [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 (Require paid account) : https://app.myoutdoortv.com/videos/1568998234677-ott-dreambucks-2018-02-romania
- Single video (Free) : https://app.myoutdoortv.com/fr/videos/1572370082204-ott-hvms-9022-redstags-01-brianbassesdreamcometrue

## Description

<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->

Some video are free and does not require any account, some other needs an account and require a need a subscription (a 7 day free trial exists)

Regards,
Repository: godot
Issue: Viewport sliders don't properly update size when dragged manually
Labels: bug,topic:editor,confirmed

**Godot version:**
3.2 beta4

**Issue description:**
When you pan viewport outside view, the slider will shrink, but it won't expand again when dragged manually, which later results in the grabber "teleporting" on zoom.
![pB6iT2rD7w](https://user-images.githubusercontent.com/2223172/71415356-83014780-265b-11ea-8af6-65bd63025afd.gif)

Here's how it works in GIMP:
![qcv50w28ZV](https://user-images.githubusercontent.com/2223172/71415361-898fbf00-265b-11ea-9549-aaa3a20f2d67.gif)
Repository: flutter
Issue: Need support for placeholder widget in FadeInImage
Labels: c: new feature,framework,a: images,c: proposal,P3,team-framework,triaged-framework

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill our the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## It would be good to show a placeholder widget like Flutter's CircularProgressIndicator when images are loading from the network.

Although FadeInImage does provide a placeholder ImageProvider, it only supports images/gifs. Placeholder images really don't make for good user experience. And making or finding a loading gif to fit the app design is a challenging task. Although there's a [hack](https://flutter.dev/docs/cookbook/images/fading-in-images#in-memory) mentioned on the official website. It doesn't work well in the case of images containing transparency.
<!--
     Please tell us the problem you are running into that led to you wanting
     a new feature.

     Is your feature request related to a problem? Please give a clear and
     concise description of what the problem is.

     Describe alternative solutions you've considered. Is there a package
     on pub.dev/flutter that already solves this?
-->

## If we could have an additional optional parameter of providing a placeholder widget, we could use widgets like CircularProgressIndicator or any other animated widget consistent with the design of the rest of the application, while the images are loading.

<!--
     Briefly but precisely describe what you would like Flutter to be able to do.

     Consider attaching images showing what you are imagining.

     Does this have to be provided by Flutter directly, or can it be provided
     by a package on pub.dev/flutter? If so, maybe consider implementing and
     publishing such a package rather than filing a bug.
-->
Repository: flutter
Issue: TextEditingController should have a keepValue field just like ScrollController has a keepScrollOffset value
Labels: c: new feature,framework,a: quality,P2,team-framework,triaged-framework
Repository: pytorch
Issue: Typo in `torch.utils.tensorboard.add_image`
Labels: oncall: visualization

## 📚 Documentation

In [`torch.utils.tensorboard.add_image`](https://pytorch.org/docs/stable/tensorboard.html#torch.utils.tensorboard.writer.SummaryWriter.add_image) there is a small typo:

> ... is also suitible as long as corresponding `dataformats` argument is passed. e.g. CHW, HWC, HW.

"suitible" should be "suitable"
Repository: pytorch
Issue: No auto-suggest capacity for Transformer
Labels: triaged,enhancement

## 🐛 Bug

1. I use Pycharm for my developing tools.
1. When I typed `from torch.nn import Trans`, I couldn't find the prompt for Transformer
1. Then I checked the source code in[torch.nn.modules.__init__.pyi.in](https://github.com/pytorch/pytorch/blob/master/torch/nn/modules/__init__.pyi.in) and cannot find the similiar code for Transformer
Repository: flutter
Issue: Duration and curve for FocusTraversalPolicy
Labels: framework,c: proposal,a: desktop,f: focus,P3,team-framework,triaged-framework

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill our the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Use case

I want to be able to set the duration and curve for animated scrolling to the focused element inside FocusTraversalPolicy.

## Proposal
Add duration and curves to ** FocusTraversalPolicy and pass this to the _focusAndEnsureVisible method
Repository: TypeScript
Issue: Optional chaining not working with void type
Labels: Bug

# Demo
## [playground demo](http://www.typescriptlang.org/play/?ts=3.8.0-dev.20191224#code/C4TwDgpgBAggJnAThAziqBeKBvAUFAqAYwEtQAuKFYREgOwHNcBfXXUSKAVRQkUxz5CACwD2AWwiV4SVOgA+UAK504EAGb0IcIQQDuoxAGtpCZGiiKAbqJI7WuNUQA2AQ2RRnEYMso8+bEoAdGKSAPxBpKC4wQbGEVEgbEA)

### TypeScript source with nightly version 3.8.0-dev.20191224
```ts
type Address = {
    city: string
}

type User = {
    home: Address | undefined
    work: Address | void
}

declare let u: User

u.home?.city
u.work?.city
```

### JavaScript output `the same for both "work" and "home" properties`
```js
"use strict";
var _a, _b;
(_a = u.work) === null || _a === void 0 ? void 0 : _a.city;
(_b = u.home) === null || _b === void 0 ? void 0 : _b.city;
```

# Bug

If you run the code above, you will see that for `u.home?.city` there are no errors.
But for `u.work?.city` there is an error:

## `Error: Property 'city' does not exist on type 'void | Address'`

# Expectation

## `Optional chaining works for both 'undefined' and 'void' types the same way.`