sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Pull upstream cmake's change in FindCUDA/select_compute_arch
Labels: module: build,module: cuda,triaged

pull https://gitlab.kitware.com/cmake/cmake/-/merge_requests/5719 to https://github.com/pytorch/pytorch/blob/master/cmake/Modules_CUDA_fix/upstream/FindCUDA/select_compute_arch.cmake

cc @malfet @seemethere @walterddr @ngimel
Repository: godot
Issue: Exported values are reset to defaults once a script runs into error when using _get_property_list()
Labels: bug,topic:gdscript,confirmed

**Godot version:3.2.3**

**OS/device including version:**
Windows 10

**Issue description:**
If you use _get_property_list() to set a variable (say an int with default value 10) and set the value to 2 in the inspector, the moment the script produces an error the value in inspector will be reset to 10 instead of remaining at 2.

**Steps to reproduce:**
Create a node and a new script. Add tool to the top and the _get_property_list() function with the following code:
```
int test_int : int = 5
func _get_property_list() -> Array:
	var result = []
	result.append({
		name = "test_int",
		type = TYPE_INT
	})
	return result
```

set test_int to any value in the inspector apart from the default. Cause an error in the script (add s to results for example). Save the script. Solve the error and save again. The value is now 5 in inspector.
Repository: go
Issue: Gerrit: self-review restriction is unintuitive when cherry-picking
Labels: NeedsInvestigation

When cherry-picking someone else's change and creating a CL (i.e. https://go-review.googlesource.com/c/go/+/284779/1) the imposed self-review restriction is somewhat confusing. In this case the author of the commit is able to +2 the change, but the owner who uploaded it is it.

This seems reversed, the "owner" did not actually author the commit so they aren't self-reviewing, whereas the "author" did. I think it would make more sense if the owner was able to +2, but the author was not. The person who uploads the CL still needs to get a Trust+1 before they can submit the change, so they would still be prevented from submitting something without any oversight.
Repository: pytorch
Issue: Dataloader Prefetch data to GPU by cudaMemPrefetchAsync
Labels: module: dataloader,triaged,enhancement

There is a way to prefetch data between cpu and gpu by [cudaMemAdvise and  cudaMemPrefetchAsync](https://developer.nvidia.com/blog/beyond-gpu-memory-limits-unified-memory-pascal/). I am wondering that is this has been intergrated in to dataloader. I found a flag prefetch_factor in dataloader constructor, not sure if it is the one. If not, how can I integrated it?



cc @SsnL @VitalyFedyunin @ejguan
Repository: vscode
Issue: Custom dialog should have max height
Labels: bug,confirmed,dialogs

Settings:
```js
"window.dialogStyle": "custom",
```

Extension code:
```ts
vscode.window.showInformationMessage('aaaaa\n'.repeat(100), { modal: true });
```

![Screenshot (425)](https://user-images.githubusercontent.com/9638156/105227305-2fb93b80-5b72-11eb-983b-9ee536e007a6.png)
---

It should behave like a native modal (having a scrollbar to be able to see all the text and buttons).
Repository: flutter
Issue: App throws LateInitializationError when re-focusing text field
Labels: a: text input,c: crash,framework,a: null-safety,P2,team-framework,triaged-framework

<details>
  <summary>Sample App</summary>

```dart
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Sample',
      home: Scaffold(
        body: Center(
          child: TextField(),
        ),
      ),
    );
  }
}
```
</details>

Steps to repro:
1. Run the sample app


2. Focus the text field by tapping on it.
3. Press <kbd>R</kbd> to hot restart the app. The software keyboard stays.
4. Type a few characters using the software keyboard without re-focusing the text field.
5. Focus the text field. The app throws the following exception:

```
Performing hot restart...                                               
Restarted application in 849ms.

══╡ EXCEPTION CAUGHT BY FOUNDATION LIBRARY ╞════════════════════════════════════════════════════════
The following LateError was thrown while dispatching notifications for FocusNode:
LateInitializationError: Field '_instance@393206165' has been assigned during initialization.

When the exception was thrown, this was the stack:
#0      TextInput._instance (package:flutter/src/services/text_input.dart)
#1      TextInput.attach (package:flutter/src/services/text_input.dart:1348:5)
#2      EditableTextState._openInputConnection (package:flutter/src/widgets/editable_text.dart:2014:21)
#3      EditableTextState._openOrCloseInputConnectionIfNeeded (package:flutter/src/widgets/editable_text.dart:2049:7)
#4      EditableTextState._handleFocusChanged (package:flutter/src/widgets/editable_text.dart:2386:5)
#5      ChangeNotifier.notifyListeners (package:flutter/src/foundation/change_notifier.dart:243:25)
#6      FocusNode._notify (package:flutter/src/widgets/focus_manager.dart:1052:5)
#7      FocusManager._applyFocusChange (package:flutter/src/widgets/focus_manager.dart:1771:12)
(elided 10 frames from dart:async)

The FocusNode sending notification was:
  FocusNode#1b534([PRIMARY FOCUS])
════════════════════════════════════════════════════════════════════════════════════════════════════
```
Repository: pytorch
Issue: Precision of scalars is lost in script mode for binary operations with tensors
Labels: oncall: jit

## 🐛 Bug

Scalars are double precision in Python. For binary operations involving a scalar and a tensor, script behavior diverges from eager.

## To Reproduce

```
import torch

def fn(eta: float):
  return 1 - torch.tensor(1 - eta, dtype=torch.double)

fn_script = torch.jit.script(fn)
eta = 1e-9
torch.set_default_tensor_type(torch.FloatTensor) # make sure the bug is triggered
assert torch.allclose(fn(eta), fn_script(eta), atol=1e-10)
```

## Expected behavior

Script mode should return the same result as eager.

## Environment

PyTorch version: 1.8.0a0+e9b369c
Is debug build: True
CUDA used to build PyTorch: 10.2
ROCM used to build PyTorch: N/A

OS: Ubuntu 20.10 (x86_64)
GCC version: (Ubuntu 10.2.0-13ubuntu1) 10.2.0
Clang version: Could not collect
CMake version: version 3.14.0

Python version: 3.7 (64-bit runtime)
Is CUDA available: True
CUDA runtime version: 10.2.89
GPU models and configuration: GPU 0: GeForce GTX 1060 6GB
Nvidia driver version: 450.102.04
cuDNN version: /usr/local/cuda-10.2/targets/x86_64-linux/lib/libcudnn.so.7
HIP runtime version: N/A
MIOpen runtime version: N/A

## Additional context

I've investigated this quite a bit and the problem is we canonicalize the scalar operator to a tensor before calling the binary operator (in this case `sub`), using `c10::get_default_dtype()` as the dtype. If the default dtype is `float32`, this loses the precision of the scalar, which is always double and not controlled by the default dtype for tensors.


cc @gmagogsfm
Repository: flutter
Issue: PlatformException docs need filling out
Labels: framework,d: api docs,P3,a: plugins,team-framework,triaged-framework

Our API docs for `PlatformException` are lacking in detail. Some questions we should answer (and things to fix):

* How do you determine the error `code`?
* What kind of `details` are you expected to provide? 
* Why can the message and stack trace be null? When is it ok to make them null?
* The docs for `stacktrace` have a code snippet that isn't marked with backticks.
* The grammar on the three "See also" lines needs fixing (remove the second comma in each case).
* Generally more detail and examples would be nice.
Repository: godot
Issue: VehicleWheel sinks into other colliders
Labels: bug,confirmed,topic:physics,topic:3d

**Godot version:**
3.2.3-stable


**OS/device including version:**
Linux


**Issue description:**
Anytime I use VehicleWheel, it sinks into the ground as seen here:
![image](https://user-images.githubusercontent.com/8739690/105231559-5e7de480-5b67-11eb-80cd-501eb6f260f9.png)

The wheel is made to fit the mesh like so:
![image](https://user-images.githubusercontent.com/8739690/105231698-8e2cec80-5b67-11eb-994c-5f196efb7953.png)


**Steps to reproduce:**
1. Start Godot's truck town demo
2. Select the truck to drive
3. Observe it sink into the ground


**Minimal reproduction project:**
Truck town has it all over:
https://github.com/godotengine/godot-demo-projects/tree/master/3d/truck_town
Repository: flutter
Issue: CupertinoSlidingSegmentedControl's thumb animation should skip the first frame when it diverts
Labels: framework,a: animation,f: cupertino,P3,team-design,triaged-design

Corresponds to a `TODO` item added in https://github.com/flutter/flutter/pull/73772:

Currently when the user drags the thumb to a different segment, the corresponding animation controller calls `animateWith` with the same spring simulation:

https://github.com/flutter/flutter/blob/9166dd2f67fd706790fe268d703b0eb442e1cbd7/packages/flutter/lib/src/cupertino/sliding_segmented_control.dart#L529-L540

and the corresponding `RectTween` will be updated in the `paint` call:

https://github.com/flutter/flutter/blob/9166dd2f67fd706790fe268d703b0eb442e1cbd7/packages/flutter/lib/src/cupertino/sliding_segmented_control.dart#L1025-L1028

As a result the first frame of the new animation will have exactly the same thumb location as the last frame of the previous animation. Ideally the new animation should not reset the ticker's `_startTime` by calling `stop`.
Repository: rust
Issue: Unexpected compiler error when building std for custom Windows target
Labels: A-target-specs,C-bug

When building the standard library for a custom Windows target I get unexpected compiler errors. The errors appear when compiling  the `compiler_builtins` crate. When looking into `compiler_builtins` there is [a cfg](https://github.com/rust-lang/compiler-builtins/blob/63ccaf11f08fb5d0b39cc33884c5a1a63f547ace/src/probestack.rs#L46) to prevent the file at fault from compiling on Windows platforms. As far as my knowledge goes this cfg directive should work as long as the `target_family` is Windows, which is set to inside of the target json. When my target is set to `x86_64-pc-windows-msvc` everything compiles fine.

### Meta
```
Rustc: 1.49.0
Compiling: stable branch
```


<details><summary>Backtrace</summary>
<p>

```
error: unknown directive
            .pushsection .text.__rust_probestack
            ^
error: expected absolute expression
            .type  __rust_probestack, @function
                   ^
error: unknown directive
            .hidden __rust_probestack
            ^
error: unknown directive
            .size __rust_probestack, . - __rust_probestack
            ^
error: unknown directive
            .popsection
            ^
error: unknown directive
            .pushsection .text.__rust_probestack
            ^
error: expected absolute expression
            .type  __rust_probestack, @function
                   ^
error: unknown directive
            .hidden __rust_probestack
            ^
error: unknown directive
            .size __rust_probestack, . - __rust_probestack
            ^
error: unknown directive
            .popsection
            ^
error: unknown directive
  |
note: instantiated into assembly here
 --> <inline asm>:2:13
  |
2 |             .pushsection .text.__rust_probestack
  |             ^

error: expected absolute expression
  |
note: instantiated into assembly here
 --> <inline asm>:4:20
  |
4 |             .type  __rust_probestack, @function
  |                    ^

error: unknown directive
  |
note: instantiated into assembly here
 --> <inline asm>:5:13
  |
5 |             .hidden __rust_probestack
  |             ^

error: unknown directive
   |
note: instantiated into assembly here
  --> <inline asm>:57:13
   |
57 |             .size __rust_probestack, . - __rust_probestack
   |             ^

error: unknown directive
   |
note: instantiated into assembly here
  --> <inline asm>:58:13
   |
58 |             .popsection
   |             ^

error: aborting due to 5 previous errors

error: could not compile `compiler_builtins`
```

</p>
</details>
Repository: go
Issue: x/website/content/static/doc: install.html doesn't show darwin-arm64.pkg installer to Apple silicon users
Labels: OS-Darwin,NeedsInvestigation,arch-arm64

When visiting https://golang.org/doc/install on an Apple silicon Mac (tested on Safari and Chrome), that page displays only the darwin-amd64.pkg installer, not darwin-arm64.pkg one:

![image](https://user-images.githubusercontent.com/1924134/105251759-17352b00-5b4a-11eb-85c2-81545dd036ca.png)

It should either show both, or if possible to tell the two macOS architectures apart, perhaps only the right one.

CC @golang/release, @stevetraut, @julieqiu.
Repository: pytorch
Issue: [TorchScript Performance Deep-dive] problems discovered in TS performance deep-dive
Labels: module: performance,triaged

## 📚 TorchScript Performance Deep-dive

This issue serves as an umbrella for all issues to be discovered during the TorchScript performance deep-dive. The purpose is to create a trail of the kind of problems discovered in a data-driven performance analysis, regardless of whether a solution is insight or not. It may contain sub-issues or just briefly describe the problems observed. 

We will go through all the issues together at the end of the deep-dive to prioritize fixes (if not already fixed) and to observe patterns. We also hope this documentary of a deep-dive in process can shed some lights on our methodology towards better performance.

### Identified problems w/o specific issues

### Identified problems w/ issues opened



cc @VitalyFedyunin @ngimel @gmagogsfm
Repository: go
Issue: x/tools/gopls: some build errors aren't reported
Labels: gopls,Tools

go version: go1.16beta1
gopls version: v0.6.4

### how to repro

```
$ tree
.
├── [id].go
├── go.mod
└── lib
    └── a
        └── a.go

2 directories, 3 files

$ cat go.mod
module work

go 1.15

$ cat [id].go
package main

import "work/lib/a"

func main() {
	println(a.V)
}

$ cat lib/a/a.go
package a

var V = "Searching all the dark corners for every foot gun we can get our tentacles on..."

```

The go command is unhappy about the file name `[id].go`
```
$ go build
package work: invalid input file name "[id].go"
``` 
### What I expected to see
gopls detects the problem and reports it as diagnostic message.

### What I saw instead
gopls doesn't report any error.

Things get more confusing if we rename the `lib` directory to `_lib` directory.
Now `gopls` reports a compiler error, but that's not about the file name.
![Screen Shot 2021-01-20 at 6 26 47 PM](https://user-images.githubusercontent.com/4999471/105253232-1651c880-5b4d-11eb-9311-c156a581d5a6.png)

Finally, if I fixed the file name - rename `[id].go` to `id.go` (but kept using `_lib` directory) , the error message disappear and `go build` also succeeds.
Repository: flutter
Issue: Add images to docs for how TileMode affects blur filters
Labels: framework,d: api docs,P2,team-framework,triaged-framework

Currently the TileMode docs include images for how the various modes affect linear and radial gradients, but the ImageFilter.blur class now also offers TileMode handling. The sample images showing how the TileMode affects the blur filters should be added to help developers choose the right mode.
Repository: flutter
Issue: Enable logging for fuchsia input events
Labels: customer: fuchsia,engine,platform-fuchsia,c: proposal,P3,team-engine,triaged-engine

## Use case

When input events are dispatched to Flutter on fuchsia, it's not always clear that Flutter has received these events, or what these events are.

## Proposal

Instrument the fuchsia.ui.scenic.SessionListener's event handler to print out what input events it has seen, up to N. Default is 0 statements, but configurable to an arbitrary uint32 value in a config file.
Repository: youtube-dl
Issue: Support rendering JS before attempting to extract.
Labels: request

## Checklist

- [x] I'm reporting a feature request
- [x] I've verified that I'm running youtube-dl version **2021.01.16**
- [x] I've searched the bugtracker for similar feature requests including closed ones


## Description

Vimeo extractor for embedded pages needs to be called from the page embedding it. Problem is, ydl doesn't render JS, and the page makes the video appear only after rendering the jQuery:
```
<script type="text/javascript">

	jQuery(document).ready(function() {
		var video_target = 'https://maailmakool.ee/?download_file=16572&order=wc_order_AY21DpMoz3a9Y&email=tiia%40akg.vil.ee&key=0cad466f2e85701a945cf80f43b2f085';
		jQuery.ajax({
			url: video_target,
			success: function(result) {
				if (typeof(result.video_redirect) != 'undefined') {
					window.location.href = result.video_redirect;
				} else {
					jQuery('iframe#video_iframe').attr('src', 'https://player.vimeo.com/video/' + result.video_id + '?texttrack=et');
				}
			}, complete: function(result) {
				if (typeof(result.responseJSON) != 'undefined' && result.responseJSON) {
					if (typeof(result.responseJSON.code) != 'undefined' && result.responseJSON.code == 'wp_die') {
						jQuery('#video_iframe').remove();
						jQuery('#video_title').replaceWith(result.responseJSON.message);
					}
				} else {
					window.location.href = mk_embedder.root;
				}
			}, dataType: 'json'
		});
	});

	</script>
	<iframe id="video_iframe" width="1080" height="608" frameborder="0" allow="fullscreen" allowfullscreen></iframe>
```

A workaround could only be implemented for Vimeo, but I'd say that implementing this feature would possibly fix (in the future) many other extractors, simply by rendering JS.
Repository: pytorch
Issue: Segmentation Fault when importing torch on macOS Big Sur
Labels: high priority,needs reproduction,module: binaries,triaged,module: macos,module: openmp

## 🐛 Bug

Torch errors out with a segmentation fault when imported on macOS Big Sur.

## To Reproduce

Steps to reproduce the behavior:

```
> python3
Python 3.8.7 (default, Dec 30 2020, 10:14:55)
[Clang 12.0.0 (clang-1200.0.32.28)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
[1]    9776 segmentation fault  python3
```

## Expected behavior

Should not seg fault...

## Environment

```
PyTorch version: N/A
Is debug build: N/A
CUDA used to build PyTorch: N/A
ROCM used to build PyTorch: N/A

OS: macOS 11.1 (x86_64)
GCC version: Could not collect
Clang version: 12.0.0 (clang-1200.0.32.28)
CMake version: version 3.19.1

Python version: 3.8 (64-bit runtime)
Is CUDA available: N/A
CUDA runtime version: Could not collect
GPU models and configuration: Could not collect
Nvidia driver version: Could not collect
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A

Versions of relevant libraries:
[pip3] numpy==1.19.4
[pip3] torch==1.7.1
[pip3] torchaudio==0.7.2
[pip3] torchvision==0.8.2
[conda] Could not collect
```

cc @ezyang @gchanan @zou3519 @bdhirsh @jbschlosser @seemethere @malfet @walterddr
Repository: godot
Issue: error when exporting "Embed Pck" with custom build of godot
Labels: bug,platform:linuxbsd,topic:porting

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
<!-- Specify commit hash if using non-official build. -->
&emsp;&emsp;v3.2.3.stable.custom_build


**OS/device including version:**
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->
&emsp;&emsp;intel nuc8i3bek
&emsp;&emsp;centos 8 stream
&emsp;&emsp;GLES2


**Issue description:**
&emsp;&emsp;Error window popup showing:
&emsp;&emsp;&emsp;&emsp;Failed to export the project for platform 'Linux/X11'.
&emsp;&emsp;&emsp;&emsp;This might be due to a configuration issue in the export preset or your export settings.
&emsp;&emsp;And editor Output showing:
&emsp;&emsp;&emsp;&emsp;editor/project_export.cpp:984 - Failed to export the project for platform 'Linux/X11'.

**&emsp;&emsp;I did not modify any engine source code beside adding a "hello world" custom module.
&emsp;&emsp;Beside the error popup, the exported result seen to be working fine for now
&emsp;&emsp;When I uncheck the box "Embed Pck" in the Export window, there is no more error popup.**

&emsp;&emsp;custom build godot editor with scons command:
&emsp;&emsp;&emsp;&emsp;scons bits=64 -j4 custom_modules="/path/to/my/module" target=debug platform=x11 tools=yes
&emsp;&emsp;custom build export template with scons command:
&emsp;&emsp;&emsp;&emsp;scons bits=64 -j4 custom_modules="/path/to/my/module" target=debug platform=x11 tools=no
Repository: flutter
Issue: [Platform View Hybrid Composition] abnormal display
Labels: platform-android,engine,a: video,a: platform-views,c: rendering,has reproducible steps,P2,team-android,triaged-android,found in release: 3.19,found in release: 3.21

I found 2 problems when I use Platform View Hybrid Composition.

1. The native view can not fill the screen, and there is a little edge on the left and bottom.
2. If I use router to jump flutter page to platfrom view, android 7.1(Android 10 below) can not play the video properly. When you change the orientation of the screen, it shows part of it. (The problem of SurfaceView)

check the demo and you will see:
https://github.com/gzjaychen/PlatformViewBug

<details>
<summary>
flutter doctor -v
</summary>

```
[✓] Flutter (Channel stable, 1.22.4, on Mac OS X 10.15.6 19G2021 darwin-x64,
    locale zh-Hans-CN)
    • Flutter version 1.22.4 at
      /Users/chenjiangfeng/.terra/caches/sdk/v1.22.4-stable/flutter
    • Framework revision 1aafb3a8b9 (10 weeks ago), 2020-11-13 09:59:28 -0800
    • Engine revision 2c956a31c0
    • Dart version 2.10.4


[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/chenjiangfeng/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /Users/chenjiangfeng/Library/Android/sdk
    • Java binary at: /Applications/Android Studio
      4.1.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.2, Build version 12B45b
    • CocoaPods version 1.9.3

[!] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio 4.1.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)

[!] IntelliJ IDEA Community Edition (version 2020.2.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.dev/intellij-setup/#installing-the-plugins

[✓] VS Code (version 1.52.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.18.1

[✓] Connected device (2 available)
    • MI 8 (mobile)    • 76981e2b   • android-arm64 • Android 10 (API 29)
    • Nexus 6 (mobile) • ZX1G22H8HM • android-arm   • Android 7.1.1 (API 25)

! Doctor found issues in 2 categories.
```

</details>