sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: Google Maps initialCameraPosition with bounding
Labels: customer: crowd,p: maps,package,team-ecosystem,P2,triaged-ecosystem

I am using the google-maps package for flutter and I need to fit multiple markers. I tried to fix it by calculating the bounding box and the zoom level by myself, but this didn't quite work as expected. Sometimes, the camera is too far out.

Since a few versions, there is the ability to animate to a `LatLngBounds`, which would work and zoom correct. I tried to call the following, when map was created:

`     controller.animateCamera(CameraUpdate.newLatLngBounds(LatLngBounds(
        southwest: const LatLng(-38.483935, 113.248673),
        northeast: const LatLng(-8.982446, 153.823821),
      ), 10));`

Sometimes this is working, but sometimes I get the following platform-exception: 

`Error using newLatLngBounds(LatLngBounds, int): Map size can't be 0. Most likely, layout has not yet occured for the map view.  Either wait until layout has occurred or use newLatLngBounds(LatLngBounds, int, int, int) which allows you to specify the map's dimensions.`

I also tried to achieve this by adding the `cameraTargetBounds` property to the `GoogleMap`-Widget, but as I have seen in another issue, this will not zoom to fit correctly, and I do not want to bound the camera position, I only want to fit it at init.

Is there a solution or a workaround? Or do I have to wait, until it is officially supported?
Repository: godot
Issue: Editor crash in EditorResourcePreview when assigned as fallback bitmap font
Labels: bug,topic:editor,crash

**Godot version:**
Godot 3.1 RC 2


**OS/device including version:**
Linux Mint 19


**Issue description:**
When assigning fallback of fallback to root BitmapFont or next pass in Material, then editor crash.
EDIT: It happens also with Atlas Texture and probably others, but for now I don't know how to fix this.

- [x] - 1. Bitmap font and Material
- [ ] - 2. Textures

**Steps to reproduce:**
1. Create new resource Bitmap font
2. Save it 
3. Open this Bitmap font
4. Assign to fallback new Bitmap font
5. To newly created Bitmap font assign as fallback previously saved font(root one)

https://streamable.com/gy4jp
Repository: go
Issue: runtime: killed threads do not crash whole process
Labels: NeedsInvestigation,compiler/runtime

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.12 linux/amd64
</pre>

### Does this issue reproduce with the latest release?

Yes

### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/ivan/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/ivan/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build580235778=/tmp/go-build -gno-record-gcc-switches"</pre></details>

### What did you do?

I have a program running under systemd and with `SystemCallFilter` applied. My list of allowed syscalls does not include `madvise`, which eventually leads to:

```
$ sudo strace -f -p $(pidof tracefwdr) 2>&1 | fgrep SIGSYS -C5
[pid 125587] <... futex resumed> )      = 0
[pid 125588] <... read resumed> "\202\201\0\temitBatch\34\34\30\10nginx-fl\31<\30\16jae"..., 65000) = 7271
[pid 125587] madvise(0xc000400000, 2097152, MADV_NOHUGEPAGE <unfinished ...>
[pid 125588] read(3, 0xc000438000, 65000) = -1 EAGAIN (Resource temporarily unavailable)
[pid 125587] <... madvise resumed>)     = ?
[pid 125587] +++ killed by SIGSYS +++
[pid 125588] sched_yield()              = 0
```

Here one thread is killed by `SIGSYS` for seccomp violation.

### What did you expect to see?

Whole process panics, clearly indicating failure.

### What did you see instead?

One thread is dead and random part of my program is not working anymore (either reads from channel or udp socket, not so sure).
Repository: rust
Issue: Add function to make paths absolute, which is different from canonicalization
Labels: T-libs-api,C-feature-request

Many users want to turn relative paths into absolute paths, but the only tool that libstd currently offers is `canonicalize` which is bad because it has to hit the filesystem which has several downsides:

1. It takes time to hit the filesystem.
2. The path has to actually exist.
3. It fails on certain types of drives such as RAM drives on Windows.
4. The path it creates is a `\\?\` path which not all software can handle correctly and imposes requirements on further path manipulation that few users are even aware of.

Needing symbolic links actually resolved is an extremely rare use case, and is often misused to compare paths for equality when in reality you should be comparing file IDs due to things like hard links existing.

A new function (`normalize` or `make_absolute` or something, bikeshed away) should be added that will turn a relative path into an absolute path without touching the filesystem. On Windows this should either call `GetFullPathNameW` or do the pure Rust equivalent while on unixy platforms... *something* should happen, I have no idea.

If such a function did exist, rustc could start using that instead of canonicalize which would fix a whole host of issues including:
https://github.com/rust-lang/rust/issues/74327
https://github.com/rust-lang/rust/pull/74146
https://github.com/rust-lang/rust/issues/59107
https://github.com/rust-lang/rust/issues/58613
https://github.com/rust-lang/rust/issues/55812
https://github.com/rust-lang/rust/issues/52440
https://github.com/rust-lang/rust/issues/48249
https://github.com/rust-lang/rust/issues/45067
https://github.com/rust-lang/rust/issues/42869
Repository: pytorch
Issue: CUDA large matrix-vector product (torch.mv) causes illegal memory access
Labels: module: dependency bug,module: cuda,triaged,module: 64-bit,module: cublas

## 🐛 Bug

`torch.mv` causes an "illegal memory access" when multiplying a matrix with more than 2^31-1 elements. Note that each dim of the first matrix can fit in an `int`.

This is likely a bug in cuBLAS. Either cuBLAS should be fixed or PyTorch should issue multiple calls to `cublasSgemv`.

## To Reproduce

Note: you need ~10 GB on your GPU to run this example

```python
x = torch.ones(35783, 65133, device='cuda')
y = torch.randn(65133, device='cuda')
z = torch.mv(x, y)
torch.cuda.synchronize()  # report asynchronous error
```

## Environment

PyTorch master 066d1584 (Mar 11, 2019)
CUDA 9.2.88
Repository: go
Issue: cmd/compile: add consistency check that local variables are associated with Curfn
Labels: NeedsInvestigation,compiler/runtime

[CL 153841](https://golang.org/cl/153841/) needed to create local temporaries in "init" to handle when f(g()) appears in a package-scope initialization statement.

But the concurrently developed [CL 159717](https://golang.org/cl/159717/) moved initialization statements to run in "init.ializer" instead of "init."

The result was entirely unsafe because initialization statements compiled within "init.ializer" were referring to local variables in "init," but it seems like there weren't any compiler consistency checks that noticed this. It was only detected because net/http/pprof happened to fail very loudly at runtime when built with -gcflags=-N.

Granted maybe [CL 153841](https://golang.org/cl/153841) was being too clever with its solution to "init" (now "init.ializer") not yet existing and it's worth revisiting whether "init.ializer" can be created earlier, but it still surprised me that the backend didn't notice it was using a PAUTO variable from another function.
Repository: go
Issue: cmd/go: should `go list -json` imply `-e`?
Labels: NeedsInvestigation,GoCommand,modules

<!-- Please answer these questions before submitting your issue. Thanks! -->

### What version of Go are you using (`go version`)?

<pre>
$ go version
go 1.12 darwin
</pre>

### Does this issue reproduce with the latest release?
Yes 

### What did you do?

`GO111MODULE=on go list -m -versions -json github.com/golang/nonexistentrepo@latest`


### What did you expect to see?

A valid json output with a clear error in the Error field. Something similar to when `go mod download` has an error as such: 

```json
{
  "Error": "repository not found"
}
```

### What did you see instead?

A non json output as such (modified): 

```json
go list -m github.com/golang/nonexistentrepo: git ls-remote -q origin in /Users/me/go/pkg/mod/cache/vcs/xxx-long-sha: exit status 128:
	remote: Repository not found.
	fatal: repository 'https://github.com/golang/nonexistentrepo/' not found
```
Repository: angular
Issue: Add to Schematics API documentation
Labels: state: blocked,effort3: weeks,freq3: high,state: needs eng input,P4,area: docs


# 📚 Docs or angular.io bug report

### Description
Hello. I just spend some time creating my first schematics. Have to say it's awesome! Unfortunately, I had to spend much of my time reading throughout the angular @schematics code to see examples of how it works and articles on Medium by other people about how to create a basic schematic.

It would be awesome if the Angular team spends some time making an awesome documentation of such an awesome feature! This has so much potential to be wildly used, and I'm afraid that without proper documentation, it won't reach the masses!

Just try to google a simple example of `How to copy a file in angular schematics`, and there is no simple link to it. I ended up reading a file via the `tree.read` into a `buffer`, transforming the file into a `string`, and then creating a new one via `tree.create`, but don't even know if this is standard or not 🤷‍♀️ 

In any case, I love schematics, but there is no official documentation at all other than two blog post (one with unit test) with simple examples you guys created in the Angular Medium Blog.

Thanks! Nice job!
Repository: pytorch
Issue: should disable AVX on 32bit x86 / refine AVX availability tests
Labels: module: build,triaged

On desktop systems like Windows and some Linux distributions (e.g. Ubuntu), the PyTorch / Caffe2 library doesn't work under 32-bit systems, mainly for the reason that some AVX functions for 64 bit are lost, like `_mm256_extract_epi64`. According to @t-vi, the disabling of AVX enables the 32-bit build on ARM(Android). So the problem is that should we disable AVX on 32bit x86 platform, or we should just use some alternatives for `_mm256_extract_epi64`?

cc @malfet @soumith @apaszke
Repository: go
Issue: crypto/x509, encoding/asn1: ObjectIdentifier and ParseCertificate do not support int > 31 bits, preventing support of OID 2.25 (/UUID) (follow-up on #19933)
Labels: NeedsInvestigation

[Commit 40436](https://go-review.googlesource.com/c/go/+/40436/) extends support for OIDs from original 28 bits to 31 bits as a result of #19933 . But this is insufficient to support the [2.25 OID subtree](http://oid-info.com/cgi-bin/display?oid=2.25&action=display), which is AFAIK the only place in the tree one can get registration-less OIDs, and it mandates them to be 128bits-big. So certificates issued with such OIDs get rejected by go application (caddy, in my case, acting as an HTTP proxy with proxy target being served with such certificate).

@agl : The above was intended as a response to your post on #19933 . I would have happily posted there if it was not blocked. I would happily have this report deleted/closed if the original one can be reopened.
Repository: pytorch
Issue: Conjugate gradient method
Labels: feature,triaged,module: derivatives,function request

## 🚀 Feature

I want to add batch preconditioned conjugate gradient (including its gradient) to the torch api.

## Motivation

This feature exists in as scipy, as scipy.linalg.cg. I'd like a torch equivalent that can handle batches.

## Pitch

Add a torch function cg(A, B) that returns X^(-1) B by running CG in parallel across the columns of B.

## Alternatives

N/A

## Additional context

I've implemented the cg algorithm as a pytorch c++ extension, as well as its gradients (with respect to A and B as sparse tensors) and it seems to work. It doesn't seem like it would be too hard to pull this into pytorch, but I'm not sure what the right steps are.

See www.github.com/sbarratt/torch_cg
Repository: pytorch
Issue: [caffe2] resnet_trainer example fails with MNIST dataset, when parameter num_channels=1 is provided
Labels: caffe2

## 🐛 Bug
The resnet_50 trainer fails when parameter num_channels 1 is provided:
```
python resnet50_trainer.py --train_data ~/mnist_train_lmdb --num_gpus 4 --batch_size 64 --num_channels 1
...
...
INFO:ResNe(X)t_trainer:Starting epoch 0/1
[E net_async_base.cc:377] [enforce fail at conv_op_cudnn.cc:555] filter.dim32(1) == C / group_. 1 vs 3
Error from operator:
input: "gpu_1/data" input: "gpu_1/conv1_w" output: "gpu_1/conv1" name: "" type: "Conv" arg { name: "kernel" i: 7 } arg { name: "order" s: "NCHW" } arg { name: "enable_tensor_core" i: 0 } arg { name: "stride" i: 2 } arg { name: "pad" i: 3 } arg { name: "exhaustive_search" i: 1 } arg { name: "ws_nbytes_limit" i: 67108864 } device_option { device_type: 1 device_id: 1 } engine: "CUDNN"frame #0: c10::ThrowEnforceNotMet(char const*, int, char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, void const*)

```

## To Reproduce
Execute the following command with MNIST dataset:
`python resnet50_trainer.py --train_data ~/mnist_train_lmdb --num_gpus 4 --batch_size 64 --num_channels 1`

<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->

## Expected behavior
The training is expected to complete without any errors. 

## Environment

```PyTorch version: 1.0.1 (with some local changes)
Is debug build: No
CUDA used to build PyTorch: 10.1

OS: Red Hat Enterprise Linux Server 7.6 (Maipo)
GCC version: (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36)
CMake version: Could not collect

Python version: 3.6
Is CUDA available: Yes
CUDA runtime version: 10.1
GPU models and configuration:
GPU 0: Tesla V100-SXM2-16GB
GPU 1: Tesla V100-SXM2-16GB
GPU 2: Tesla V100-SXM2-16GB
GPU 3: Tesla V100-SXM2-16GB

Nvidia driver version: 418.29
cuDNN version: Could not collect
Repository: flutter
Issue: Allow iOS project to access flutter_assets in App.framework as bundle resource
Labels: platform-ios,tool,d: api docs,t: xcode,P3,team-ios,triaged-ios

In the latest version of Flutter, flutter_assets'folder reference is removed in iOS project, 
but our project uses webview to show local web page, thus we can't read the web assets correctly.
The web assets are placed in ${FLUTTER_PROJECT}/web, and added to pubspec.yaml correctly,
The reason is that iOS required adding folder reference to Xcode if we want our app treat the folder's assets as simple assets (not code), and your feature has removed flutter_assets'folder reference make our webview not work well
If I add the folder reference manually , It works well just like before.

the new flutter: 
![new](https://user-images.githubusercontent.com/13374376/54193180-83798900-44f4-11e9-9d1a-301726a80af1.jpg)
the old:
![old](https://user-images.githubusercontent.com/13374376/54193202-8d9b8780-44f4-11e9-8546-665655875993.jpg)


flutter doctor:
[✓] Flutter (Channel beta, v1.2.1, on Mac OS X 10.14 18A391, locale zh-Hans-CN)
    • Flutter version 1.2.1 at /Users/blockmake/Documents/Test/flutter
    • Framework revision 8661d8aecd (4 weeks ago), 2019-02-14 19:19:53 -0800
    • Engine revision 3757390fa4
    • Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)

[!] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at //Users/blockmake/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling
      support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = //Users/blockmake/Library/Android/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_152-release-1024-b01)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor
      --android-licenses

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    • ios-deploy 1.9.4
    • CocoaPods version 1.5.0

[✓] Android Studio (version 3.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 29.0.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build
      1.8.0_152-release-1024-b01)

[!] VS Code (version 1.31.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    ✗ Flutter extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (2 available)
    • littleStrong • 00008020-00194D9A01F0002E            • ios • iOS 12.1.4
    • iPhone XR    • 0CBBCCD6-8FBD-4544-A36F-8CC3163FC12C • ios • iOS 12.1
      (simulator)
Repository: node
Issue: Debug worker_threads
Labels: inspector,worker

There is no possible to debug worker threads, only through event messages to main thread
You can't step into this worker in the chrome dev tools
```js
const worker = new Worker('./worker.js', {});
```
`debugger` statements also don't work inside thread
Repository: go
Issue: x/net/html: unexpected whitespace rendering of html
Labels: NeedsInvestigation

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.12 darwin/amd64
</pre>

### Does this issue reproduce with the latest release?
yes


### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/tcurdt/Library/Caches/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/tcurdt/.go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/Cellar/go/1.12/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.12/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/pf/7vhqx5bn41qddypw08w9jc4w0000gn/T/go-build451640899=/tmp/go-build -gno-record-gcc-switches -fno-common"
</pre></details>

### What did you do?

I am parsing and then rendering html. 

```
package main

import (
	"bytes"
	"fmt"
	"os"
	"strings"

	"golang.org/x/net/html"
)

func main() {
	var input = `<!DOCTYPE html>
<html>
<head>
  <title>Title of the document</title>
</head>
<body>
   body content <p>more content</p>
</body>
</html>`
	doc, err := html.Parse(strings.NewReader(input))
	if err != nil {
		fmt.Fprintf(os.Stderr, "error parsing: %s\n", err.Error())
		os.Exit(1)
	}

	buf := bytes.NewBufferString("")
	html.Render(buf, doc)

	fmt.Println("--")
	fmt.Print(input)
	fmt.Println("--")

	fmt.Println("--")
	fmt.Print(buf.String())
	fmt.Println("--")
}
```


### What did you expect to see?

With the docs saying:

> Rendering is done on a 'best effort' basis: calling Parse on the output of Render will always result in something similar to the original tree, but it is not necessarily an exact clone unless the original tree was 'well-formed'. 

Given that the HTML is well-formed I'd expect the output be the same as the input.

### What did you see instead?

Instead I am seeing changes in whitespace:

```
--
<!DOCTYPE html>
<html>
<head>
  <title>Title of the document</title>
</head>
<body>
   body content <p>more content</p>
</body>
</html>--
--
<!DOCTYPE html><html><head>
  <title>Title of the document</title>
</head>
<body>
   body content <p>more content</p>

</body></html>--
```

IMO there should be a test case verifying that the output matches in input for the documented case.
Repository: rust
Issue: Tracking issue for `FromStr` trait usage in const fn
Labels: T-libs-api,C-tracking-issue,A-const-eval

Because Rust already have macros that evaluate on compile time to strings I think converting them to ints in a `const fn` is a very nice feature.

e.g. `env!("SOMETHING").parse::<usize>().unwrap()`

----------------------
I opened this Issue as part of: https://github.com/rust-lang/rust/issues/57563
Interested to hear if other people want this and if it's already exists as part of a different issue/RFC
Repository: go
Issue: go/packages: add to standard library
Labels: NeedsDecision,early-in-cycle

We made go/build.Import keep working kind of for modules in Go 1.11,
but as we move toward modules on by default, we should be planning
to have go/packages available in the standard library as a replacement.
This will require making sure we are happy with the API freezing.

/cc @ianthehat @matloob
Repository: go
Issue: net/http/httptest: clarify that Server.Client is only good for Server.URL
Labels: Documentation,NeedsFix

The docs don't make it clear that the http.Client returned by httptest.Server.Client is only good for hitting httptest.Server.URL.

That is, the http.Client's Transport doesn't redirect all dials of any hostname to the test server. (Maybe it should? Would that break existing users?)

/cc @Capstan
Repository: TypeScript
Issue: Undocumented = operator syntax in Generic Constraining
Labels: Docs

In the declaration file for Fastify (https://github.com/fastify/fastify/blob/master/fastify.d.ts) there is some TypeScript code I do not recognize and cannot find another example of in the TypeScript documentation:
```typescript
declare function fastify<
  HttpServer extends (http.Server | http2.Http2Server) = http.Server,
  HttpRequest extends (http.IncomingMessage | http2.Http2ServerRequest) = http.IncomingMessage,
  HttpResponse extends (http.ServerResponse | http2.Http2ServerResponse) = http.ServerResponse
>(opts?: fastify.ServerOptions): fastify.FastifyInstance<HttpServer, HttpRequest, HttpResponse>;
```
I recognize the Generic constraint syntax with the `extends` keyword, but what about the `= http.Server` part? Is this like a default parameter or something?

Whatever this syntax means it should be better documented.

I tried googling for this syntax by searching 
- `typescript generic constraint`
- `typescript generic constraint assignment`
- `typescript generic defaults`
Repository: pytorch
Issue: Build compact libtorch from source with cmake 
Labels: module: build,module: cpp,triaged

Hi. I am currently working with the PyTorch C++ API and I'm really enjoying the flexibility so far. However, for my use case, I would like the libraries to be as small as possible.

When building libtorch from source (using build_libtorch.py), what can be done to minimize the final package size? I have searched around but there does not seem to be any info related to this (other than cmake compiler optimisations).