sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: godot
Issue: Resizing SubViewportContainer with stretch enabled changes render resolution of child SubViewport
Labels: bug,needs testing,regression,topic:gui

### Godot version

v4.0.alpha9.official.fc18891db

### System information

Linux

### Issue description

When resizing a SubViewportContainer with `stretch` enabled, the `size` of the child SubViewport is changed to the size of the container.
What this does is to undo all the "stretching", since the resolution of the viewport is now the same as the displayed resolution. This is unexpected of a property named `stretch`, if this were intentional a more fitting name would be `auto_resize`.
This problem was present in Godot 3 as well, but it wasn't hard to write something like this to preserve the size of the viewport:
```gdscript
func _on_Viewport_size_changed(): # connected to signal "resized" in Viewport
	if size == correct_size:
		return
	size = correct_size
```
But in newer alpha versions Godot 4, this workaround stopped working consistently, especially inside nested containers. So this is what I resorted to:
```gdscript
func workaround_hack():
	for i in 3: # with one iteration, this fails up to 50% of the time 
		await get_tree().process_frame
		$SubViewport.size = correct_size
```
This is very inelegant, and I don't see how SubViewportContainer messing with viewport sizes would be intended behavior in the first place. 

### Steps to reproduce

- Create a SubViewport inside a SubViewportContainer
- enable `stretch` on SubViewportContainer
- add `icon.png` or an image of your choice to the SubViewport, and set viewport `size` to the image dimensions
- the texture should "stretch" and fill the entire parent container's size, just like a TextureRect set to `STRETCH_SCALE`
- resize the container
- instead of staying stretched to fit the container, the image is no longer scaled, unless you use a "workaround"
- the above also caused the `size` of the SubViewport to change

### Minimal reproduction project
[MRP_SubViewportContainer.zip](https://github.com/godotengine/godot/files/8901956/MRP_SubViewportContainer.zip)
1. Open main.tscn in editor
2. Resize the root Control
3. Notice both the viewport and icon.png changing size
Repository: godot
Issue: Scrollbar Max Value is incorrect
Labels: bug,topic:gui

### Godot version

3.4.4stable

### System information

Windows 10

### Issue description

I am trying to get the distance from VScrollBar's current position to the bottom of the scrollbar, but it looks like max value is not actually the max value? 
Not sure if this applies to the regular scroll container as well, I haven't tried it.

### Steps to reproduce

Run the attached project. Constantly scroll to the bottom while observing the printed output. In some of my projects, that number will even fluctuate, not sure why. 

### Minimal reproduction project

[scroll_test.zip](https://github.com/godotengine/godot/files/8902072/scroll_test.zip)
Repository: rust
Issue: Unions require Copy fields, but ignore regions in the check
Labels: A-lifetimes,T-compiler

```rust
union Bar<'a> {
    v: Foo<'a>,
}

struct Foo<'a> { s: &'a u32 }

impl Copy for Foo<'static> {}
impl Clone for Foo<'static> { fn clone(&self) -> Self { *self } }
```

https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=4cc269cb234497a007039d6ddbc41943

It seems to me that the above code should probably be rejected, since in general `Foo<'a>` doesn't implement Copy in the above code.

The compiler check is checking for "is_copy_modulo_regions" specifically https://github.com/rust-lang/rust/blob/master/compiler/rustc_passes/src/stability.rs#L780, which seems like it probably shouldn't be modulo regions?

<!-- TRIAGEBOT_START -->

<!-- TRIAGEBOT_ASSIGN_START -->

<!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":"compiler-errors"}$$TRIAGEBOT_ASSIGN_DATA_END -->

<!-- TRIAGEBOT_ASSIGN_END -->
<!-- TRIAGEBOT_END -->
Repository: rust
Issue: Cannot transmute between ZST and zero-sized generic array
Labels: C-bug,A-array

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.
-->

I tried this code: [(Playground)](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=c0dd2ea0152ef4893b98adf42aeacbfd)
```rust
struct GenericZst<T> {
    a: [T; 0],
}

fn foo<T>() -> GenericZst<T> {
    unsafe { ::core::mem::transmute::<(), GenericZst<T>>(()) }
}
```

I expected this to compile, because `[T; 0]` is always zero-sized.

Instead, it fails to compile with this error:
```
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
 --> src/lib.rs:6:14
  |
6 |     unsafe { ::core::mem::transmute::<(), GenericZst<T>>(()) }
  |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: source type: `()` (0 bits)
  = note: target type: `GenericZst<T>` (size can vary because of T)

For more information about this error, try `rustc --explain E0512`.
error: could not compile `playground` due to previous error
```

### Meta
<!--
If you're using the stable version of the compiler, you should also check if the
bug also exists in the beta or nightly versions.
-->

`rustc --version --verbose`:
```
rustc 1.63.0-nightly (ca122c7eb 2022-06-13)
binary: rustc
commit-hash: ca122c7ebb3ab50149c9d3d24ddb59c252b32272
commit-date: 2022-06-13
host: x86_64-unknown-linux-gnu
release: 1.63.0-nightly
LLVM version: 14.0.5
```

somewhat related: #98064
Repository: flutter
Issue: [Proposal][camera] Add raw image format ImageFormat.RAW_SENSOR support 
Labels: c: new feature,platform-android,p: camera,package,c: proposal,P3,team-android,triaged-android


## Use case

Raw image capture support for Android applications while capturing the image from the camera. 


## Proposal

Provide Raw Image **ImageFormat.RAW_SENSOR** capture support for the camera plugin. That is provided by camera2 api on native android. 

https://developer.android.com/reference/android/graphics/ImageFormat#RAW_SENSOR
Repository: deno
Issue: Reland `Deno.kill` SIGBREAK Windows changes
Labels: bug,runtime

https://github.com/denoland/deno/pull/14865

We should reland the SIGBREAK portion of this revert after the next release and allow SIGINT for pid == 0.
Repository: godot
Issue: Seemingly garbage data errors involving Animated Sprite in use with Animation Player
Labels: bug,topic:animation

### Godot version

3.4.4 Stable

### System information

Windows 10, Ryzen 5 2600, Nvidia GTX 1060

### Issue description

I have a thread on the godot forums here about the issue:
https://godotforums.org/d/30153-animation-player-set-animation-there-is-no-animation-nonexistent-animation/4

In a project I'm working on, I was using animation player to animate a boss character, with each piece being sprites, some of which were animated sprites. The output from the debugger suddenly was giving exceptions about an animation player searching for a nonexistent animation, the names of which seem to be the names of my animation but corrupted.

![image](https://user-images.githubusercontent.com/36461106/173678707-920d2cc0-7086-4332-9dca-eb48b3eb9b78.png)
![image](https://user-images.githubusercontent.com/36461106/173678725-e88340f1-0ea1-4467-9328-38aaa94cc53c.png)

I eventually fixed the issue by recreating the torso animated sprite and deleting the old one, but the cause of what happened is still unclear.

### Steps to reproduce

What caused the problem or how to recreate it is unclear, but the issue is preserved in the included source code.

Just open Fight6.tscn, and the opponent will create tons of errors.

I created a rudimentary animation testing script that can alternatively be connected to the Ancient Warrior, and using that, in addition to the errors that are standard for the script calls in the animation not being found, the erroneous errors also appear.

### Minimal reproduction project

https://drive.google.com/file/d/1iqLyYoiRISIQPPyvb46GUOd1A5R727_U/view?usp=sharing
Repository: go
Issue: x/pkgsite: `/` keyboard shortcut does not work on Firefox
Labels: pkgsite

<!--
Please answer these questions before submitting your issue. Thanks!
-->
Seems likely related to #41093.

### What is the URL of the page with the issue?
From the above linked issue: https://pkg.go.dev/k8s.io/client-go/kubernetes

### What is your user agent?

<!--
You can find your user agent here:
https://www.google.com/search?q=what+is+my+user+agent
-->
```
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:101.0) Gecko/20100101 Firefox/101.0
```


### Screenshot

<!--
Please paste a screenshot of the page.
-->
![Screen Shot 2022-06-14 at 4 53 47 PM](https://user-images.githubusercontent.com/11131775/173686876-951ed243-2a33-4221-9a27-4a9af5b8b0e5.png)


### What did you do?
Press `/` key. I also tried setting `accessibility.typeaheadfind.manual` to `false` under the Firefox `about:config` page, in case it was interfering with the keyboard shortcut implementation. Is there another workaround that might enable the `/` keyboard shortcut functionality?

### What did you expect to see?
Search box highlighted as described in the `?` keyboard shortcut modal (quickly "Search packages or symbols")

Other websites (e.g. https://github.com or https://go-review.googlesource.com) seem to support their own search bar (without interference from the Firefox-native "quick find"), but pkg.go.dev does not appear to support this.

### What did you see instead?
When `accessibility.typeaheadfind.manual` is set to `true`, Firefox opens its "quick find" box:
![Screen Shot 2022-06-14 at 4 57 40 PM](https://user-images.githubusercontent.com/11131775/173687517-9ad14c04-eca7-4555-b6ce-2a08c1fdf70b.png)

When it is set to `false`, nothing happens when I type the `/` key.
Repository: pytorch
Issue: __torch__dispatch does not return new output in inplace function
Labels: triaged,module: __torch_dispatch__

### 🐛 Describe the bug

Even though we are returning a `ModeTensor` in `x.add_(1)` below, the output is still the input `torch.rand([4])` which is not a `ModeTensor`.

```
import torch
from torch.utils._python_dispatch import TorchDispatchMode

class ModeTensor(torch.Tensor):
    def __new__(cls, elem, mode):
        r = torch.Tensor._make_subclass(cls, elem, elem.requires_grad)
        r.elem = elem
        r.mode = mode
        return r

    def __torch_dispatch(self, func, types, args=(), kwargs=None):
        with self.mode:
            return func(*args, **kwargs)

class Mode(TorchDispatchMode):
    def __torch_dispatch__(self, func, types, args=(), kwargs=None):
        def unwrap(e):
            if isinstance(e, ModeTensor):
                return e.elem
            else:
                return e

        def wrap(t):
            if isinstance(t, torch.Tensor):
                return ModeTensor(t, self)
            else:
                return t

        return wrap(func(*tuple(unwrap(a) for a in args), **kwargs))

x = torch.rand([4])
with Mode():
    out_func = x.add(1)
    out_inplace = x.add_(1)

print(type(out_func), out_inplace)
# <class '__main__.ModeTensor'> tensor([1.2925, 1.5918, 1.2033, 1.9141])
```

### Versions

master

cc @Chillee @ezyang @zou3519 @albanD @samdow
Repository: flutter
Issue: [web] PWA apps do not update automatically
Labels: framework,platform-web,has reproducible steps,P2,found in release: 3.0,found in release: 3.1,team-web,triaged-web

When accessing a website and installing a PWA application, the name and logo do not update as the application's source site receives new updates. you have to remove it and redo the installation again when there is a name change it's logo
Repository: TypeScript
Issue: Optional properties in inferred mapped type causes auto-completion to break.
Labels: Bug,Help Wanted,Domain: Completion Lists

# Bug Report

Optional properties in inferred mapped type causes auto-completion to break.

### 🔎 Search Terms

Inferred mapped type with optional properties no auto-complete

### 🕗 Version & Regression Information

I believe it never worked.

### ⏯ Playground Link

https://tsplay.dev/mpnLBw

### 💻 Code

<!-- Please post the relevant code sample here as well-->
```ts
type A1<T extends object> = {
  [K in (keyof T | 'autoCompleteProp')]:
    K extends 'autoCompleteProp'
    ? boolean
    : K extends keyof T
    ? T[K] extends object
    ? A1<T[K]>
    : object
    : never;
}

type A2<T extends object> = {
  [K in (keyof T | 'autoCompleteProp')]?: // <---- this is the only difference compared to A1
    K extends 'autoCompleteProp'
    ? boolean
    : K extends keyof T
    ? T[K] extends object
    ? A2<T[K]>
    : object
    : never;
}

function makeA1<T extends A1<T>>(t: T) {
  return t;
}

function makeA2<T extends A2<T>>(t: T) {
  return t;
}

makeA1({
  autoCompleteProp: true, // <-- you CAN autoComplete 'autoCompleteProp' here
  bla: {
    autoCompleteProp: true, // <-- you CAN autoComplete 'autoCompleteProp' here
    blubb: {
      autoCompleteProp: false, // <-- you CAN autoComplete 'autoCompleteProp' here
      bleh: {
        // <-- you CAN autoComplete 'autoCompleteProp' here
      }
    },
  },
});

makeA2({
  autoCompleteProp: true, // <-- you CAN autoComplete 'autoCompleteProp' here
  bla: {
    // <-- you CAN'T autoComplete 'autoCompleteProp' here
    blubb: {
      // <-- you CAN'T autoComplete 'autoCompleteProp' here
      bleh: {
        // <-- you CAN'T autoComplete 'autoCompleteProp' here
      },
    },
  },
});

```

### 🙁 Actual behavior

No auto-completion offered by editor or IDE in marked lines when pressing `CTRL + SPACE` or `a`

Edit: You can enter `autoCompleteProp: '',` in the lines where auto-completion fails. The compiler will complain that `autoCompleteProp` must be a `boolean`. Thus, the information about the optional property is there, it's just that it never appears in the auto-completion results.

### 🙂 Expected behavior

Auto-complete suggestion for "autoCompleteProp" in every line marked with `<--`
Repository: rust
Issue: Licensing of Unicode-related functionality?
Labels: A-Unicode,T-core,A-meta,A-licensing

In the course of reviewing licenses for Fuchsia's external dependencies, we've noticed that some crates in the ecosystem, [including std](https://github.com/rust-lang/rust/blob/master/src/tools/unicode-table-generator/src/unicode_download.rs), make use of [Unicode data files](https://www.unicode.org/Public/UCD/latest/ucd), but don't seem to treat the code generated from those data files as bound by the [Unicode license](https://www.unicode.org/license.txt). Unicode has a [licensing FAQ](https://www.unicode.org/faq/unicode_license.html) but I'm not sure how normative that is.

IANAL, so I'm not sure whether the Unicode license should apply to the [files in core](https://github.com/rust-lang/rust/blob/master/library/core/src/unicode/unicode_data.rs#L1) which seem to be generated from the Unicode data files, but I wanted to raise the possibility for the project to consider.
Repository: flutter
Issue: [flutter_web][chrome] A particular Image is not rendered
Labels: engine,platform-web,a: images,c: rendering,e: web_canvaskit,has reproducible steps,P2,found in release: 3.0,found in release: 3.1,team-web,triaged-web

I tried to set background image behind scaffold and it works perfectly on chrome on desktop even after I publish the app
but when I published the app and i tried it on mobile with chrome 102 it didn't work 
I'm using flutter 3.0.2

## Steps to Reproduce

I tried to ways the first way is 
```
Stack(
          children: [
            Positioned.fill(
              child: ColorFiltered(
                colorFilter: ColorFilter.mode(
                  ColorAdjust.lighten(
                   Colors.red,
                    percent: 35,
                  ),
                  BlendMode.color,
                ),
                child: Image.network(
                  "https://link-to-image",
                  fit: BoxFit.cover,
                ),
              ),
            ),
],
),
```
I also tried in this way
```
Container(
        decoration: BoxDecoration(
          image: DecorationImage(
            image: NetworkImage(
              "https://link-to-image",
            ),
            fit: BoxFit.cover,
            colorFilter: ColorFilter.mode(
                    Colors.red,
                    BlendMode.color,
                  ),
          ),
        ),
),
```

both ways works on chrome on macOS but not on android also I tried without the colour filter with both ways 
and it didn't work on the first way it shows the colour filter on the second way it shows black screen
without the filter it shows regular white background 

both of the ways the child was scaffold with transport colour 

Edit: I'm using canvaskit to render also on mobile
Repository: pytorch
Issue: [LTC] Introduce a `MetricsReport` python binding and allow backend to add their report as string
Labels: triaged,lazy

### 🚀 The feature, motivation and pitch

`Metrics` and `Counters` classes were originally introduced in https://github.com/pytorch/xla/blob/master/third_party/xla_client/metrics.h and then got upstream to LTC in https://github.com/pytorch/pytorch/blob/master/torch/csrc/lazy/core/metrics.cpp.

As part of the LTC migration, pytorch/xla wants to adapt the upstream `Metrics` class but we run into an issue. Currently pytorch/xla `Metrics` class is part of the `xla_client` which will be built with tensorflow. `xla_client` can not take any dependency to pytorch. `ComputationClinet` in the `xla_client` also needs to use `Metrics` to record some debugging information. I think it will be very hard to get rid of the pytorch/xla version of the `Metrics`.

Given that `xla_client` complications, I think we can still keep 2 `metrics` classes. When `MetricReport`(which we will need to add a binding on the LTC side) is being called in the LTC, LTC will collects all of its counters and metrics. After that is done, LTC can call a backendInterface to get the backend specified `MetricReport` as string and append that to its report.

I think it is actually a good idea since user can easily tell which metrics/counters are backend specified and where to look.

To summary I think we should
1. Add a `MetricsReport` python binding in LTC
2. Add a `GetBackendMetricReport` method to the `BackendInterface`
3. Append `GetBackendMetricReport` at the end of the LTC `MetricsReport`

@Krovatkin @wconstab 

### Alternatives

have two API one only collect metrics reports for LTC and another one only for xla

### Additional context

_No response_
Repository: opencv
Issue: detectMulti() and detect() work differently in QRCodeDetector
Labels: bug,category: objdetect,affected: 3.4

`detectMulti()` and `detect()` work differently in `QRCodeDetector`. Also `detect()` finds the QR code incorrectly

- OpenCV => 4.6.0 Python
- Operating System / Platform => Win10/Ubuntu ubuntu 20.04

##### Detailed description
script:
```
import cv2 as cv
def main():
    print(cv.__version__)
    image = cv.imread("image013.jpg", cv.IMREAD_IGNORE_ORIENTATION)
    detector = cv.QRCodeDetector()
    print(detector.detectMulti(image))
    print(detector.detect(image))
```
result:
```
4.6.0
(False, None)
(True, array([[[252., 150.],
        [ 60.,  82.],
        [ 21.,   0.],
        [248.,  37.]]], dtype=float32))
```

image013.jpg:

![image013](https://user-images.githubusercontent.com/22337800/173747140-e76dab51-84c3-4101-a7cf-11bb91488c3e.jpg)


##### Issue submission checklist

 - [x] I report the issue, it's not a question
 - [x] I checked the problem with documentation, FAQ, open issues,
 - [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: flutter
Issue: [windows build]: please add RelWithDebInfo build type
Labels: c: new feature,tool,platform-windows,c: proposal,a: desktop,a: build,P3,team-windows,triaged-windows

flutter currently only have **Debug/Release/Profile** build types on windows. but visual studio has a **RelWithDebInfo** type, which can help produce debug symbol files (**pdb**) when build a deployable app, to symbolic crash report after app release.
so please add the RelWithDebInfo build type on windows platform.
Repository: create-react-app
Issue: Back to show build time
Labels: needs triage

Hello everyone
is there any way to view the runtime after afer done the build (yarn build or npm run build)?
Because after updating CRA it no longer shows "Completed in ... sec".
Thank you in advance
![image](https://user-images.githubusercontent.com/58855481/173781736-2beaedb8-205b-48a8-b5cd-97ceed002bd7.png)
Repository: node
Issue: `Writer` cannot cope with `ArrayBuffer`
Labels: help wanted,stream,web streams,web-standards

### Version

v19.0.0-pre

### Platform

Darwin

### Subsystem

web/streams

### What steps will reproduce the bug?

Try the following code both on chrome & nodejs:
```js
const str = "H4sIAAAAAAAAE0vLzwcAIWVzjAMAAAA=";
const buf = Uint8Array.from(atob(str), c => c.charCodeAt(0));
const ds = new DecompressionStream("gzip");
const writer = ds.writable.getWriter();
writer.write(buf.buffer);
writer.close();
await new Response(ds.readable).arrayBuffer();
```

### How often does it reproduce? Is there a required condition?

_No response_

### What is the expected behavior?

_No response_

### What do you see instead?

```
node:internal/errors:477
    ErrorCaptureStackTrace(err);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be of type string or an instance of Buffer or Uint8Array. Received an instance of ArrayBuffer
    at new NodeError (node:internal/errors:388:5)
    at _write (node:internal/streams/writable:315:13)
    at Writable.write (node:internal/streams/writable:337:10)
    at Object.write (node:internal/webstreams/adapters:166:63)
    at ensureIsPromise (node:internal/webstreams/util:172:19)
    at writableStreamDefaultControllerProcessWrite (node:internal/webstreams/writablestream:1091:5)
    at writableStreamDefaultControllerAdvanceQueueIfNeeded (node:internal/webstreams/writablestream:1206:5)
    at node:internal/webstreams/writablestream:1278:7 {
  code: 'ERR_INVALID_ARG_TYPE'
}
```

### Additional information

_No response_