sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Pytorch not compatible with react native android
Labels: oncall: mobile

## 🐛 Bug

I started using Pytorch in my app in which a module is already using ReactNative.Application is crashing while running the model

## To Reproduce

Steps to reproduce the behavior:

1.Download sample react native Android code
2.Integrate Pytorch
3.Try to load a sample model using Pytorch.

App crashes with following error
 java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libpytorch_jni.so caused by: dlopen failed: cannot locate symbol "_ZN8facebook3jni11JByteBuffer5orderENS0_9alias_refINS0_10JByteOrderEEE" referenced by "/data/app/com.******-sAs98rDRDFL87ujKDr_Ctw==/lib/arm64/libpytorch_jni.so"...

## Expected behavior

App should not crash while loading model


 - PyTorch Version (e.g., 1.4.0):
 - OS (e.g., Linux):
 - How you installed PyTorch (`conda`, `pip`, source):
 - Build command you used (if compiling from source):
 - Python version:
 - CUDA/cuDNN version:
 - GPU models and configuration:
 - Any other relevant information:
Repository: go
Issue: x/build: build infrastructure credentials should be recycled
Labels: Builders,NeedsFix

After migrating all of the build infrastructure secrets into a secret management system #37171, we should recycle all of the secrets. 

@toothrot @dmitshur @FiloSottile
Repository: godot
Issue: Vehicle Wheel doesnt spin on air
Labels: bug,confirmed,topic:physics,topic:3d

Windows 10
Ryzen 5 2600, Nvidia GTX 1060
Godot 3.2

If applying an engineforce to the wheel, they only spin when in contact with something.
I applied a engine force to a single wheel and also to the vehicle body and while on the air the wheel mesh doesnt appear to be spinning and wheel.get_rpm() returns 0
Also when on the ground and skidding(i set friction slip to 0.1) the wheel doesnt keep rotating if you accelerate, it matches the speed of the road, for example, if the car is rolling backwards and you accelerate forwards the wheels keep rotating backwards
Repository: go
Issue: net/http: Allow obtaining original header capitalization
Labels: NeedsInvestigation

### What version of Go are you using (`go version`)?

1.13

### Does this issue reproduce with the latest release?

Yes

### What operating system and processor architecture are you using (`go env`)?

Windows, x64

### What did you do?

Make a HTTP request, read it's headers, send those headers somewhere else.

### What did you expect to see?

Headers are preserved exactly

### What did you see instead?

Header capitialization gets canonicalized

I realize this has been discussed [before (about 7 years ago)](https://github.com/golang/go/issues/5022).

However, in the time since then many users have been adversely affected by this.  E.g.
https://github.com/containous/traefik/issues/466
https://github.com/Azure/azure-storage-azcopy/issues/113

So I'd like to find out, would the Go team consider not a change to the current behaviour, but simply a way for an HTTPResponse to provide an _additional_ map, that maps canonicalizedName -> originalName.  If we could just get that map, then those of us who really need header case preservation could use the information it contains to achieve what we need.  (Find out the original capitalization when we read a response, and then directly manipulate the outbound request map when we forward that data on).

I'd be happy to contribute the code for the above, if we expected it to be accepted.
Repository: puppeteer
Issue: Feature request: Implement environment variable for `--no-sandbox`
Labels: feature,good first issue,confirmed

### Steps to reproduce

* Puppeteer version: all
* Platform / OS version: Docker
* Node.js version: All

**What steps will reproduce the problem?**

Running puppeteer as a root user errors with the common: `Running as root without --no-sandbox is not supported. See https://crbug.com/638180.`. You can get around this by adding a `--no-sandbox` to every invocation of puppeteer, but this is not easily feasible or desirable when there are thousands of tests present.

For our specific use case we are utilizing puppeteer to run integration tests, and chowning all files for suitable permissions takes way too long. We are looking at speeding this up by moving to a no-sandbox environment.

**One possible solution**

Please consider adding support for an environment variable, such as `PUPPETEER_DANGEROUS_NO_SANDBOX=true`, whenever this environment variable is set, run all tests as no-sandbox.
Repository: flutter
Issue: [in_app_purchase] Support InApp purchase local verification
Labels: c: new feature,p: in_app_purchase,package,c: proposal,team-ecosystem,P3,triaged-ecosystem

InApp purchase plugin should support local/offline purchase verification
Android Purchase Verification: 
https://developer.android.com/google/play/billing/billing_library_overview#Verify-purchase-device
iOS Receipt Validation: https://developer.apple.com/library/archive/releasenotes/General/ValidateAppStoreReceipt/Chapters/ValidateLocally.html

This is not only a security enhancement but also a functional bug fix. I can explain why.
In Android, when we purchase an auto-renewing subscription, the plugin returns that subscription when we query the past purchases and when the subscription is expired or the user cancels it, the plugin will not return the purchase when we query it. So in Android, this works as expected. But in iOS there is a behaviour change when the subscription is expired. The plugin still returns the purchase when we query the past purchase, which is unexpected in the perspective of the plugin user, especially if he successfully implemented the Android part and according to the user, this is a bug in the plugin. 

This may be a problem of the iOS ecosystem that the validity of the receipt may be checked locally in order to determine whether the subscription is active or not. But since this is a plugin, it should abstract away all of the complexities like this and provide idiomatic APIs to handle the situation like this. 

So the plugin should provide some basic offline verification of the purchase for security and functional consistency.

Tested in in_app_purchase: 0.2.0+7
Repository: TypeScript
Issue: No way to use composite project where outDir is determined by build tool
Labels: Needs Investigation

In https://github.com/microsoft/TypeScript/issues/37257 I discussed one way to host TS project references under Bazel, where each build step gets only `.d.ts` and `tsconfig.json` files from the referenced projects. This is broken because TS module resolution fails to locate the `.d.ts` files in their `outDir`.

In this issue, let's try a different approach for Bazel, to satisfy current TS module resolution, each build step should get the `.ts` sources of its referenced projects, and the `.tsbuildinfo` output as well.

Bazel is picky about the setting of `--outDir`, because it supports cross-compiled builds in distinct output locations. For example if you're on a Mac and building for local platform, the outDir is `<workspace root>/bazel-out/darwin-fastbuild/bin`. But if you're on a Mac and building for a docker image, you need native binaries to be for the target platform so outDir is `<workspace root>/bazel-out/k8-fastbuild/bin` and if you want binaries with debug information it's `<workspace root>/bazel-out/k8-dbg/bin`.

Since the outDir is platform-specific, we don't want to check in a config file that hard-codes it. So we prefer to always have Bazel pass the `--outDir` option on the command-line to `tsc`, rather than include it in the tsconfig files.

Now we come to the problem. TypeScript "composite" setting enables up-to-dateness checking in `tsc`. With this input structure, and trying to `tsc -p b`

```
a/a.ts
a/tsconfig.json (no outDir specified; a was compiled with tsc --outDir=bazel-out/darwin-fastbuild/bin/a)
b/b.ts
b/tsconfig.json
bazel-out/darwin-fastbuild/bin/a/a.d.ts
bazel-out/darwin-fastbuild/bin/a/tsconfig.tsbuildinfo
```

we get `b/b.ts(1,17): error TS6305: Output file '/private/var/tmp/_bazel_alx/df60115ea7f2a64e10fb4aa64b7d827f/sandbox/darwin-sandbox/54/execroot/ts_composite/a/a.d.ts' has not been built from source file '/private/var/tmp/_bazel_alx/df60115ea7f2a64e10fb4aa64b7d827f/sandbox/darwin-sandbox/54/execroot/ts_composite/a/a.ts'.`

This indicates that TS is looking for `a.d.ts` next to `a.ts`. If we hard-code the platform-dependent outDir into a/tsconfig.json like I've done here
https://github.com/alexeagle/ts_composite/pull/5 it solves this problem, but not in a way we can ship.

Note that the compilation of a/tsconfig.json produces a .tsbuildinfo file with a correct "outDir" (based on the --outDir flag that was passed to compilation of `a`
```
 "options": {
      "project": "../../../../a/tsconfig.json",
      "outDir": "./",
  }
```

So it seems like the behavior for compiling `b` is to read the `outDir` setting from a/tsconfig.json rather than trust the `options.outDir` reflected in the .tsbuildinfo output.
Repository: flutter
Issue: SliverAppBar: Copy/Paste controls for TextField are enlarged when AppBar is expanded.
Labels: a: text input,framework,f: material design,f: scrolling,a: quality,has reproducible steps,P2,found in release: 3.7,found in release: 3.9,team-design,triaged-design

This example is using a NestedScrollView + SliverAppBar as header. Inside the AppBar, is a TextField.
http://screens.gskinner.com/shawn/2020-03-13_00-36-22.mp4

You can see that the Copy/Paste/Select all controls grow with the scale of the Widget which is not desired.

```
List<String> items = List.generate(30, (index) => "List Item $index");
    return NestedScrollView(
      headerSliverBuilder: (context, bool isScrolled) => <Widget>[
        SliverAppBar(
          pinned: true,
          expandedHeight: 200,
          flexibleSpace: FlexibleSpaceBar(
            centerTitle: false,
            titlePadding: EdgeInsets.only(left: Insets.med, bottom: Insets.med),
            background: Opacity(opacity: .2, child: Image.network("https://picsum.photos/600/300", fit: BoxFit.cover)),
            title: TextField(
                decoration: InputDecoration(hintText: "Untitled List"),
                style: TextStyle(color: Colors.white, fontWeight: FontWeight.bold),
                showCursor: false),
          ),
        )
      ],
      body: ListView.builder(
          itemExtent: 50,
          itemCount: items.length,
          itemBuilder: (_, int index) {
            return Container(alignment: Alignment.center, child: Text(items[index]));
          }),
    );
```
Repository: pytorch
Issue: RuntimeError: derivative for grid_sampler_2d_backward is not implemented
Labels: triaged,module: interpolation

Hi

When trying to compute the second order derivative of `grid_sampler`, the following error occurs: `RuntimeError: derivative for grid_sampler_2d_backward is not implemented`. 

It seems useful to support second order derivative for bilinear interpolation operations like this, given bilinear interpolation is used in some common operations like deformable convs and roialign. 

Another side question is that, if I write a custom operation in cuda, do I need to write a function by myself to support second order derivative of that operation? For example, the deformable conv operation in mmdet has its own cuda implementation (see [here](https://github.com/open-mmlab/mmdetection/blob/master/mmdet/ops/dcn/deform_conv.py#L51)), is it possible to get the second order derivative of this operation without having to write my own implementation. 

Thanks a lot
Repository: nvm
Issue: [Bug/Feature] Error in not compatibility
Labels: needs followup

Hello,

Sorry if already this is in issue, but i have try search google without any good results, so i want to help others.

OS: Ubuntu 18.04
NVM: latest (0.35.3)
OpenSSL: 1.1.0h (1.1.0h-2.0+ubuntu16.04.1+deb.sury.org+1)
npm: v8.17.0

this set is working, but when i change version to v10.19.0 or v12.16.1 (latest new versions) i have got error: "error:2406C06E:random number generator:RAND_DRBG_instantiate:error retrieving entropy"

So i think is here not compatibility between OS,OpenSSL and Node.

Then i downgrade to v8.17.0 work good.

Maybe must got requirements check for npm/node version installing ?
Repository: ant-design
Issue: Table header can't scroll when append a new column
Labels: 🐛 Bug,Inactive,4.x

- [ ] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### Reproduction link
[https://github.com/wang12124468/antd-bugs-table/tree/bugs-header-scroll-when-append-column](https://github.com/wang12124468/antd-bugs-table/tree/bugs-header-scroll-when-append-column)

### Steps to reproduce
1. Download from the repository
2. Then checkout branch bugs-header-scroll-when-append-column
3. Run the app and click the button of '追加一列'.

### What is expected?
Scroll the table, the body and header will scroll together.

### What is actually happening?
Scroll the table, the header can't scroll.

| Environment | Info |
|---|---|
| antd | 4.0.2 |
| React | * |
| System | * |
| Browser | * |


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: pytorch
Issue: Maybe gpu_kernel shouldn't ASSERT_HOST_DEVICE_LAMBDA
Labels: triaged

I am not really sure why this assert exists (don't you only need a device lambda for gpu kernels?), but I was recently working on #31278 and discovered a case where it was actively harmful to define things as a `__host__ __device__` lambda.  Consider this code:

```
   at::native::gpu_kernel(iter,
     [seeds] GPU_LAMBDA (scalar_t count, scalar_t prob) {
      curandStatePhilox4_32_10_t state;
      curand_init(
          seeds.first,
          blockIdx.x * blockDim.x + threadIdx.x,
          seeds.second,
          &state);

      auto uniform_lambda = [&state] GPU_LAMBDA () {
        return curand_uniform(&state);
      };
      BaseSampler<accscalar_t, decltype(uniform_lambda)> standard_uniform(uniform_lambda);
```

This doesn't work, because lambdas with captures only work for pure `__device__` lambdas, not `__host__ __device__` lambdas. So to make it work I had to make a separate `__device__` only template function, and then call it from the `__host__ __device__` function. Why couldn't I just pass a device only lambda directly?

cc @colesbury
Repository: godot
Issue: function name can be built in names, but not overrides 
Labels: topic:gdscript,documentation

**Godot version:** 3.2.1

**OS/device including version:** Any

**Issue description:**
a function name can be built in names (built in func, const), but when calling it without indexing is invalid. 
1. we have to make built in methods overrideable (like python)
2. or prevent function names shadows built in.

**Steps to reproduce:**
![built-in-override](https://user-images.githubusercontent.com/41085900/76631246-5d535280-6567-11ea-928d-1b6fb14318a9.JPG)


**Minimal reproduction project:**
N/A
Repository: neovim
Issue: blend shows emojis behind window or popup
Labels: enhancement,display,unicode  💩

- `nvim --version`:

```
NVIM v0.5.0-416-g2b00d1d09
Build type: Release
LuaJIT 2.1.0-beta3
Compilation: /Applications/Xcode-10.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2 -DNDEBUG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/Users/travis/build/neovim/bot-ci/build/neovim/build/config -I/Users/travis/build/neovim/bot-ci/build/neovim/src -I/Users/travis/build/neovim/bot-ci/build/neovim/.deps/usr/include -I/usr/include -I/usr/local/opt/gettext/include -I/Users/travis/build/neovim/bot-ci/build/neovim/build/src/nvim/auto -I/Users/travis/build/neovim/bot-ci/build/neovim/build/include
Compilado por travis@Traviss-Mac-6.local

Features: +acl +iconv +tui
See ":help feature-compile"

    arquivo vimrc de sistema: "$VIM/sysinit.vim"
            padrão para $VIM: "/share/nvim"

Run :checkhealth for more info
```

- `vim -u DEFAULTS` (version: ) behaves differently? No
- Operating system/version: Mac OS X
- Terminal name/version: iTerm 3.3.9
- `$TERM`: `xterm-256color`

### Steps to reproduce using `nvim -u NORC`

- Enable transparency:

```
set pumblend=9
set winblend=9
```

- Open any buffer with emoji text
- Use autocomplete or any other window/popup with transparency.

### Actual behaviour

Actually the emojis are showed as if it belonged to the window/popup with transparency:

![image](https://user-images.githubusercontent.com/430272/76631707-ded3c200-6520-11ea-88c2-43f279008aba.png)


### Expected behaviour

For a better user experience would be nice if the char is a emoji it to be hided in the blended window/popup. Something like:

![image](https://user-images.githubusercontent.com/430272/76632644-476f6e80-6522-11ea-8435-8f318c804dfb.png)
Repository: TypeScript
Issue: Type inference regression (regression)
Labels: Bug

<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨 -->
<!--
Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker.

Please help us by doing the following steps before logging an issue:
  * Search: https://github.com/Microsoft/TypeScript/search?type=Issues
  * Read the CONTRIBUTING guidelines: https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md
  * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ
-->

<!-- If you have a QUESTION:
   THIS IS NOT A FORUM FOR QUESTIONS.
   Ask questions at http://stackoverflow.com/questions/tagged/typescript
    or https://gitter.im/Microsoft/TypeScript
-->

<!-- If you have a SUGGESTION:
  Most suggestion reports are duplicates, please search extra hard before logging a new suggestion.
  See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md
-->

<!-- If you have a BUG:
  Please fill in the *entire* template below.
-->

<!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->
**TypeScript Version:**  3.0.0-dev.20200312

<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:** 

**Code**

```ts
export interface Supervisor<N extends string, P = undefined, R = P, S = undefined> {
  constructor: typeof Supervisor;
}
export abstract class Supervisor<N extends string, P = undefined, R = P, S = undefined> {
  constructor() {
    if (this.constructor === Supervisor) this.id;
  }
  public id = 0;
  public abstract call(name: N | ('' extends N ? undefined | ((names: Iterable<N>) => Iterable<N>) : never), param: P, timeout?: number): Promise<R>;
}
```

**Expected behavior:**
pass
**Actual behavior:**
Property 'id' does not exist on type 'never'.(2339)
**Playground Link:** http://www.typescriptlang.org/play/index.html?ts=3.9.0-dev.20200312&ssl=1&ssc=1&pln=10&pc=2#code/KYDwDg9gTgLgBASwHY2FAZgQwMbDgZQFcw0A3BAZ2gB4A5OUVJAEwrgpimQHMAaOAApwAvHEItg6ZMGb8ASiMH98i8c0nTmAPjgBvAFBw42CEg5RC2GNABccGAE8SEdAWJlK0ANz6AvvtBIWDhMACNzHHhsABtMCjYiEihyKig6BhAmVnZOHn4hUTUNJBl5RQFlVQkpEu09Q2NTc0trKAAKAEp6oyMEVzaYAAtKADoTM04W6BFhUUSPVK6h0YRmHyN-IzBCUOiEbERmRQAGdbht3f2Q8M5I40xo6LakTABbYDt6AB84NoByP4ZLJsegAfjE1U0cB+bWeb2AFDsAElUFAwtFgHQtF1hDoUWh0ZjaNi4HYSqQ0B1+GBMGjXnYKvYEO8IIQYKCyYRXqFKQyoBBXpRMXItD5fEA

**Related Issues:**
Repository: godot
Issue: Tree not processing if the the tab is not active in WASM
Labels: discussion,platform:web,topic:porting,confirmed,documentation

**Godot version:**
3.2.1
**OS/device including version:**
Firefox 73
**Issue description:**
When running a project in the browser, the tree pauses if you leave the tab. Timers are paused and no functions are fired. This is particularly an issue in online turn games when someone leaves the tab to check another website while waiting for their turn.
Repository: go
Issue: x/text/cmd/gotext: generate for one GOOS/GOARCH from a different GOOS/GOARCH
Labels: NeedsInvestigation

I maintain a Go program for Windows that uses CGo, but I mostly develop from Linux. I use gotext, which means a file has in it:

`//go:generate go run golang.org/x/text/cmd/gotext -srclang=en update -out=zgotext.go -lang=en,fr,ja,sl`

The problem is that in order for gotext to look at the right source files, GOOS=windows and CGO_ENABLED=1 must be set. However, that causes go run to generate executables for Windows, not my Linux host system.

I've tried variations of `-tags=windows` without GOOS being set, but that doesn't work either.

Any advice?

cc @rozmansi @mpvl @bcmills
Repository: pytorch
Issue: CPU softmax performance poor when dim is not the last dimension
Labels: module: performance,module: cpu,triaged

```
import torch
import torch.nn.functional as F
import time

x = torch.rand(1, 3072, 1024)

NITER = 100

s = time.time()
for _ in range(NITER):
    out = F.softmax(x, dim=1)
e = time.time()

time_per_iter = (e - s) / NITER
print('time per iter (ms)', time_per_iter / 1000)
print('GB/s', (x.numel() * x.element_size() + out.numel() * out.element_size()) / time_per_iter / 1e9)
```

Gives result
```
$ OMP_NUM_THREADS=1 perf record $(which python) softmax_bench.py
time per iter (ms) 0.00013983171939849855
GB/s 0.17997221308765673
```

which is way below peak machine bandwidth.

On machine https://gist.github.com/jamesr66a/f05b2cfd879e205032d4ab7637290d40

Snooping around in perf shows we're spending the most time in scalar transcendental operations:

![image](https://user-images.githubusercontent.com/4685384/76652383-bac5b000-6523-11ea-94e5-fe4af1ce7650.png)

Conceivably this is an "outer reduction" for the purpose of summing up the exp()'ed values. We could do a vectorized reduction keeping those values in vector registers and then apply them elementwise to each slice of the tensor

cc @ezyang @VitalyFedyunin @ngimel
Repository: deno
Issue: chmod doesn't work on Windows
Labels: feat,windows,public API

In Node, the following is observed on Windows:

```typescript
const fs = require('fs');
fs.chmodSync('test_file.txt', 0o000);  //makes the file read-only
fs.chmodSync('test_file.txt', 0o777);  //makes the file writable
```
However, in Deno (v0.36.0) no file mode I tested changed the read-only attribute in any way (including the above two file modes).

From the [Node docs](https://nodejs.org/api/fs.html#fs_fs_chmod_path_mode_callback):
> on Windows only the write permission can be changed, and the distinction among the permissions of group, owner or others is not implemented.

Windows is not mentioned in the [Deno docs](https://deno.land/typedoc/index.html#chmod).

It would be good if Deno could manipulate the read-only attribute of Windows files and specifically call out Windows quirks in the documentation for chmod.
Repository: pytorch
Issue: General Purpose Faulty RPC Agent
Labels: oncall: distributed,triaged,better-engineering,module: rpc

## 🚀 Feature
#33636 will introduce failure injection for PyTorch Distributed tests using `FaultyProcessGroupAgent`, a child class of `ProcessGroupAgent` whose methods can be overriden with faulty implementations. 

As @pritamdamania87 suggested, we should make this framework more general-purpose, and make `FaultyProcessGroupAgent` a child of `RpcAgent`. This will allow us to do failure injection for all backends including Thrift and Tensorpipes going forward, as opposed to just PGA.


cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @xush6528 @osalpekar @jjlilley