sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: storybook
Issue: [Bug]: @storybook/preset-create-react-app does not play nicely with error boundaries. 
Labels: bug,react,cra,test-runner

### Describe the bug

I have a component like this: 

```jsx
export function SomeComponent(props: { value: string }) {
    return (
        <ErrorBoundary>
            <SomeComponentInner {...props} />
        </ErrorBoundary>
    );
}
```

Where that `SomeComponentInner` will throw an error at render time. 

So the expected (and actual behaviour for non CRA storybook configurations) behaviour is in Storybook the render error is thrown and the error boundary is displayed. 

However, in a Storybook configuration for create-react-app we instead see this overlay error: 

<img width="662" alt="Screen Shot 2023-06-21 at 2 40 14 pm" src="https://github.com/storybookjs/storybook/assets/2467377/d2c66961-f5c4-46a4-801d-ef09744af874">

We can click that close button, and see the error boundary. 

However, this is a jarring experience. Also, it will be detected as an error by @storybook/test-runner. 




### To Reproduce

Repro for this here: 

https://github.com/dwjohnston/storybook-cra/commit/7e68e968343851db8ad0604c5f9cb3100a7608cf

This is a basic create app application generated with: 

```
yarn create react-app . --template=typescript 
npx storybook@latest init
```

Run `yarn storybook` and navigate to the Errored example. 

### System

```shell
Environment Info:

  System:
    OS: macOS 12.5.1
    CPU: (10) arm64 Apple M1 Pro
  Binaries:
    Node: 16.19.0 - ~/.nvm/versions/node/v16.19.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v16.19.0/bin/yarn
    npm: 9.6.2 - ~/.nvm/versions/node/v16.19.0/bin/npm
  Browsers:
    Chrome: 114.0.5735.133
    Edge: 114.0.1823.55
    Safari: 16.0
  npmPackages:
    @storybook/addon-essentials: ^7.0.22 => 7.0.22 
    @storybook/addon-interactions: ^7.0.22 => 7.0.22 
    @storybook/addon-links: ^7.0.22 => 7.0.22 
    @storybook/blocks: ^7.0.22 => 7.0.22 
    @storybook/preset-create-react-app: ^7.0.22 => 7.0.22 
    @storybook/react: ^7.0.22 => 7.0.22 
    @storybook/react-webpack5: ^7.0.22 => 7.0.22 
    @storybook/testing-library: ^0.0.14-next.2 => 0.0.14-next.2
```


### Additional context


It appears that the overlay comes from this package: 

https://github.com/pmmmwh/react-refresh-webpack-plugin

This behaviour can be solved by adding this to your storybook config in `.storybook/main.js`

```  
  webpackFinal: (config) => {

    const refreshPluginIndex = config.plugins?.findIndex((v => v?.constructor.name === "ReactRefreshPlugin"));
    config.plugins[refreshPluginIndex].options.overlay = false;

    return config;
  }
```

Though this solution is a bit hamfisted - there are plenty of other cases where we _do_ want to see the error overlay - ie. when we're not using an error boundary.   

Also, this will still be detected as an error by @storybook/test-runner
Repository: pytorch
Issue: torch.save() fails if path contains multibyte characters
Labels: module: serialization,triaged

### 🐛 Describe the bug

After upgrading PyTorch from 1.8.1 (LTS) to 2.0.1.
When saving a model using torch.save(), if the save destination path contains multi-byte characters, saving the model will fail.

Below is the sample code and error message.


Code to reproduce:
```python
import torch

model = torch.load("mnist_cnn.pt")
save_path = model_save.pt
torch.save(model, save_path) # OK

save_path_multibyte = "C:\\Users\\ユーザー名\\source\\model_save_multibyte.pt"        
torch.save(model, save_path_multibyte) # NG
```

The error message:
```
Traceback (most recent call last):
  File ".\sample.py", line 147, in <module>
    main()
  File ".\sample.py", line 142, in main
    torch.save(model, save_path_multibyte)
  File "C:\Users\ユーザー名\source\.venv\lib\site-packages\torch\serialization.py", line 440, in save
    with _open_zipfile_writer(f) as opened_zipfile:
  File "C:\Users\ユーザー名\source\.venv\lib\site-packages\torch\serialization.py", line 315, in _open_zipfile_writer
    return container(name_or_buffer)
  File "C:\Users\ユーザー名\source\.venv\lib\site-packages\torch\serialization.py", line 288, in __init__
    super().__init__(torch._C.PyTorchFileWriter(str(name)))
RuntimeError: Parent directory C:\Users\ユーザー名\source\ does not exist.
```

### Versions

PyTorch version: 2.0.1+cu118
Is debug build: False
CUDA used to build PyTorch: 11.8
ROCM used to build PyTorch: N/A

OS: Microsoft Windows 10 Pro
GCC version: Could not collect
Clang version: 11.0.1
CMake version: version 3.19.2
Libc version: N/A

Python version: 3.8.6 (tags/v3.8.6:db45529, Sep 23 2020, 15:52:53) [MSC v.1927 64 bit (AMD64)] (64-bit runtime)
Python platform: Windows-10-10.0.19041-SP0
Is CUDA available: True
CUDA runtime version: 11.0.221
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration: GPU 0: NVIDIA GeForce RTX 2060 with Max-Q Design
Nvidia driver version: 512.78
cuDNN version: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin\cudnn_ops_train64_8.dll
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

CPU:
Architecture=9
CurrentClockSpeed=3000
DeviceID=CPU0
Family=107
L2CacheSize=4096
L2CacheSpeed=
Manufacturer=AuthenticAMD
MaxClockSpeed=3000
Name=AMD Ryzen 9 4900HS with Radeon Graphics
ProcessorType=3
Revision=24577

Versions of relevant libraries:
[pip3] numpy==1.19.3
[pip3] torch==2.0.1+cu118
[pip3] torchaudio==2.0.2+cu118
[pip3] torchvision==0.15.2+cu118
[conda] Could not collect

cc @mruberry @mikaylagawarecki
Repository: flutter
Issue: [video_player] Discoloration of videos
Labels: c: new feature,platform-android,platform-ios,a: fidelity,p: video_player,package,team-ecosystem,has reproducible steps,P3,found in release: 3.10,found in release: 3.12,triaged-ecosystem

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Steps to reproduce

https://rcwl-prod.s3.eu-west-2.amazonaws.com/files/15d8fd20-80fe-4829-9c28-8766ae5bbd25/PRE_AND_POST_NATAL/FINAL_FULL_BODY_PREG_WORKOUT_WITH_HILS.mp4

Play above link on web as well as in mobile. IN mobile there is discoloration in videos.
Is there a way to play videosn on bt2020 colorspace? It seems it is taking bt709 by default.

### Expected results

Video should play without being discolored

### Actual results

Video is being discolored.

### Code sample

<details>
<summary>
VideoplayerController.network();
</summary>


</details>


### Screenshots or Video

<details>
<summary>Screenshots / Video demonstration</summary>

[Upload media here]

</details>


### Logs

<details><summary>Logs</summary>



</details>


### Flutter Doctor output

<details>
<summary>
Doctor output
</summary>



</details>
Repository: pytorch
Issue: when train with multi GPUS
Labels: oncall: distributed

### 🐛 Describe the bug

train command:
xport NGPUS=2
CUDA_VISIBLE_DEVICES=0,1 python -m torch.distributed.launch --nproc_per_node=2 --master_port=9531 ./train.py

but when traininf fow a while ,raise errors: what did it  means?


ARNING:torch.distributed.elastic.multiprocessing.api:Sending process 25236 closing signal SIGTERM
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: -9) local_rank: 1 (pid: 25237) of binary: /anaconda3/envs/paddle_env/bin/python
Traceback (most recent call last):
  File "/anaconda3/envs/paddle_env/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/anaconda3/envs/paddle_env/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/anaconda3/envs/paddle_env/lib/python3.8/site-packages/torch/distributed/launch.py", line 195, in <module>
    main()
  File "/anaconda3/envs/paddle_env/lib/python3.8/site-packages/torch/distributed/launch.py", line 191, in main
    launch(args)
  File "/anaconda3/envs/paddle_env/lib/python3.8/site-packages/torch/distributed/launch.py", line 176, in launch
    run(args)
  File "/anaconda3/envs/paddle_env/lib/python3.8/site-packages/torch/distributed/run.py", line 753, in run
    elastic_launch(
  File "/anaconda3/envs/paddle_env/lib/python3.8/site-packages/torch/distributed/launcher/api.py", line 132, in __call__
    return launch_agent(self._config, self._entrypoint, list(args))
  File "/anaconda3/envs/paddle_env/lib/python3.8/site-packages/torch/distributed/launcher/api.py", line 246, in launch_agent
    raise ChildFailedError(
torch.distributed.elastic.multiprocessing.errors.ChildFailedError: 


### Versions

pytorch 13.1 cuda 116

cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu
Repository: godot
Issue: _get_drag_data -> return type wrong in c#
Labels: discussion,topic:dotnet

### Godot version

4.0.3

### System information

Windows 11, Godot 4.0.3, Vulkan

### Issue description

Control docs state:

[Variant](https://docs.godotengine.org/en/stable/classes/class_variant.html#class-variant) _get_drag_data ( [Vector2](https://docs.godotengine.org/en/stable/classes/class_vector2.html#class-vector2) at_position ) virtual const

Godot calls this method to get data that can be dragged and dropped onto controls that expect drop data. Returns null if there is no data to drag. 

However, using a c# project
```xml
<Project Sdk="Godot.NET.Sdk/4.0.3">

    <PropertyGroup>
        <TargetFramework>net7.0</TargetFramework>
        <Nullable>enable</Nullable>
        <ImplicitUsings>enable</ImplicitUsings>
        <EnableDynamicLoading>true</EnableDynamicLoading>
    </PropertyGroup>

</Project>
```
I cannot return null in this function, as its return type is defined as `Variant`, and not `Variant?`
Compilation error is `[CS0037] Cannot convert null to 'Variant' because it is a non-nullable value type`

### Steps to reproduce

```c#
public override Variant _GetDragData(Vector2 atPosition)
{
    return null;
}
```

### Minimal reproduction project

N/A
Repository: react-native
Issue: 🐞 iOS: Dictation Mic doesn't work properly with TextInput multiline
Labels: Platform: iOS,Component: TextInput,Accessibility,Needs: Triage :mag:,Never gets stale

### Description

I tried using Dictation mic on iOS with TextInput. It works fine when multiline is OFF. But it doesn't work if multiline is set to true. It paste the text to the input but as soon as I start to type, it removed the dictation text.

### React Native Version

0.71.8

### Output of `npx react-native info`

```
System:
    OS: macOS 13.4
    CPU: (8) x64 Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz
    Memory: 1.13 GB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.16.0 - /usr/local/opt/node@18/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 9.5.1 - /usr/local/opt/node@18/bin/npm
    Watchman: 2023.05.15.00 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.12.1 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
    Android SDK: Not Found
  IDEs:
    Android Studio: Not Found
    Xcode: 14.3.1/14E300c - /usr/bin/xcodebuild
  Languages:
    Java: Not Found
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.2.0 => 18.2.0 
    react-native: 0.71.8 => 0.71.8 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found
```

### Steps to reproduce

Use the following Input and play with the dictation mic.
```
const [message, setMessage] = useState('');
<TextInput onChangeText={setMessage} value={message} multiline={true} />
```

### Snack, code example, screenshot, or link to a repository

Minimal reproduction case is to just use TextInput with multiline set to True
```
<TextInput onChangeText={setMessage} value={message} multiline={true} />
```
Repository: godot
Issue: android override project settings not working
Labels: platform:android,topic:core,needs testing

### Godot version

3.5.2

### System information

MacOS

### Issue description

Saving project settings to a custom file, saves and reads fine on MacOS, but not on Android.

### Steps to reproduce

1: Set "application/config/project_settings_override" to user://project_setting.godot

2: Use ProjectSettings.set_setting to set the project settings in the code, and use ProjectSettings.save_custom("user://project_setting.godot") to save

3: Running on MacOS can save and read the changes to the settings

4: It cannot be saved on Android, and the settings will be restored to default after reopening

### Minimal reproduction project

N/A
Repository: PowerToys
Issue: I want that the Snap Layouts in Fancyzone "acts as a screen"
Labels: Idea-Enhancement,Product-FancyZones,Needs-Triage

### Description of the new feature / enhancement

I use the Snap Layout to divide my desktop into 4 parts.  In one part I have an Excel-sheet running.  But when I get context menus, Excel exceeds the boundaries of the Snap Layouts, the context menu goes from one part also to another part of my screen.
As an excel teacher, I have to record lessons for my students. So I only capture one part of my desktop, the one with the excel sheet in it.
I want that the context menus stay in the "own application window/part"
I've tried several things, also installing PowerToys and tested "Fancyzones", but it has the same behaviour.

![Snap Layout](https://github.com/microsoft/PowerToys/assets/94957622/97febe98-0bff-491c-aa23-574e3dfcd4b6)


### Scenario when this would be used?

To define a screen area to record that part of the screen to create lesson movies

### Supporting information

NA
Repository: godot
Issue: .NET: Failed to unload assemblies. Please check <this issue> for more information.
Labels: tracker,topic:dotnet

### Godot version

Any 4.x version

### Issue description

Assembly reloading can fail for various reasons, usually because a library used in tools code is not compatible with assembly unloading.

After unloading has failed, C# scripts will be unavailable until the editor is restarted (in rare cases it may be possible to complete the unloading by re-building assemblies after some time).

If assembly unloading fails for your project check [Microsoft's troubleshooting instructions](https://learn.microsoft.com/en-us/dotnet/standard/assembly/unloadability#troubleshoot-unloadability-issues) and ensure that you are not using one of the libraries known to be incompatible:
- https://github.com/JamesNK/Newtonsoft.Json/issues/2414
- https://github.com/dotnet/runtime/issues/65323

If you know of additional libraries that cause issues, please leave a comment.
If your code doesn't use any libraries, doesn't violate any [guidelines](https://learn.microsoft.com/en-us/dotnet/standard/assembly/unloadability#troubleshoot-unloadability-issues) and you believe unloading is blocked by godot, please open a new issue. Already reported causes are:
- https://github.com/godotengine/godot/issues/79519
- https://github.com/godotengine/godot/issues/80175 [^1]
- https://github.com/godotengine/godot/issues/81903
- https://github.com/godotengine/godot/pull/90837 [^1]

### Minimal reproduction project & Cleanup example

```csharp
using Godot;
using System;

[Tool]
public partial class UnloadingIssuesSample : Node
{
    public override void _Ready()
    {
        // block unloading with a strong handle
        var handle = System.Runtime.InteropServices.GCHandle.Alloc(this);

        // register cleanup code to prevent unloading issues
        System.Runtime.Loader.AssemblyLoadContext.GetLoadContext(System.Reflection.Assembly.GetExecutingAssembly()).Unloading += alc =>
        {
            // handle.Free();
        };
    }
}
```

[^1]: Bugsquad edit
Repository: pytorch
Issue: How to modify gradients of an FSDP model?
Labels: oncall: distributed,module: fsdp

### 📚 The doc issue

I've initially posted the question on [forum](https://discuss.pytorch.org/t/modify-gradients-of-an-fsdp-model/182159) 7 days ago, but crossposting here as well for better visibility since I couldn't get any answers there. 

Hi everyone,
I have an FSDP model which has zeros in some of the `torch.nn.Linear.weight` parameters. During the training I would like to keep those parameters fixed to zeros, and to zero-out their gradients during backward as well. The specific use-case is: I am loading a pruned model and I want to fine-tune it with FSDP while keeping the pruning mask fixed. 

To achieve this I need to do two things: 
1) multiply parameters with the mask before the forward pass (so that all pruned weights remain pruned), 
2) multiply gradients of pruned parameters after the backward pass (so that gradients of pruned weights are zeros)
 
In the standard DDP training I would achieve this by:
1) registering forward pre-hook on `torch.nn.Linear` modules and multiplying weights with the mask before each forward pass,
2) registering a hook on the parameter `torch.nn.Linear.weight` and multiplying its gradient with the mask. 

For example:
```python
def keep_param_pruned(mask, module, input):
    with torch.no_grad():
        module.weight.data.mul_(mask.to(module.weight.device))

def keep_grad_pruned(mask, grad):
    return grad.mul_(mask.to(grad.device))

for n, m in model.named_modules():
    if isinstance(m, torch.nn.Linear):
        mask = m.weight > threshold
        m.register_forward_pre_hook(partial(keep_param_pruned, mask))
        m.weight.register_hook(partial(keep_grad_pruned, mask))
```

However, I am struggling to modify this idea to work with FSDP.  Any suggestions/ideas on what I am doing wrong or if there is a simpler way to achieve this without playing with hooks?

### Suggest a potential alternative/fix

_No response_

cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu
Repository: pytorch
Issue: Need the full "Release Compatibility Matrix" of torch
Labels: module: binaries,oncall: releng,triaged

### 📚 The doc issue

Hi, We always tries some old project which may lead us install old version of pytorch. But there is no full-version compatibility matrix of pytorch.  It will be about the compatibility limitations between python version, pytorch version, and CUDA.
NOT THAT  https://github.com/pytorch/pytorch/wiki/PyTorch-Versions
BUT LIKE THAT  https://github.com/pytorch/pytorch/blob/main/RELEASE.md  


### Suggest a potential alternative/fix

_No response_

cc @seemethere @malfet
Repository: pytorch
Issue: CODEOWNERS file has errors due to non existent people being referred to
Labels: module: docs,triaged

If you have a question or would like help and support, please ask at our
[forums](https://discuss.pytorch.org/).

If you are submitting a feature request, please preface the title with [feature request].
If you are submitting a bug report, please fill in the following details.

## Issue description

https://github.com/pytorch/pytorch/blob/main/CODEOWNERS displays with errors
```

Unknown owner on line 25: make sure @z-a-f exists and has write access to the repository
…ten/src/ATen/native/ao_sparse @z-a-f @salilsdesai @kimishpatel @digantdesai @jianyuh
Unknown owner on line 26: make sure @z-a-f exists and has write access to the repository
…/native/quantized @jerryzh168 @z-a-f @salilsdesai @kimishpatel @digantdesai @jianyuh
Unknown owner on line 27: make sure @z-a-f exists and has write access to the repository
…ive/quantized/cpu @jerryzh168 @z-a-f @salilsdesai @kimishpatel @digantdesai @jianyuh
Unknown owner on line 31: make sure @z-a-f exists and has write access to the repository
/test/ao/ @jerryzh168 @z-a-f @hdcharles
Unknown owner on line 32: make sure @z-a-f exists and has write access to the repository
…est/quantization/ @jerryzh168 @z-a-f
Unknown owner on line 34: make sure @z-a-f exists and has write access to the repository
ao/sparisty/ @z-a-f @hdcharles
Unknown owner on line 38: make sure @z-a-f exists and has write access to the repository
nn/quantizable/ @jerryzh168 @z-a-f
Unknown owner on line 114: make sure @robieta exists and has write access to the repository
torch/csrc/autograd/profiler* @robieta
Unknown owner on line 115: make sure @robieta exists and has write access to the repository
torch/autograd/profiler* @robieta
Unknown owner on line 116: make sure @robieta exists and has write access to the repository
torch/csrc/profiler/ @robieta
Unknown owner on line 117: make sure @robieta exists and has write access to the repository
torch/profiler/ @robieta
Unknown owner on line 123: make sure @NivekT exists and has write access to the repository
torch/utils/data/ @NivekT @ejguan
```
This should be reviewed to either remove users or ensure that they exist.

I can submit a change to remove the reference to users in this file, if that is the right approach for all of them..  



cc @svekars @carljparker
Repository: angular
Issue: Parentheses in url cause Error: NG04002: Cannot match any routes.
Labels: area: router,area: server

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

router

### Is this a regression?

Yes

### Description

When a url contains parentheses such as `localhost:4200/(1)`, the router will throw the error `Error: NG04002: Cannot match any routes.`

In an Angular Universal app I have, this causes the entire node process to crash (which is another issue....).

Some notes on what type of urls cause the issue:

- `/(1)` -> Cannot match any routes. URL Segment: '1'
- `/(foo)` -> Cannot match any routes. URL Segment: 'foo'
- `/(foo:bar)` -> Cannot match any routes. URL Segment: 'bar'
- `/(foo;bar)` -> Cannot match any routes. URL Segment: 'foo;bar='
- `/(foo?)` ->no error
- `/()` -> no error
- `/(foo` -> no error
- `/foo)` -> no error

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

https://stackblitz.com/edit/angular-router-parentheses-issue?file=src%2Fmain.ts

### Please provide the exception or error you saw

```true
Error: Uncaught (in promise): Error: NG04002: Cannot match any routes. URL Segment: '1'
Error: NG04002: Cannot match any routes. URL Segment: '1'
at Recognizer.noMatchError (https://angular-router-parentheses-issue.stackblitz.io/turbo_modules/@angular/router@16.1.1/fesm2022/router.mjs:3713:16)
at eval (https://angular-router-parentheses-issue.stackblitz.io/turbo_modules/@angular/router@16.1.1/fesm2022/router.mjs:3728:28)
at eval (https://angular-router-parentheses-issue.stackblitz.io/turbo_modules/rxjs@7.8.1/dist/cjs/internal/operators/catchError.js:13:51)
at OperatorSubscriber._this._error (https://angular-router-parentheses-issue.stackblitz.io/turbo_modules/rxjs@7.8.1/dist/cjs/internal/operators/OperatorSubscriber.js:43:21)
at Subscriber.error (https://angular-router-parentheses-issue.stackblitz.io/turbo_modules/rxjs@7.8.1/dist/cjs/internal/Subscriber.js:60:18)
at Subscriber._error (https://angular-router-parentheses-issue.stackblitz.io/turbo_modules/rxjs@7.8.1/dist/cjs/internal/Subscriber.js:84:30)
at Subscriber.error (https://angular-router-parentheses-issue.stackblitz.io/turbo_modules/rxjs@7.8.1/dist/cjs/internal/Subscriber.js:60:18)
at Subscriber._error (https://angular-router-parentheses-issue.stackblitz.io/turbo_modules/rxjs@7.8.1/dist/cjs/internal/Subscriber.js:84:30)
at Subscriber.error (https://angular-router-parentheses-issue.stackblitz.io/turbo_modules/rxjs@7.8.1/dist/cjs/internal/Subscriber.js:60:18)
at Subscriber._error (https://angular-router-parentheses-issue.stackblitz.io/turbo_modules/rxjs@7.8.1/dist/cjs/internal/Subscriber.js:84:30)
```
```


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

```true
Angular core, route @ 16.1.1
```


### Anything else?

_No response_