sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Memory leak when saving an input tensor returned as-is if mark_dirty and running with dual tensors
Labels: module: autograd,triaged,module: edge cases,module: forward ad

```python
import weakref
import torch
import torch.autograd.forward_ad as fwAD
import gc

def scope():
  saved_tensors = []
  class A(torch.autograd.Function):
      @staticmethod
      def forward(x):
          return x

      @staticmethod
      def setup_context(ctx, inputs, output):
          ctx.mark_dirty(inputs[0])
          ctx.save_for_backward(output)
          saved_tensors.append(output)

      @staticmethod
      def backward(ctx, grad_output):
          return grad_output

      @staticmethod
      def jvp(ctx, x_t):
          x_t.add_(0)
          return x_t

  a = torch.tensor(2., device="cpu", requires_grad=True).clone()
  a_t = torch.tensor(2., device="cpu", requires_grad=True).clone()

  with fwAD.dual_level():
      a_dual = fwAD.make_dual(a, a_t)
      A.apply(a_dual)

  class Test():
      pass
  test = Test()
  ref = weakref.ref(test)
  saved_tensors[0].grad_fn.metadata["test"] = test

  return ref

ref = scope()
gc.collect()
print(ref())
```

The reason this happens is that the output node is actually an AsStridedBackward node, but the logic testing for whether saved tensors are outputs checks that the grad_fn is ABackward. 

cc @ezyang @albanD @zou3519 @gqchen @pearu @nikitaved @Lezcano @Varal7
Repository: yt-dlp
Issue: Generate config file option
Labels: enhancement,triage

### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

- [X] I understand that I will be **blocked** if I *intentionally* remove or skip any mandatory\* field

### Checklist

- [X] I'm requesting a feature unrelated to a specific site
- [X] I've looked through the [README](https://github.com/yt-dlp/yt-dlp#readme)
- [X] I've verified that I'm running yt-dlp version **2023.03.04** ([update instructions](https://github.com/yt-dlp/yt-dlp#update)) or later (specify commit)
- [X] I've searched [known issues](https://github.com/yt-dlp/yt-dlp/issues/3766) and the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues **including closed ones**. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)

### Provide a description that is worded well enough to be understood

When trying to automate yt-dlp and make it possible to avoid writing command line arguments every time I found it really useful to create a config file to put everything in there and than to forget about options. However writing config looking through help prompt or docs is not that fast as it would be if all options and descriptions to them initially where in the file.

Thereby I would like to have an option like `--generate-config` that will use all options registered in command line arguments parser to write config file in default or specified location. The generated file would than have format:

```
## General Options

# Ignore download and postprocessing errors. The download will be considered successful even
# if the postprocessing fails
# --ignore-errors

# Continue with next video on download errors; e.g. to skip unavailable videos in a playlist
--no-abort-on-error

...
```

where every option is preceded by its description and options that are on by default are uncommented(enabled).


### Provide verbose output that clearly demonstrates the problem

- [ ] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [ ] If using API, add `'verbose': True` to `YoutubeDL` params instead
- [ ] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

_No response_
Repository: rust
Issue: Nested module privacy hole doesn't trigger lints
Labels: A-lints,A-visibility,T-compiler,C-bug

For context, the following code triggers the private-in-public lint:

```rust
pub mod inner {
    pub type Alias = Impl<A>;

    struct A;
    pub struct Impl<T>(T);
}
```

Producing this kind of error:
> warning: private type `A` in public interface (error E0446)

I tried this code:

```rust
pub mod outer {
    mod inner {
        pub type Alias = Impl<A>;

        pub struct A;
        pub struct Impl<T>(T);
    }
    pub use inner::Alias;
    pub use inner::Impl;
}
```

I used: `rustc sample.rs --edition 2018 --crate-type=lib`

I expected to see this happen: a warning about the exposed inner types, as the structs in question have not been made pub and are inside a private module, yet their aliases are publicly accessible.

Instead, this happened: Nothing.

### Meta
`rustc --version --verbose`:
```
rustc 1.70.0-nightly (2036fdd24 2023-03-27)
binary: rustc
commit-hash: 2036fdd24f77d607dcfaa24c48fbe85d3f785823
commit-date: 2023-03-27
host: x86_64-unknown-linux-gnu
release: 1.70.0-nightly
LLVM version: 16.0.0
```
Repository: flutter
Issue: fml should have a better argument parser.
Labels: c: new feature,engine,P3,team-engine,triaged-engine

Today, `fml::CommandLine` is a very rudimentary command line argument parser. It is very hard to create usable command line utilities using it. Some of the issues:

* No easy to specify command hierarchies with flags per level in the hierarchy.
* No easy way to specify help.
* No easy way to detect ignored flags.
* No easy way to specify subsystem level flags.

Something like the python argument parser could be doable and necessary (there may be other better examples but thats the one that comes to mind now).
Repository: flutter
Issue: flutter.jar artifacts are unused?
Labels: platform-android,tool,engine,t: gradle,P2,team-android,triaged-android

As far as I can tell, the `flutter.jar` artifacts in `flutter/bin/cache/artifacts/engine/android*` are unused?

I went searching through flutter.gradle looking for usage.  I even ran a `flutter build appbundle` command on a fresh counter app while running `sudo fs_usage` on mac and saw nothing touch those paths.

The gen_snapshot binaries are definitely used.

From @jonahwilliams on Discord:
"I believe flutter.jar was the historical artifact, and current approach is to upload artifacts to maven central from engine builds and download them in the tool (using Gradle/POM files)"
Repository: flutter
Issue: Flag timeout sub build explicitly in parent build
Labels: team-infra,P2,triaged-infra

Almost 50 subbuilds were scheduled in https://ci.chromium.org/ui/p/flutter/builders/try/Linux%20linux_web_engine/1243/overview, and one of them timed out. There is no clear signal from the UI which subbuild failed, making it difficult to track down the root cause.

One way to target the failed sub build without clicking through each of the 50 builds is look to the end of the `sdtout` of step`collect tests`: https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8785343460267272977/+/u/collect_tests/collect/wait/stdout

We should flag the failed build explicitly for easy triage.
Repository: PowerToys
Issue: Disable Windows' "cursor correction" "feature" that makes the cursor jump away from where you actually click if you move the cursor quickly immediately prior
Labels: Needs-Triage,Needs-Team-Response

### Description of the new feature / enhancement

When using a trackpad with Windows 10 and 11, when the user moves the cursor quickly and tries to click on something, the default behavior of Windows is to assume that this was an error, and to make the cursor "jump" several pixels away from where the user just tried to click. This is "normal" behavior as it occurs consistently across all hardware setups and between all versions of Windows 10 and 11, but the expected behavior of most power users when clicking is that their click location will be respected.

### Scenario when this would be used?

Power users frequently need to click repeatedly and quickly in specific areas, but Windows prevents us from doing so if we move _too_ quickly, which creates very frustrating workflow issues. This is likely meant for accidental click prevention for the average user, but for the power user who is moving quickly, this slows work down.

### Supporting information

Multiple examples of this happening from internet forums:

- https://www.reddit.com/r/WindowsHelp/comments/z136ku/cursor_jumps_away_from_target_click_area_when/ (this forum discussion appears to have documented the unwanted behavior with a video)
- https://www.reddit.com/r/Surface/comments/54fkhz/does_anyone_elses_cursor_suddenly_move_after/
- https://www.reddit.com/r/Windows10/comments/10h64mg/bug_cursor_frequently_jumps_away_from_target/
- https://www.reddit.com/r/Lenovo/comments/zvcsr3/cursor_frequently_jumps_away_from_target_click/
- https://www.reddit.com/r/Windows11/comments/10h8adn/has_anyone_noticed_the_cursor_jumping_issue_see/?utm_source=share&utm_medium=web2x&context=3
- https://www.reddit.com/r/Surface/comments/tq1dv8/anyone_have_really_bad_trackpad_cursor_jumping/
- https://www.reddit.com/r/techsupport/comments/10har22/cursor_frequently_jumps_away_from_target_click/?utm_source=share&utm_medium=web2x&context=3
- https://www.reddit.com/r/WindowsHelp/comments/10h6y6p/bug_cursor_frequently_jumps_away_from_target/?utm_source=share&utm_medium=web2x&context=3
Repository: stable-diffusion-webui
Issue: [Feature Request]: Reuse generated images for plots
Labels: enhancement

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What would your feature do ?

Plots should reuse saved images if their metadata matches the current generation parameters rather than regenerating the same image.

When troubleshooting and learning more about models, parameters, LoRA, embeddings, etc, X/Y/Z plots have been a godsend. Sometimes, I want to generate new plots leveraging the same parameters as previous plots, or perhaps extend a plot. As it is now, it would need to generate entirely new plots, taking a lot of time.

### Proposed workflow

1. I have a previously generated plot of sampling steps 15, 30, 45 against a prompt S/R.
2. Start generation, wait, then entire plot is generated.
3. During plot analysis, I notice that for an S/R prompt, a typo was made.
4. Typo is fixed on parameters.
5. Start generation for only the new images, wait just a bit since the other images are fetched from disk, plot is generated.
6. Plot analysis is done properly.

### Additional information

Yes, I get that you can just open up two windows and compare images side by side, but it's more tedious to sync the zoom and pan. And even when properly adjusted, there can still be the window bevel in the way, among other nuances that can distract from analysis.
Repository: pytorch
Issue: CUDA 10.2 cudnn 8.2.4 run Conv2d error
Labels: needs reproduction,module: cudnn,module: cuda,triaged

### 🐛 Describe the bug

    
 File "/lib/python3.8/site-packages/torch/nn/modules/conv.py", line 399, in forward
    return self._conv_forward(input, self.weight, self.bias)
  File "/lib/python3.8/site-packages/torch/nn/modules/conv.py", line 395, in _conv_forward
    return F.conv2d(input, weight, bias, self.stride,
RuntimeError: cuDNN error: CUDNN_STATUS_NOT_INITIALIZED


### Versions
i try cudnn 7.6 8.0 as well
pytorch 1.8.0
cudnn 8.2.4
cuda 10.2
2080ti

cc @csarofeen @ptrblck @xwang233 @ngimel
Repository: godot
Issue: Inspection does not reload data if variable changed in code.
Labels: bug,topic:editor

### Godot version

4.0.1 stable

### System information

Window 10, 3080, 

### Issue description

I am making an inventory and I accidentally deleted my item resource.  I had already made a bunch of items, so I remade my item resource.  Well, this I changed one of the variable names from description to desc.  Having remade item I opened one of the items I have made to see if it still worked.   Everything did but the description.  So, I go back into the item.gd file and change desc to description and open another item.  It still was blank, I assume it already loaded a blueprint of item.gd and did not reload it for the saved items.

Closed Godot and reopened it, and its fine.

### Steps to reproduce

Make Resource file
Create a tres from resource file.
Save Tres with data.
Rename variable in Resource file.
Tres does not update until Godot is closed and reopened.


### Minimal reproduction project

```gdscript
extends Resource
class_name item

@export var name: String =""
@export_multiline var description: String = ""
@export var texture: Texture
```

Changed Make a resource.

change name to desc. Save.
Repository: PowerToys
Issue: Screen ruler prompting Nvidia's filters
Labels: Issue-Bug,Needs-Triage,Product-Screen Ruler

### Microsoft PowerToys version

0.68.1

### Installation method

PowerToys auto-update, Microsoft Store

### Running as admin

Yes

### Area(s) with issue?

Screen ruler

### Steps to reproduce

Windows + Shift + M > Horizontal, vertical or horizontal spacing

### ✔️ Expected Behavior

_No response_

### ❌ Actual Behavior

When using the ruler function, it appears the tool prompts the visual filters the NVIDIA software offers. This interaction seems to disappear after using the "bounds" option. The visual error also fades away if you place the mouse over the tool overlay but re-appears after moving the mouse.
![image](https://user-images.githubusercontent.com/129240229/228405920-9bfd210f-7b5b-4571-9204-2f2161638153.png)
![image](https://user-images.githubusercontent.com/129240229/228406006-fe2bd5eb-5cd0-49f6-a2d9-c757a90bfc92.png)
![image](https://user-images.githubusercontent.com/129240229/228406024-787ef63f-6552-40d8-a134-c5d034fe77b6.png)


### Other Software

NVIDIA GeForce Experience
Version 3.27.0.112
Repository: angular
Issue: SwUpdate checkForUpdate can run multiple times simultaneously
Labels: area: service-worker

### Which @angular/* package(s) are the source of the bug?

service-worker

### Is this a regression?

No

### Description

If you call `SwUpdate.checkForUpdate` multiple times from application code, it is not deduplicated. Each call will do the full manifest fetch, and will attempt to install a new version if applicable, downloading all the assets multiple times. The assets themselves should mostly be cached by the browser, so there aren't excessive actual requests, but it does potentially slow down the SW thread with what should be completely unnecessary processing.

<img width="1512" alt="image" src="https://user-images.githubusercontent.com/8922125/228405071-96f5f7ee-35e4-4c37-98b8-9478e4467c1c.png">

This is relevant for our application, as we run a regular background upgrade check on a timer. If a user has many tabs open, we can end up calling `checkForUpdate` multiple times. Ideally, these multiple calls do not actually trigger multiple downloads and updates.

note: the builtin `checkForUpdate` calls are all wrapped in the idle scheduler, so they do not have this issue. or, they kind of do, but it doesn't matter as much because they'll run in sequence and the later calls will just fetch the manifest once and do nothing.

If this functionality isn't desired, I should be able to make a PR to fix it.

### Please provide a link to a minimal reproduction of the bug

_No response_

### Please provide the exception or error you saw

_No response_

### Please provide the environment you discovered this bug in (run `ng version`)

```true
_                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    
Angular CLI: 14.2.10
Node: 16.14.2
Package Manager: yarn 1.22.15 
OS: darwin arm64

Angular: 14.2.12
... animations, common, compiler, compiler-cli, core, forms
... language-service, localize, platform-browser
... platform-browser-dynamic, platform-server, router
... service-worker

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1402.10
@angular-devkit/build-angular   14.2.10
@angular-devkit/core            14.2.10
@angular-devkit/schematics      14.2.10
@angular/cdk                    14.2.5
@angular/cli                    14.2.10
@angular/fire                   7.4.1
@angular/material               14.2.5
@nguniversal/builders           14.2.3
@nguniversal/express-engine     14.0.3
@schematics/angular             14.2.10
rxjs                            7.5.7
typescript                      4.8.4
```


### Anything else?

_No response_
Repository: opencv
Issue: CMake build on windows fails due to use of tar command
Labels: bug

### System Information

OpenCV version 4.7.0
OS: Windows 10
Compiler: Microsoft (R) C/C++ Optimizing Compiler Version 19.34.31933 for x64


### Detailed description

OpenCV cannot be configured with CMake on windows because the extraction of third party library ZIP files in `OpenCVDownload.cmake` uses the `cmake -E tar xzf` command.

This actually has been asked about on StackOverflow before: [link](https://stackoverflow.com/questions/61488479/cmake-error-problem-with-archive-write-finish-entry-cant-restore-time)

Indeed, this can be fixed on Windows if 7zip is installed by changing line 282 from
```
    execute_process(COMMAND ${CMAKE_COMMAND} -E tar xzf "${CACHE_CANDIDATE}"
                    WORKING_DIRECTORY "${DL_DESTINATION_DIR}"
                    RESULT_VARIABLE res)
```
to
```
    execute_process(COMMAND 7z x "${CACHE_CANDIDATE}"
                    WORKING_DIRECTORY "${DL_DESTINATION_DIR}"
                    RESULT_VARIABLE res)
```

There is an issue opened in the CMake repository about this: [link](https://gitlab.kitware.com/cmake/cmake/-/issues/19132)
And it appears that Paraview fixed this issue a year ago by changing the third party files to .tar.gz instead of .zip: [link](https://gitlab.kitware.com/paraview/paraview-superbuild/-/merge_requests/884)

So, could the third party files be hosted as .tar.gz instead of .zip in the case that that fixes the issue here?

This problem appears to come from a bug in [libarchive](https://github.com/libarchive/libarchive/issues/772) that was opened in 2016, so I doubt it is getting fixed any time soon.

### Steps to reproduce

With any zip file on Windows, using both PowerShell and cmd, this occurs
```
cmake -E tar xzf .\test.zip
CMake Error: Problem with archive_write_finish_entry(): Can't restore time
CMake Error: Problem extracting tar: .\test.zip
```

### Issue submission checklist

- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [X] I updated to the latest OpenCV version and the issue is still there
- [x] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: terminal
Issue: Consider consolidating UI helpers into a Microsoft.Terminal.UI namespace/dll
Labels: Product-Terminal,Issue-Task,Area-CodeHealth

_work branch https://github.com/microsoft/terminal/tree/dev/duhowett/m.t.ui_

We have some UI helpers flung all about the Terminal code, including in _Terminal.Settings.Model_, that could be consolidated.

- TerminalApp
	- `EmptyStringVisibilityConverter`
- TerminalSettingsEditor
	- `Converters`
		- Including a duplicate `EmptyStringVisibilityConverter` equivalent; deduplicate these!
- TerminalSettingsModel
	- `IconPathConverter`

I originally authored it to contain a resource string markup extension as detailed in [an APS blog post](https://devblogs.microsoft.com/ifdef-windows/use-a-custom-resource-markup-extension-to-succeed-at-ui-string-globalization/). That'll help us get rid of all the places where we load resource strings in code because they couldn't be bound in XAML.
Repository: opencv
Issue: Requesting support for Tensorflow 2 models
Labels: feature,category: dnn

### Descripe the feature and motivation

Hello, dear developers! 
The DNN module currently supports Tensorflow 1 architectures in FrozenGraph format, but in 2019 a version of Tensorflow 2 was released which has a SavedModel format. The SavedModel format is not supported by DNN. 
Support for SavedModel format would be very useful, because Tensorflow Object Detection API has a large selection of different detection/segmentation models, which are not yet supported in the current version of OpenCV DNN.

### Additional context

_No response_
Repository: flutter
Issue: SelectableText maxLines should behave the same as Text
Labels: a: text input,framework,f: material design,has reproducible steps,f: selection,found in release: 3.7,found in release: 3.9,team-design,triaged-design


## Steps to Reproduce

<!-- Please include full steps to reproduce so that we can reproduce the problem. -->

1. run main.dart

**Expected results:** <!-- what did you want to see? -->
if the text less than 10 lines , SelectableText should just wrap the text in lines that the text really needs
**Actual results:** <!-- what did you see? -->
SelectableText make the text line as maxLine even the text doesn't need 
<details>
<summary>Code sample</summary>


```dart

import 'package:flutter/material.dart';

Future<void> main() async {
  return runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(context) {
    return const MaterialApp(
      home: PageHome(),
    );
  }
}

class PageHome extends StatefulWidget {
  const PageHome({Key? key}) : super(key: key);

  @override
  State<PageHome> createState() => _PageHomeState();
}

class _PageHomeState extends State<PageHome> {
  final GlobalKey<NavigatorState> homeNavigatorKey = GlobalKey();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Home'),
      ),
      body: Container(
          color: Colors.green,
          child: const SelectableText(
            style: TextStyle(fontSize: 20, color: Colors.black),
            "eeeeeeeeeee",
            maxLines: 10,
          )),
    );
  }
}

```

</details>
<img width="276" alt="image" src="https://user-images.githubusercontent.com/55651847/228423047-e4fd2168-f084-4cb9-a497-25653cb9e74d.png">
Repository: godot
Issue: Godot UI freezes while generating speech
Labels: bug,topic:porting,confirmed,topic:audio

### Godot version

4.0.0 official binaries, .NET flavour.

### System information

Manjaro (Arch) with KDE Plasma; GPU = NVIDIA Corporation TU117M [GeForce GTX 1650 Ti Mobile] (rev a1)

### Issue description

When generating speech via `DisplayServer.tts_speak`, on my Linux box, there's roughly a two-second pause (irrespective of audio length) while the system libraries do their thing. During this time, the Godot UI is completely frozen.

As I would like to allow users to rapidly move from, say, menu button to menu button, I really need:

- The TTS not to freeze the Godot UI
- `.stop()` immediately stopping, even if it's during this two-second period.

I tried work-around (e.g. running this in a `Thread.new()`) but it seems to have no effect.

### Steps to reproduce

- Create a button that calls `DisplayServer.tts_speak` with a message (maybe longer is better for testing) on press
- Update things in `_process` like a label with the current time
- Add extra controls you can click on
- Click the button and try to do anything. You can't. 

### Minimal reproduction project

Not necessary, as this is trivially reproducible.