sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: godot
Issue: Button inside viewport not receiving input when Camera2D active
Labels: bug,topic:input,topic:2d

**Godot version:**
3.3


**OS/device including version:**
Ubuntu 20.04


**Issue description:**
Button placed inside a Viewport receive mouse clicks normally, but when a Camera2D is active (whether Viewport is a child of the camera or not) the clicks won't register with the button at all.


**Steps to reproduce:**
1. Create a new scene.
2. Place a Camera2D, inside it a ViewportContainer, inside it a Viewport and inside that a Button.
3. Set sizes appropriately
4. Run and click on the button. The button reacts to clicks as normal.
5. Make the Camera2D current. Run the scene again. Now clicking on the button has no effect at all.

The above just looks at the button's normal animation when clicked, but if you connect an event handler to the pressed signal of the button, you see that with the Camera2D current, the signal is not fired either.


**Minimal reproduction project:**
[test-viewport-input.zip](https://github.com/godotengine/godot/files/6410524/test-viewport-input.zip)
Repository: PowerToys
Issue: [TweakUI] Allow customization of icon text
Labels: Idea-New PowerToy,Product-Tweak UI Design

### It would be great if PowerToys allowed the user to pick a font, font color, and font size for icon text.
For now, the default option in Windows 10 is horrible, and basically unreadable if you have a light background.

Example: 
![image](https://user-images.githubusercontent.com/17074394/116799882-7ff25300-aafc-11eb-85b7-713cbf15639b.png)
Note: disabling the horrible shadow just leaves the text as white and 100% unreadable.
Repository: node
Issue: crash in repl mode by vm async timeout
Labels: repl,vm

* **Version**: v14.16.1
* **Platform**: win10 x64
* **Subsystem**:

### What steps will reproduce the bug?

```
C:\Users\admin>node
Welcome to Node.js v14.16.1.
Type ".help" for more information.
> a=vm.createContext({},{microtaskMode:"afterEvaluate"})
{}
> vm.runInContext("Promise.resolve().then(()=>{while(1){}})",a,{timeout:5})
Uncaught Error: Script execution timed out after 5ms
    at Script.runInContext (vm.js:143:18)
    at Object.runInContext (vm.js:294:6) {
  code: 'ERR_SCRIPT_EXECUTION_TIMEOUT'
}
> Error: async hook stack has become corrupted (actual: 126, expected: 5)
 1: 00007FF6E1F7046F napi_wrap+109311
 2: 00007FF6E1F8DBF3 v8::internal::compiler::Operator::EffectOutputCount+6947
 3: 00007FF6E1F9409A node::CallbackScope::~CallbackScope+570
 4: 00007FF6E1F944FB node::CallbackScope::~CallbackScope+1691
 5: 00007FF6E1F8C1B4 v8::internal::compiler::Operator::EffectOutputCount+228
 6: 00007FF6E1E3E7F3 v8::internal::Isolate::isolate_root_bias+13667
 7: 00007FF6E1E3F36D v8::internal::Isolate::isolate_root_bias+16605
 8: 00007FF6E1E39F19 v8::internal::Space::identity+1257
 9: 00007FF6E1FA9DE8 uv_udp_set_ttl+5176
10: 00007FF6E1FC3D1C uv_loop_init+908
11: 00007FF6E1FC403A uv_run+202
12: 00007FF6E1ED0125 v8::internal::OrderedHashTable<v8::internal::OrderedHashMap,2>::NumberOfBucketsOffset+9365
13: 00007FF6E1F438D7 node::Start+311
14: 00007FF6E1DA676C RC4_options+339564
15: 00007FF6E2D4740C v8::internal::compiler::RepresentationChanger::Uint32OverflowOperatorFor+152316
16: 00007FFEBE457BD4 BaseThreadInitThunk+20
17: 00007FFEC06ECED1 RtlUserThreadStart+33
```
Repository: youtube-dl
Issue: ValueError: Empty certificate data! What can i do ?
Labels: question

**I Dont Know What this is ? i am getting this error on every comand. what can i do ?

https://prnt.sc/12ds9th**

> C:\Users\Minhajul Islam Rahat\Downloads\youtube-dl>youtube-dl -U
Traceback (most recent call last):
  File "__main__.py", line 19, in <module>
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpeav8wi2f\build\youtube_dl\__init__.py", line 475, in main
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpeav8wi2f\build\youtube_dl\__init__.py", line 442, in _real_main
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpeav8wi2f\build\youtube_dl\YoutubeDL.py", line 422, in __init__
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpeav8wi2f\build\youtube_dl\YoutubeDL.py", line 2386, in _setup_opener
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpeav8wi2f\build\youtube_dl\utils.py", line 2297, in make_HTTPS_handler
  File "C:\Python\Python34\lib\ssl.py", line 439, in create_default_context
  File "C:\Python\Python34\lib\ssl.py", line 390, in load_default_certs
  File "C:\Python\Python34\lib\ssl.py", line 382, in _load_windows_store_certs
ValueError: Empty certificate data
Repository: opencv
Issue: Mouse callback function is first passed buffer (old) mouse event values 
Labels: category: highgui-gui,incomplete,needs reproducer

OpenCV => 4.5.1 (Python)
Operating System / Platform => Windows 10 Home x64

I am creating a code that uses mouse callback functions. First I am showing a window (window name: main) and then I press the mouse left button, move the mouse, release the left button on that window (basically performing mouse operations on the image window). Nothing happens as of now. Now when I call the function using the mouse callback feature of OpenCV (mouse callback here is set for another window say "new"), the callback function is first called with some of the previous mouse operation values, and then the callback function called with new mouse movement values if the mouse is used. 

The old mouse movement values act as if they are stored in a "buffer" and released when a callback function calls mouse movement values. 

I found a way around this bug by first setting mouse callback to an empty function and showing the window once and then setting mouse callback for the same window to my desired callback function. By doing this, the empty callback function consumes all the mouse "buffer" values and then the new mouse actions are sent to my desired callback function for performing operations as coded.

This is just a way around the bug. This does not resolve the issue.
Repository: rust
Issue: Suboptimal code generation in 8byte copy loop
Labels: A-LLVM,I-slow,T-compiler,A-mir-opt,C-optimization

In this loop the 8 byte copy seems to get converted into a more complicated assembly than necessary, which is quite slow compared to the 16byte version, which is a much simpler version.

https://play.rust-lang.org/?version=nightly&mode=release&edition=2018&gist=21b5eb51917947a25123dfafc9ed7959

```rs
pub fn wild_copy_from_src_8(mut source: *const u8, mut dst_ptr: *mut u8, num_items: usize) {
    // Note: if the compiler transforms this into a call to memcpy it'll hurt performance!
    unsafe {
        let dst_ptr_end = dst_ptr.add(num_items);
        while (dst_ptr as usize) < dst_ptr_end as usize {
            core::ptr::copy_nonoverlapping(source, dst_ptr, 8);
            source = source.add(8);
            dst_ptr = dst_ptr.add(8);
        }
    }
}
```

When the step size is 16bytes, the assembly looks fine

https://play.rust-lang.org/?version=nightly&mode=release&edition=2018&gist=9bb775fedfb94aec47252b943c28a6d6
Repository: PowerToys
Issue: Multiple layouts active at same time
Labels: Idea-Enhancement,FancyZones-Layouts,Product-FancyZones

### Provide a description of the new feature / enhancement

I suggest that two grids could be active at the same time letting you use shift to drag windows into grid1 and shift+alt to drag windows into grid2. That would work well with shift+ctrl and shift+alt+ctrl to drag it into a combination of spaces in either grid as well.

One way this could be used is to have your usual grid together with a smaller grid where you do use ctrl for more control. Having a smaller grid is great for control  but gets annoying when you want to place things into your main areas but having them both active at once would be great.

This is not a duplicate of https://github.com/microsoft/PowerToys/issues/1411 since it's not about switching between grids but rather having them active at the same time.

An alternative way would be to have two types of elements in the grid where the secondary spaces only gets activated when you press ctrl.
Repository: godot
Issue: Scale and rotation bug
Labels: bug,topic:core,topic:2d

**Godot version:**
3.3.stable and 3.2.3.stable

**OS/device including version:**
Windows 7

**Issue description:**
I want to move any node by Path2D, Pathfollow2D and RemoteTransform2D tandem and change scale manually trough code (of course, I disable rotation and scale update in RemoteTransform2D).

**What Expected:**
Scale horizontally changes (only -1 and 1) based by x position parameter changes. Scale stay the same if x position not changes. Node moves periodically, backs on start position in loop end.

**What Happened:**
Node visually changes rotation or scale (fast flips or incorrect flip - bug has variety from scene to scene) and looks like [these](https://github.com/godotengine/godot/issues/21849) ((issue 21849) I think it have same roots), but print shows scale parameter sets normally. Rotation prints weird "-0" or Pi (3.14...) after first scale negative set. In code rotation didn't ever used. And _move_and_slide_ function too. If you move node too fast, rotation might sets to 180 degrees after ending moving.

By the way, positive news about these bugs) Looks like KinematicBody2D created in 3.3.stable projects works properly with scaling! But projects created in other versions (3.2.3 or [earlier](https://github.com/godotengine/godot/issues/21849) (issue 21849)) unfortunately didn't fixes itself.

I leave separate scene with working negative scaling in attached project filesystem.

**Minimal reproduction project:**
[Test.zip](https://github.com/godotengine/godot/files/6411372/Test.zip)
Repository: godot
Issue: Double slashes in path make exports ignore packed asset files
Labels: bug,topic:core

<!-- Please search existing issues for potential duplicates before filing yours:
https://github.com/godotengine/godot/issues?q=is%3Aissue
-->

**Godot version:**
3.3 but also tested positive on 3.2.1
<!-- Specify commit hash if using non-official build. -->


**OS/device including version:**
Linux (Arch), Windows 10
<!-- Specify GPU model, drivers, and the backend (GLES2, GLES3, Vulkan) if graphics-related. -->


**Issue description:**
If a path to a scene/resource contains a double slash, the executable will not look for the file inside the .pck but instead in the filesystem, throwing a "cannot open file" error and not loading the resource, This issue only becomes apparent when exporting a game to a folder outside of the project folder, as everything will work just fine from inside the editor or if the executable is exported to the project folder with all the assets. 
<!-- What happened, and what was expected. -->


**Steps to reproduce:**
1. Use a resource path with a double slash in it, ie: "res://scenes//Screens//Home.tscn"
2. Export the project to some external folder
3. Play the project and run the code making use of the path
4. Error appears in the terminal: ERROR: load_interactive: Cannot open file 'res://scenes//Screens//Home.tscn'.

**Minimal reproduction project:**
<!-- A small Godot project which reproduces the issue. Drag and drop a zip archive to upload it. -->
[CrashTest.zip](https://github.com/godotengine/godot/files/6411551/CrashTest.zip)
To reproduce the issue, export the project to a different folder, run and click the button.
Repository: flutter
Issue: [Desktop] Add support for system tray icons
Labels: c: new feature,c: proposal,a: desktop,P3,team-linux,triaged-linux

<!-- 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 out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

**Related to:** https://github.com/google/flutter-desktop-embedding/issues/595

## Use case

The tray icon is an important part of many desktop applications that run in the background. 

## Proposal

This can be implemented as a official plugin.

Main features:
 - [ ] Position of the icon
 - [ ] Setting icon as monochromatic template image is needed on macOS so it can support dark mode
 - [ ] Allow text instead of the icon or in addition to the icon. I don't know if this is possible on Linux or Windows but macOS allows this.
Repository: opencv
Issue: Should Mat::Resize commit more than asked for to amortize the number of reallocs?
Labels: category: core,RFC

My code uses Mat as a sort of generalized vector to store values I generate on the fly. In order to do that, I use Mat::Resize to write values into more rows. The documentation for Mat::Resize says it works as std::vector does, but in fact std::vector gives you a promise that the push complexity will be o(1) amortized. The code here:
https://github.com/opencv/opencv/blob/68d15fc62edad980f1ffa15ee478438335f39cc3/modules/core/src/matrix.cpp#L1035
commits only the asked number of elements, so it's o(n) complexity. Should it be changed to commit 2*nelems (or any other constant > 1)?
I implemented my solution, and it made my code 2-4x faster. I also understand that reserving more than needed can cause memory problems, so I wanted to raise the discussion before pushing a pull request.
Repository: youtube-dl
Issue: Add "Where from:" meta information to downloaded file
Labels: 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.04.26. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Search the bugtracker for similar feature 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 feature request
- [x] I've verified that I'm running youtube-dl version **2021.04.26**
- [x] I've searched the bugtracker for similar feature requests including closed ones


## Description

<!--
Provide an explanation of your issue in an arbitrary form. Please make sure the description is worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient. Provide any additional information, suggested solution and as much context and examples as possible.
-->

On macOS when downloading something with Safari, meta information will be added to the downloaded file which contains the URL it was downloaded from.
I wish that youtube-dl would mimic this and add this same information.

<img width="274" alt="image" src="https://user-images.githubusercontent.com/163428/116817516-06437f00-ab67-11eb-89d0-8f66c380034f.png">

With this one could thus have youtube-dl save videos without their id in the filename and still reliably find where it was downloaded from.
Repository: rust
Issue: rustdoc: allow searching by trait bounds
Labels: T-rustdoc,C-feature-request,A-rustdoc-search

https://docs.rs/hyper/0.14.7/hyper/client/conn/struct.Builder.html

![image](https://user-images.githubusercontent.com/4687791/116817839-f776bf80-ab9a-11eb-996f-f33848462768.png)

Some libraries have trait bounds more complicated and more that one items, some of it could be automatically-derived or some could be specifically implemented for a certain structs/enums. Other libraries such as diesel also make use of trait bounds extensively.

```rust
pub fn handshake<T, B>(
    &self,
    io: T
) -> impl Future<Output = Result<(SendRequest<B>, Connection<T, B>)>> where
    T: AsyncRead + AsyncWrite + Unpin + Send + 'static,
    B: HttpBody + 'static,
    B::Data: Send,
    B::Error: Into<Box<dyn StdError + Send + Sync>>, 
```

If the user wants to find out which type can they used within the trait bound. According to the context above that they want to find out what can they use for `T`, they had to click on `AsyncRead`, capture all the implementations in mind and then go back and click on `AsyncWrite` and see which types appear again since trait bound is additive, it needs to satisfy all the traits.

If the user implemented a struct/enum that implemented all the specified trait bound then they know which is it, but if the user is using a third party library, chances are they will easily get lost or take some time to figure out what can `T` be without implementing it themselves. Without examples of the function, it would be require some time to go through and understand all the traits and their respective implementations.

Maybe we could have a way for user to know what could possibly be the types that they can use for `T` without going through the whole codebase? Behaving like goto implementation of language server, except now it can show what types satisfies all the specified trait bounds?

Of course the solution may not need to be perfect. I can think it may not work well with auto-traits since it could be hard to do that. Two solutions I can think of, we can have a `implementations` section within the search tab that shows all the types that satisfies the trait bounds specified, like `AsyncRead + AsyncWrite` (but not sure if we can also do it for `Unpin` or `Send`, maybe we couldn't cover lifetime at all). Another thing I can think of is that we can maybe provide some information when one clicks/hover on `io` or `T` then it will show the types that implement it, similar to the auto-traits section within the doc page.

Not sure if it is feasible, just an idea. Maybe we even had to have another search index if we can't reuse the existing one and not sure if it's worth it, or maybe we could make it lazily loaded only when they reached the tab. One issue I see is that types being shown may not be able to show standard library types and that may be an issue.
Repository: terminal
Issue: Command line spec/override for closeOnExit
Labels: Product-Terminal,Issue-Task,Area-Commandline

<!-- 
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨

I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING:
1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement.
2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement.
3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number).
4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement.
5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement.

All good? Then proceed!
-->

The ability to specify the closeOnExit behavior would be even more useful if it could be specified on the command line.  It would then not be limited to profiles and could even be used to override a profile's setting.
<!-- 
A clear and concise description of what the problem is that the new feature would solve.
Describe why and how a user would use this new functionality (if applicable).
-->

Taking a cue from CMD's /C and /K, you might use -c (close the tab/pane) and -k (keep the tab/pane)

<!-- 
A clear and concise description of what you want to happen.
-->
Repository: go
Issue: x/crypto/ssh: Channel.Read incorrectly returns write error instead of io.EOF
Labels: NeedsInvestigation

### What version of Go are you using (`go version`)?

`go version go1.16.3 darwin/amd64`

### 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>
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/hwh33/Library/Caches/go-build"
GOENV="/Users/hwh33/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/hwh33/Code/golang/pkg/mod"
GONOPROXY="github.com/getlantern/*"
GONOSUMDB="github.com/getlantern/*"
GOOS="darwin"
GOPATH="/Users/hwh33/Code/golang"
GOPRIVATE="github.com/getlantern/*"
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.16.3"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/hwh33/Code/golang/src/github.com/getlantern/ossh/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/cm/89l8fqlj6c5dc09fc9mb14dh0000gn/T/go-build3841693344=/tmp/go-build -gno-record-gcc-switches -fno-common"
</pre></details>

### What did you do?

- Set up a pair of ssh.Conns (client and server).
- Open a channel between the connections.
- Write a bunch of data to the client side of the channel.
- Close the client connection.
- Read from the server channel.

Example:
https://play.golang.org/p/JAd3orfmiye

(The Go Playground sometimes sees the TCP dial/listen as a deadlock.  It will often work though.)

### What did you expect to see?

The data from the peer, then io.EOF.

### What did you see instead?

Partial data, and a write-related error.  Usually `write: broken pipe` or `write: protocol wrong type for socket`

### More details

This only happens if the peer has closed the `ssh.Conn` (or the underlying transport).  I believe the bug is rooted in an incorrect assumption [here](https://github.com/golang/crypto/blob/5ea612d1eb830b38bc4e914e37f55311eb58adce/ssh/channel.go#L358-L364).  The comment indicates that the `channel` should be tolerant of errors adjusting the window when the peer has closed the connection.  The assumption is that such errors will be exclusively `io.EOF`.  Perhaps something has changed, but this is not currently the case.

I'm actually not sure what the fix should be here as I'm not sure what error _could_ be expected.  I don't think `net.Conn.Write` makes any kind of guarantees about behavior when the peer has closed the connection.  Somehow though, the buffered data should be returned to the reader, followed by `io.EOF.`