id
int64 393k
2.82B
| repo
stringclasses 68
values | title
stringlengths 1
936
| body
stringlengths 0
256k
⌀ | labels
stringlengths 2
508
| priority
stringclasses 3
values | severity
stringclasses 3
values |
---|---|---|---|---|---|---|
619,473,369 |
flutter
|
Add support for MediaStore to path_provider
|
## Use case
I want to contribute files of various types (e.g. videos, images, generic files of yet to be defined types to Download) to MediaStore, specifially to MediaStore.downloads, since ExternalStorage seems to be deprecated starting Android SDK 29.
## Proposal
The path_provider package only returns paths to the app's own paths, so files within these directories are not accessible through Android's file picker or file browser apps.
I'm not sure what the correct proposal is, but adding support to path_provider or flutter itself to contribute items to MediaStore or MediaStore.downloads to make them publically available would be quite important, I think.
(If this is already possible, I'd be very happy about any hints on how to do that :) )
Best regards
Christian
|
c: new feature,customer: crowd,p: path_provider,package,c: proposal,team-ecosystem,P3,triaged-ecosystem
|
medium
|
Critical
|
619,475,429 |
create-react-app
|
Reporter options for Jest
|
### Is your proposal related to a problem?
<!--
Provide a clear and concise description of what the problem is.
For example, "I'm always frustrated when..."
-->
CRA only supports overriding a few Jest options and `reporters` is not one of them. I know that I can add reporters via cli `--reporters=my-reporter`, the problem is that I would like to pass in some options to that, but reporter options are not available via cli (https://jestjs.io/docs/en/next/cli#--reporters).
I really don't want to eject my CRA setup, so i wish it was more flexible when it comes to Jest configurations.
### Describe the solution you'd like
<!--
Provide a clear and concise description of what you want to happen.
-->
This is what I'd like to be able to do:
```
"reporters": [
"default",
["./node_modules/jest-cucumber/dist/src/reporter", {
"formatter": "json",
"path": "./reports/test-report.json"
}]
],
```
### Describe alternatives you've considered
<!--
Let us know about other solutions you've tried or researched.
-->
I could use something like [craco](https://www.npmjs.com/package/@craco/craco), but it would be even nicer to have it (and other Jest configs) out of the box in CRA.
### Additional context
<!--
Is there anything else you can add about the proposal?
You might want to link to related issues here, if you haven't already.
-->
https://github.com/facebook/create-react-app/issues/2474
https://github.com/facebook/create-react-app/issues/6224
|
issue: proposal,needs triage
|
low
|
Minor
|
619,529,513 |
ant-design
|
Unable to demonstrate mobile adaptiveness / friendly capabilities of ant design on ant-design/components/table
|
- [ ] 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://ant.design/components/table/](https://ant.design/components/table/)
### Steps to reproduce
1. Open https://ant.design/components/table/ in chrome browser, cache cleaned
2. Open dev tools
3. Switch to any phone (I reproduced with Iphone X, Pixel 2, Responsive). Works fine with iPad though or you can fix it switching Iphone X-> Responsive -> Iphone X, but it ruins the demo
4. The menu covers half of the screen even on scroll
### What is expected?
The layout is mobile-friendly (web is a key requirement, but sometimes users want to work from mobile devices)
### What is actually happening?
The menu sticks to the top from the first opening, there are small other issues with the layout you can probably ignore at the step 1
| Environment | Info |
|---|---|
| antd | 4.2.3 |
| React | - |
| System | macos |
| Browser | Dev tools in Chrome 81.0.4044.138 |
<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
|
Inactive,📱Mobile Device
|
low
|
Minor
|
619,548,484 |
PowerToys
|
[FZ Editor] Colorful emoiji support for Zone names
|
0.17
Color >>> black & white.
And those monochrome icons are just.....not very good-looking.
It would be really cool, if the win+; icons could show in full color.
|
Idea-Enhancement,FancyZones-Editor,Product-FancyZones,External Dependency-WinUI 3
|
low
|
Major
|
619,554,590 |
pytorch
|
Investigate using -cospi(u) / sinpi(u) instead of tan(pi * (u - 0.5)) in transformation::cauchy
|
> The following code correctly implements the Cauchy quantile function. Again, for the sake of
> simplicity, it has been assumed that 0 < u < 1, a ∈ R and b > 0. Infinity should
> be returned for u = 0, 1.
> ```
> double cauchy_inv(double u, double a, double b)
> {
> double x;
> x = -cospi(u) / sinpi(u); /* x = tan(pi * (u - 0.5)) */
> return a + b * x;
> }
> ```
> Firstly, the catastrophic cancellation that would occur when a half is subtracted
> from u ≈ 1/2 is dispensed with, and secondly, functions are used that accurately
> compute cos(πx) and sin(πx) for x that are multiples of 1/2.1
as described in [Fast and accurate parallel computation of quantile functions for random number generation](https://discovery.ucl.ac.uk/id/eprint/1482128/1/Luu_thesis.pdf)
@peteroupc
cc @vincentqb @fritzo @neerajprad @alicanb @vishwakftw @pbelevich
|
module: distributions,triaged,module: random
|
low
|
Minor
|
619,555,275 |
pytorch
|
Investigate exponential distribution improvements
|
described in [Reconditioning your quantile function by Keith Pedersen](https://arxiv.org/abs/1704.07949)
cc @vincentqb @fritzo @neerajprad @alicanb @vishwakftw @pbelevich @peteroupc
|
module: distributions,triaged,module: random
|
low
|
Minor
|
619,555,726 |
pytorch
|
Investigate using log1p instead of log in transformation functions(TransformationHelper.h)
|
Investigate performance and precision advantages of log1p
cc @vincentqb @fritzo @neerajprad @alicanb @vishwakftw @pbelevich @peteroupc
|
module: distributions,triaged,module: random
|
low
|
Major
|
619,560,816 |
pytorch
|
`SummaryWriter.add_graph` borks with simple example
|
## 🐛 Bug
Something funky is happening with `SummaryWriter.add_graph`. I was actually trying to dumb down some code from a private repo into a toy example to reproduce our issue, and ran into separate issue where a `RuntimeError` was thrown and the message told me to report it as a bug 🤷 . Here's a picture of the stacktrace:

## To Reproduce
Code snippet:
```
import numpy as np
import torch
from torch.utils.data import DataLoader
from torch.utils.tensorboard import SummaryWriter
from torchvision.models.segmentation import deeplabv3_resnet50
class DeepLabResNet(torch.nn.Module):
"""DeepLab V3 network with ResNet backbone"""
def __init__(self):
"""Init"""
super(DeepLabResNet, self).__init__()
self.deep_lab = deeplabv3_resnet50(
pretrained=False, progress=True, num_classes=2
)
self.softmax = torch.nn.Sigmoid()
# pylint: disable = arguments-differ
def forward(self, x):
"""Network forward pass
:param torch.Tensor x: tensor of shape (N, C1, H1, W1)
:return torch.Tensor x: tensor of shape (N, C2, H2, W2)
"""
x = self.deep_lab(x)
output = x['out']
return self.softmax(output)
class MyToyDataset(torch.utils.data.Dataset):
"""Toy dataset to train with"""
def __getitem__(self, idx):
"""Return a mock input / target pair"""
mock_input = torch.Tensor(np.ones((3, 256, 256)))
mock_target = torch.Tensor(np.ones((3, 256, 256)))
return mock_input, mock_target
def __len__(self):
"""Return the length of the dataset"""
return 100
network = DeepLabResNet()
gpus = [0, 1]
network = network.to(torch.device(gpus[0]))
network = torch.nn.DataParallel(network, device_ids=gpus)
# optimizer = torch.optim.Adam(network.parameters())
dataset = MyToyDataset()
data_loader = DataLoader(dataset=dataset)
input_target_pair = iter(data_loader).next()
writer = SummaryWriter('~/tensorboard_stuffs')
writer.add_graph(network, input_target_pair[0])
```
The error occurs with `writer.add_graph` - if that line is commented out, everything is fine.
## Expected behavior
No error should be thrown.
## Environment

## Additional context
I was actually trying to recreate an issue I was having where if I passed multiple GPUs into `DataParallel`, `writer.add_graph` would throw the error `Cannot insert a Tensor that requires grad as a constant. Consider making it a parameter or input, or detaching the gradient`, but *if I only passed in one GPU*, it would not throw that error. My original error when passing in multiple GPUs seems related to https://github.com/pytorch/pytorch/issues/30459, https://github.com/pytorch/pytorch/issues/28206, and https://github.com/pytorch/pytorch/issues/24904, although I'm not sure if the error in from this code snippet is related.
cc @suo
|
oncall: visualization
|
low
|
Critical
|
619,576,271 |
flutter
|
[google_maps_flutter] Get duration of animateCamera
|
Is there any way to know the duration of the animation created by`animateCamera()`? Since the Future completes at the start of the animation and not at the end (I don't understand why), if I want to perform some actions based on the new camera position I have to use a `Timer()` but so far I am using an arbitrary `Duration()` of 500ms to be sure that the animation is done.
|
c: new feature,p: maps,package,team-ecosystem,P3,triaged-ecosystem
|
low
|
Minor
|
619,577,368 |
opencv
|
Why the efficientnet no support OPENCL of Intel CPU?
|
- OpenCV => 4.3
- Operating System / Platform => Win10 64 Bit
- Compiler => Visual Studio 2017
-->
- OpenCV => :The efficientnet no support OPENCL of Intel CPU:
-->
ex::
net.setPreferableTarget(cv::dnn::DNN_TARGET_OPENCL);
What the tips means? (the efficientnet forward Inference is so slow)
https://s1.ax1x.com/2020/05/17/YgrUts.jpg
BTW, The OPENCL also no support FP16(Intel CPU:Z8350 or N3150)?
When The OPENCL adding FP8 support for faster forward Inference ?
Thanks.
-->
|
optimization,priority: low,category: ocl,category: dnn
|
low
|
Major
|
619,600,647 |
flutter
|
[flutter pub outdated] doesn't expose the arguments of the equivalent pub command
|
The command `flutter pub outdated` has been added to the Flutter SDK with #53251, however it doesn't expose all the arguments of the original pub command:
```console
> flutter pub outdated -h
Analyze dependencies to find which ones can be upgraded.
This runs the "pub" tool in a Flutter context.
Usage: flutter pub outdated [<arguments...>]
-h, --help Print this usage information.
Run "flutter help" to see global options.
```
```console
> pub outdated -h
Analyze your dependencies to find which ones can be upgraded.
Usage: pub outdated [options]
-h, --help Print this usage information.
--[no-]color Whether to color the output. Defaults to color when connected to a terminal, and no-color otherwise.
--json Outputs the results in a json formatted report
--[no-]up-to-date Include dependencies that are already at the latest version.
--[no-]pre-releases Include pre-releases when reporting latest version.
--[no-]dev-dependencies When true take dev-dependencies into account when resolving.
(defaults to on)
--[no-]dependency-overrides Show resolutions with `dependency_override`
(defaults to on)
Run "pub help" to see global options.
See https://dart.dev/tools/pub/cmd/pub-outdated for detailed documentation.
```
Example:
```console
> flutter pub outdated --json
Could not find an option named "json".
Run 'flutter -h' (or 'flutter <command> -h') for available flutter commands and options.
```
The problem here is that `pub outdated` cannot be run for Flutter projects:
```console
> pub outdated
Resolving...
Package doesn't exist (the Flutter SDK is not available).
```
|
c: new feature,tool,c: proposal,P3,team-tool,triaged-tool
|
low
|
Major
|
619,602,830 |
pytorch
|
Can you add NMS,RoIAlign,RoIPool for libtorch?
|
https://pytorch.org/docs/master/torchvision/ops.html
Can you add NMS,RoIAlign,RoIPool for libtorch?
cc @fmassa
|
triaged,module: vision
|
low
|
Major
|
619,613,242 |
vscode
|
Support Language, not just Editor Language in the keybindings "when" property.
|
<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->
<!-- Describe the feature you'd like. -->
Support Language, not just Editor Language in keybindings.json.
For example:
{
"key": "shift+alt+f",
"command": "extension.formatSelectionAsHtml",
"when": "editorTextFocus && editorHasSelection && langId == vue-html"
},
|
feature-request,context-keys
|
low
|
Minor
|
619,623,663 |
go
|
net/http: broken https connections reuse on arm64
|
<!--
Please answer these questions before submitting your issue. Thanks!
For questions please use one of our forums: https://github.com/golang/go/wiki/Questions
-->
### What version of Go are you using (`go version`)?
<pre>
$ go version
go1.14.3 linux/arm64
</pre>
### Does this issue reproduce with the latest release?
Yes
### What operating system and processor architecture are you using (`go env`)?
Ubuntu 18.04 LTS ARM64
<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GO111MODULE=""
GOARCH="arm64"
GOBIN=""
GOCACHE="/home/ubuntu/.cache/go-build"
GOENV="/home/ubuntu/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/ubuntu/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/snap/go/5770"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/snap/go/5770/pkg/tool/linux_arm64"
GCCGO="gccgo"
AR="ar"
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 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build987108063=/tmp/go-build -gno-record-gcc-switches"
</pre></details>
### What did you do?
<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
-->
I wrote telegram bot with one of go-based telegram framework, and tested it on my MacBook. Everything works just fine, until I deployed it to my Raspberry Pi 4. On rpi it works fine, until I do several calls to telegram API, after third call bot stops responding, because of it can't do request and gets EOF.
I've spent a week trying to debug and find an issue. I thought it was related with Russian telegram ban, but I've routed all the telegram traffic through VPN, I've secured my DNS as much as possible, and issue still reproduces. Same network, same codebase but different processor arch - works good, move to arm64 - everything is broken.
I do not know much how secure connections works at "low levels", and started to debug it with tcpdump and netstat, and noticed, that bot in idle state opens just one connection to API server for polling, but if I do any request - a second connect is appearing and stays open. I thought it was a problem, but then I googled a little, and figured out that it is totally fine and it's common practice to reuse opened connections. It was confirmed with another tests on MacBook - same second connection and everything works fine.
Okay, what if I'll try somehow not to reuse these connections? I've set **response.Close** flag to **true** - nothing happens. Then I tried to call CloseIdleConnections() after every request to API, and it works! No more EOFs. Then I've found another option - set DisableKeepAlives to false to http client transport, and now it works fine(without manual CloseIdleConnections and resp.Close true flag). But it is not good I think, it opens and closes connections on every request and doesn't reuse them.
### What did you expect to see?
Correct reusing opened connections.
### What did you see instead?
EOF
|
NeedsInvestigation,arch-arm64
|
low
|
Critical
|
619,653,479 |
flutter
|
Adding onChanged method in SearchDelegate class
|
<!-- Thank you for using Flutter!
If you are looking for support, please check out our documentation
or consider asking a question on Stack Overflow:
* https://flutter.dev/
* https://api.flutter.dev/
* https://stackoverflow.com/questions/tagged/flutter?sort=frequent
If you have found a bug or if our documentation doesn't have an answer
to what you're looking for, then fill our the template below. Please read
our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->
## Use case
Adding an onChanged method for query in search delegate abstract class will be so much handy I guess. If I already have the list to be shown in the build results section then why should i use streams and stream builder as they are pretty heavy widgets to be used. Adding on query changed method can help us filter list and show in result as soon as query changes.
<!--
Please tell us the problem you are running into that led to you wanting
a new feature.
Is your feature request related to a problem? Please give a clear and
concise description of what the problem is.
Describe alternative solutions you've considered. Is there a package
on pub.dev/flutter that already solves this?
-->
## Proposal
Is there any workaround for what I am trying to point out above?
Or flutter should give access to the textfield just like textformfield so that onchanged method can be used to show results.
<!--
Briefly but precisely describe what you would like Flutter to be able to do.
Consider attaching images showing what you are imagining.
Does this have to be provided by Flutter directly, or can it be provided
by a package on pub.dev/flutter? If so, maybe consider implementing and
publishing such a package rather than filing a bug.
-->
|
c: new feature,framework,f: material design,c: proposal,team-design,triaged-design
|
low
|
Critical
|
619,669,192 |
pytorch
|
Clarification for usage of negative loss with optim.lr_scheduler.ReduceLROnPlateau
|
## 📚 Documentation
<!-- A clear and concise description of what content in https://pytorch.org/docs is an issue. If this has to do with the general https://pytorch.org website, please file an issue at https://github.com/pytorch/pytorch.github.io/issues/new/choose instead. If this has to do with https://pytorch.org/tutorials, please file an issue at https://github.com/pytorch/tutorials/issues/new -->
It would be nice to have explicit statement in the documentation that `torch.optim.lr_scheduler.ReduceLROnPlateau` with `mode=min` and `threshold_mode='rel'` expects loss to be `> 0`
This is the excerpt from documentation about `threshold_mode`:
```
threshold_mode (str): One of `rel`, `abs`. In `rel` mode,
dynamic_threshold = best * ( 1 + threshold ) in 'max'
mode or best * ( 1 - threshold ) in `min` mode.
In `abs` mode, dynamic_threshold = best + threshold in
`max` mode or best - threshold in `min` mode. Default: 'rel'.
```
And this is the corresponding excerpt from the code:
```python
def is_better(self, a, best):
if self.mode == 'min' and self.threshold_mode == 'rel':
rel_epsilon = 1. - self.threshold
return a < best * rel_epsilon
elif self.mode == 'min' and self.threshold_mode == 'abs':
return a < best - self.threshold
elif self.mode == 'max' and self.threshold_mode == 'rel':
rel_epsilon = self.threshold + 1.
return a > best * rel_epsilon
else: # mode == 'max' and epsilon_mode == 'abs':
return a > best + self.threshold
```
I use `NegativeDiceLoss` in my experiments so the loss is negative and is expected to be minimized. The only correct mode of `ReduceLROnPlateau` I can use is `threshold_mode='abs'` because `threshold_mode='rel'` will not work for minimizing negative loss.
Imagine `mode='min', threshold_mode='rel', threshold=0.1`:
* If we use loss that is expected to be > 0 all the time and current loss value is `10` than dynamic threshold will be `(1 - 0.1) * 10 == 9`. And the check will be `a < 9`. So there will be a margin between previous loss value and the new one to ensure that model improved.
* If we use loss that is expected to be < 0 all the time (as in my case with `NegativeDiceLoss`) and current loss value is `-10` than dynamic threshold will be `(1 - 0.1) * -10 == -9`. And the check will be `a < -9`. __It does not correspond to logic of scheduler__ as it allows new loss value to be slightly worse than previous. As I understand the goal of the dynamic threshold is to guarantee that the loss improved __by some margin__ to deal with noise in loss calculations.
If my understanding is correct it is better to __explicitly state in documentation__ that for `threshold_mode='rel'` only positive loss functions are expexted. Probably negative loss functions are not common to use but sometimes they are required (as with dice score as loss function).
Please correct me if I'm wrong :)
|
module: docs,triaged
|
low
|
Minor
|
619,675,588 |
pytorch
|
Providing CUDA tensor to model on CPU causes a crash
|
## 🐛 Bug
Pytorch crashes Google colab session when calling a LSTM model running on CPU (located in RAM) on input located in GPU VRAM.
NOTE: This doesn't happen with Linear model.
## To Reproduce
Colab notebook https://colab.research.google.com/drive/1ojp92wmp_Rh_NWMLbQJEeXmDdTL-TSkE?usp=sharing
Steps to reproduce the behavior:
1. Create a LSTM model running on CPU
2. Create input on GPU
3. Call the model on the input.
Code:
```
import torch
from torch import nn
def testing():
d_batch = 4
d_input = 100
d_hidden = 100
num_layers = 1
d_max_seq_len = 1
m = nn.LSTM(d_input, d_hidden, num_layers=num_layers, dropout=0, batch_first=True)
device = torch.device('cuda:0')
enc_phrases = torch.randn(d_batch, d_max_seq_len, d_input, device=device)
results = m(enc_phrases)
testing()
```
Error:


Colab crash logs https://bpa.st/3VRQ
## Expected behavior
I would expect it to print a traceback and warn the user instead of crashing the entire session.
This sort of errors are caught when the model is running on GPU and the input is not on GPU VRAM.
Code:
```
import torch
from torch import nn
def testing():
d_batch = 4
d_input = 100
d_hidden = 100
num_layers = 1
d_max_seq_len = 1
m = nn.Linear(d_input, d_hidden)
device = torch.device('cuda:0')
enc_phrases = torch.randn(d_batch, d_input, device=device)
results = m(enc_phrases)
testing()
```
Error:
```
RuntimeError: Expected object of device type cuda but got device type cpu for argument #2 'mat2' in call to _th_mm
```
## Environment
Please copy and paste the output from our
[environment collection script](https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py)
(or fill out the checklist below manually).
You can get the script and run it with:
```
wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py
```
Collecting environment information...
PyTorch version: 1.5.0+cu101
Is debug build: No
CUDA used to build PyTorch: 10.1
OS: Ubuntu 18.04.3 LTS
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
CMake version: version 3.12.0
Python version: 3.6
Is CUDA available: Yes
CUDA runtime version: 10.1.243
GPU models and configuration: GPU 0: Tesla K80
Nvidia driver version: 418.67
cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.5
Versions of relevant libraries:
[pip3] numpy==1.18.4
[pip3] torch==1.5.0+cu101
[pip3] torchsummary==1.5.1
[pip3] torchtext==0.3.1
[pip3] torchvision==0.6.0+cu101
[conda] Could not collect
- PyTorch Version (e.g., 1.0): 1.5.0+cu101
- OS (e.g., Linux): Linux
- How you installed PyTorch (`conda`, `pip`, source): Colab
- Build command you used (if compiling from source): Colab has pytorch preinstalled
- Python version: 3.6
- CUDA/cuDNN version: 10.1.243
- GPU models and configuration: GPU 0: Tesla K80
- Any other relevant information:
## Additional context
This sort of error is very annoying to debug. I tried https://docs.python.org/3/library/faulthandler.html and it still didn't catch it. Sometimes in large projects you can easily forget to move your model to GPU, or move input to GPU, etc. It took me a long time (8 hours+) to find out what the issue was. Please fix this as soon as possible. Any sort of error or traceback is FAAAAAAAAAAAAAAAAR more useful than crashing the Google colab/Jupyter session.
cc @ezyang @gchanan @zou3519 @ngimel
|
module: crash,module: rnn,module: cuda,triaged
|
low
|
Critical
|
619,686,233 |
TypeScript
|
Safe decorator implementation with ^ type operator.
|
## Outline
Nowadays, lots of famous JavaScript libraries like [`typeorm`](https://typeorm.io) or [`nestjs`](https://nestjs.com) are supporting the `decorator` feature. However, the `decorator` feature is not suitable for core philosophy of the TypeScript; the safe implementation.
When defining a `decorator` onto a *variable*, duplicated definition in the *variable* type must be written. It's very annoying and even dangerous when different type be defined in the *variable* type. The TypeScript compiler can't detect the mis-typed definition.
For an example, look at the below code, then you may find something weird. Right, column types of `title` and `content` are `varchar` and `text`. However, their instance types are `number` and `boolean`. Their instance type must be `string`, but there would not be any compile error when using the TypeScript. It's the dangerous characteristic of the `decorator` what I want to say.
```typescript
@Table()
export class BbsArticle extends Model<BbsArticle>
{
@Column("varchar", {
restrict: ["NORMAL", "NOTICE", "QUESTION", "SUGGESTION"],
default: "NORMAL"
})
public category!: "NORMAL"|"NOTICE"|"QUESTION"|"SUGGESTION";
@Column("varchar")
public title!: number;
@Column("varchar", { nullable: true })
public sub_title!: string | null;
@Column("text")
public content!: boolean;
@Column("int", { unsigned: true, default: 1 })
public hits!: number;
}
function Column<Type extends TypeList, Options extends Options<Type>>
(type: string, options?: Options<Type>): SomeFunction;
```
I think such dangerous characteristic is the reason why TypeScript is supporting the `decorator` as `experimental` feature for a long time. I want to suggest an alternative solution that can make `decorator` to be much safer, so that TypeScipt can adapt the `decorator` as a standard feature.
Key of the alternative solution is to defining the decorator feature not in front of the *variable*, but in the *variable* type definition part. To implement the *variable* type defined decarator, I think a new pseudo type operator `^` is required.
```typescript
@Table()
export class BbsArticle extends Model<BbsArticle>
{
// ("NORMAL"|"NOTICE"|"QUESTION"|"SUGGESTION") ^ SomeFunction
public category!: @Column("varchar", {
restrict: ["NORMAL", "NOTICE", "QUESTION", "SUGGESTION"],
default: "NORMAL"
});
// string ^ SomeFunction
public title!: @Column("varchar");
// (string | null) ^ SomeFunction
public sub_title!: @Column("varchar", { nullable: true });
// string ^ SomeFunction
public content!: @Column("text");
// number ^ SomeFunction
public hits!: @Column("int", {
unsigned: true,
default: 1
});
}
function Column<Type extends TypeList, Options extends Options<Type>>
(type: Type, options?: Options): DeductType<Type, Options> ^ SomeFunction;
```
## Pseudo type operator `^`
```typescript
// Decorator is a function returning a function.
function SomeDecorator(): Function;
// Variable type cannot be expressed
var someVariable: @SomeDecorator();
```
In JavaScript, `decorator` is a type of function returning a meta function. In the ordinary TypeScript, the `decorator` function would be represented like upper code. Therefore, there's no way to express the *variable* type who're using the `decorator`.
Therefore, I suggest a new pseudo type operator, `^` symbol. With the `^` symbol, expressing both *variable* and `decorator` types, at the same time, are possible. Left side of the `^` operator would be the *variable* type and that can be assigned or be read as a value. The right side would be a pseudo type representing return type of the target `decorator`.
- Left `^` Right
- Left: Variable type to be assigned or to be read.
- Right: Pseudo type for meta implementation.
Within framework of the type meta programming, both left and right side of the `^` symbol can be all used. Extending types from both left and right side are all possible. However, assigning and reading variable's value, it's only permitted to the left side's type.
```typescript
function SomeDecorator(): number ^ Function
{
return function ()
{
// implementation code
};
}
type SomeType = ReturnType<SomeDecorator>;
// TYPE EXTENSIONS ARE ALL POSSIBLE
type ExtendsNumber = SomeType extends number ? true : false; // true
type ExtendsColumn = SomeType extends Function ? true : false; // true
// ASSIGNING VALUE IS POSSIBLE
let x: SomeType = 3; // no error
// ASSIGNING THE DECORATOR FUNCTION IS NOT POSSIBLE
let decorator: Function = () => {};
x = decorator; // be compile error
```
## Appendix
### ORM Components
If the safe decorator implementation with the new `^` symbol is realized, there would be revolutionary change in ORM components. TypeScript would be the best programming language who can represents database table exactly through the ORM component and the safe decorator implementation.
It would be possible to represent the exact columns only with `decorator`s. Duplicated definitions on the member variable types, it's not required any more. Just read the below example ORM code, and feel which revolution would come:
```typescript
@Table()
export class BbsArticle
extends Model<BbsArticle>
{
/* -----------------------------------------------------------
COLUMNS
----------------------------------------------------------- */
// number ^ IncrementalColumn<"int">
public readonly id!: @IncrementalColumn("int");
// number ^ ForeignColumn<ForeignColumn>
public bbs_group_id!: @ForeignColumn(() => BbsGroup);
// (number | null) ^ ForeignColumn<BbsArticle, Options>
public parent_article_id!: @ForeignColumn(() => BbsArticle, {
index: true,
nullable: true
});
// ("NORMAL"|"NOTICE"|"QUESTION"|"SUGGESTION") ^ Column<"int", Options>
public category!: @Column("varchar", {
restrict: ["NORMAL", "NOTICE", "QUESTION", "SUGGESTION"],
default: "NORMAL"
});
// string ^ Column<"varchar", Options>
public writer!: @Column("varchar", {
index: true,
default: () => Random.characters(16)
});
// string ^ Column<"varchar">
public password!: @Column("varchar");
// string ^ Column<"varchar">
public title!: @Column("varchar");
// (string | null) & Column<"varchar", Options>
public sub_title!: @Column("varchar", {
nullable: true
});
// string ^ Column<"text">
public content!: @Column("text");
// number ^ Column<"int", Options>
public hits!: @Column("int", {
unsigned: true,
default: 0
});
// Date ^ CreationTimeColumn
public created_at!: @CreationTimeColumn();
// (Date | null) ^ UpdationTimeColumn
public updated_at!: @UpdationTimeColumn();
// (Date | null) ^ SoftDeletionColumn
public deleted_at!: @SoftDeletionColumn();
/* -----------------------------------------------------------
RELATIONSHIPS
----------------------------------------------------------- */
public getGroup(): Promise<BbsGroup>
{
return this.belongsTo(BbsGroup, "bbs_group_id");
}
public getParent(): Promise<BbsArticle | null>
{
return this.belongsto(BbsArticle, "parent_article_id");
}
public getChildren(): Promise<BbsArticle[]>
{
return this.hasMany(BbsArticle, "parent_article_id");
}
public getTags(): Promise<BbsTag[]>
{
return this.hasManyToMany(BbsTag, BbsArticleTag, "bbs_tag_id", "bbs_article_id");
}
}
```
If this issue be adopted, so that the safe `decorator` implementation with the `^` symbol is realized in the future TypeScript compiler, even join relationship can be much safer.
Because foreign columns are defined with the safe `decorator`, member variables of the columns have exact information about the reference. Therefore, defining join relationship can be safe with type meta programming like below:
```typescript
export abstract class Model<Entity extends Model<Entity>>
{
protected async belongsTo<
Target extends Model<Target>,
Field extends SpecialFields<Entity, ForeignColumn<Target>>>
(target: CreatorType<Target>, field: Field):
Promise<Entity[Field] extends ForeignColumn<Target, { nullable: true }>
? Target | null
: Target>;
protected async hasOne<
Target extends Model<Target>,
Field extends SpecialFields<Target, ForeignColumn<Entity>>,
Symmetric extends boolean>
(
target: ObjectType<Target>,
field: Field,
symmetric: Symmetric
): Promise<Symmetric extends true ? Target : Target | null>;
protected async hasMany<
Target extends Model<Target>,
Field extends SpecialFields<Target, ForeignColumn<Entity>>>
(target: ObjectType<Target>, field: Field): Promise<Target[]>;
// 1: M: N => 1: X
protected hasManyToMany<
Target extends Model<Target>,
Route extends Model<Route>,
TargetField extends SpecialFields<Route, ForeignColumn<Target>>,
MyField extends SpecialFields<Route, ForeignColumn<Entity>>>
(
target: ObjectType<Target>,
route: ObjectType<Route>,
targetField: TargetField,
myField: MyField
): Promise<Target[]>;
// M: N => 1: M: 1
protected hasManyThrough<
Target extends Model<Target>,
Route extends Model<Route>,
TargetField extends SpecialFields<Target, ForeignColumn<Route>>,
RouteField extends SpecialFields<Route, ForeignColumn<Entity>>>
(
target: ObjectType<Target>,
route: ObjectType<Route>,
targetField: TargetField,
routeField: RouteField
): Promise<Target[]>;
}
```
Also, the safe `decorator` can make intializer construction much safer, too.
In the case of [`typeorm`](https://typeorm.io), using `strict` type checking options are discouraged. It's because the old `decorator` can't express the target variable's detailed options like `nullable` or auto-assigned `default` value. Therefore, in the case of [`typeorm`](https://typeorm.io), initializer constructor is not supported. Even massive insertion methods are using the dangerous `Partial` type, because it can't distinguish which field is whether essential or optional.
```typescript
export module "typeorm"
{
export class BaseEntity<Entity extends BaseEntity<Entity>>
{
// NO INITIALIZER CONSTRUCTOR EXISTS
public constructor();
// RECORDS ARE DANGEROUS (PARTIAL) TYPE
// AS CANNOT DISTINGUISH WHETHER ESSENTIAL OR OPTINAL
public static insert<Entity extends BaseEntity<Entity>>
(
this: CreatorType<Entity>,
records: Partial<Entity>[]
): Promise<Entity[]>;
}
}
```
However, if safe `decorator` implementation with `^` type operator is realized, supporting intializer constructor and massive insertion method with exact type are possible. As `decorator` defining each column contains the exact type information, distinguishing whether which field is essential or optional.
```typescript
export class Model<Entity extends Model<Entity>>
{
public static insert<Entity extends Model<Entity>>
(this: CreatorType<Entity>, records: Model.Props<Entity>[]): Promise<Entity[]>;
/**
* Initializer Constructor
*
* @param props Properties would be assigned to each columns
*/
public constructor(props: Model.IProps<Entity>);
}
export namespace Model
{
export type Props<Entity extends Model<Entity>>
= OmitNever<RequiredProps<Entity, true>>
& Partial<OmitNever<RequiredProps<Entity, false>>>;
type RequiredProps<Entity extends Model<Entity>, Flag extends boolean> =
{
[P in keyof Entity]: Entity[P] extends ColumnBase<infer Name, infer Options>
? IsRequired<Entity[P], Name, Options> extends Flag
? ColumnBase.Type<Name, Options>
: never
: never
};
type IsRequired<
Column extends ColumnBase<Name, Options>,
Name extends keyof ColumnBase.TypeList, Options> =
Column extends IncrementalColumn<any> ? false
: Column extends UuidColumn<any> ? false
: Options extends INullable<true> ? false
: Options extends IDefault<any> ? false
: true;
}
type Model.Props<BbsArticle> =
{
id?: number;
bbs_group_id: number;
parent_article_id?: number | null;
category?: "NORMAL"|"NOTICE"|"QUESTION"|"SUGGESTION";
writer: string;
password: string;
title: string;
sub_title?: string | null;
content: string;
hits?: number;
created_at?: Date;
updated_at?: Date | null;
deleted_at?: Date | null;
};
```
### API Controllers
In nowadays, many JavaScript libraries like [nestjs](https://nestjs.com) are wrapping [express](https://expressjs.com) framework with `decorator` for convenient. However, wrapping features of [express](https://expressjs.com) components with `decorator`, it loses chance to detecting m is-type-usage error in the compile level.
However, if safe `decorator` implementation with the `^` symbol is used, it also can be used safely. I'll not write the detailed description about the below code. Just look and feel what the safe `decorator` means:
```typescript
@Controller("bbs/:group/articles")
export class BbsArticlesController
{
@Get()
public index
(
httpReq: @HttpRequest(),
group: @Param("group", "string"),
input: @Query<IPage.IRequest>()
): Promise<IPage<IArticle.ISummary>[]>;
@Get(":id")
public async at
(
httpReq: @HttpRequest(),
group: @Param("group", "string"),
id: @Param("id", "number")
): Promise<IArticle>;
@Post()
public async store
(
httpReq: @HttpRequest(),
group: @Param("group", "string"),
input: @RequestBody<IArticle>()
): Promise<IArticle>;
@Put(":id")
public async update
(
httpReq: @HttpRequest(),
group: @Param("group", "string"),
id: @Param("id", "number"),
input: @RequestBody<Partial<IArticle>>()
): Promise<IArticle>;
}
```
|
Suggestion,Awaiting More Feedback
|
medium
|
Critical
|
619,699,655 |
go
|
encoding/csv: skipping of empty rows leads to loss of data in single-column datasets
|
### What version of Go are you using (`go version`)?
<pre>
$ go version
go version go1.14 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
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/ondrej/Library/Caches/go-build"
GOENV="/Users/ondrej/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/ondrej/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.14/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.14/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
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/hp/q7nph21s1q76nw1hv1hfxv2m0000gn/T/go-build988616937=/tmp/go-build -gno-record-gcc-switches -fno-common"
</pre></details>
### What did you do?
I wrote a CSV with a single column and missing data.
### What did you expect to see?
I expected to load the data back, intact.
### What did you see instead?
I lost the missing values, `encoding/csv` skipped them as it skips blank lines. In this case, a blank line actually represents data.
---
I'm not sure I understand the rationale behind skipping blank lines. Neither in terms of common practice (why would I have blank lines in my CSVs?) nor in terms of standards (the closest we have is RFC 4180 and I couldn't find anything about blank lines - so I'm not sure if Go [follows it](https://github.com/golang/go/commit/fa3f484800415662cc741bbb8968ebb72896e20a)).
Here's a reproduction of the problem. I wrote a dataset into a file and was unable to read it back.
<details>
```
package main
import (
"encoding/csv"
"errors"
"log"
"os"
"reflect"
)
func writeData(filename string, data [][]string) error {
f, err := os.Create(filename)
if err != nil {
return err
}
defer f.Close()
cw := csv.NewWriter(f)
defer cw.Flush()
if err := cw.WriteAll(data); err != nil {
return err
}
return nil
}
func readData(filename string) ([][]string, error) {
f, err := os.Open(filename)
if err != nil {
return nil, err
}
defer f.Close()
cr := csv.NewReader(f)
rows, err := cr.ReadAll()
if err != nil {
return nil, err
}
return rows, nil
}
func run() error {
fn := "data/roundtrip.csv"
data := [][]string{{"john"}, {"jane"}, {""}, {"jack"}}
if err := writeData(fn, data); err != nil {
return err
}
returned, err := readData(fn)
if err != nil {
return err
}
if !reflect.DeepEqual(returned, data) {
log.Println("expected", data, "got", returned)
return errors.New("not equal")
}
return nil
}
func main() {
if err := run(); err != nil {
log.Fatal(err)
}
}
```
</details>
|
NeedsInvestigation
|
medium
|
Critical
|
619,722,540 |
rust
|
Splitting borrows through smart pointers has confusing diagnostics
|
```rust
use std::cell::RefCell;
#[derive(Default)]
struct NotCopy;
#[derive(Default)]
struct Split {
one: Option<NotCopy>,
two: NotCopy,
}
fn read(_: &NotCopy) {}
fn main() {
let mut split = Split::default();
// comment this:
let split = &mut split;
// uncomment this:
// let split = RefCell::new(split);
// let mut split = split.borrow_mut();
if let Some(ref mut one) = split.one {
read(&split.two);
*one = NotCopy;
}
}
```
([Playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=f42ceb391fdaa9aad25aa7a387a67c88))
This compiles fine, but if you switch the commented out parts, you get:
```
error[E0502]: cannot borrow `split` as immutable because it is also borrowed as mutable
--> src/main.rs:21:15
|
20 | if let Some(ref mut one) = split.one {
| ----- mutable borrow occurs here
21 | read(&split.two);
| ^^^^^ immutable borrow occurs here
22 | *one = NotCopy;
| -------------- mutable borrow later used here
```
The reason this does not error in the original case is that Rust is aware of the semantics of `&mut T`'s `DerefMut` and can reason about splitting borrows, however it is _not_ aware of the semantics of `RefMut<T>`'s `DerefMut` and `&split.two` is able to read from `split.one` in a safely-written `DerefMut` impl.
The fix is to convert the `RefMut<T>` into an `&mut T`, via `&mut *split` before doing any of reads or writes.
One typically expects splitting mutable borrows to work in Rust, so it's weird when it doesn't. It would be nice if the compiler could detect when a situation is one of splitting borrows through a DerefMut impl and make the appropriate suggestion.
|
C-enhancement,A-diagnostics,A-borrow-checker,T-compiler,D-confusing
|
low
|
Critical
|
619,722,654 |
pytorch
|
Wheels not manylinux1 compliant
|
The current 1.5.0 manylinux1 release of torch links against `libcuda.so.1` which is against the specification.
According to the [manylinux1 policy](https://www.python.org/dev/peps/pep-0513/#the-manylinux1-policy) from PEP-513, manylinux1 wheels must only link against a limited set of external shared libraries.
Pytorch not following the spec leads to problems on build systems which rely on the correctness of the manylinux1 policy like for example installing wheels via Nix.
cc @ezyang @seemethere
|
module: binaries,triaged
|
low
|
Major
|
619,740,369 |
excalidraw
|
Free draw with many points fails to filp
|
It's probably because some of the point positions become too close to zero, and can't rescale properly.

|
bug
|
low
|
Major
|
619,773,607 |
godot
|
Root viewport texture filtering only works in GLES2
|
**Godot version:** 3.2.stable
**OS/device including version:** Windows 10
**Issue description:** Enabling texture filtering on the root viewport is the only way for a consistent visual result with proper font hinting that works equally well with fullscreen/windowed mode. For this I'm using an AutoLoad (by the way I truly believe this feature should be available without scripting), but it's only working with GLES2. Switching to GLES3 the root viewport texture filtering is ignored. The flag is set, and no error or warning is shown, but the rendered texture is ugly and pixelated.
**Steps to reproduce:** Clone and open the included demo project. Will start in GLES2. Toggle the "Viewport filtering" CheckButton to see that when it's enabled the viewport texture is filtered. Now switch `rendering/quality/driver/driver_name` to GLES3 and observe that the filtering is no longer working.
**Minimal reproduction project:** https://github.com/sszigeti/GodotViewportFilteringDemo
[Further details on Reddit](https://www.reddit.com/r/godot/comments/fsw3n0/solved_i_finally_have_consistent_font_hinting_due/)
|
enhancement,topic:rendering
|
low
|
Critical
|
619,777,213 |
godot
|
Items remain highlighted or tooltips remain up when cursor leaves window
|
**Godot version:**
3.2.1 stable
**OS/device including version:**
Fedora 32, x86_64
**Issue description:**
If I alt-tab to another app or move my mouse quickly out of the app window then any tooltip or highlighted control will remain in that state.
**Steps to reproduce:**
The best way to show this issue is with a video.
https://youtu.be/5WmqQeSy2SY
**Minimal reproduction project:**
You can easily reproduce the issue using the Godot editor.
|
bug,topic:editor,topic:gui
|
low
|
Major
|
619,781,849 |
opencv
|
Sample Python code not included in "Random generator and text with OpenCV" tutorial
|
The [Random generator and text with OpenCV](https://github.com/opencv/opencv/blob/master/doc/tutorials/imgproc/random_generator_and_text/random_generator_and_text.markdown) tutorial only contains C++ code but the program has already been translated to Python and is contained in the OpenCV samples [here](https://github.com/opencv/opencv/blob/master/samples/python/drawing.py). (Unfortunately I only noticed this about halfway through creating a translated version of my own!) On a related note, the tutorial also uses in-document code, instead of using references to the actual sample C++ file, and the link to the [C++ sample](https://github.com/opencv/opencv/blob/master/samples/cpp/tutorial_code/ImgProc/basic_drawing/Drawing_2.cpp) is broken. If so desired, I would be happy to submit a pull-request for:
- [ ] fixing the broken link to the C++ sample file
- [ ] revising the tutorial to use references to the C++ sample file
- [ ] relocating the Python sample file to the Python tutorial code directory
- [ ] referring to the Python sample file in the tutorial (with toggles for switching between the languages)
|
category: documentation
|
low
|
Critical
|
619,784,959 |
godot
|
OS.execute returns ERR_CANT_FORK
|
**Godot version:**
3.2.1
**OS/device including version:**
Windows 10
**Issue description:**
I need to run a batch file, which sets some env vars and launches a java applet, from inside Godot.
The only way how is to use OS.execute:
`OS.execute("C:/build/gateway/bin/run.bat", [], false)`
Contents of the .bat file:
```
set JAVA_HOME=c:\jdk
set PATH=%JAVA_HOME%\bin;%PATH%
set config_file="C:\build\gateway\root\conf.yaml"
set config_path="C:\build\gateway\root\"
set RUNTIME_PATH="C:\build\gateway\root\;dist\ibgroup.web.core.iblink.router.clientportal.gw.jar;build\lib\runtime\*"
java -Djava.net.preferIPv4Stack=true -Dvertx.disableDnsResolver=true -Dvertx.logger-delegate-factory-class-name=io.vertx.core.logging.SLF4JLogDelegateFactory -Dnologback.statusListenerClass=ch.qos.logback.core.status.OnConsoleStatusListener -Dnolog4j.debug=true -Dnolog4j2.debug=true -classpath %RUNTIME_PATH% ibgroup.web.core.clientportal.gw.GatewayStart
```
When the OS.execute method is called in an exported Godot project with debugging, the debug window throws the following error:
```
ERROR: execute: Condition "ret == 0" is true. Returned: ERR_CANT_FORK
At: platform/windows/os_windows.cpp:2749
```
As much as I have been able to learn from searching through the archives, this error is earliest
from Oct 30, 2017 and it still has not been fixed!
Here's the kicker! When I run the run.bat manually from inside a cmd shell, it works perfectly!
I'm **constructively** disappointed that GDScript continues to be a flaming trainwreck.
Instead of crashing and burning like jet fuel through steel beams, the OS.execute should just
figure out by itself what it needs to do to make the called program run properly like it's been asked to.
|
bug,platform:windows,topic:porting
|
medium
|
Critical
|
619,789,192 |
pytorch
|
Torchvision error TypeError: _resolve_type_from_object()
|
## 🐛 Bug
<!-- A clear and concise description of what the bug is. -->
## To Reproduce
Steps to reproduce the behavior:
1.import torchvision
2.print(torchvision.__version__)
> --------------------------------------------------------------------------- TypeError Traceback (most recent call last) in ----> 1 import torchvision 2 print(torchvision.version)
>
> ~/.local/lib/python3.5/site-packages/torchvision/init.py in 1 import warnings 2 ----> 3 from torchvision import models 4 from torchvision import datasets 5 from torchvision import ops
>
> ~/.local/lib/python3.5/site-packages/torchvision/models/init.py in 10 from .shufflenetv2 import * 11 from . import segmentation ---> 12 from . import detection 13 from . import video 14 from . import quantization
>
> ~/.local/lib/python3.5/site-packages/torchvision/models/detection/init.py in ----> 1 from .faster_rcnn import * 2 from .mask_rcnn import * 3 from .keypoint_rcnn import *
>
> ~/.local/lib/python3.5/site-packages/torchvision/models/detection/faster_rcnn.py in 12 from .generalized_rcnn import GeneralizedRCNN 13 from .rpn import AnchorGenerator, RPNHead, RegionProposalNetwork ---> 14 from .roi_heads import RoIHeads 15 from .transform import GeneralizedRCNNTransform 16 from .backbone_utils import resnet_fpn_backbone
>
> ~/.local/lib/python3.5/site-packages/torchvision/models/detection/roi_heads.py in 208 209 --> 210 @torch.jit.script 211 def _onnx_heatmaps_to_keypoints_loop(maps, rois, widths_ceil, heights_ceil, 212 widths, heights, offset_x, offset_y, num_keypoints):
>
> ~/.local/lib/python3.5/site-packages/torch/jit/init.py in script(obj, optimize, _frames_up, _rcb) 1288 if _rcb is None: 1289 _rcb = _jit_internal.createResolutionCallbackFromClosure(obj) -> 1290 fn = torch._C._jit_script_compile(qualified_name, ast, _rcb, get_default_args(obj)) 1291 # Forward docstrings 1292 fn.doc = obj.doc
>
> ~/.local/lib/python3.5/site-packages/torch/jit/_recursive.py in try_compile_fn(fn, loc) 566 # object 567 rcb = _jit_internal.createResolutionCallbackFromClosure(fn) --> 568 return torch.jit.script(fn, _rcb=rcb) 569 570 def wrap_cpp_module(cpp_module):
>
> ~/.local/lib/python3.5/site-packages/torch/jit/init.py in script(obj, optimize, _frames_up, _rcb) 1288 if _rcb is None: 1289 _rcb = _jit_internal.createResolutionCallbackFromClosure(obj) -> 1290 fn = torch._C._jit_script_compile(qualified_name, ast, _rcb, get_default_args(obj)) 1291 # Forward docstrings 1292 fn.doc = obj.doc
>
> ~/.local/lib/python3.5/site-packages/torch/jit/init.py in _get_overloads(obj) 2028 compiled_fns = [] 2029 for overload_fn in uncompiled_overloads: -> 2030 compiled_fns.append(_compile_function_with_overload(overload_fn, qual_name, obj)) 2031 2032 if existing_compiled_fns:
>
> ~/.local/lib/python3.5/site-packages/torch/jit/init.py in _compile_function_with_overload(overload_fn, qual_name, impl_fn) 2008 def _compile_function_with_overload(overload_fn, qual_name, impl_fn): 2009 overload_decl = torch.jit.get_jit_def(overload_fn).decl() -> 2010 overload_signature = torch.jit.annotations.get_signature(overload_fn, None, None, inspect.ismethod(overload_fn)) 2011 impl_ast = torch.jit.get_jit_def(impl_fn) 2012 overload_defaults = get_default_args(overload_fn)
>
> ~/.local/lib/python3.5/site-packages/torch/jit/annotations.py in get_signature(fn, rcb, loc, is_method) 77 # because it didn't have any annotations. 78 if type_line is not None: ---> 79 signature = parse_type_line(type_line, rcb, loc) 80 81 return signature
>
> ~/.local/lib/python3.5/site-packages/torch/jit/annotations.py in parse_type_line(type_line, rcb, loc) 163 raise RuntimeError("Failed to parse the return type of a type annotation: {}".format(str(e))) 164 --> 165 arg_types = [ann_to_type(ann, loc) for ann in arg_ann] 166 return arg_types, ann_to_type(ret_ann, loc) 167
>
> ~/.local/lib/python3.5/site-packages/torch/jit/annotations.py in (.0) 163 raise RuntimeError("Failed to parse the return type of a type annotation: {}".format(str(e))) 164 --> 165 arg_types = [ann_to_type(ann, loc) for ann in arg_ann] 166 return arg_types, ann_to_type(ret_ann, loc) 167
>
> ~/.local/lib/python3.5/site-packages/torch/jit/annotations.py in ann_to_type(ann, loc) 301 302 def ann_to_type(ann, loc): --> 303 the_type = try_ann_to_type(ann, loc) 304 if the_type is not None: 305 return the_type
>
> ~/.local/lib/python3.5/site-packages/torch/jit/annotations.py in try_ann_to_type(ann, loc) 294 def fake_rcb(key): 295 return None --> 296 the_type = torch._C._resolve_type_from_object(ann, loc, fake_rcb) 297 if the_type is not None: 298 return the_type
>
> TypeError: _resolve_type_from_object(): incompatible function arguments. The following argument types are supported: 1. (arg0: object, arg1: torch._C._jit_tree_views.SourceRange, arg2: Callable[[str], function]) -> torch._C.Type
>
> Invoked with: typing.Union[int, NoneType], None, .fake_rcb at 0x7f55d8974ea0>
## Expected behavior
<!-- A clear and concise description of what you expected to happen. -->
Print the version of Torchvision
## Environment
Please copy and paste the output from our
[environment collection script](https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py)
(or fill out the checklist below manually).
You can get the script and run it with:
```
wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py
```
Collecting environment information...
PyTorch version: 1.5.0
Is debug build: No
CUDA used to build PyTorch: 10.1
OS: Ubuntu 16.04.6 LTS
GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609
CMake version: version 3.5.1
Python version: 3.7
Is CUDA available: Yes
CUDA runtime version: Could not collect
GPU models and configuration:
GPU 0: TITAN X (Pascal)
GPU 1: TITAN X (Pascal)
GPU 2: TITAN X (Pascal)
Nvidia driver version: 418.87.01
cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.5
Versions of relevant libraries:
[pip3] numpy==1.16.2
[pip3] torch==1.5.0+cu101
[pip3] torchvision==0.6.0+cu101
[conda] blas 1.0 mkl
[conda] cudatoolkit 10.1.243 h6bb024c_0
[conda] mkl 2020.1 217
[conda] mkl-service 2.3.0 py37he904b0f_0
[conda] mkl_fft 1.0.15 py37ha843d7b_0
[conda] mkl_random 1.1.0 py37hd6b4f25_0
[conda] numpy 1.18.1 py37h4f9e942_0
[conda] numpy-base 1.18.1 py37hde5b4d6_1
[conda] pytorch 1.5.0 py3.7_cuda10.1.243_cudnn7.6.3_0 pytorch
[conda] torchvision 0.6.0 py37_cu101 pytorch
cc @fmassa
|
triaged,module: vision
|
low
|
Critical
|
619,803,231 |
flutter
|
[camera] startVideoRecording/stopVideoRecording() freezes the UI
|
Flutter (Channel stable, v1.17.1, on Linux, locale en_US.UTF-8)
camera: ^0.5.8+1
I've noticed that await _controller.stopVideoRecording() takes several seconds. I'm trying to animate a spinner during this time. The spinner renders, but does not spin. Logs show frames are skipped during this time
`I/Choreographer( 3789): Skipped 57 frames! The application may be doing too much work on its main thread.`
Behavior can be recreated using the camera example code. Using the example, record a video that is at least ten seconds. Click the stop button. Note that no other buttons can be clicked until the stop completes.
Is there anyway to prevent the freeze?
|
platform-android,c: performance,customer: crowd,p: camera,package,has reproducible steps,P2,found in release: 2.2,found in release: 2.6,team-android,triaged-android
|
low
|
Critical
|
619,810,185 |
flutter
|
[in_app_purchase] Subscriptions being cancelled after 3 days
|
I have +2 million downloads and some users are complaning about subscriptions being automaticaly cancelled without their interactions.
The app is more than 3 years old (at least 1 year in Flutter), no change in the in app purchase (this behavior started last week).
Since the first issues, I'm logging the purchases to try to understand why this is happening and I've noticed that despite Google says the purchase was acknowledged, the plugin say it's pendind confirmation:
For instance: `purchase.billingClient.isAcknowledged` is true, but `pendingCompletePurchase` is also true.
The acknowledge code was always present (purchase.completePurchase, or something like this), and I have more than 1 thousand subscriptions without any issues.
What can I do to pinpoint the root cause of this behavior? (notice: I'm using in_app_purchase 0,.3.0+1 and can't go past 0.3.0+3 because I'm locked on a beta version of Flutter (newest versions causes handred of thousands devices to crash, don't know why)).
How `pendingCompletePurchase` is calculated?
|
platform-android,p: in_app_purchase,package,P2,team-android,triaged-android
|
low
|
Critical
|
619,842,231 |
godot
|
When the computer memory is not enough, Godot will lose the tscn scene data
|
**Godot version:3.2.1 64bit**
**OS/device including version:windows7 64bit 4G Ram **
**Issue description:When the computer memory is not enough, Godot will lose the tscn scene data,I tried to restart the computer, opened the tscn file with Notepad + +, and found that there was no data in the file**
**Steps to reproduce:


**
**Minimal reproduction project:**
|
bug,platform:windows,topic:editor
|
low
|
Major
|
619,847,262 |
rust
|
Missed optimization: Array shadowed in same scope of declaration unnecessarily copied.
|
Edit: initial attempt at reducing the scope led to an incorrect example, updating with the motivating example.
https://rust.godbolt.org/z/g4imX-
The above shadow on line 119 `let position_deltas = position_deltas;` results in a series of vmovups, but should be optimized to a noop.
|
I-slow,C-enhancement,T-compiler,E-needs-mcve,A-mir-opt,A-mir-opt-nrvo,C-optimization
|
low
|
Minor
|
619,934,400 |
material-ui
|
enUS locale is exported, but as an empty object
|
<!-- Provide a general summary of the issue in the Title above -->
<!--
Thank you very much for contributing to Material-UI by creating an issue! ❤️
To avoid duplicate issues we ask you to check off the following list.
-->
<!-- Checked checkbox should look like this: [x] -->
- [x] The issue is present in the latest release.
- [x] I have searched the [issues](https://github.com/mui-org/material-ui/issues) of this repository and believe that this is not a duplicate.
## Current Behavior 😯
<!-- Describe what happens instead of the expected behavior. -->
`import { enUS } from '@material-ui/core/locale'`
This import gives me an empty object.
## Expected Behavior 🤔
<!-- Describe what should happen. -->
To be able to import enUS (default) locale.
## Steps to Reproduce 🕹
<!--
Provide a link to a live example (you can use codesandbox.io) and an unambiguous set of steps to reproduce this bug.
Include code to reproduce, if relevant (which it most likely is).
You should use the official codesandbox template as a starting point: https://material-ui.com/r/issue-template
If you have an issue concerning TypeScript please start from this TypeScript playground: https://material-ui.com/r/ts-issue-template
Issues without some form of live example have a longer response time.
-->
These steps are most likely not needed, because the locale is commented in the module: https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/locale/index.ts#L300
## Context 🔦
<!--
What are you trying to accomplish? How has this issue affected you?
Providing context helps us come up with a solution that is most useful in the real world.
-->
I need to support dynamic language change, which seems not to be supported by current MUI localization. Therefore I'd like to import default locale, so I could use it with e.g. react-i18next.
|
ready to take,l10n
|
medium
|
Critical
|
619,943,488 |
three.js
|
LWOLoader: add support for Discontinuous UV maps
|
Copied from https://github.com/threejs/lwoloader/issues/28, initially reported by @onthez (last one!):
> Having used the loader over the past 6 months or so, the biggest pain point in authoring models that will successfully load is having to avoid discontinuous UV maps. When you create a uv map in Lightwave it will almost certainly default to being discontinuous.
> There are some manual techniques and a 3rd party plugin that can correct those down to basic UV maps but then there is a nasty trade off that the geometry is no long continuous so if applied to curved surface there is a hard unsmoothed edge where there shouldn't be one.
> @looeee looked into this quite a bit and determined it might require a fair amount of effort.
> I thought I would compile some resources to reference:
> Current SDK docs (For LWO3) http://static.lightwave3d.com/sdk/2019/html/filefmts/lwo3.html#c_VMAD
> Old SDK docs (For LWO2, but may have info that is still relevant) http://static.lightwave3d.com/sdk/11-6/html/filefmts/lwo2.html#c_VMAD
> https://forums.newtek.com/showthread.php?112873-Dev-Parser-UV-Atlas-Mapping
> https://forums.newtek.com/showthread.php?106629-Native-LWO-support-in-Unity/page2
> This thread discusses going the other direction - bringing a model into LW, but has some good information. Also a Lightwave dev chimed in to answer some questions which might be helpful.
https://forums.newtek.com/showthread.php?106234-Discontinuous-UV-handling-for-ObjectLoader-(in-C)
|
Loaders
|
low
|
Minor
|
619,981,975 |
vscode
|
Add an option to save files atomically
|
(prior art: https://github.com/microsoft/vscode/issues/56361)
All our writes in VSCode today operate on the target file:
* truncate the file to 0 bytes
* write the contents into the file
If a crash happens after truncation, the file will remain empty. This should typically not result in dataloss because we have a backup to recover from. However, some external tools may act up when they get an event for the file being empty and in certain bad situations we still might end up with an empty file (e.g. when auto save is on where we do not backup).
An alternate strategy to ensure a file is consistent is to:
* write the contents of the editor into a temporary file
* move the file over the original one in a single atomic file operation (my understanding is that moves are atomic unless you move across disks)
While this reduces the chance of corrupt files, the downside to this approach is that some external file watchers might be confused about a file constantly being replaced and not just written to.
|
feature-request,file-io,keep
|
low
|
Critical
|
620,053,503 |
opencv
|
Expose RANSAC classes in calib3d
|
I am working on the GSoC Project idea #9 Add Robust Plane/Sphere/Cylinder Fitting into 3D Point Clouds.
The project heavily depends upon RANSAC. The current implementation of RANSAC is as a PointSetRegistrator in ```opencv/calib3d```. However, I would probably be making the pull request in opencv_contrib's rgbd module since a plane fitting implementation is already present there as listed in the [project description](https://github.com/opencv/opencv/wiki/GSoC_2020#idea-add-robust-planespherecylinder-fitting-into-3d-point-clouds).
The relevant classes (PointSetRegistrator) are part of calib3d's precomp.hpp. It would be great if they can be exposed. I assume a tutorial on RANSAC could accompany it and it would be helpful to others as well.
CC: @berak
My related question on answers.opencv.org: https://answers.opencv.org/question/230287/pointsetregistrator-is-not-a-member-of-cv/
|
category: calib3d,GSoC
|
low
|
Major
|
620,065,507 |
pytorch
|
Difference between using a python list and nn.ModuleList
|
After creating this thread - https://discuss.pytorch.org/t/is-it-mandatory-to-add-modules-to-modulelist-to-access-its-parameters/81622 I understood that as soon as you add any module to a python list the parameters of that module get invisible and hence can't be seen by the optimizer. I think this should be added to the documentation of nn.ModuleList with an example as this would clearly explain the use of ModuleList over python list.
cc @brianjo @mruberry @albanD @jbschlosser
|
module: docs,module: nn,triaged
|
low
|
Minor
|
620,071,226 |
pytorch
|
Maxunpool seems to give a weird error message
|
I am trying to design an autoencoder and when i try to train it i get the error :- **invalid output_size "torch.Size([100, 100])" (dim 0 must be between 96 and 100)** This error shows up at the unpool2 layer . My confusion is that I'st the dim0 already between 96 and 100 ?
The code is given below :-
`class T2Encoder2D2(nn.Module):
def __init__(self):
"""Load the pretrained ResNet-152 and replace top fc layer."""
super(T2Encoder2D2, self).__init__()
self.encoder1 = nn.Sequential(nn.Conv2d(1, 16 , kernel_size=(2,2) ,padding = 1),
nn.ReLU(),
nn.BatchNorm2d(16),
nn.MaxPool2d(kernel_size=(2,2) , stride=(2,2), return_indices=True))
self.encoder2 = nn.Sequential(
nn.Conv2d(16, 32 , kernel_size=(2,2),padding = 1),
nn.ReLU(),
nn.BatchNorm2d(32),
nn.MaxPool2d(kernel_size=(2,2) , stride=(2,2), return_indices=True))
self.encoder3 = nn.Sequential(
nn.Conv2d(32, 96, kernel_size=(2,2),padding = 1),
nn.ReLU(),
nn.BatchNorm2d(96),
nn.MaxPool2d(kernel_size=(2,2) , stride=(2,2), return_indices=True))
self.unpool1 = nn.MaxUnpool2d(kernel_size=(2,2) , stride=(2,2))
self.decoder1 = nn.Sequential(
nn.ConvTranspose2d(96, 32 , kernel_size=(2,2),padding = 1),
nn.ReLU(),
nn.BatchNorm2d(32))
self.unpool2 = nn.MaxUnpool2d(kernel_size=(2,2) , stride=(2,2))
self.decoder2 = nn.Sequential(
nn.ConvTranspose2d(32, 16, kernel_size=(2,2),padding = 1),
nn.ReLU(),
nn.BatchNorm2d(16))
self.unpool3 = nn.MaxUnpool2d(kernel_size=(2,2) , stride=(2,2))
self.decoder3 = nn.Sequential(
nn.ConvTranspose2d(16, 1, kernel_size=(2,2),padding = 1),
nn.ReLU(),
nn.BatchNorm2d(1)
)
#self.fc1 = nn.Linear(3960133, 40000)
#self.rl1 = nn.ReLU()
#self.fc2 = nn.Linear(10000, 20000)
#self.rl2 = nn.ReLU()
#self.fc3 = nn.Linear(10000, 40000)
def forward(self, x):
size1 = x.size()
out,ind1 = self.encoder1(x)
size2 = out.size()
out,ind2 = self.encoder2(out)
size3 = out.size()
out,ind3 = self.encoder3(out)
out = self.unpool1(out , ind3 , output_size = size3)
out = self.decoder1(out)
out = self.unpool2(out , ind2 , output_size = size2)
out = self.decoder2(out)
out = self.unpool3(out , ind1 , output_size = size1)
out = self.decoder3(out)
#out = out.view(out.size(0), -1)
#out = self.fc1(out)
#out = self.rl1(out)
#out = self.fc2(out)
#out = self.rl2(out)
#out = self.fc3(out)
#out = out.view(1,1,200,200)
return out `
|
triaged
|
low
|
Critical
|
620,090,115 |
pytorch
|
Synchronization problem in torch.distributed with MPI on CUDA
|
## 🐛 Bug
Using the `send` and `recv` primitives of `torch.distributed` with MPI on CUDA, I sometimes receive different messages than I sent. I also sometimes get `illegal memory access` crashes.
In the example below, it seems that the `torch.zeros_like` is still running while the receive starts, leading to a decrease in mean value of the tensor sent/received.
Adding `torch.cuda.synchronize()` before `dist.recv` fixes the issue.
This only happens when multiple processes run on the same GPU. I expect this to be because `send` / `recv`/ are very fast in this setting (using CUDA shared memory.)
I use OpenMPI 4.0.3rc4 with UCX (see environment below).
## To Reproduce
This snippet reproduces the issue on my machine:
```python
import torch
import torch.distributed as dist
dist.init_process_group("mpi")
rank = dist.get_rank()
world_size = dist.get_world_size() # occurs from 2 workers onwards
right = (rank + 1) % world_size
left = (rank - 1) % world_size
x = torch.ones(100000, device="cuda").float() # large size is important, bug on happens CUDA
for i in range(100):
h = dist.isend(x, left)
recv_buffer = torch.zeros_like(x)
# torch.cuda.synchronize() <- this fixes the issue
dist.recv(recv_buffer, right)
x[:] = recv_buffer
h.wait()
print(torch.mean(x).item()) # prints 0.0 instead of 1.0
```
I run this with `mpirun -n 2 --hostfile hostfile python example.py`.
## Expected behavior
The script should print `1.0`, but prints `0.0` instead.
## Environment
PyTorch version: 1.4.0a0+7404463
Is debug build: No
CUDA used to build PyTorch: 10.2
OS: Ubuntu 18.04.4 LTS
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
CMake version: version 3.10.2
Python version: 3.7
Is CUDA available: Yes
CUDA runtime version: 10.2.89
GPU models and configuration: GPU 0: Tesla K80
Nvidia driver version: 440.64.00
cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.5
Versions of relevant libraries:
[pip] msgpack-numpy==0.4.4.3
[pip] numpy==1.18.1
[pip] numpydoc==0.9.2
[pip] torch==1.4.0a0+7404463
[pip] torchtext==0.6.0
[pip] torchvision==0.5.0
[conda] blas 1.0 mkl
[conda] mkl 2020.0 166
[conda] mkl-include 2020.0 166
[conda] mkl-service 2.3.0 py37he904b0f_0
[conda] mkl_fft 1.0.15 py37ha843d7b_0
[conda] mkl_random 1.1.0 py37hd6b4f25_0
[conda] numpy 1.18.1 py37h4f9e942_0
[conda] numpy-base 1.18.1 py37hde5b4d6_1
[conda] numpydoc 0.9.2 py_0
## Additional context
## UCX
https://github.com/openucx/ucx.git#c9efc71973c459da426000974a7824bac1fe56e9
```
$ ucx_info -v
# UCT version=1.9.0 revision c9efc71
# configured with: --prefix=/usr/cluster --with-cuda=/usr/local/cuda
```
## OpenMPI
https://github.com/open-mpi/ompi.git#8b4a8cd34cb33f3eb89c22adc46243e9df19d7b0
PyTorch built with:
- GCC 7.5
- Intel(R) Math Kernel Library Version 2020.0.0 Product Build 20191122 for Intel(R) 64 architecture applications
- Intel(R) MKL-DNN v0.21.1 (Git Hash 7d2fd500bc78936d1d648ca713b901012f470dbc)
- OpenMP 201511 (a.k.a. OpenMP 4.5)
- NNPACK is enabled
- CUDA Runtime 10.2
- NVCC architecture flags: -gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_70,code=sm_70;-gencode;arch=compute_70,code=compute_70
- CuDNN 7.6.5 (built against CUDA 10.1)
- Build settings: BLAS=MKL, BUILD_NAMEDTENSOR=OFF, BUILD_TYPE=Release, CXX_FLAGS= -Wno-deprecated -fvisibility-inlines-hidden -fopenmp -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -O2 -fPIC -Wno-narrowing -Wall -Wextra -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Wno-stringop-overflow, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, USE_CUDA=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=ON, USE_NCCL=ON, USE_NNPACK=ON, USE_OPENMP=ON, USE_STATIC_DISPATCH=OFF,
cc @ezyang @gchanan @zou3519 @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @xush6528 @osalpekar
|
oncall: distributed,triaged
|
low
|
Critical
|
620,093,327 |
pytorch
|
torch while loading weighs found runtime error on storage has wrong size: expected 4254413747647032608 got 1024
|
filepath = 'mask1_model_resnet101.pth'
model = torch.load(filepath,map_location=torch.device("cpu"))
RuntimeError Traceback (most recent call last)
<ipython-input-2-1a9fb782fda2> in <module>
38
39 filepath = 'mask1_model_resnet101.pth'
---> 40 model = torch.load(filepath,map_location=torch.device("cpu"))
41
42
/Env/lib/python3.6/site-packages/torch/serialization.py in load(f, map_location, pickle_module, **pickle_load_args)
591 return torch.jit.load(f)
592 return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args)
--> 593 return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
594
595
/Env/lib/python3.6/site-packages/torch/serialization.py in _legacy_load(f, map_location, pickle_module, **pickle_load_args)
778 for key in deserialized_storage_keys:
779 assert key in deserialized_objects
--> 780 deserialized_objects[key]._set_from_file(f, offset, f_should_read_directly)
781 if offset is not None:
782 offset = f.tell()
RuntimeError: storage has wrong size: expected 4254413747647032608 got 1024
|
module: serialization,triaged
|
low
|
Critical
|
620,109,598 |
flutter
|
Accessing Pressure from a MotionEvent
|
## Use case
When there's a MotionEvent on Android it's possible to access the pressure that the user used when they tapped on the screen via [getPressure(int pointerIndex)](https://developer.android.com/reference/android/view/MotionEvent#getPressure(int))).
I want to detect patterns in the pressure that my user is using and access that data in Flutter.
## Proposal
Currently, there's [AndroidMotionEvent](https://api.flutter.dev/flutter/services/AndroidMotionEvent-class.html) but the documentation for AndroidMotionEvent doesn't say anything about how the user can access this class. If there's already a way to access it, that should be documented in AndroidMotionEvent.
Additionally, in opposition to the general Flutter principles of [avoid exposing API cliffs](https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#avoid-exposing-api-cliffs) the AndroidMotionEvent currently doesn't implement all the functions of Android's MotionEvent and doesn't provide information for pressure. It would be great if that information would be provided.
There likely should also be a non-platform specific class that AndroidMotionEvent implements.
|
c: new feature,platform-android,framework,f: gestures,c: proposal,P3,team-android,triaged-android
|
low
|
Minor
|
620,126,265 |
angular
|
Improve TestModuleMetadata typings
|
<!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅
Oh hi there! 😄
To expedite issue processing please search open and closed issues before submitting a new one.
Existing issues often contain information about workarounds, resolution, or progress updates.
🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅-->
# 🚀 feature request
### Relevant Package
<!-- Can you pin-point one or more @angular/* packages the are relevant for this feature request? -->
This feature request is for @angular/core
### Description
Typings for `TestModuleMetadata` are too loose and they do not provide proper type-checking. Ths can lead to hard-to-track bugs in tests in case there is a typo or some other error in `TestBed` configuration object.
Example issue:
```ts
TestBed.configureTestingModule({
providers: [{
provibe: SomeService,
useClass: SomeServiceMock,
}],
})
```
If `SomeService` is decorated as `@Injectable({ providedIn: 'root' })`, the test for the above TestBed configuration will actually create an instance of `SomeService` instead of `SomeServiceMock` because there is a typo (`provibe` instead of `provide`) in the provider so this provider is basically ignored. This kind of an error can be hard to pin down and could be easily caught by stricter typings for `TestModuleMetadata`.
### Describe the solution you'd like
I suggest updating typings of `TestModuleMetadata` to match the typings of `NgModule` interface. Please check the related PR I created.
### Describe alternatives you've considered
Alternative solution is to explicitly type the providers yourself:
```ts
const testProviders: Array<Provider> = [{
provibe: SomeService, // now this typo will be caught
useClass: SomeServiceMock,
}];
TestBed.configureTestingModule({
providers: testProviders,
})
```
|
feature,area: testing,cross-cutting: types,feature: under consideration
|
low
|
Critical
|
620,133,129 |
scrcpy
|
Audio Playback (at least for Android 10)
|
Continuing on grounds of #14, Android 10 now has an official API for playback capture.
https://developer.android.com/guide/topics/media/playback-capture
This API is being used by AZ Screen Recorder (for Android 10) and works perfectly.
We can utilize it for playing audio with `scrcpy`.
I am willing to code the android app part for that. Would need assistance for the `scrcpy` part because I am not familiar with the project.
|
audio
|
low
|
Major
|
620,155,575 |
flutter
|
flutter doctor: detect broken avdmanager: Cannot find executable for null
|
You can get this error both through command line `flutter emulator --create flutteremu` or using *Flutter: Launch Emulator* in Visual Studio Code on macOS.
After installing Android SDK and Flutter SDK, the Flutter emulator run does not work.
```
Oops; flutter has exited unexpectedly: "Invalid argument(s): Cannot find executable for null.".
```
You get this error despite `flutter doctor` telling you that everything is in order.
If you dig deeper you fill find out that the following Android command-line tool does not work:
```sh
avdmanager
```
```
No Java runtime present, requesting install.
```
Turns out that `avdmanager` is quite a tricky to get running on macOS, as it seems to fall short on the default Android SDK installation. You need to have an external `java` installed and then you need to make sure all environment variables are wired correctly. Plus pinning down a correct Java version was not that easy. The suggested Oracle JDK by the macOS itself did not do the trick.
[I wrote a detailed instructions how to get this fixed on this StackOverflow answer](https://stackoverflow.com/questions/61036745/invalid-arguments-cannot-find-executable-for-null-when-emulated-android-on/61869002#61869002).
The correct bug fix would be that `flutter doctor` detects the condition when the user cannot run `avdmanager` and tells the user that this needs to be fixed.
A log from `flutter emulator --create flutteremu` is:
```
Flutter crash report; please file at https://github.com/flutter/flutter/issues.
## command
flutter emulator --create flutteremu
## exception
ArgumentError: Invalid argument(s): Cannot find executable for null.
#0 _getExecutable (package:process/src/interface/local_process_manager.dart:127:5)
#1 LocalProcessManager.runSync (package:process/src/interface/local_process_manager.dart:94:30)
#2 _DefaultProcessUtils.runSync (package:flutter_tools/src/base/process.dart:417:51)
#3 EmulatorManager._getPreferredAvailableDevice (package:flutter_tools/src/emulator.dart:144:46)
#4 EmulatorManager.createEmulator (package:flutter_tools/src/emulator.dart:82:33)
<asynchronous suspension>
#5 EmulatorsCommand._createEmulator (package:flutter_tools/src/commands/emulators.dart:78:31)
#6 EmulatorsCommand.runCommand (package:flutter_tools/src/commands/emulators.dart:48:13)
#7 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:722:18)
#8 _rootRunUnary (dart:async/zone.dart:1192:38)
#9 _CustomZone.runUnary (dart:async/zone.dart:1085:19)
#10 _FutureListener.handleValue (dart:async/future_impl.dart:141:18)
#11 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:682:45)
#12 Future._propagateToListeners (dart:async/future_impl.dart:711:32)
#13 Future._completeWithValue (dart:async/future_impl.dart:526:5)
#14 Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:556:7)
#15 _rootRun (dart:async/zone.dart:1184:13)
#16 _CustomZone.run (dart:async/zone.dart:1077:19)
#17 _CustomZone.runGuarded (dart:async/zone.dart:979:7)
#18 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1019:23)
#19 _microtaskLoop (dart:async/schedule_microtask.dart:43:21)
#20 _startMicrotaskLoop (dart:async/schedule_microtask.dart:52:5)
#21 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
#22 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)
```
## flutter doctor
```
[✓] Flutter (Channel stable, v1.17.0, on Mac OS X 10.15.4 19E287, locale en-GI)
• Flutter version 1.17.0 at /Users/moo/code/flutter
• Framework revision e6b34c2b5c (2 weeks ago), 2020-05-02 11:39:18 -0700
• Engine revision 540786dd51
• Dart version 2.8.1
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /Users/moo/Library/Android/sdk
• Platform android-29, build-tools 29.0.3
• ANDROID_SDK_ROOT = /Users/moo/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_212-release-1586-b4-5784211)
• All Android licenses accepted.
[!] Xcode - develop for iOS and macOS (Xcode 11.4.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.4.1, Build version 11E503a
✗ CocoaPods not installed.
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
To install:
sudo gem install cocoapods
[✓] Android Studio (version 3.6)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 45.1.1
• Dart plugin version 192.8052
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
[✓] VS Code (version 1.45.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.10.2
[!] Connected device
! No devices available
! Doctor found issues in 2 categories.
```
|
c: crash,platform-android,tool,t: flutter doctor,P2,team-android,triaged-android
|
low
|
Critical
|
620,243,192 |
rust
|
fails to infer inner-scope type if it is specified in an outer scope
|
[playground](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=02f11b57445cc7b55c7f3e4c2b86d80c)
````rust
fn main () {
let iter = vec![4,2,3,1,0,0,42].into_iter();
let nums: Vec<i32> = {
let mut v = iter.collect(); // consider giving a type here
v.sort(); // cannot infer type
v
};
}
````
I expected this to work since `.sort()` does not alter the type and we know that `v` must be a `Vec<i32>` at the end since we bind it to the `nums` variable which is is of that type.
It works when I have the type annotation on the inner variable declaration
````rust
let nums = {
let mut v: Vec<i32> = iter.collect();
v.sort();
v
};
````
so I don't see why it should not work having it on the outer one instead.
````
rustc 1.45.0-nightly (a74d1862d 2020-05-14)
binary: rustc
commit-hash: a74d1862d4d87a56244958416fd05976c58ca1a8
commit-date: 2020-05-14
host: x86_64-unknown-linux-gnu
release: 1.45.0-nightly
LLVM version: 9.0
````
|
A-type-system,C-enhancement,T-compiler,A-inference,T-types
|
low
|
Critical
|
620,250,411 |
TypeScript
|
Generic type not assignable if extends type with optional field and passed object does not include the optional field
|
**TypeScript Version:** 3.9.2
**Search Terms:**
optional generic "not assignable"
**Code**
```ts
const foo = <V extends { s?: string }>(v: V) => {};
// This works:
foo({ s: "1", v: 2 });
// This doesn't work:
foo({ v: 2 }); // Argument of type '{ v: number; }' is not assignable to parameter of type '{ s?: string | undefined; }'. Object literal may only specify known properties, and 'v' does not exist in type '{ s?: string | undefined; }'.
```
Compare with
```ts
const bar = <V extends { }>(v: V) => {};
// Both work:
bar({ s: "1", v: 2 });
bar({ v: 2 });
```
**Expected behavior:**
Both statements in the first snippet should compile.
**Actual behavior:**
`foo({ v: 2 });` doesn't compile for `const foo = <V extends { s?: string }>(v: V) => {};`
**Playground Link:**
https://www.typescriptlang.org/play?#code/MYewdgzgLgBAZiEMC8MA8A1GBTAHlbMAEwhgG8YIB+ALkqgCcBLMAcxgF8A+ACgDc6GAJQou5ALAAoKRwDcUhCB4UIdAEQBGNQBoYAmACZOQ+ZMXK9dIxxNSpoSLABGAQwYp0WPAWKkK3fkERZDEyOTtJAHpImAAhECgACxgAdxAGAGsaKVcGC1UYTR1LQ2NTXIt9axMgA
**Related Issues:**
Possible remotely related... https://github.com/microsoft/TypeScript/issues/13747
|
Suggestion,In Discussion
|
low
|
Minor
|
620,282,095 |
pytorch
|
Implement torch.erf for complex dtypes
|
```
>>> torch.erf(torch.tensor([2j, -3.5, 4j]))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
RuntimeError: erf_vml_cpu not implemented for 'ComplexFloat'
>>> torch.erf(torch.tensor([2j, -3.5, 4j]).cuda())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
RuntimeError: "erf_cuda" not implemented for 'ComplexFloat'
>>> import numpy as np
>>> import scipy.special
>>> scipy.special.erf(np.array([2j, -3.5, 4j]))
array([ 0. +1.85648024e+01j, -0.99999926+0.00000000e+00j,
0. +1.29695973e+06j])
>>>
```
cc @ezyang @anjali411 @dylanbespalko
|
triaged,module: complex
|
low
|
Critical
|
620,307,572 |
flutter
|
WillPopScope in url_launcher
|
Is there already a feature like WillPopScope in url_launcher? I would be very happy if there is. I have a game that I created in web, so I used url_launcher instead of webview_flutter, because webview_flutter is very slow in animation compared to url_launcher. I would like to request WillPopScope in url_launcher so I could ask the users if they want to exit the app.
Thank you very much!
|
c: new feature,p: url_launcher,package,c: proposal,team-ecosystem,P3,triaged-ecosystem
|
low
|
Major
|
620,309,605 |
react-native
|
SectionList unnecessarily unmounts and mounts items when filtering (in between renders)
|
## Description
When a SectionList rerenders, sometimes it unmounts and remounts some of its items unnecessarily, even though the items preserve the same "key" prop in between renders. This impacts performance.
A scenario where this could happen is when filtering data. Imagine a SectionList with a search bar (TextInput) above it. Every time the user types something in the search bar, the section list gets filtered so it shows the items that contain the text in the search bar. Sometimes, the items get remounted unnecessarily when typing (Why remount an item when it was already there? It passed the filter, it should stay there.)
## React Native version:
System:
OS: Windows 10 10.0.18363
CPU: (8) x64 Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
Memory: 6.52 GB / 15.87 GB
Binaries:
Node: 12.14.0 - C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm: 6.13.4 - C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
IDEs:
Android Studio: Version 3.6.0.0 AI-192.7142.36.36.6392135
Languages:
Java: Not Found
Python: 2.7.17 - C:\Python27\python.EXE
npmPackages:
@react-native-community/cli: Not Found
react: 16.11.0 => 16.11.0
react-native: 0.62.2 => 0.62.2
npmGlobalPackages:
*react-native*: Not Found
## Steps To Reproduce
1. Create a new react-native project. `npx react-native init sectionlisttest`
2. Modify the App.js file so it looks like the following.
```js
import React, {useEffect, useState} from 'react';
import {SectionList, Text, View} from 'react-native';
const originalData = [{
key: 'header1',
header: 'Header 1',
data: [{key: 'firstItem'}, {key: 'byebye1'}],
}];
const filteredData = [{
key: 'header1',
header: 'Header 1',
data: [{key: 'firstItem'}],
}];
export default function App() {
useEffect(() => {
setTimeout(() => setSections(filteredData), 5000);
}, []);
const [sections, setSections] = useState(originalData);
return (
<SectionList
sections={sections}
renderItem={renderItem}
renderSectionHeader={renderSectionHeader}
ItemSeparatorComponent={Separator}
/>
);
}
const renderItem = ({item}) => <Item item={item} />;
const Item = ({item}) => {
useEffect(() => {
console.log('item mounted');
}, []);
return <Text>{item.key}</Text>;
};
const renderSectionHeader = ({section}) => <Text>{section.header}</Text>;
const Separator = () => <View style={{height: 1, backgroundColor: 'black'}} />;
```
3. Run the app. I ran it in Android (`npx react-native run-android`).
IMPORTANT: Fully reload the app, don't depend on hot reloading.
## Expected Results
**Expected result:** 2 lines saying "Item mounted" get printed to the logs.
**Actual Result:** 2 lines saying "Item mounted" get printed to the logs. . But then, 5 seconds later, it prints a third line also saying "Item mounted".
## Snack, code example, screenshot, or link to a repository:
Snack: [https://snack.expo.io/@hectorricardo/sectionlist-bug](https://snack.expo.io/@hectorricardo/sectionlist-bug)
|
Platform: Android,Component: SectionList,Needs: Attention
|
medium
|
Critical
|
620,310,742 |
flutter
|
Remove temporary desktop plugin dartPluginClass workaround
|
On 1.18 (current master), desktop plugins can either specify a `pluginClass` for a standard plugin with native code, or a `dartPluginClass` to allow that platform's implementation of a plugin to be Dart-only. However, the current stable build, 1.17, doesn't have this logic, and requires a `pluginClass` for all desktop platforms. When building for *any* platform, all platforms listed in the pubspec are validated, which means that publishing a plugin with:
```
plugin:
platforms:
dartPluginClass: Foo
```
will break the iOS and Android builds of any project that ends up with a dependency on that plugin. That means that for example we can't publish a Dart-only Linux implementation of `path_provider` and endorse it without breaking everyone on stable.
To work around this, I propose temporarily adding special handling to the desktop platforms where having `pluginClass: none` is treated the same way as having no `pluginClass` field. This will pass validation on 1.17, but be a no-op on `master`. The workaround would be removed once 1.18 is released to stable.
Minor downsides:
- Desktop builds with older versions of master will break when using one of these plugins. It's master though, so it's reasonable to say that you need to be using the latest version if you want to use published plugins on desktop.
- If someone is building on desktop using another channel and bypassing our check (e.g., changing to a local branch at the same revision but a different name) they will break when using one of these plugins. However, that's not a supported configuration, so I'm fine with that tradeoff. Someone who really wants to do this can always patch their local copy with the workaround, or pin to a version of the plugin that doesn't endorse a plugin using this.
|
tool,platform-mac,platform-windows,platform-linux,a: desktop,P3,c: tech-debt,team-tool,triaged-tool
|
low
|
Minor
|
620,311,164 |
TypeScript
|
Improve declare module wildcards so that they can match parts of a path more like a glob
|
<!-- 🚨 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 FAQ, especially the "Common Feature Requests" section: https://github.com/Microsoft/TypeScript/wiki/FAQ
-->
## Search Terms
global module match glob path
## Suggestion
Improve the declare module wildcards so that they can be used multiple times in a path and they can match multiple parts of it.
## Use Cases
<!--
What do you want to use this for?
What shortcomings exist with current approaches?
-->
In the project I am currently working on we make a distinction between images and icons:
* icons are usually small in size and used multiple times so we store them as SVG and put them in a SVG sprite with the help of [external-svg-sprite-loader](https://github.com/Karify/external-svg-sprite-loader).
* images are usually bigger in size and used only once so we store them as well as SVGs but do not put them in a sprite.
Since SVG imports are not recognized by TypeScript I want to create a global module declaration that targets all icon imports and another that targets all image imports. However, based on the feedback I got in this [StackOverflow issue](https://stackoverflow.com/questions/61816777/how-to-create-a-typescript-module-that-matches-complex-paths), it doesn't seem to be possible to do this since the support of wildcards in module paths seems to be very limited.
## Examples
This is an example of what I would like to be able to do:
```typescript
declare module '@my/**/icons/**/*.svg' {
type IconType = { viewBox: string, symbol: string };
const icon: IconType;
export = icon;
}
declare module '@my/**/images/**/*.svg' {
const url: string;
export = url;
}
```
## Checklist
My suggestion meets these guidelines:
* [ ] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [ ] This wouldn't change the runtime behavior of existing JavaScript code
* [ ] This could be implemented without emitting different JS based on the types of the expressions
* [ ] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
* [ ] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
|
Suggestion,Awaiting More Feedback
|
medium
|
Critical
|
620,314,133 |
godot
|
AddFontOverride seems not to work in C #
|
**Godot version: 3.2.1 mono**
**OS/device including version: Windows 10 **
**Issue description:**
AddFontOverride on Label dont change font and policies size (c#)
**Steps to reproduce:**
Create a custom label, Set a font dynamically to _Ready() function
**Minimal reproduction project:**
Here a sample, I created a CustomLabel and i want font size dynamically at runtime.
The font and the size doesnt change
[Sample.zip](https://github.com/godotengine/godot/files/4645145/Sample.zip)
|
bug,topic:gdscript,topic:dotnet
|
low
|
Minor
|
620,314,642 |
terminal
|
Allow the user to "Pin" tabs
|
With #5787 merging soon, we'll be able to have compact tabs, the same size as "pinned" tabs in lots of browsers.
We should add a context menu option to let users pin tabs as well. When tabs are pinned, they'd move to the start of the list of tabs, to the left of the test of the tabs. We'd probably need to have different lists for pinned vs normal tabs.
Trickily, pinned tabs could only be reordered within the range of the pinned tabs - so it can't be [pinned, pinned, normal, pinned, normal] tab. That might be tricky to pull off.
A follow-up could be linked to #961 where the _pinned_ tabs are re-started, but not the unpinned ones. I think this is kinda similar to how browsers handle pinned tabs. We'd need to reconcile this with #756 - If the user has tabs pinned, then do those re-open, _and_ the startup configuration the user specifies? We'd want to have a comprehensive story before we start on either story.
|
Area-UserInterface,Product-Terminal,Issue-Task
|
medium
|
Major
|
620,314,648 |
vscode
|
API Proposal for multiline quick input
|
## Problem
Currently there's no way to take a multiline input via `showInputBox`. We need one because we use `showInputBox` to take the commit message (which can be multiline) in git extension. (#40295, #39969)
## Solution APIs
<details><summary>TLDR: allow passing a <code>multiline</code> property to the <code>showInputBox</code> options</summary><br>
- **PROPOSED** API: Allow passing a `multiline` property to the `showInputBox` options.
- Problem: Users can have `{ multiline: true, password: true }` which won't work because it's a textarea. More importantly in future there could be more options applicable to only multiline (eg an option mapping to textarea's `row` attribute) or to only singleline
- **PROPOSED** Solution: It's okay just document it
- Solution: It's okay just document it and throw an error if such case arises
- Solution: make the type of options like ```{ multiline?: false, password?: boolean } | { multiline?: true, password?: false }```
- Problem: Terrible typescript inference and error message ergonomics if the options are not literal
- Problem: It's typescript-only solutiton
- API: Have another function called `showMultilineInputBox` that takes options only applicable to it (meaning doesn't take `password` property as option)
- Problem: Feels a little overkill especially at the moment as we only one option (ie `password`) exclusive to singleline. It would have been okay if we had a bunch of options only exclusive to multiline eg `maxHeight`, `autoGrow`, `initialRows`, etc. or bunch of options exclusive to singleline</details>
## Solution Behaviors
<details><summary>TLDR: when <code>multiline</code> is set to true, <code>showInputBox</code> shows a multline quick input where the user hits shift+enter to insert a newline and works exactly like current quick input</summary><br>
- **PROPOSED** Behavior: Allow users to insert a newline with shift+enter instead of submitting
- Prior art: In chrome developer console enter executes the code but shift+enter inserts a newline. As in, usually afaik in scenarios where enter is already taken, shift+enter mimics the "usual" enter behavior. I guess it's also [popu](https://twitter.com/jaffathecake/status/1290306529539821568)[lar](https://twitter.com/rauschma/status/1095298670017343488) convention.
- Behavior: Allow users to insert a newline with enter instead of submitting and have shift+enter submit it.
- Problem: The behavior is not "additive" to singleline behavior as user would expect enter to submit it in multiline also as it does in singleline
- Behavior: Allow users to insert a newline with enter instead of submitting and have a button to submit it.
- Problem: Kinda kills the whole point of "quick input" you'll have to press tab to focus to button and hit enter, foreign to quick action ui and not additive to singleline behavior</details>
## Implementation
For currently proposed api and behavior: #98042, [demo](https://github.com/microsoft/vscode/issues/40295#issuecomment-629862549)
cc @jrieken @chrmarti @joaomoreno
|
feature-request,quick-pick,api-proposal
|
medium
|
Critical
|
620,352,817 |
godot
|
Some menus in the script editor disappear after using the "Close Other Tabs" context menu action
|
**Godot version:**
v3.2.stable.official
**OS/device including version:**
Windows 7 ultimate (version 6.1.7601 Service Pack 1 compilation 7601)
Ubuntu 20.04 aswell (versión 3.2.1.stable.official)
**Issue description:**
Sometimes when I use *Close other tabs* within the text editor it gets to another "mode", in which I see less menu entries (only "File" and "Debug" instead of the five usual File/Search/Edit/Go To/Debug) and I'm not able to do some actions (e.g. ctrl-F for find doesn't work, and that's why I realize it's bugged). It apparently works fine apart from that two symptoms.
It's a very small issue because I simply switch to another text editor (or to 2d mode and back to script mode) and the problem is gone.
I'm not able to reproduce it as doesn't happen always; looks like random to me.
I was getting the bug in Windows but now got it in Linux (Ubuntu 20.04) aswell.
**Steps to reproduce:**
Can't reproduce it.
|
bug,topic:editor,confirmed
|
low
|
Critical
|
620,364,390 |
rust
|
LLVM specific code in backend agnostic part
|
Hi.
It seems like we have LLVM-specific code in the backend agnostic part.
For instance, [here](https://github.com/rust-lang/rust/blob/64db428967131be1f3966b82748fe8818eadb25b/src/librustc_codegen_ssa/mir/place.rs#L107-L108).
That should be moved to the LLVM codegen part.
|
C-cleanup,A-codegen,T-compiler
|
low
|
Minor
|
620,367,984 |
pytorch
|
Unify CPU/CUDA exponential transformation formula
|
To preserve original logic([CPU](https://github.com/pytorch/pytorch/blob/8292742ba020fcff90f14418c18741ebf606103b/aten/src/ATen/core/DistributionsHelper.h#L246)/[CUDA](https://github.com/pytorch/pytorch/blob/8292742ba020fcff90f14418c18741ebf606103b/aten/src/ATen/native/cuda/DistributionTemplates.h#L575)) we use different calculations for CPU/CUDA exponential transformation
```
#if defined(__CUDACC__) || defined(__HIPCC__)
return static_cast<T>(-1.0) / lambda * at::log(val);
#else
return static_cast<T>(-1.0) / lambda * at::log(static_cast<T>(1.0) - val);
#endif
```
where `val` is uniformly distributed between 0 and 1. It should be investigated if it can be unified to have one formula and the best distribution properties
cc @pbelevich
|
triaged,module: random
|
low
|
Minor
|
620,416,871 |
TypeScript
|
Implemented method JSDocs not behaving correctly for @param
|
*TS Template added by @mjbvz*
**TypeScript Version**: 4.0.0-dev.20200518
**Search Terms**
- completionEntryDetails
- jsdoc
- tags
---
<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->
<!-- Also please test using the latest insiders build to make sure your issue has not already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- Use Help > Report Issue to prefill these. -->
- VSCode Version: 1.45.0
- OS Version: Ubuntu 20.04
Steps to Reproduce:
1. Add JSDocs to an interface, and implement that interface in a class
```ts
interface Sample {
/**
* Does some important work
* @param name Name of employee working
* @param age Age of employee
*/
doWork(name: string, age: number): void;
}
let s: Sample;
class Concrete implements Sample {
doWork(name: string, age: number) {
// Nothing to do
}
}
let c: Concrete;
```
2. Attempt to access intellisense for the class, and notice the @param information has not been picked up from the interface.

<!-- Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes
|
Bug,Domain: JSDoc
|
low
|
Critical
|
620,420,417 |
TypeScript
|
Confusing definition found for `function`s in some cases
|
`goToDefinition` handles `function`s specially, leading to this confusing highlight:
let f1, f2;
f2 = f1 = function () {};
// ^^
f1();
this is different from:
let g1, g2;
g2 = g1 = () => {};
// ^^^^^^^^
g1();
which seems like a better choice in the former case too.
This is an issue that was raised in #38567 (which removes the first `f1`/`g1` from the results but doesn't change the value highlights).
|
Bug
|
low
|
Minor
|
620,422,644 |
pytorch
|
Add CUDA callback to Python API
|
As discussed in [this forum thread](https://discuss.pytorch.org/t/mpi-cuda-stream/80702/4). CUDA stream/event callback can be a useful feature. It might be helpful to add it to the Python API.
Besides, some recent discussion for TensorPipe RPC backend also considered using CUDA callback to sync streams and handle errors. Hence creating this issue to track and join discussions in one place.
cc @ngimel @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @gqchen @aazzolini @rohan-varma @xush6528 @jjlilley @osalpekar
|
feature,module: cuda,triaged,module: rpc
|
low
|
Critical
|
620,474,714 |
youtube-dl
|
anyporn.com
|
Hi,
Video URL: https://anyporn.com/621202/
And this is only support the following data:
Actors: Category: timestamp: Quality Video: 360p & 720p
Thanks Team
|
site-support-request
|
low
|
Minor
|
620,480,046 |
go
|
cmd/cgo: does not correctly read DWARF data for unsigned types
|
<!--
Please answer these questions before submitting your issue. Thanks!
For questions please use one of our forums: https://github.com/golang/go/wiki/Questions
-->
### What version of Go are you using (`go version`)?
<pre>
$ go version
go version go1.14.2 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
GO111MODULE=""
GOARCH="amd64"
GOBIN="/Users/elagergren/gopath/bin"
GOCACHE="/Users/elagergren/Library/Caches/go-build"
GOENV="/Users/elagergren/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/elagergren/gopath"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
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/2b/74fz3jhd4wz4vnbf4z7ywzww0000gp/T/go-build455376315=/tmp/go-build -gno-record-gcc-switches -fno-common"
</pre></details>
### What did you do?
https://play.golang.org/p/73rgY0pPok8
### What did you expect to see?
The values for all types be `0xa4a4a4...` (i.e., unsigned integers).
### What did you see instead?
Them converted to signed integers.
This is because https://github.com/golang/go/blob/afd477f2baca9c66ab7fda5fe565174db30933a7/src/cmd/cgo/gcc.go#L618 only checks for `*dwarf.UintType` when some types are, e.g., a `*QualType` wrapping a `*TypedefType`, which then contains a `*UintType`.
This patch fixes it, at least on macOS.
```
615c615
< if isUnsigned(types[i]) {
---
> if _, ok := types[i].(*dwarf.UintType); ok {
653,672d652
< func isUnsigned(t dwarf.Type) bool {
< unwrap := func(t dwarf.Type) dwarf.Type {
< switch t := t.(type) {
< case *dwarf.QualType:
< return t.Type
< case *dwarf.TypedefType:
< return t.Type
< default:
< return nil
< }
< }
< for t != nil {
< if _, ok := t.(*dwarf.UintType); ok {
< return true
< }
< t = unwrap(t)
< }
< return false
< }
<
```
|
NeedsInvestigation,compiler/runtime
|
low
|
Critical
|
620,502,358 |
youtube-dl
|
pornbimbo.com
|
<!--
######################################################################
WARNING!
IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################
-->
## Checklist
<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2020.05.08. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that site you are requesting is not dedicated to copyright infringement, see https://yt-dl.org/copyright-infringement. youtube-dl does not support such sites. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
- Search the bugtracker for similar site support requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->
- [x] I'm reporting a new site support request
- [x] I've verified that I'm running youtube-dl version **2020.05.08**
- [x] I've checked that all provided URLs are alive and playable in a browser
- [x] I've checked that none of provided URLs violate any copyrights
- [x] I've searched the bugtracker for similar site support requests including closed ones
## Example URLs
<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->
- Single video: http://pornbimbo.com/video/3843/binaural-sissy-hypno-trainer
- Single video: http://pornbimbo.com/video/769/sissy-hypno-it-s-ok-to-be-a-girl
## Description
<!--
Provide any additional information.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
-->
currently videos are downloaded in lowest resolution although on most videos multiple resolutions are available
|
site-support-request
|
low
|
Critical
|
620,514,892 |
pytorch
|
TestCase.assertEqual does not distinguish Python builtin types and single-element Tensor
|
The test below can pass. Is this the expected behavior? Adding this to triage review for discussion.
```python
self.assertEqual(2, torch.ones(1, 1) * 2)
```
cc @mruberry
|
module: tests,triaged
|
low
|
Minor
|
620,525,633 |
flutter
|
SystemSound.play(SystemSoundType.click) not working
|
The below code is not working
```dart
static Future<void> play(SystemSoundType type) async {
await SystemChannels.platform.invokeMethod<void>(
'SystemSound.play',
type.toString(),
);
play(SystemSoundType.click);
```
Also it is not showing any errors. Please help. Let me know if you need more information.
Thanks,
Vishnu.
|
platform-android,platform-ios,framework,engine,has reproducible steps,P2,found in release: 3.3,found in release: 3.7,team-engine,triaged-engine
|
low
|
Critical
|
620,531,196 |
terminal
|
Terminal should treat the spaces at the right edge of a nonwrapped line as one region
|
In most other terminal emulators, when you drag a selection off the right edge of the text it selects the entire empty region up to the edge of the screen as a single unit.
There may be an impact, if we do this, on how we copy versus do not copy newlines.
```
+----------------------------------------------+
|TEXT TEXT TEXT |
| |
+----------------------------------------------+
```
Selection:
```
v cursor is here
##############
|TEXT TEXT TEXT |
drag right...
v cursor is here
##############################################
|TEXT TEXT TEXT |
```
There's an argument to be made that copying `TEXT TEXT TEXT` should not have a newline and copying `TEXT TEXT TEXT<SPACE>` should.
|
Area-UserInterface,Product-Terminal,Issue-Task
|
low
|
Minor
|
620,548,872 |
pytorch
|
Add Plackett-Luce distribution
|
## 🚀 Feature
Add PlackettLuce and RelaxedPlackettLuce distributions. It is a simple distribution over permutations.
## Motivation
For optimization over categorical/binary variables (i.e. variational inference with discrete variational approximate posteriors, RL and etc) we already can use `RelaxedBernoulli` /`RelaxedOneHotCategorical` and `Bernoulli`/`OneHotCategorical` depending on if the method is relaxation based or not.
Also, the same Gumbel-Softmax trick holds for the distribution over the set of permutations - Plackett-Luce distribution. You can see successful applications in https://arxiv.org/abs/1911.10036, https://arxiv.org/abs/1903.08850.
## Pitch
Tensorflow has tfp.distributions.PlackettLuce. I think it will be very cool to have it in the pytorch.
## Additional context
For the efficient implementation we will need numerically stable implementation of LogCumSumExp function which is almost finished in PR https://github.com/pytorch/pytorch/pull/36308
|
feature,triaged
|
low
|
Minor
|
620,576,003 |
opencv
|
Implement 17 Photoshop blending modes
|
##### System information (version)
- OpenCV => 4.3:
- Operating System / Platform => ALL:
- Compiler => ALL:
##### Detailed description
Inspired by GIMP and [Formulas for Photoshop blending modes,](http://www.deepskycolors.com/archivo/2010/04/21/formulas-for-Photoshop-blending-modes.html) I'd like to implement the following 17 Photoshop blending modes。

I wonder this code should be put under opencv / photo module or opencv_contrib / xphoto module
?Any other suggestions or requirements? I'd like to use this issue to track progress.
##### Steps to reproduce
<!-- to add code example fence it with triple backticks and optional file extension
```.cpp
// C++ code example
```
or attach as .txt or .zip file
-->
##### Issue submission checklist
- [ ] I report the issue, it's not a question
<!--
OpenCV team works with answers.opencv.org, Stack Overflow and other communities
to discuss problems. Tickets with question without real issue statement will be
closed.
-->
- [x] I checked the problem with documentation, FAQ, open issues,
answers.opencv.org, Stack Overflow, etc and have not found solution
<!--
Places to check:
* OpenCV documentation: https://docs.opencv.org
* FAQ page: https://github.com/opencv/opencv/wiki/FAQ
* OpenCV forum: https://answers.opencv.org
* OpenCV issue tracker: https://github.com/opencv/opencv/issues?q=is%3Aissue
* Stack Overflow branch: https://stackoverflow.com/questions/tagged/opencv
-->
- [x] I updated to latest OpenCV version and the issue is still there
<!--
master branch for OpenCV 4.x and 3.4 branch for OpenCV 3.x releases.
OpenCV team supports only latest release for each branch.
The ticket is closed, if the problem is not reproduced with modern version.
-->
- [ ] There is reproducer code and related data files: videos, images, onnx, etc
<!--
The best reproducer -- test case for OpenCV that we can add to the library.
Recommendations for media files and binary files:
* Try to reproduce the issue with images and videos in opencv_extra repository
to reduce attachment size
* Use PNG for images, if you report some CV related bug, but not image reader
issue
* Attach the image as archite to the ticket, if you report some reader issue.
Image hosting services compress images and it breaks the repro code.
* Provide ONNX file for some public model or ONNX file with with random weights,
if you report ONNX parsing or handling issue. Architecture details diagram
from netron tool can be very useful too. See https://lutzroeder.github.io/netron/
-->
|
feature,category: imgproc
|
low
|
Critical
|
620,582,099 |
vscode
|
Allow extensions to fully control workspace symbol search (matching and highlights)
|
<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->
For qualified workspace-symbols queries like `llvm::Str`, our language server returns results like `{containerName: "llvm", name: "StringRef"}`.
VSCode attempts to fuzzy-match the query (`llvm::Str`) against the name only (`StringRef`). Because this always fails, it doesn't display any results.
In #23509 it's suggested this is something extensions should deal with, but it's not clear what extensions can do. The `provideWorkspaceSymbols` extension point must return [SymbolInformation](https://code.visualstudio.com/api/references/vscode-api#SymbolInformation) which are then filtered by `name`. Adding the qualifier to `name` means it is displayed twice - once in `name` and once in `containerName`.
|
feature-request,api,workspace-symbols,quick-open
|
medium
|
Critical
|
620,593,352 |
flutter
|
Flutter App Flashes Black When Acting as Default Home Application
|
## Steps to Reproduce
1. Create a new Flutter application
2. Assign it the following intent filter categories:
```
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.LAUNCHER"/>
```
3. Select the Flutter application as the default home application
4. Use the newly set default home application to launch an app via intents
5. Navigate back home via swipe gesture in Android 11
**Expected results:**
The app should fade in like any other app would
**Actual results:**
A black screen for .5 seconds then the application loads the splash screen, then the rendered flutter widgets.
<details>
<summary>Logs</summary>
```H:\bearlauncher\bear_launcher>flutter run --release --verbose
[ +7 ms] executing: [C:\NEWFLUTTER\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +50 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] 456d80b9ddd74b4b5ca3b77bbfb70ab0e05d3fa8
[ ] executing: [C:\NEWFLUTTER\flutter/] git tag --contains HEAD
[ +159 ms] Exit code 0 from: git tag --contains HEAD
[ +1 ms] 1.19.0-1.0.pre
[ +10 ms] executing: [C:\NEWFLUTTER\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +34 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/dev
[ ] executing: [C:\NEWFLUTTER\flutter/] git ls-remote --get-url origin
[ +29 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ +60 ms] executing: [C:\NEWFLUTTER\flutter/] git rev-parse --abbrev-ref HEAD
[ +32 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] dev
[ +39 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +6 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +19 ms] executing: C:\Users\stein\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[ +34 ms] List of devices attached
192.168.1.192:5555 device product:coral model:Pixel_4_XL device:coral transport_id:3
[ +8 ms] C:\Users\stein\AppData\Local\Android\sdk\platform-tools\adb.exe -s 192.168.1.192:5555 shell getprop
[ +145 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ +3 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +70 ms] Found plugin device_apps at C:\NEWFLUTTER\flutter\.pub-cache\hosted\pub.dartlang.org\device_apps-1.0.9\
[ +42 ms] Found plugin device_apps at C:\NEWFLUTTER\flutter\.pub-cache\hosted\pub.dartlang.org\device_apps-1.0.9\
[ +42 ms] Generating H:\bearlauncher\bear_launcher\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[ +25 ms] ro.hardware = coral
[ ] ro.build.characteristics = nosdcard
[ +37 ms] executing: C:\Users\stein\AppData\Local\Android\sdk\build-tools\29.0.3\aapt dump xmltree H:\bearlauncher\bear_launcher\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[ +9 ms] Exit code 0 from: C:\Users\stein\AppData\Local\Android\sdk\build-tools\29.0.3\aapt dump xmltree H:\bearlauncher\bear_launcher\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[ ] N: android=http://schemas.android.com/apk/res/android
E: manifest (line=2)
A: android:versionCode(0x0101021b)=(type 0x10)0x1
A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c
A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
A: package="net.andrewcpu.bearlauncher" (Raw: "net.andrewcpu.bearlauncher")
A: platformBuildVersionCode=(type 0x10)0x1c
A: platformBuildVersionName=(type 0x10)0x9
E: uses-sdk (line=7)
A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
E: application (line=17)
A: android:label(0x01010001)="bearlauncher" (Raw: "bearlauncher")
A: android:icon(0x01010002)=@0x7f080000
A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
E: activity (line=22)
A: android:theme(0x01010000)=@0x7f0a0000
A: android:name(0x01010003)="net.andrewcpu.bearlauncher.MainActivity" (Raw: "net.andrewcpu.bearlauncher.MainActivity")
A: android:launchMode(0x0101001d)=(type 0x10)0x1
A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
E: meta-data (line=36)
A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
A: android:resource(0x01010025)=@0x7f0a0001
E: meta-data (line=46)
A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
A: android:resource(0x01010025)=@0x7f040000
E: intent-filter (line=50)
E: action (line=51)
A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
E: category (line=53)
A: android:name(0x01010003)="android.intent.category.HOME" (Raw: "android.intent.category.HOME")
E: category (line=54)
A: android:name(0x01010003)="android.intent.category.DEFAULT" (Raw: "android.intent.category.DEFAULT")
E: category (line=55)
A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
E: meta-data (line=62)
A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
A: android:value(0x01010024)=(type 0x10)0x2
[ +5 ms] Launching lib\main.dart on Pixel 4 XL in release mode...
[ +2 ms] executing: C:\Users\stein\AppData\Local\Android\sdk\platform-tools\adb.exe -s 192.168.1.192:5555 shell -x logcat -v time -t 1
[ +67 ms] Exit code 0 from: C:\Users\stein\AppData\Local\Android\sdk\platform-tools\adb.exe -s 192.168.1.192:5555 shell -x logcat -v time -t 1
[ ] --------- beginning of main
05-18 20:39:20.225 I/WifiHAL ( 941): event received NL80211_CMD_VENDOR, vendor_id = 0x1374, subcmd = 0xd
[ +16 ms] executing: C:\Users\stein\AppData\Local\Android\sdk\platform-tools\adb.exe version
[ +32 ms] Android Debug Bridge version 1.0.41
Version 30.0.1-6435776
Installed as C:\Users\stein\AppData\Local\Android\sdk\platform-tools\adb.exe
[ +1 ms] executing: C:\Users\stein\AppData\Local\Android\sdk\platform-tools\adb.exe start-server
[ +33 ms] Building APK
[ +12 ms] Running Gradle task 'assembleRelease'...
[ +1 ms] gradle.properties already sets `android.enableR8`
[ +2 ms] Using gradle from H:\bearlauncher\bear_launcher\android\gradlew.bat.
[ ] H:\bearlauncher\bear_launcher\android\gradlew.bat mode: 33279 rwxrwxrwx.
[ +5 ms] executing: H:\AndroidStudio\jre\bin\java -version
[ +70 ms] Exit code 0 from: H:\AndroidStudio\jre\bin\java -version
[ ] openjdk version "1.8.0_212-release"
OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
[ +2 ms] executing: [H:\bearlauncher\bear_launcher\android/] H:\bearlauncher\bear_launcher\android\gradlew.bat -Pverbose=true -Ptarget-platform=android-arm64 -Ptarget=H:\bearlauncher\bear_launcher\lib\main.dart -Ptrack-widget-creation=true
-Pfilesystem-scheme=org-dartlang-root assembleRelease
[+3481 ms] > Task :app:compileFlutterBuildRelease
[ ] [ +5 ms] executing: [C:\NEWFLUTTER\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] [ +51 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] [ ] 456d80b9ddd74b4b5ca3b77bbfb70ab0e05d3fa8
[ ] [ ] executing: [C:\NEWFLUTTER\flutter/] git tag --contains HEAD
[ ] [ +158 ms] Exit code 0 from: git tag --contains HEAD
[ ] [ ] 1.19.0-1.0.pre
[ ] [ +7 ms] executing: [C:\NEWFLUTTER\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ ] [ +32 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] [ ] origin/dev
[ +1 ms] [ ] executing: [C:\NEWFLUTTER\flutter/] git ls-remote --get-url origin
[ +1 ms] [ +28 ms] Exit code 0 from: git ls-remote --get-url origin
[ +1 ms] [ ] https://github.com/flutter/flutter.git
[ ] [ +59 ms] executing: [C:\NEWFLUTTER\flutter/] git rev-parse --abbrev-ref HEAD
[ +1 ms] [ +32 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ +15 ms] [ ] dev
[ +1 ms] [ +25 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ +3 ms] [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ +3 ms] [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ ] [ +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ ] [ +9 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ +4 ms] [ +4 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ +2 ms] [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[ ] [ ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ +1 ms] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[ ] [ +52 ms] Initializing file store
[ ] [ +11 ms] Done initializing file store
[ ] [ +409 ms] Skipping target: kernel_snapshot
[ ] [ +24 ms] Skipping target: aot_android_asset_bundle
[ ] [ +27 ms] Skipping target: android_aot_release_android-arm64
[ +1 ms] [ +28 ms] Skipping target: android_aot_bundle_release_android-arm64
[ ] [ ] Persisting file store
[ ] [ +12 ms] Done persisting file store
[ ] [ +5 ms] build succeeded.
[ ] [ +12 ms] "flutter assemble" took 609ms.
[ ] > Task :app:packLibsflutterBuildRelease UP-TO-DATE
[ +1 ms] > Task :app:preBuild UP-TO-DATE
[ ] > Task :app:preReleaseBuild UP-TO-DATE
[ ] > Task :device_apps:preBuild UP-TO-DATE
[ ] > Task :device_apps:preReleaseBuild UP-TO-DATE
[ +9 ms] > Task :device_apps:compileReleaseAidl NO-SOURCE
[ ] > Task :app:compileReleaseAidl NO-SOURCE
[ ] > Task :device_apps:packageReleaseRenderscript NO-SOURCE
[ ] > Task :app:compileReleaseRenderscript NO-SOURCE
[ ] > Task :app:checkReleaseManifest UP-TO-DATE
[ ] > Task :app:generateReleaseBuildConfig UP-TO-DATE
[ +1 ms] > Task :app:cleanMergeReleaseAssets
[ +1 ms] > Task :app:mergeReleaseShaders UP-TO-DATE
[ ] > Task :app:compileReleaseShaders UP-TO-DATE
[ ] > Task :app:generateReleaseAssets UP-TO-DATE
[ ] > Task :device_apps:mergeReleaseShaders UP-TO-DATE
[ ] > Task :device_apps:compileReleaseShaders UP-TO-DATE
[ ] > Task :device_apps:generateReleaseAssets UP-TO-DATE
[ ] > Task :device_apps:packageReleaseAssets UP-TO-DATE
[ ] > Task :app:mergeReleaseAssets
[ +89 ms] > Task :app:copyFlutterAssetsRelease
[ +2 ms] > Task :app:mainApkListPersistenceRelease UP-TO-DATE
[ +1 ms] > Task :app:generateReleaseResValues UP-TO-DATE
[ ] > Task :app:generateReleaseResources UP-TO-DATE
[ ] > Task :device_apps:generateReleaseResValues UP-TO-DATE
[ ] > Task :device_apps:compileReleaseRenderscript NO-SOURCE
[ ] > Task :device_apps:generateReleaseResources UP-TO-DATE
[ ] > Task :device_apps:packageReleaseResources UP-TO-DATE
[ ] > Task :app:mergeReleaseResources UP-TO-DATE
[ ] > Task :app:createReleaseCompatibleScreenManifests UP-TO-DATE
[ +1 ms] > Task :device_apps:checkReleaseManifest UP-TO-DATE
[ ] > Task :device_apps:processReleaseManifest UP-TO-DATE
[ ] > Task :app:processReleaseManifest UP-TO-DATE
[ ] > Task :device_apps:parseReleaseLibraryResources UP-TO-DATE
[ ] > Task :device_apps:generateReleaseRFile UP-TO-DATE
[ ] > Task :app:processReleaseResources UP-TO-DATE
[ ] > Task :device_apps:generateReleaseBuildConfig UP-TO-DATE
[ ] > Task :device_apps:javaPreCompileRelease UP-TO-DATE
[ ] > Task :device_apps:compileReleaseJavaWithJavac UP-TO-DATE
[ ] > Task :device_apps:bundleLibCompileRelease UP-TO-DATE
[ ] > Task :app:compileReleaseKotlin UP-TO-DATE
[ ] > Task :app:javaPreCompileRelease UP-TO-DATE
[ +1 ms] > Task :app:compileReleaseJavaWithJavac UP-TO-DATE
[ ] > Task :app:compileReleaseSources UP-TO-DATE
[ ] > Task :app:prepareLintJar UP-TO-DATE
[ ] > Task :device_apps:prepareLintJarForPublish UP-TO-DATE
[ +678 ms] > Task :app:lintVitalRelease
[ +1 ms] > Task :device_apps:processReleaseJavaRes NO-SOURCE
[ ] > Task :device_apps:bundleLibResRelease UP-TO-DATE
[ ] > Task :device_apps:bundleLibRuntimeRelease UP-TO-DATE
[ ] > Task :device_apps:createFullJarRelease UP-TO-DATE
[ ] > Task :app:checkReleaseDuplicateClasses UP-TO-DATE
[ ] > Task :app:desugarReleaseFileDependencies UP-TO-DATE
[ ] > Task :app:transformClassesWithDexBuilderForRelease UP-TO-DATE
[ ] > Task :app:mergeExtDexRelease UP-TO-DATE
[ ] > Task :app:mergeDexRelease UP-TO-DATE
[ ] > Task :app:processReleaseJavaRes NO-SOURCE
[ ] > Task :app:mergeReleaseJavaResource UP-TO-DATE
[ ] > Task :app:validateSigningRelease UP-TO-DATE
[ ] > Task :app:signingConfigWriterRelease UP-TO-DATE
[ +65 ms] > Task :app:mergeReleaseJniLibFolders UP-TO-DATE
[ +1 ms] > Task :device_apps:mergeReleaseJniLibFolders UP-TO-DATE
[ ] > Task :device_apps:mergeReleaseNativeLibs UP-TO-DATE
[ ] > Task :device_apps:stripReleaseDebugSymbols UP-TO-DATE
[ ] > Task :device_apps:transformNativeLibsWithIntermediateJniLibsForRelease UP-TO-DATE
[ ] > Task :app:mergeReleaseNativeLibs UP-TO-DATE
[ ] > Task :app:stripReleaseDebugSymbols UP-TO-DATE
[ ] > Task :app:packageRelease UP-TO-DATE
[ ] > Task :app:assembleRelease
[ ] > Task :device_apps:extractReleaseAnnotations UP-TO-DATE
[ ] > Task :device_apps:mergeReleaseGeneratedProguardFiles UP-TO-DATE
[ ] > Task :device_apps:mergeReleaseConsumerProguardFiles UP-TO-DATE
[ ] > Task :device_apps:mergeReleaseJavaResource UP-TO-DATE
[ ] > Task :device_apps:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE
[ ] > Task :device_apps:transformNativeLibsWithSyncJniLibsForRelease UP-TO-DATE
[ ] > Task :device_apps:bundleReleaseAar UP-TO-DATE
[ ] > Task :device_apps:compileReleaseSources UP-TO-DATE
[ ] > Task :device_apps:mergeReleaseResources UP-TO-DATE
[ ] > Task :device_apps:verifyReleaseResources UP-TO-DATE
[ ] > Task :device_apps:assembleRelease UP-TO-DATE
[ ] BUILD SUCCESSFUL in 4s
[ ] 63 actionable tasks: 6 executed, 57 up-to-date
[ +360 ms] Running Gradle task 'assembleRelease'... (completed in 4.9s)
[ +11 ms] calculateSha: LocalDirectory: 'H:\bearlauncher\bear_launcher\build\app\outputs\flutter-apk'/app.apk
[ +6 ms] calculateSha: reading file took 5us
[ +69 ms] calculateSha: computing sha took 69us
[ +5 ms] √ Built build\app\outputs\flutter-apk\app-release.apk (6.3MB).
[ +3 ms] executing: C:\Users\stein\AppData\Local\Android\sdk\build-tools\29.0.3\aapt dump xmltree H:\bearlauncher\bear_launcher\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[ +15 ms] Exit code 0 from: C:\Users\stein\AppData\Local\Android\sdk\build-tools\29.0.3\aapt dump xmltree H:\bearlauncher\bear_launcher\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml
[ ] N: android=http://schemas.android.com/apk/res/android
E: manifest (line=2)
A: android:versionCode(0x0101021b)=(type 0x10)0x1
A: android:versionName(0x0101021c)="1.0.0" (Raw: "1.0.0")
A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1c
A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
A: package="net.andrewcpu.bearlauncher" (Raw: "net.andrewcpu.bearlauncher")
A: platformBuildVersionCode=(type 0x10)0x1c
A: platformBuildVersionName=(type 0x10)0x9
E: uses-sdk (line=7)
A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
E: application (line=17)
A: android:label(0x01010001)="bearlauncher" (Raw: "bearlauncher")
A: android:icon(0x01010002)=@0x7f080000
A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
E: activity (line=22)
A: android:theme(0x01010000)=@0x7f0a0000
A: android:name(0x01010003)="net.andrewcpu.bearlauncher.MainActivity" (Raw: "net.andrewcpu.bearlauncher.MainActivity")
A: android:launchMode(0x0101001d)=(type 0x10)0x1
A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4
A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
E: meta-data (line=36)
A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme")
A: android:resource(0x01010025)=@0x7f0a0001
E: meta-data (line=46)
A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable")
A: android:resource(0x01010025)=@0x7f040000
E: intent-filter (line=50)
E: action (line=51)
A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
E: category (line=53)
A: android:name(0x01010003)="android.intent.category.HOME" (Raw: "android.intent.category.HOME")
E: category (line=54)
A: android:name(0x01010003)="android.intent.category.DEFAULT" (Raw: "android.intent.category.DEFAULT")
E: category (line=55)
A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
E: meta-data (line=62)
A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
A: android:value(0x01010024)=(type 0x10)0x2
[ +2 ms] Stopping app 'app.apk' on Pixel 4 XL.
[ ] executing: C:\Users\stein\AppData\Local\Android\sdk\platform-tools\adb.exe -s 192.168.1.192:5555 shell am force-stop net.andrewcpu.bearlauncher
[ +114 ms] executing: C:\Users\stein\AppData\Local\Android\sdk\platform-tools\adb.exe -s 192.168.1.192:5555 shell pm list packages net.andrewcpu.bearlauncher
[ +64 ms] package:net.andrewcpu.bearlauncher
[ +1 ms] executing: C:\Users\stein\AppData\Local\Android\sdk\platform-tools\adb.exe -s 192.168.1.192:5555 shell cat /data/local/tmp/sky.net.andrewcpu.bearlauncher.sha1
[ +50 ms] 86da9c057e963e8f7682df2ade20ae9f7dd9c905
[ ] Latest build already installed.
[ ] Pixel 4 XL startApp
[ ] executing: C:\Users\stein\AppData\Local\Android\sdk\platform-tools\adb.exe -s 192.168.1.192:5555 shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true
net.andrewcpu.bearlauncher/net.andrewcpu.bearlauncher.MainActivity
[ +65 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=net.andrewcpu.bearlauncher/.MainActivity (has extras) }
[ +1 ms] Application running.
[ +1 ms] Flutter run key commands.
[ +1 ms] h Repeat this help message.
[ ] c Clear the screen
[ ] q Quit (terminate the application on the device).
[+121188 ms] executing: C:\Users\stein\AppData\Local\Android\sdk\platform-tools\adb.exe -s 192.168.1.192:5555 shell am force-stop net.andrewcpu.bearlauncher
[ +123 ms] Application finished.
```
```
```
```
```
<!-- Finally, paste the output of running `flutter doctor -v` here. -->
```
H:\bearlauncher\bear_launcher>flutter doctor -v
[√] Flutter (Channel dev, 1.19.0-1.0.pre, on Microsoft Windows [Version 10.0.18363.778], locale en-US)
• Flutter version 1.19.0-1.0.pre at C:\NEWFLUTTER\flutter
• Framework revision 456d80b9dd (7 days ago), 2020-05-11 11:45:03 -0400
• Engine revision d96f962ca2
• Dart version 2.9.0 (build 2.9.0-7.0.dev 092ed38a87)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at C:\Users\stein\AppData\Local\Android\sdk
• Platform android-29, build-tools 29.0.3
• Java binary at: H:\AndroidStudio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[√] Android Studio (version 3.6)
• Android Studio at H:\AndroidStudio
• Flutter plugin version 45.1.1
• Dart plugin version 192.8052
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
[√] IntelliJ IDEA Ultimate Edition (version 2019.3)
• IntelliJ at C:\Users\stein\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\193.5233.102
• Flutter plugin version 45.1.2
• Dart plugin version 193.5731
[√] Connected device (3 available)
• Pixel 4 XL • 192.168.1.192:5555 • android-arm64 • Android 10 (API 29)
• Web Server • web-server • web-javascript • Flutter Tools
• Chrome • chrome • web-javascript • Google Chrome 81.0.4044.138
• No issues found!
```
```
2020-05-18 20:45:13.804 1493-3598/? I/ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10000000 cmp=net.andrewcpu.bearlauncher/.MainActivity (has extras)} from uid 10155
2020-05-18 20:45:13.827 1493-1511/? W/EventSequenceValidator: IntentStarted during UNKNOWN. Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10000000 cmp=net.andrewcpu.bearlauncher/.MainActivity (has extras) }
java.lang.Throwable: EventSequenceValidator#getStackTrace
at com.google.android.startop.iorap.EventSequenceValidator.logWarningWithStackTrace(EventSequenceValidator.java:260)
at com.google.android.startop.iorap.EventSequenceValidator.onIntentStarted(EventSequenceValidator.java:106)
at com.android.server.wm.LaunchObserverRegistryImpl.handleOnIntentStarted(LaunchObserverRegistryImpl.java:139)
at com.android.server.wm.LaunchObserverRegistryImpl.lambda$veRn_GhgLZLlOHOJ0ZYT6KcfYqo(Unknown Source:0)
at com.android.server.wm.-$$Lambda$LaunchObserverRegistryImpl$veRn_GhgLZLlOHOJ0ZYT6KcfYqo.accept(Unknown Source:10)
at com.android.internal.util.function.pooled.PooledLambdaImpl.doInvoke(PooledLambdaImpl.java:292)
at com.android.internal.util.function.pooled.PooledLambdaImpl.invoke(PooledLambdaImpl.java:201)
at com.android.internal.util.function.pooled.OmniFunction.run(OmniFunction.java:97)
at android.os.Handler.handleCallback(Handler.java:907)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:223)
at android.os.HandlerThread.run(HandlerThread.java:67)
at com.android.server.ServiceThread.run(ServiceThread.java:44)
```
from logcat
</details>
Video of screen flashing black: https://youtu.be/-rnDlcwvQM8
|
platform-android,framework,engine,dependency: android,has reproducible steps,P2,found in release: 3.3,found in release: 3.7,team-android,triaged-android
|
low
|
Critical
|
620,598,811 |
terminal
|
Cloud Shell terminal failed to initialize: The download of the specified resource has failed
|
<!--
🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨
I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING:
1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement.
2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement.
3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number).
4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement.
5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement.
All good? Then proceed!
-->
<!--
This bug tracker is monitored by Windows Terminal development team and other technical folks.
**Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**.
Instead, send dumps/traces to [email protected], referencing this GitHub issue.
If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link.
Please use this form and describe your issue, concisely but precisely, with as much detail as possible.
-->
# Environment
```none
Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd]
Microsoft Windows [Version 10.0.18363.836]
Windows Terminal version (if applicable):
Version: 0.11.1333.0
Any other software?
```
# Steps to reproduce
Select "Azure Cloud Shell" in the pull down menu, select the tenant number
<!-- A description of how to trigger this bug. -->
# Expected behavior
Cloud Shell terminal should present
<!-- A description of what you're expecting, possibly containing screenshots or reference material. -->
# Actual behavior
Error is reported, the output as follows:
Requesting a cloud shell instance...
Succeeded.
Requesting a terminal (this might take a while)...
IXMLHttpRequest2Callback::OnError: -2146697208: The download of the specified resource has failed.
[process exited with code 1]
<!-- What's actually happening? -->
|
Issue-Bug,Product-Terminal,Area-AzureShell,Priority-2
|
low
|
Critical
|
620,628,226 |
flutter
|
Image.network getting retained on iOS
|
See app in https://github.com/flutter/flutter/issues/56482#issuecomment-628297404
Use an `Image.network` on iOS instead of `Image.asset`.
Tap the FAB repeatedly. The image will get disposed, but it is retained and rooted in a `Context` object:

The image will get disposed, but something is retaining it. I think this is related to https://github.com/dart-lang/sdk/issues/36935, tagging `dependency: dart` for that.
|
platform-ios,framework,c: performance,dependency: dart,a: images,perf: memory,P2,team-ios,triaged-ios
|
low
|
Major
|
620,658,367 |
pytorch
|
torch.as_tensor(np_array) is sometimes much faster than torch.tensor(np_array)
|
Per title. Reported internally. See related (but distinct) https://github.com/pytorch/pytorch/issues/13918, which discusses conversion from lists of arrays.
cc @mruberry @VitalyFedyunin @ngimel
|
module: performance,triaged,module: numpy
|
low
|
Minor
|
620,659,979 |
TypeScript
|
TS Sever: find all references didn't find ref forms like `typeof import("...")`
|
<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨
Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common "Bugs" That Aren't Bugs section!
Please help us by doing the following steps before logging an issue:
* Search: https://github.com/Microsoft/TypeScript/search?type=Issues
* Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ
Please fill in the *entire* template below.
-->
<!--
Please try to reproduce the issue with the latest published version. It may have already been fixed.
For npm: `typescript@next`
This is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly
-->
**TypeScript Version:** 3.8.3
<!-- Search terms you tried before logging this (so others can find this issue more easily) -->
**Search Terms:**
vscode repository issues
**Code**
myLib.ts
```ts
export const a = 1;
declare const exports: typeof import("./myLib"); // like commonjs 'exports'
console.log(exports.a);
```
global.d.ts
```ts
declare const myLib: typeof import("./myLib");
```
app.ts
```ts
console.log(myLib.a);
```
**Expected behavior:**
Since it can navigate from `app.ts` to `myLib.ts` by go to defintion of `myLib.a`, `find references of myLib.a` should include the line in `app.ts`
find references should follow module ref forms like `typeof import("...")`, isn't it ?
**Actual behavior:**
Now I search all references for `myLib.a` in vscode, the result list didn't show the line in `app.ts`, but showed two lines in `myLib.ts`:
```
export const a = 1;
console.log(exports.a);
```
**Playground Link:** <!-- A link to a TypeScript Playground "Share" link which demonstrates this behavior -->
**Related Issues:** <!-- Did you find other bugs that looked similar? -->
Not Found
|
Bug
|
low
|
Critical
|
620,661,882 |
neovim
|
Unnecessary pager in spell prompt on narrow windows
|
<!-- Before reporting: search existing issues and check the FAQ. -->
- `nvim --version`: v0.4.3
- `vim -u DEFAULTS` (version: ) behaves differently? No
- Operating system/version: NixOS 20.03
- Terminal name/version: Alacritty 0.5.0-dev
- `$TERM`: alacritty
### Steps to reproduce using `nvim -u NORC`
Create a terminal window narrow enough that it cannot fit "Type number and <Enter> or click with mouse (empty cancels):" on one line.
```
nvim -u NORC
# Alternative for shell-related problems:
# env -i TERM=ansi-256color "$(which nvim)"
i
bda
<ESC>
:set spell<CR>
z=
```
### Actual behaviour
Spell prompt appears with `-- MORE --` on the bottom. You must press 'enter' before you can insert a number.
### Expected behaviour
Spell prompt appears, ready to recieve a number for spell correction.
|
bug-vim,spell
|
low
|
Minor
|
620,697,696 |
pytorch
|
NaN Loss for FasterRCNN on Multiclass Object Detection on Custom Dataset COCO
|
## 🐛 Bug
<!-- A clear and concise description of what the bug is. -->
## To Reproduce
Code
# Dataloader / DataLoading
```
class OwnDataset(torch.utils.data.Dataset):
def __init__(self, root, annotation, transforms=None):
self.root = root
self.transforms = transforms
self.coco = COCO(annotation)
self.ids = list(sorted(self.coco.imgs.keys()))
def __getitem__(self, index):
# Own coco file
coco = self.coco
# Image ID
img_id = self.ids[index]
# List: get annotation id from coco
ann_ids = coco.getAnnIds(imgIds=img_id)
# Dictionary: target coco_annotation file for an image
coco_annotation = coco.loadAnns(ann_ids)
# print(coco_annotation)
# path for input image
path = coco.loadImgs(img_id)[0]['file_name']
# open the input image
img = Image.open(os.path.join(self.root, path)).convert("RGB")
width, height = img.size
# number of objects in the image
num_objs = len(coco_annotation)
# Bounding boxes for objects
# In coco format, bbox = [xmin, ymin, width, height]
# In pytorch, the input should be [xmin, ymin, xmax, ymax]
boxes = []
labelings = []
for i in range(num_objs):
xmin = max(coco_annotation[i]['bbox'][0], 0)
ymin = max(coco_annotation[i]['bbox'][1], 0)
xmax = max(xmin + coco_annotation[i]['bbox'][2], 0)
ymax = max(ymin + coco_annotation[i]['bbox'][3], 0)
boxes.append([xmin, ymin, xmax, ymax])
labelings.append(coco_annotation[i]['category_id'])
assert xmin >= 0
assert xmax <= width
assert xmin <= xmax
assert ymin >= 0
assert ymax <= height
assert ymin <= ymax
boxes = torch.as_tensor(boxes, dtype=torch.float32)
boxes = boxes.reshape(-1, 4)
# Labels (In my case, I only one class: target class or background)
labels = torch.as_tensor(labelings, dtype=torch.int64)
# Tensorise img_id
img_id = torch.tensor([img_id])
# Size of bbox (Rectangular)
areas = []
for i in range(num_objs):
areas.append(coco_annotation[i]['area'])
areas = torch.as_tensor(areas, dtype=torch.float32)
# Iscrowd
iscrowd = torch.zeros((num_objs,), dtype=torch.int64)
# Annotation is in dictionary format
my_annotation = {}
my_annotation["boxes"] = boxes
my_annotation["labels"] = labels
my_annotation["image_id"] = img_id
my_annotation["area"] = areas
my_annotation["iscrowd"] = iscrowd
if self.transforms is not None:
img = self.transforms(img)
# img.type(torch.float32)
return img, my_annotation
def __len__(self):
return len(self.ids)
from torchvision import transforms
def get_transform():
custom_transforms = [
transforms.RandomHorizontalFlip(),
transforms.ToTensor(),
transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])
]
return torchvision.transforms.Compose(custom_transforms)
# path to your own data and coco file
train_data_dir = '/root/output2/imgs/'
train_coco = '/root/output2/train.json'
# create own Dataset
my_dataset = OwnDataset(root=train_data_dir,
annotation=train_coco,
transforms=get_transform()
)
# collate_fn needs for batch
def collate_fn(batch):
return tuple(zip(*batch))
# Batch size
train_batch_size = 2
# own DataLoader
data_loader = torch.utils.data.DataLoader(my_dataset,
batch_size=train_batch_size,
shuffle=True,
num_workers=2,
collate_fn=collate_fn,
pin_memory=True)
```
# Training procedure and Model Instace for FasterRCNN
```
def get_model_instance_segmentation(num_classes):
backbone = torchvision.models.mobilenet_v2(pretrained=True, progress=False).features
backbone.out_channels = 1280
anchor_generator = AnchorGenerator(sizes=((32, 64, 128, 256),),
aspect_ratios=((0.5, 1.0, 2.0),))
roi_pooler = torchvision.ops.MultiScaleRoIAlign(featmap_names=['0'],
output_size=7,
sampling_ratio=2)
model = FasterRCNN(backbone,
num_classes=num_classes,
rpn_anchor_generator=anchor_generator,
box_roi_pool=roi_pooler)
return model
model = get_model_instance_segmentation(num_classes)
params = [p for p in model.parameters() if p.requires_grad]
optimizer = torch.optim.SGD(params, lr=0.0001, momentum=0.9, weight_decay=0.0005)
lr_scheduler = torch.optim.lr_scheduler.StepLR(optimizer,
step_size=3,
gamma=0.1)
len_dataloader = len(data_loader)
total_len = num_epochs * len_dataloader
model.to(device)
old_epoch = 0
import time
num_epochs = 10000
time_s = time.time()
total_processed = 0
total_len = num_epochs * len_dataloader
for epoch in range(old_epoch, num_epochs):
print("---------------------------------------------------------------")
print("EPOCH: ", epoch)
model.train()
for imgs, annotations in data_loader:
imgs = list(img.to(device) for img in imgs)
annotations = [{k: v.to(device) for k, v in t.items()} for t in annotations]
loss_dict = model(imgs, annotations)
losses = sum(loss for loss in loss_dict.values())
optimizer.zero_grad()
losses.backward()
optimizer.step()
lr_scheduler.step()
```
## Expected behavior
I am getting NaN as Loss after some few epochs
## Environment
CUDA used to build PyTorch: 10.2
OS: Ubuntu 16.04.6 LTS
GCC version: (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609
CMake version: version 3.5.1
Python version: 3.6
Is CUDA available: Yes
CUDA runtime version: 10.1.243
GPU models and configuration: GPU 0: Tesla T4
Nvidia driver version: 440.64.00
cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.3
Versions of relevant libraries:
[pip3] numpy==1.18.4
[pip3] sagemaker-pytorch-training==1.3.0
[pip3] torch==1.5.0
[pip3] torchvision==0.6.0
[conda] magma-cuda101 2.5.1 1 pytorch
[conda] mkl 2019.4 243 anaconda
[conda] mkl-include 2019.4 243 anaconda
[conda] mkl-service 2.3.0 py36he904b0f_0 anaconda
[conda] mkl_random 1.1.0 py36hd6b4f25_0 anaconda
[conda] numpy 1.18.4 pypi_0 pypi
[conda] sagemaker-pytorch-training 1.3.0 pypi_0 pypi
[conda] torch 1.5.0 pypi_0 pypi
[conda] torchvision 0.6.0 pypi_0 pypi
## Additional context
<!-- Add any other context about the problem here. -->
cc @fmassa
|
triaged,module: vision
|
low
|
Critical
|
620,767,703 |
TypeScript
|
enum to string (and number) literals keeping the opacity
|
## Search Terms
enum typing, enum valueOf, enum string literal
## Suggestion
The values of the strings enum are by design [opaque](https://github.com/microsoft/TypeScript/issues/17690#issuecomment-321319291) it might however be useful to have a way to type them out of the enum.
This is what we have now:
```typescript
const enum anEnum {
a = 'A',
b = 1,
}
type keysName = keyof typeof anEnum // "a" | "b"
type enumValues = typeof anEnum[keysName]; // anEnum.a | anEnum.b
type enumValueOf = ReturnType<enumValues['valueOf']>; // string | number
const aString: string = anEnum.a.valueOf(); // okay
const aNumber: number = anEnum.b.valueOf(); // okay
const notString: number = anEnum.a.valueOf(); // Type 'string' is not assignable to type 'number'.
const notNumber: string = anEnum.b.valueOf(); // Type 'number' is not assignable to type 'string'.
```
My feature request is to type the `valueOf()` using string literals and number "literals"
```typescript
enum anEnum {
a = 'A',
b = 1,
}
type keysName = keyof typeof anEnum // "a" | "b"
type enumValues = typeof anEnum[keysName]; // anEnum.a | anEnum.b
type enumValueOf = ReturnType<enumValues['valueOf']>; // 'A' | 1
const aString: 'A' = anEnum.a.valueOf(); // okay
const aNumber: 0 = anEnum.b.valueOf(); // okay
const notString: number = anEnum.a.valueOf(); // Type 'A' is not assignable to type 'number'.
const notNumber: string = anEnum.b.valueOf(); // Type 0 is not assignable to type 'string'.
```
## Use Cases
- this is stricter and therefore never bad
- this would allow having the values of an enum which would be useful to compare enums at compilation time (without messing with the opacity of the enum itself.)
## Examples
```typescript
const enum anEnum {
a = 'A',
b = 1,
}
const enum anotherEnum {
a = 'A',
b = 1,
}
// This is not allowed despite both enums are the same
const value: anotherEnum = anEnum.a;
// This would be allowed and safe (even with const enum)
type anotherEnumValues = ReturnType<typeof anotherEnum[keyof typeof anotherEnum]['valueOf']>;
const anOtherEnumValues: anotherEnumValues = anEnum.a;
```
Note: What I do not know is how this custom type could use a generic for the enum, as `<T extends enum>` is invalid. An enum is a bit weird in TS as it both represents a type and an object
## Checklist
My suggestion meets these guidelines:
* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).
|
Suggestion,Awaiting More Feedback
|
low
|
Minor
|
620,772,117 |
godot
|
Procedural Sky Ground Color Bug
|
Godot version:
Godot Engine v3.2.stable.mono.official
OS/device including version:
OS Name: Microsoft Windows 10 Home
Version: 10.0.18363 Build 18363
Issue description:
procedural sky object breaks and no longer renders.
Steps to reproduce:
I am using a C# script that gets the world environments procedural sky object and then changes the color values in its GroundBottomColor. If I change this color immediately upon entering the scene (in the ready function) it seems to break the object and I get a black sky. If I wait a brief amount of time before attempting to change it then the code works fine.
Minimal reproduction project:
Spatial
Directional Light <- script attached
WorldEnvironment
WorldEnvironment.sky = Procedural Sky
|
bug,topic:rendering
|
low
|
Critical
|
620,784,146 |
flutter
|
[Camera] getHorizontalViewAngle and getVerticalViewAngle
|
actually i am working on a project which require horizontal and vertical camera angle which in android java can be done using
Camera.Parameters p = camera.getParameters();
horizontalcameraangle = p.getHorizontalViewAngle();
verticalcameraangle = p.getVerticalViewAngle();
but in flutter i didn't find anything like this i searched everywhere could the flutter team help me please
|
c: new feature,p: camera,package,team-ecosystem,P3,triaged-ecosystem
|
low
|
Minor
|
620,810,664 |
go
|
cmd/compile: intrinsify bits.RotateLeft32 on mipsle
|
<!--
Please answer these questions before submitting your issue. Thanks!
For questions please use one of our forums: https://github.com/golang/go/wiki/Questions
-->
### What version of Go are you using (`go version`)?
<pre>
Build env:
go1.14.3 linux/amd64
Runtime:
GOOS=linux
GOARCH=mipsle
GOMIPS=softfloat
</pre>
### Does this issue reproduce with the latest release?
Yes
</pre>
The performance of TLS1.3 has decreased significantly in Go version 1.14.x and latest x/crypto master branch.
</details>
### What did you do?
Our application uses TLS1.3 to stream real-time video data. When we upgraded go version from 1.13 to 1.14.3 the CPU performance decreased and the latency increased.
When we run the same test in go 1.13 and 1.14.3 we can see that the amount of time that Chach20 Poly1305 takes in 1.14 is almost double as much as in 1.13.x.
We see the problem in 1.14 both with the released version of x/crypto and with latest master of x/crypto.
We tried also with TLS1.2 and still see the issue.
### What did you expect to see?
Same performance across versions.
### What did you see instead?
In our 4 minutes test we can see that the time we spend in crypto increased from 54 seconds in total to 96 seconds.
### Go1.13
[Link to pprof svg graph](https://go-pprof-svgs.s3-eu-west-1.amazonaws.com/profile_go1.13.svg)
>
flat flat% sum% cum cum%
23.20s 19.59% 19.59% 26.67s 22.52% golang.org/x/crypto/poly1305.updateGeneric
17.25s 14.57% 34.16% 19.12s 16.15% syscall.Syscall
16.23s 13.71% 47.87% 16.23s 13.71% golang.org/x/crypto/internal/chacha20.quarterRound
14.32s 12.09% 59.96% 14.32s 12.09% runtime.usleep
5.96s 5.03% 64.99% 5.96s 5.03% runtime.futex
5.14s 4.34% 69.34% 5.14s 4.34% runtime.memmove
4.09s 3.45% 72.79% 4.09s 3.45% runtime._LostSIGPROFDuringAtomic64
3.54s 2.99% 75.78% 3.54s 2.99% encoding/binary.littleEndian.Uint32
3.28s 2.77% 78.55% 3.28s 2.77% golang.org/x/crypto/internal/chacha20.xor
2.90s 2.45% 81.00% 22.61s 19.09% golang.org/x/crypto/internal/chacha20.(*Cipher).XORKeyStream
2.32s 1.96% 82.96% 2.32s 1.96% runtime.nanotime
1.59s 1.34% 84.30% 1.59s 1.34% runtime.epollwait
1.12s 0.95% 85.25% 20.89s 17.64% runtime.sysmon
0.95s 0.8% 86.05% 1.88s 1.59% runtime.retake
0.71s 0.6% 86.65% 0.71s 0.6% runtime.memclrNoHeapPointers
0.62s 0.52% 87.17% 0.65s 0.55% runtime.lock
0.52s 0.44% 87.61% 0.78s 0.66% runtime.unlock
0.37s 0.31% 87.92% 1.10s 0.93% runtime.mallocgc
0.34s 0.29% 88.21% 6.26s 5.29% runtime.schedule
0.33s 0.28% 88.49% 5.54s 4.68% runtime.findrunnable
0.27s 0.23% 88.72% 13.44s 11.35% crypto/tls.(*Conn).write
0.26s 0.22% 88.94% 57.90s 48.90% crypto/tls.(*halfConn).encrypt
0.23s 0.19% 89.13% 1.06s 0.9% runtime.reentersyscall
0.20s 0.17% 89.30% 0.90s 0.76% crypto/tls.(*Conn).SetWriteDeadline
0.20s 0.17% 89.47% 71.67s 60.53% crypto/tls.(*Conn).writeRecordLocked
0.18s 0.15% 89.62% 54.14s 45.72% golang.org/x/crypto/chacha20poly1305.(*chacha20poly1305).sealGeneric
0.18s 0.15% 89.77% 1s 0.84% runtime.exitsyscall
0.16s 0.14% 89.91% 1.76s 1.49% runtime.netpoll
0.13s 0.11% 90.02% 26.80s 22.63% golang.org/x/crypto/poly1305.(*macGeneric).Write
0.13s 0.11% 90.13% 13.02s 11.00% internal/poll.(*FD).Write
</pre>
### Go1.14.3 and x/crypto master
[Link to pprof svg graph](https://go-pprof-svgs.s3-eu-west-1.amazonaws.com/profile_go1.14_crypto_master.svg)
>
flat flat% sum% cum cum%
23.89s 12.98% 12.98% 23.89s 12.98% runtime.usleep
19.10s 10.38% 23.35% 49.38s 26.83% golang.org/x/crypto/chacha20.(*Cipher).xorKeyStreamBlocksGeneric
16.10s 8.75% 32.10% 17.50s 9.51% syscall.Syscall
16.06s 8.72% 40.82% 25.44s 13.82% golang.org/x/crypto/chacha20.quarterRound
12.19s 6.62% 47.45% 12.19s 6.62% runtime.futex
11.50s 6.25% 53.69% 11.83s 6.43% math/bits.Mul64
10.79s 5.86% 59.56% 45.49s 24.71% golang.org/x/crypto/poly1305.updateGeneric
8.39s 4.56% 64.11% 8.70s 4.73% math/bits.RotateLeft32
7.13s 3.87% 67.99% 7.30s 3.97% math/bits.Add64
4.30s 2.34% 70.32% 4.30s 2.34% runtime._LostSIGPROFDuringAtomic64
4.29s 2.33% 72.65% 4.37s 2.37% encoding/binary.littleEndian.Uint64
4.23s 2.30% 74.95% 20.18s 10.96% golang.org/x/crypto/poly1305.mul64
3.97s 2.16% 77.11% 4.12s 2.24% golang.org/x/crypto/chacha20.addXor
3.86s 2.10% 79.20% 15.76s 8.56% golang.org/x/crypto/poly1305.bitsMul64
3.81s 2.07% 81.27% 3.81s 2.07% runtime.nanotime1
3.34s 1.81% 83.09% 3.34s 1.81% runtime.epollwait
3.18s 1.73% 84.82% 3.18s 1.73% runtime.memmove
3.01s 1.64% 86.45% 3.02s 1.64% runtime.asyncPreempt
2.19s 1.19% 87.64% 3.12s 1.69% runtime.timeSleepUntil
1.81s 0.98% 88.62% 36.83s 20.01% runtime.sysmon
1.76s 0.96% 89.58% 4.62s 2.51% golang.org/x/crypto/poly1305.add128
1.47s 0.8% 90.38% 3.10s 1.68% runtime.retake
0.94s 0.51% 90.89% 1.04s 0.56% runtime.lock
0.63s 0.34% 91.23% 13.08s 7.11% runtime.findrunnable
0.46s 0.25% 91.48% 7.77s 4.22% golang.org/x/crypto/poly1305.bitsAdd64 (partial-inline)
0.42s 0.23% 91.71% 100.46s 54.57% crypto/tls.(*halfConn).encrypt
0.41s 0.22% 91.93% 3.94s 2.14% runtime.netpoll
0.31s 0.17% 92.10% 12.78s 6.94% crypto/tls.(*Conn).write
0.31s 0.17% 92.27% 49.89s 27.10% golang.org/x/crypto/chacha20.(*Cipher).XORKeyStream
0.26s 0.14% 92.41% 45.86s 24.91% golang.org/x/crypto/poly1305.(*macGeneric).Write
</pre>
|
Performance,NeedsInvestigation,compiler/runtime
|
low
|
Major
|
620,821,423 |
rust
|
Conditional jumps equivalent to if(0 != 0) can appear in optimized assembly
|
I've got a reasonably minimal test case whose assembly (with `opt-level=1` and above) includes this sequence of opcodes, which is effectively a no-op as far as I can tell:
```asm
xor eax, eax
test eax, eax
jne .LBB0_3
```
This is the code in question ([playground](https://play.rust-lang.org/?version=nightly&mode=release&edition=2018&gist=7acb86df14b6a68b25132d2ff7c9e5fc)):
```rust
pub fn foo(f: fn() -> i32) {
let mut a = f();
let mut b = f();
loop {
if a != 0 && b == 0 {
a = f();
} else if a == 0 && b != 0 {
b = f();
} else {
return
}
}
}
```
I'm not sure whether this is more LLVM's fault or Rust's. Either way, this should not end up in the finished assembly, and I am fairly certain that at least in this specific case all three instructions can be removed entirely without affecting program behaviour.
`rustc 1.45.0-nightly (2020-05-18 d8878868c8d7ef3779e7)` is the most recent version I have tested that shows this issue, and `rustc 1.25.0` on godbolt.org is the oldest. `rustc 1.24.0` does not show the issue, though there's a good chance this is just coincidence.
|
A-LLVM,I-slow,A-codegen,P-medium,T-compiler,regression-from-stable-to-stable,C-bug,E-needs-bisection,ICEBreaker-LLVM
|
low
|
Major
|
620,890,481 |
flutter
|
Global CocoaPods installation is required in projects with plugins, no longer able to use bundler version of pod
|
It seems that starting from 1.17.0 a global CocoaPods is required to build an iOS project which has plugins. This wasn't the case before, resulting in only a warning regarding the cocoa pods installation.
Our current use case is that we install CocoaPods locally in the project using `bundler` rather than requiring a globally installed CocoaPods. This allows us to control the version of `cocoapods` between all of our developer machines and CI.
Now all of our builds fail due to the missing global `cocoapods` dependency.
We have also created a ticket for detecting a locally installed `cocoapods` version by the flutter CLI #40135
From what I can see in the PR this was introduced in #51676, but I think it should be differentiated between a broken install and CocoaPods not being installed at all.
|
platform-ios,tool,c: proposal,P3,team-ios,triaged-ios
|
low
|
Critical
|
620,917,253 |
go
|
x/mobile/cmd/gomobile: bind command fails with "direct call too far" with 100 MB executable file
|
### What version of Go are you using (`go version`)?
<pre>
$ go version
go version go1.13.11 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
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/ivan/Library/Caches/go-build"
GOENV="/Users/ivan/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/ivan/workspace/golang"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
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/3q/lnsctb9j41qc0f06wj7g0tjw0000gn/T/go-build885895559=/tmp/go-build -gno-record-gcc-switches -fno-common"
</pre></details>
### What did you do?
```
gomobile bind -v -a -target=ios \
-ldflags "-s -w \
-X 'qxxx/Sxxl/SRVData.IOS=YES' \
-X 'qxxx/sxxc/qkernel.CLibVer=$NOW' \
-X 'qxxx/sxxc/qkernel.CLibTitle=$NOWTITLE' \
-X 'qxxx/sxxc/qkernel.CLoadURL=$LOADURL'" \
-tags "note full"
```
### What did you see instead?
```
runtime/cgo
golang.org/x/mobile/internal/mobileinit
net
# github.com/mattn/go-sqlite3
sqlite3-binding.c:33220:8: warning: "gethostuuid() is disabled." [-W#warnings]
github.com/mattn/go-sqlite3
qxxx/Sxxl/SRVData
qxxx/Sxxl/SDLibrary
gobind
# gobind
qxxx/sxxs/v.z/vz.(*TEcu).Espsnsclbr90: direct call too far -8388635
qxxx/sxxs/v.z/vz.(*TEcu).Espsnsclbr90: direct call too far -8388639
qxxx/sxxs/v.z/vz.(*TEcu).Espsnsclbr90: direct call too far -8388645
qxxx/sxxs/v.z/vz.(*TEcu).Espsnsclbr90: direct call too far -8388651
qxxx/sxxs/v.z/vz.(*TEcu).Espsnsclbr90: direct call too far -8388657
qxxx/sxxs/v.z/vz.(*TEcu).Espsnsclbr90: direct call too far -8388718
qxxx/sxxs/v.z/vz.(*TEcu).Espsnsclbr90: direct call too far -8388726
qxxx/sxxs/v.z/vz.(*TEcu).Espsnsclbr90: direct call too far -8388732
qxxx/sxxs/v.z/vz.(*TEcu).Espsnsclbr90: direct call too far -8388763
qxxx/sxxs/v.z/vz.(*TEcu).Espsnsclbr90: direct call too far -8388768
qxxx/sxxs/v.z/vz.(*TEcu).Espsnsclbr90: direct call too far -8388772
qxxx/sxxs/v.z/vz.(*TEcu).Espsnsclbr90: direct call too far -8388775
qxxx/sxxs/v.z/vz.(*TEcu).Espsnsclbr90: direct call too far -8388779
qxxx/sxxs/v.z/vz.(*TEcu).Espsnsclbr90: direct call too far -8388783
qxxx/sxxs/v.z/vz.(*TEcu).Espsnsclbr90: direct call too far -8388785
qxxx/sxxs/v.z/vz.(*TEcu).Espsnsclbr90: direct call too far -8388789
qxxx/sxxs/v.z/vz.(*TEcu).Espsnsclbr90: direct call too far -8388672
qxxx/sxxs/v.z/vz.(*TEcu).Espsnsclbr90: direct call too far -8388803
qxxx/sxxs/v.z/vz.(*TEcu).Espsnsclbr90: direct call too far -8388808
qxxx/sxxs/v.z/vz.(*TEcu).Espsnsclbr90: direct call too far -8388814
qxxx/sxxs/v.z/vz.(*TEcu).Espsnsclbr90: direct call too far -8388820
/usr/local/go/pkg/tool/darwin_amd64/link: too many errors
gomobile: darwin-arm: go build -tags qnote RELEASE ios -v -gcflags -trimpath=/Users/xx/workspace/golang/src/qxxx -ldflags -s -w -X 'qxxx/SDLocal/SRVData.IOS=YES' -X 'qxxx/sxxc/qkernel.CLibVer=1909192208' -X 'qxxx/sxxc/qkernel.CLibTitle=2019.09.19 22:08 Release' -X 'qxxx/sxxc/qkernel.CLoadURL=https://sxxc.online' -buildmode=c-archive -o /var/folders/3q/lnsctb9j41qc0f06wj7g0tjw0000gn/T/gomobile-work-818468499/sdlibrary-arm.a ./gobind failed: exit status 2
```
|
NeedsInvestigation,mobile
|
low
|
Critical
|
620,923,959 |
material-ui
|
[material-ui][examples] Create a Storybook template
|
- [x] I have searched the [issues](https://github.com/mui-org/material-ui/issues) of this repository and believe that this is not a duplicate.
When working with material-ui you usually end up adjusting the typography, overwriting some global styles and so on to create your own "themed variant" of material-ui. Within material-ui some of these styles/overwrites affect another as e.g. Typography is part of more or less any other material-ui component. So adjusting typography might adjust tabs without you noticing. In our current workflow we have one relatively gigantic storybook showcasing all the components we have (including a re-export of basically all material-ui components).
I think it might be a good idea to create a "template" as part of material-ui to get new component libraries started more quickly & to share themed variants with no-code designers. The current "color selection theming" in the material-ui docs is relatively limited.
## Summary 💡
It would be great if there was a "ready to go & up-to-date" storybook example within the examples folder to showcase all the components.
## Examples 🌈
Sadly our storybook is closed source atm, but we might think about abstracting & open sourcing the material-ui part of it.
## Motivation 🔦
Did this once manually, don't want to do it twice and I assume other companies have similar workflows.
---
Just when writing this:
> The current "color selection theming" in the material-ui docs is relatively limited.
I started wondering if we couldn't just deploy a custom themed variant of the docs instead of doing things in storybook. Doing things in storybook would be nicer in terms of our testing setup, but the docs are much more in-detail as the ones we have in storybook :thinking:
Is this sth people are doing?
---
OT: while writing that i was wondering if that actually is a feature request or would be better suited for discussions. I'd love if you enabled discussions, as e.g. in the styled-components tickets that's a pretty endless "discussion", but seems to not provide any value to the actual ticket.
|
docs,priority: important,ready to take,examples
|
medium
|
Minor
|
620,943,831 |
godot
|
Normals in imported 3D model look different when importing obj vs other formats
|
**Godot version:**
Godot Engine v3.2.1.stable.official
**OS/device including version:**
Arch Linux (rolling release, last updated at the time of submitting).
**Issue description:**
I have a 3d model (included below) created in blender. When I export this as an obj mesh, it works fine in godot. However, when exporting in any other format, Godot will show a very strange shading that looks like incorrect normals. See the pictures below for a comparison.
I first reported the issue in the forums and was recommended to report it here on GitHub: https://godotforums.org/discussion/22889/mesh-normals-imported-from-blender-look-wrong-with-every-export-type-except-obj#latest
This is the model imported as an obj mesh. The shading is correct:

This is how the model looks when importing it in any other format (tested: gltf2, dae, dae using the better collada plugin and fbx).

This shows (on blender) how the normals are set up. Everything looks normal there (yes, pun very much intended :sweat_smile:).

As recommended by users in the forums, the attached screenshots in Godot were taken with a very bare-bones environment: No sky, just clear color. White ambient light, and a single directional light shown on the picture to pinpoint the issue.
**Steps to reproduce:**
1. Just import any of the 3d models in the attached file (see below)
**Minimal reproduction project:**
[FenceMeshIssue.zip](https://github.com/godotengine/godot/files/4650460/FenceMeshIssue.zip)
|
bug,topic:import,topic:3d
|
low
|
Major
|
620,966,635 |
pytorch
|
Building NVCC (Device) failed when building from source
|
## 🐛 Bug
when i build Pytorch (1.4.1)from source in a conda env, i ran into this error
## To Reproduce
Steps to reproduce the behavior:
1. export CMAKE_PREFIX_PATH=${CONDA_PREFIX:-"$(dirname $(which conda))/../"}
2. python setup.py install
[1543/3479] Building NVCC (Device) object caffe2/CMakeFiles/torch.dir/operators/torch_generated_multi_class_accuracy_op.cu.o
FAILED: caffe2/CMakeFiles/torch.dir/operators/torch_generated_multi_class_accuracy_op.cu.o
cd /home/pfyang/software/pytorch/build/caffe2/CMakeFiles/torch.dir/operators && /home/pfyang/miniconda3/envs/Pytorch14/bin/cmake -E make_directory /home/pfyang/software/pytorch/build/caffe2/CMakeFiles/torch.dir/operators/. && /home/pfyang/miniconda3/envs/Pytorch14/bin/cmake -D verbose:BOOL=OFF -D build_configuration:STRING=Release -D generated_file:STRING=/home/pfyang/software/pytorch/build/caffe2/CMakeFiles/torch.dir/operators/./torch_generated_multi_class_accuracy_op.cu.o -D generated_cubin_file:STRING=/home/pfyang/software/pytorch/build/caffe2/CMakeFiles/torch.dir/operators/./torch_generated_multi_class_accuracy_op.cu.o.cubin.txt -P /home/pfyang/software/pytorch/build/caffe2/CMakeFiles/torch.dir/operators/torch_generated_multi_class_accuracy_op.cu.o.Release.cmake
Segmentation fault (core dumped)
CMake Error at torch_generated_multi_class_accuracy_op.cu.o.Release.cmake:281 (message):
Error generating file
/home/pfyang/software/pytorch/build/caffe2/CMakeFiles/torch.dir/operators/./torch_generated_multi_class_accuracy_op.cu.o
[1549/3479] Building NVCC (Device) object caffe2/CMakeFiles/torch.dir/operators/torch_generated_reciprocal_op.cu.o
/home/pfyang/software/pytorch/cmake/../third_party/eigen/Eigen/src/Core/arch/GPU/PacketMathHalf.h(149): warning: missing return statement at end of non-void function "Eigen::internal::ptrue(const Packet &) [with Packet=half2]"
[1550/3479] Building NVCC (Device) object caffe2/CMakeFiles/torch.dir/operators/torch_generated_normalize_ops.cu.o
/home/pfyang/software/pytorch/cmake/../third_party/eigen/Eigen/src/Core/arch/GPU/PacketMathHalf.h(149): warning: missing return statement at end of non-void function "Eigen::internal::ptrue(const Packet &) [with Packet=half2]"
[1551/3479] Building NVCC (Device) object caffe2/CMakeFiles/torch.dir/operators/torch_generated_elementwise_div_op.cu.o
/home/pfyang/software/pytorch/cmake/../third_party/eigen/Eigen/src/Core/arch/GPU/PacketMathHalf.h(149): warning: missing return statement at end of non-void function "Eigen::internal::ptrue(const Packet &) [with Packet=half2]"
[1552/3479] Building NVCC (Device) object caffe2/CMakeFiles/torch.dir/__/aten/src/THC/generated/torch_generated_THCTensorMathPointwiseShort.cu.o
FAILED: caffe2/CMakeFiles/torch.dir/__/aten/src/THC/generated/torch_generated_THCTensorMathPointwiseShort.cu.o
cd /home/pfyang/software/pytorch/build/caffe2/CMakeFiles/torch.dir/__/aten/src/THC/generated && /home/pfyang/miniconda3/envs/Pytorch14/bin/cmake -E make_directory /home/pfyang/software/pytorch/build/caffe2/CMakeFiles/torch.dir/__/aten/src/THC/generated/. && /home/pfyang/miniconda3/envs/Pytorch14/bin/cmake -D verbose:BOOL=OFF -D build_configuration:STRING=Release -D generated_file:STRING=/home/pfyang/software/pytorch/build/caffe2/CMakeFiles/torch.dir/__/aten/src/THC/generated/./torch_generated_THCTensorMathPointwiseShort.cu.o -D generated_cubin_file:STRING=/home/pfyang/software/pytorch/build/caffe2/CMakeFiles/torch.dir/__/aten/src/THC/generated/./torch_generated_THCTensorMathPointwiseShort.cu.o.cubin.txt -P /home/pfyang/software/pytorch/build/caffe2/CMakeFiles/torch.dir/__/aten/src/THC/generated/torch_generated_THCTensorMathPointwiseShort.cu.o.Release.cmake
In file included from tmpxft_00005712_00000000-5_THCTensorMathPointwiseShort.cudafe1.stub.c:1:0:
/tmp/tmpxft_00005712_00000000-5_THCTensorMathPointwiseShort.cudafe1.stub.c: In function ‘void __device_stub__Z21kernelPointwiseApply3I18TensorCRemainderOpIsEsssjLin1ELi2ELi2EEv10OffsetInfoIT0_T3_XT4_EES2_IT1_S4_XT5_EES2_IT2_S4_XT6_EES4_T_(const _Z10OffsetInfoIsjLin1EE&, const _Z10OffsetInfoIsjLi2EE&, const _Z10OffsetInfoIsjLi2EE&, unsigned int, _Z18TensorCRemainderOpIsE&)’:
/tmp/tmpxft_00005712_00000000-5_THCTensorMathPointwiseShort.cudafe1.stub.c:1223:27: internal compiler error: Segmentation fault
#pragma GCC diagnostic pop
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
CMake Error at torch_generated_THCTensorMathPointwiseShort.cu.o.Release.cmake:281 (message):
Error generating file
/home/pfyang/software/pytorch/build/caffe2/CMakeFiles/torch.dir/__/aten/src/THC/generated/./torch_generated_THCTensorMathPointwiseShort.cu.o
[1554/3479] Building NVCC (Device) object caffe2/CMakeFiles/torch.dir/__/aten/src/THCUNN/torch_generated_HardTanh.cu.o
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "setup.py", line 755, in <module>
build_deps()
File "setup.py", line 316, in build_deps
cmake=cmake)
File "/home/pfyang/software/pytorch/tools/build_pytorch_libs.py", line 62, in build_caffe2
cmake.build(my_env)
File "/home/pfyang/software/pytorch/tools/setup_helpers/cmake.py", line 335, in build
self.run(build_args, my_env)
File "/home/pfyang/software/pytorch/tools/setup_helpers/cmake.py", line 141, in run
check_call(command, cwd=self.build_dir, env=env)
File "/home/pfyang/miniconda3/envs/Pytorch14/lib/python3.6/subprocess.py", line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--target', 'install', '--config', 'Release', '--', '-j', '12']' returned non-zero exit status 1.
## Expected behavior
<!-- A clear and concise description of what you expected to happen. -->
## Environment
Collecting environment information...
PyTorch version: N/A
Is debug build: N/A
CUDA used to build PyTorch: N/A
OS: Ubuntu 18.04.4 LTS
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
CMake version: version 3.17.0
Python version: 3.6
Is CUDA available: N/A
CUDA runtime version: 10.0.130
GPU models and configuration: GPU 0: GeForce RTX 2070
Nvidia driver version: 440.64.00
cuDNN version: Could not collect
Versions of relevant libraries:
[pip] numpy==1.18.4
[conda] magma-cuda100 2.5.2 1 pytorch
[conda] mkl 2020.1 217 https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
[conda] mkl-include 2020.1 219 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
[conda] numpy 1.18.4 py36h7314795_0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
## Additional context
any help will be appreciate
cc @malfet
|
module: build,triaged
|
low
|
Critical
|
620,967,372 |
godot
|
Stretch shrink messes up the ui
|
**Godot version:**
3.2.1 stable
**OS/device including version:**
Windows 10
**Issue description:**
From the docs I get, that using scale shrink can be used to get a performance boost, by lowering the 3d resolution.
>
> If Stretch Mode is set to something other than Disabled, the size of
> the root viewport is scaled down by the Shrink factor, and pixels in
> the output are scaled up by the same amount. This is rarely useful for
> 2D games, but can be used to increase performance in 3D games by
> rendering them at a lower resolution.
https://docs.godotengine.org/de/stable/tutorials/viewports/multiple_resolutions.html#stretch-shrink
Using the shrink is not just scaling the 3d rendering, but also the ui rendering.
This is how my main menu looks with shrink = 1:

This is how it looks with shrink = 5:

The 3d rendering is lowered as intended, but the game can't be played anymore because of the ui scaling.
I've set my stretch mode to "2d" and the aspect to "expand" in the project settings.
|
bug,topic:rendering,topic:gui
|
low
|
Major
|
621,006,915 |
flutter
|
iOS app is 16% larger than the same Android app (37% larger when considering the compressed size)
|
The issue is quite simple: The same project makes an iOS final build that is roughly 9 times the size of the Android one.
The iOS build is gigantic, around 300MB, but I know it contains bitcode, so I uploaded it to the store anyway. The size on the App Store is still way too large, 63.7MB, as can be seen here:
https://apps.apple.com/us/app/100-menu/id1513624029
It's android counterpart yet is just over 7MB:
https://play.google.com/store/apps/details?id=menu.a100.client
(I don't think it's possible to see the size until the install button is pressed, so I attached a screenshot)

**Build commands:**
flutter build appbundle --obfuscate --split-debug-info=debug-info
flutter build ios --obfuscate --split-debug-info=debug-info
**Other environment details:**
flutter --version
Flutter 1.17.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision f7a6a7906b (7 days ago) • 2020-05-12 18:39:00 -0700
Engine • revision 6bc433c6b6
Tools • Dart 2.8.2
xcodebuild -version
Xcode 11.4.1
Build version 11E503a
flutter analyze
Analyzing client_100_menu_flutter...
No issues found! (ran in 8.9s)
**pubspec.yaml file:**
``` yaml
environment:
sdk: ">=2.7.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
cached_network_image: ^2.2.0+1
cupertino_icons: ^0.1.3
diacritic: ^0.1.1
extended_tabs: ^0.2.3
flutter_cache_manager: ^1.2.2
google_maps_flutter: ^0.5.27+3
http: ^0.12.1
i18n_extension: ^1.3.6
url_launcher: ^5.4.7
dev_dependencies:
flutter_test:
sdk: flutter
flutter:
uses-material-design: true
assets:
- assets/images/
```
**Folder sizes:**
- The assets/images contains a single image with 18 KB
- The libs folder containing the dart files is 42 KB
- The entire ios folder (which contains the icon and launcher images) is 170 KB
This app size for quite a simple app is unbearable and users are not installing it as it generates distrust, because there is no way the app as it is described in the store can be 67 MB! (I wouldn't install it either)
|
platform-ios,engine,a: size,a: release,found in release: 1.17,P2,team-ios,triaged-ios
|
low
|
Critical
|
621,009,888 |
material-ui
|
Community themes
|
## Summary 💡
In the documentation website, have a section to list the opensource themes built with MUI (using `createTheme()`)
<!-- Describe how it should work. -->
## Examples 🌈
One [opensource theme built with MUI](https://github.com/Pearson-Higher-Ed/pearson-mui-theme) for instance is [Perason Material-UI Theme](http://pearson-theme.surge.sh/)
## Motivation 🔦
I love MUI but I don't personally like too much Material Design System and thus I'm usually customizing components manually with `createMuiTheme`. Having a list of opensource themes can give us a good starting point if we want to have something different from Material.
<img width="551" alt="Capture d’écran 2020-05-19 à 16 23 18" src="https://user-images.githubusercontent.com/3165635/82338505-4446a200-99ed-11ea-916d-fde72678c307.png">
<img width="862" alt="Capture d’écran 2020-05-19 à 16 23 33" src="https://user-images.githubusercontent.com/3165635/82338506-44df3880-99ed-11ea-8dbf-037f1de9f326.png">
## List of existing themes/design-systems
- https://mui-glass.vercel.app/ by @socramm9
|
docs,priority: important,design
|
low
|
Major
|
621,012,080 |
flutter
|
Add customization Option for CupertinoDatePicker
|
Please provide options to configure:
1) TextStyle
2) Custom borders
3) BoxDecoration which could allow us to add shadows, gradient
4) also respect height, width from the parent Container

CupertinoDatePicker(
mode: CupertinoDatePickerMode.time,
initialDateTime: DateTime(1982, 11, 5, 8, 00),
onDateTimeChanged: (DateTime newDateTime) {
var newTod = TimeOfDay.fromDateTime(newDateTime);
//_updateTimeFunction(newTod);
},
backgroundColor: Colors.white,
//please provide options to configure:
//TextStyle
//BoxDecoration which could allow us to add shadows, gradient, custom borders
use24hFormat: false,
minuteInterval: 1,
)
resolvedBorderColor = CupertinoDynamicColor.resolve(_kHighlighterBorder, context);
///current color settings are hardcoded which makes impossible to integrate this control on a different color palette.
const Color _kHighlighterBorder = CupertinoDynamicColor.withBrightness(
color: Color(0x33000000),
darkColor: Color(0x33FFFFFF),
);
|
c: new feature,framework,f: date/time picker,f: cupertino,c: proposal,team-design,triaged-design
|
low
|
Minor
|
621,014,091 |
pytorch
|
DOC: add documentation for undocumented classes and methods
|
## 📚 Documentation
Many classes, methods and functions lack docstrings. They should be added or clear reasons provided for not documenting them. xref gh-38244 which refactored the documentation coverage checks: the undocumented items are all listed in `docs/source/conf.py` in `coverage_ignore*` lists
|
module: docs,triaged
|
low
|
Minor
|
621,042,797 |
godot
|
Many math_funcs.h float-related functions actually promotes floats to doubles
|
**Godot version:** 3.2.1.stable (seems that occurs in current master branch also)
**Issue description:** Hi all. I might be wrong with that (then just close the issue), but I thought generally the whole point in switching to `float` related calculations instead of using `double` is a need for speed. For some occasion I've peered into [core/math/math_funcs.h](https://github.com/godotengine/godot/blob/master/core/math/math_funcs.h) and found that many `float`-related functions actually promotes an argument to `double` when interacting with some hand-coded constants. For example, here's a `Math::round()` function implementation:
```c++
static _ALWAYS_INLINE_ float round(float p_val) {
return (p_val >= 0) ? Math::floor(p_val + 0.5) : -Math::floor(-p_val + 0.5);
}
```
With this implementation, positive `float p_val` is converted to `double` first, added to `double(0.5)` and then resulting `double` is used to call `double floor(double p_x)`, not the (probably) intended proper `float floor(float p_x)`.
Not a very big deal for a result in most use-cases probably, but... well, why bother with all the `floats` then at all, if not to shave some more performance for free?
Almost every function that uses hand-coded constants are suffering from the described issue of unnecessary (I think) float-to-double promotion...
----
I could have provided a fix for the issue, but unfortunately, I'm low on funding now and have no free time for side projects, so just trying to draw some attention... Cheers!
|
bug,topic:core
|
low
|
Major
|
621,045,062 |
PowerToys
|
[test] generate code coverage report
|
Generate code coverage report for unit tests.
|
Area-Tests,Issue-Task
|
low
|
Minor
|
621,068,109 |
TypeScript
|
Union in a computed property allows any assignment to property value
|
**TypeScript Version:** 4.0.0-dev.20200518
**Search Terms:** computed property, union
**Code**
```ts
type Key = 'a' | 'b';
const index1: Record<Key, string> = { a: '', b: 0 }; // Errors as expected, ok
const index2: Record<Key, string> = { a: '', b: '' };
const b: Key = 'b';
const index3: Record<Key, string> = { ...index2, [b]: 0 }; // Errors as expected, ok
declare var k: Key;
// No errors, allowing anything to be assigned to string
const index4: Record<Key, string> = { ...index2, [k]: [] };
const index5: Record<Key, string> = { a: '', b: '', [k]: 0 };
```
**Expected behavior:**
Expected error for invalid assignments in `index4` and `index5`.
**Actual behavior:**
No error, allowing anything to be assigned to string
**Playground Link:** [here](https://www.typescriptlang.org/play/?ts=4.0.0-dev.20200518&ssl=8&ssc=60&pln=8&pc=85#code/C4TwDgpgBA0hJQLxQOQEMVQD6oEYoG4AoIgYwHsA7AZ2CgEtKATCADwEYAuKAJQgoBOTADxwQAGii0BjAOYA+JFADeUNNxQpJubgAYoAXwJQA9CagBRAQPIDqa+20ilgEJpPIBrMlVoNmbABM3HyCImKS0nKKyKrqqFpQOgmGxD40dMliSij4aRQZ-iysAMwh-Lbh8JHAMpQKSqoAdC2MxYGSANq4ALp6qabmVjZ2DlBO-K7uUF4kLKQANmgC0ABuy1Ce3GJpZlAAcuTj1rbUkmgLC+QA7nJqlCDAABZ3wEe40GjU1PSylG5QN5SWpydJ+NpsAAs5TComqwLqDViUBaTQhrA6UE6nj6WJ6qTBdHRAFYYZU4RIEdFGmoNIlkpoujj+kYgA)
**Related Issues:**
https://github.com/microsoft/TypeScript/issues/36920: perhaps the computed property is deemed an excess property, though I don't think it should be
|
Suggestion,Experimentation Needed
|
low
|
Critical
|
621,094,538 |
godot
|
PHashTranslation.get_message_count and get_message_list always return 0 and [] in GDScript
|
**Godot version:**
3.2.1
**OS/device including version:**
Windows 10
**Issue description:**
See title. As a positive control for a non-empty Translation resource, method get_message **does** work.
**[EDIT:** I changed the title to reflect insight from PapaFl below. Basically, everything in this post applies specifically to a loaded PHashTranslation (which happens when imported with `compress=true`). The two methods work as expected in a Translation that is not a PHashTranslation.**]**
**Minimal reproduction project:**
Make a small csv file for translation with path "res://test_text.csv":
```
id,en
TXT_TEST,Test
```
Allow editor to make its translation file. Run code:
```
func _ready() -> void:
var translation: Translation = load("res://test_text.en.translation")
print(translation.get_message_count()) # prints "0"
print(translation.get_message_list ()) # prints "[]"
print(translation.get_message("TXT_TEST")) # prints "Test"
```
|
bug,topic:core
|
low
|
Major
|
621,105,404 |
PowerToys
|
Save Desktop Icon Positions
|
It would be great to have a tool to save AND restore the location of all shortcut icons on the desktop.
For some reason with single monitor, or multiple monitors with different resolutions, different zoom/font size/icon size and spacing/etc. The location of these icons is reset and you're left with all icons Auto-Arranged on the left of the screen, like Windows threw its hands up and said IDK, forget whatever locations they are and now set them up in the default grid.
There used to be a tool for this years ago. Can't seem to find it. It was third-party and not part of Power Toys. Worked in Windows 7.
Use a Desktop [optional Shift] Right Click menu that allows you to SAVE the current icon positions and the same to RESTORE the last saved locations.
If new icons were added after the last save, then place them as appropriately as possible.
Only stores the last saved location. Can have profiles, but not necessary on the first iteration.
|
Idea-New PowerToy
|
low
|
Major
|
621,126,165 |
PowerToys
|
[Run] Provide history of last commands in search results
|
# Summary of the new feature/enhancement
Provide a history of the last x commands via arrow up and down keys. This would help to prevent typing similar commands.
~For example I typed > ping x.x.x.x and after that I opened I don't know code and then I would like to execute the ping command again. It would be nice to just open the launcher (PowerToys Run) and click the down arrow to get the last command "> ping x.x.x.x" before I typed code~ (EDIT: I commented out this part since the `>` action key already works similarly to this feature request, what it's not implemented it's the general history outside of specific plugins)
# Proposed technical implementation details (optional)
make the implementation configurable to have the history or not and let users define the amount of entries like 20 entries.
|
Idea-Enhancement,Product-PowerToys Run
|
medium
|
Major
|
621,136,580 |
godot
|
Wrong gdns inheritance information in project.godot
|
**Godot version:**
3.2.1
**OS/device including version:**
Windows 10 and Ubuntu 18.04 LTS
**Issue description:**
Importing addon containing gdns script won't set inheritance in project.godot. ie you have something like :
```
{
"base": "",
"class": "IsometricMap",
"language": "NativeScript",
"path": "res://addons/IsometricMap/GdnsScripts/positionable/IsometricMap.gdns"
}
```
for all nativescript.
Note the base field.
Bug only on Windows and Linux, all fine in OSX.
**Steps to reproduce:**
1 - Download addons folder of [fake release of 2.5D Isometric map editor](https://github.com/utopia-rise/godot-2.5D-isometric-map-editor/releases)
2 - Add it to new project.
3 - Add res://addons/IsometricMap/IsometricServer.tscn to autoload with name IsoServer.
4 - Restart Godot and try to create an isometric map using custom node in a new scene.
It will say it cannot find class ''.
**Minimal reproduction project:**
See steps to reproduce
|
bug,topic:editor,confirmed,topic:gdextension
|
low
|
Critical
|
621,140,833 |
kubernetes
|
Allow setting EmptyDir Medium Disk
|
would be nice to be able to call this out instead of being stuck with not setting it
https://github.com/kubernetes/kubernetes/blob/323f34858de18b862d43c40b2cced65ad8e24052/pkg/volume/emptydir/empty_dir.go#L219-L228
|
sig/storage,kind/feature,lifecycle/frozen
|
low
|
Major
|
621,148,430 |
rust
|
Counting bytes with high bit set optimizes badly for x86_64
|
I tried this code:
```rust
pub fn count_non_ascii(buffer: &[u8]) -> u64 {
let mut count = 0;
for &b in buffer {
if b >= 0x80 {
count += 1;
}
}
count
}
```
[Godbolt link](https://rust.godbolt.org/z/qfppbo)
I expected to see this happen: I expected the compiler to autovectorize along the lines of
```rust
pub fn count_non_ascii_sse2(buffer: &[u8]) -> u64 {
let mut count = 0;
let (prefix, simd, suffix) = unsafe { buffer.align_to::<core::arch::x86_64::__m128i>() };
for &b in prefix {
if b >= 0x80 {
count += 1;
}
}
for &s in simd {
count += unsafe {core::arch::x86_64::_mm_movemask_epi8(s)}.count_ones() as u64;
}
for &b in suffix {
if b >= 0x80 {
count += 1;
}
}
count
}
```
Instead, this happened: It is autovectorized to something more complex and considerably slower than the manual vectorization given above. (The above manual vectorization becomes even faster when compiled with a `target_cpu` that supports the `POPCNT` instruction.)
### 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.45.0-nightly (a74d1862d 2020-05-14)
```
|
A-LLVM,I-slow,O-x86_64,T-compiler,C-bug
|
low
|
Critical
|
621,151,436 |
PowerToys
|
[Run] Launching a process starts it in `c:\Program Files\PowerToys` (default working directory)
|
<!--
**Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**.
Instead, send dumps/traces to [email protected], referencing this GitHub issue.
-->
# Environment
```
Windows build number: `_dep.200508`
PowerToys version: 0.18
PowerToy module for which you are reporting the bug (if applicable): Launcher
```
# Steps to reproduce
* Configure your default profile in the Windows Terminal to _not_ have a `startingDirectory`, so that the Terminal will use your current path as the starting directory.
* Run `> wt` to launch the terminal
# Expected behavior
When I run programs in the <kbd>Win+R</kbd> run dialog, they use `C:\windows\system32` as the CWD.
This is probably expected, but I was definitely a little surprised. I think the best solution might be letting the user set the CWD to use for launched processes, instead of defaulting to `...\PowerToys\`
|
Issue-Bug,Help Wanted,Product-PowerToys Run
|
medium
|
Critical
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.