WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
I have developed a desktop app with electron.

I have put setLoginItemSettings on windows startup windows , my app should start at start on windows. Some of my functionality is not working properly(Only login is working).

Issue 2:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Electron Version

14/15+

What operating system are you using?

Other (specify below)

Operating System Version

observed on latest Windows 10 & macOS 11

What arch are you using?

x64

Last Known Working Electron version

13.5.1

Expected Behavior

Electron processes should not have a hard memory limit of ~8GB, but this limit was introduced with Electron 14.

Actual Behavior

With Electron ≥14, loading operations fail (or process crashes with oom) when attempting to load data into RAM if memory use exceeds ~8GB. This limit did not exist (or was significantly higher) in versions 13 and earlier.

Testcase Gist URL

https://github.com/marcelblum/electron-memory-tests

Additional Information

Simple demo to reproduce:

clone repo at https://github.com/marcelblum/electron-memory-tests

npm install will install both latest electron and electron 13.5.1

npm run start-electron-13

repeatedly click the "fill renderer process RAM with 2GB" and/or "fill main process RAM with 2GB" buttons. For demo purposes this just creates a quick dummy buffer with Buffer.alloc(). In my tests in Electron 13 on several Windows & Mac machines with installed RAM varying from 8-16GB, I can do this with each process going up to at least 16GB until errors start to occur.

npm run start-electron-latest and repeat as above. In Electron 14/15/16/17 there is a clear hard limit at around 8GB per-process when loading starts to fail.

I have tried experimenting with max_old_space_size e.g. app.commandLine.appendSwitch('js-flags', '--max_old_space_size=16384') or require('v8').setFlagsFromString('--max-old-space-size=16384') with no effect observed.

It may be an edge case to need this much memory but it's not too difficult to run up against this new limit when loading lots of high res media files. In my own app using the web audio api, I noticed this limit pretty quickly after updating from Electron 13.

Is this an intentional newly introduced limit? Is there any way to increase this limit? I assume this is not a Chromium issue since the limit also applies to the main process.

Update: Looks like Electron 11 and earlier had no memory limits, but starting with Electron 12, a ~16GB limit was imposed, and then with Electron 14 that became a ~8GB limit. I've added Electron 11.5 to my demo for comparison via npm run start-electron-11.
Issue 1:
Most of RESTFull API's just ignores extra data submitted to their actions because in some cases doesn't make any sense show an error, mainly when you are working with unnamed forms. When you don't have subforms, a terrible workaround with problematic performance is:

$data = $request->request->all(); // ->get($form->getName());
$children = $form->all();
$data = array_intersect_key($data, $children);
$form->bind($data);

So, I suggest introducing a new simple option in the form configuration:

$factory->create('acme.form', $model, array('ignore_extra_data' => true));

// Mark the form with an error if it contains extra fields
if (false == $config->getOption('ignore_extra_data') && count($form->getExtraData()) > 0) {
$this->context->addViolation(
$config->getOption('extra_fields_message'),
array('{{ extra_fields }}' => implode('", "', array_keys($form->getExtraData()))),
$form->getExtraData()
);
}

https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Form/Extension/Validator/Constraints/FormValidator.php#L108

Once the default value is false, it'll not cause BC breaks.

If you agree, I'll be happy in submit a PR.

Issue 2:
binding partial parameters effectively clears all existing values from the model and only persists the new parameters that are passed in. See example:

// Author.php
class Author
{
public $name;
public $email = 'bar';
}

// AuthorType
...
$builder->add('name', 'text')->author('text');
...

Passing $form->bind(array('name' => 'foo')) wipes out the existing email value.
Issue 1:
I want to know when will invoke "webhook" or "ABAC" in source code.

For mode "webhook", what resources(eg. pods) can users perform what operation(create, delete)?

I want to know it clearly in source code.

Thank you !

Issue 2:
1 Is webhook plugin stable?

2 How webhook works?

3 How can I use webhook and where can find detailed information.

Thank you very much!
Issue 1:
On a Nexus 5, go landscape. Then, open Gallery. Tap into Text inputs. Tap into "re-type password". (Actually, this happens when I tap into any text field on this demo)

Here's what I see:

Issue 2:
Steps to Reproduce

Pubspec

dependencies:
flutter:
sdk: flutter
video_player: ^0.6.5

Logs

Warning in Logs while running the build

Note: C:\flutter\.pub-cache\hosted\pub.dartlang.org\video_player-0.6.5\android\src\main\java\io\flutter\plugins\videoplayer\VideoPlayerPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

flutter doctor -v

[√] Flutter (Channel beta, v0.9.4, on Microsoft Windows [Version 10.0.17134.345], locale en-IN)
• Flutter version 0.9.4 at C:\flutter
• Framework revision f37c235c32 (2 weeks ago), 2018-09-25 17:45:40 -0400
• Engine revision 74625aed32
• Dart version 2.1.0-dev.5.0.flutter-a2eb050044

[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at C:\Users\Rohit\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• ANDROID_HOME = C:\Users\Rohit\AppData\Local\Android\sdk
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
• All Android licenses accepted.

[√] Android Studio (version 3.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 26.0.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)

[√] Connected devices (1 available)
• ONEPLUS A5010 • f0f79579 • android-arm64 • Android 8.1.0 (API 27)

• No issues found!
Issue 1:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

Electron Version:

6.0.0

Operating System:

Windows 7 Professional 32 bit

Last Known Working Electron version:

5.0.8

Expected Behavior

The app must run without crash

Actual Behavior

App crashes

To Reproducee

Build the application for Windows platform with arch type as ia32

Sample repo based out of electron activity-monitor

https://github.com/giridharkannan/simple-samples

git clone https://github.com/giridharkannan/simple-samples.git
cd simple-samples/activity-monitor/
npm install
npm run deploy
cd dist

Use the generated activity-monitor_1.0.0.exe to reproduce the issue

Additional Information

You need 32bit OS or VM to reporduce the issue as we would not face problem in creating the exe nor in installing it. The app would just have a blank black screen

Issue 2:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

**Electron Version: 6.0.0

**Operating System: Windows 7 32bit

**Last Known Working Electron version: 5.0.8

Expected Behavior

can start on win7

Actual Behavior

can not start

To Reproduce

https://github.com/electron/electron-quick-start

edit package.json electron version to 6.0.0

npm start

can not start electron

Screenshots

Additional Information
Issue 1:
Hi,

Whenever I try to import scipy I get this error regarding 'Type'.

I am using Python 3.5.1

import scipy

Traceback (most recent call last):
File "/Users/ashkij/Downloads/asd.py", line 1, in <module>
import scipy
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/scipy/__init__.py", line 156, in <module>
from . import fft
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/scipy/fft/__init__.py", line 76, in <module>
from ._basic import (
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/scipy/fft/_basic.py", line 1, in <module>
from scipy._lib.uarray import generate_multimethod, Dispatchable
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/scipy/_lib/uarray.py", line 27, in <module>
from ._uarray import *
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/scipy/_lib/_uarray/__init__.py", line 114, in <module>
from ._backend import *
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/scipy/_lib/_uarray/_backend.py", line 1, in <module>
from typing import (
ImportError: cannot import name 'Type'
[Finished in 0.4s with exit code 1]
[cmd: ['python3', '-u', '/Users/ashkij/Downloads/asd.py']]
[dir: /Users/ashkij/Downloads]
[path: /usr/bin:/bin:/usr/sbin:/sbin]

Issue 2:
Import of scipy fails with an import error:

'>>> import scipy

Traceback (most recent call last):

File "<pyshell#1>", line 1, in

import scipy

File "C:\Users\user\pyvenvs\lmfit-test\lib\site-packages\scipy_init_.py", line 156, in

from . import fft

File "C:\Users\user\pyvenvs\lmfit-test\lib\site-packages\scipy\fft_init_.py", line 76, in

from ._basic import (

File "C:\Users\user\pyvenvs\lmfit-test\lib\site-packages\scipy\fft_basic.py", line 1, in

from scipy._lib.uarray import generate_multimethod, Dispatchable

File "C:\Users\user\pyvenvs\lmfit-test\lib\site-packages\scipy_lib\uarray.py", line 27, in

from .uarray import *

File "C:\Users\user\pyvenvs\lmfit-test\lib\site-packages\scipy_lib_uarray_init.py", line 114, in

from ._backend import *

File "C:\Users\user\pyvenvs\lmfit-test\lib\site-packages\scipy_lib_uarray_backend.py", line 1, in

from typing import (

ImportError: cannot import name 'Type'

This is (probably) caused by changes in the typing module in the early Python 3.5 development - some relevant parts were added after 3.5.1

I saw that on master, declared compatibility is >= Python 3.6

But on tag 1.4.1, it states >= 3.5, so it should still be working.

From another issue, i think i understood uarray is a vendored dependency.
Issue 1:
Exception:

...
File "inception/slim/variables.py", line 290, in variable
trainable=trainable, collections=collections)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py", line 1024, in get_variable
custom_getter=custom_getter)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py", line 850, in get_variable
custom_getter=custom_getter)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py", line 346, in get_variable
validate_shape=validate_shape)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py", line 331, in _true_getter
caching_device=caching_device, validate_shape=validate_shape)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py", line 677, in _get_single_variable
expected_shape=shape)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variables.py", line 224, in __init__
expected_shape=expected_shape)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variables.py", line 327, in _init_from_args
initial_value(), name="initial_value", dtype=dtype)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/variable_scope.py", line 665, in <lambda>
shape.as_list(), dtype=dtype, partition_info=partition_info)
TypeError: ones_initializer() got multiple values for keyword argument 'dtype'

I think recently changes of tensorflow.python.init_ops influence to this issue.

init_ops.py

< def ones_initializer(dtype=dtypes.float32, partition_info=None):
---
> def ones_initializer(shape, dtype=dtypes.float32, partition_info=None):

variable_scope.py

655 # Create the tensor to initialize the variable.
656 if initializer is None:
657 initializer = init_ops.uniform_unit_scaling_initializer()
658 # Clear control dependencies while creating the initializer.
659 with ops.control_dependencies(None):
660 if initializing_from_value:
661 init_val = initializer
662 variable_dtype = None
663 else:
664 init_val = lambda: initializer(
665 shape.as_list(), dtype=dtype, partition_info=partition_info)
666 variable_dtype = dtype.base_dtype

lambda:initiallizer calls with three parameters. So, parameter missmatch occured.

I think it needs to change variable_scope.py source code.

Issue 2:
I'm using TensorFlow on Windows Server 2012, TensorFlow version is 0.12.1

I've install CUDA (CUDA Version 8.0.44), and install cuDnn (cuDNN v5.1 (August 10, 2016), for CUDA 8.0).

that cuDnn is build for windows 10.

But when I run my tensorflow code is get some error about:

am_executor\cuda\cuda_dnn.cc:385] could not create cudnn handle: CUDNN_STATUS_IN
TERNAL_ERROR
E c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\stre
am_executor\cuda\cuda_dnn.cc:352] could not destroy cudnn handle: CUDNN_STATUS_B
AD_PARAM
F c:\tf_jenkins\home\workspace\release-win\device\gpu\os\windows\tensorflow\core
\kernels\conv_ops.cc:532] Check failed: stream->parent()->GetConvolveAlgorithms(
&algorithms)

It seems the cuDNN version is not correct, but I tried cuDNN v5.0, also got this exception.

does anyone know how to fix this issue?

Thanks very much.
Issue 1:
As pointed out on a deno_install/#181 thread, there seems to have some issues on running Deno 1.8.0 on Windows 7, which is not a problem on Ubuntu 20.04 LTS, ElementaryOS 5.1 Hera or PopOS 20.10, which run fine. As pointed out earlier, there seems to be an issue with the WebGPU API on Win7, which seems to require some kind of Direct3D DLL on the 1.8.0 version, which was not an issue on 1.7.5. I know Windows 7 is end-of-life, and I don't know if there should be a fix for this issue or not, but as a Deno teacher, some of my students use Windows 7 or even Vista to this day, and knowing if the Deno runtime is supposed to run on their systems end up being an important issue because of that.

Here is what happens when running Deno 1.8.0 on Windows 7:

And here is what happens when running Deno 1.7.5 on Windows 7 (works fine):

Thanks for reading and sorry for bringing an issue on an end-of-life, closed-source operating system.

Issue 2:
Hello today I tried to update deno from 1.7.0 to the latest version with the deno update command. However it was unable to update and threw an error of System.IO.Compression.FileSystem . The operating system I am using is Windows 7 SP1. Here is the complete log of the error

Looking up latest version
Found latest version 1.7.5
Checking https://github.com/denoland/deno/releases/download/v1.7.5/deno-x86_64-p
c-windows-msvc.zip
Download has been found
Deno is upgrading to version 1.7.5
Add-Type : Cannot add type. The assembly 'System.IO.Compression.FileSystem' cou
ld not be found.
At line:4 char:21
+ Add-Type <<<< -AssemblyName System.IO.Compression.FileSystem
+ CategoryInfo : ObjectNotFound: (System.IO.Compression.FileSyste
m:String) [Add-Type], Exception
+ FullyQualifiedErrorId : ASSEMBLY_NOT_FOUND,Microsoft.PowerShell.Commands
.AddTypeCommand

System.InvalidOperationException: Cannot add type. One or more required assembli
es are missing.
at System.Management.Automation.MshCommandRuntime.ThrowTerminatingError(Error
Record errorRecord)
thread 'main' panicked at 'assertion failed: unpack_status.success()', cli\tools
\upgrade.rs:230:3
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Issue 1:
Electron version: 1.6.1

Operating system: MacOS

Expected behavior

Show the page loaded by the webview;

Actual behavior

the webview must reload the page to show its contents.

How to reproduce

Setting CSS property visibility as hidden and then set visibility as visible on 'did stop loading' event does not show the webpage content. Just a blank page, although is possible to inspect the webview host contents. I'm setting this property adding and removing a class name in my webview tag. That was working on 1.4.15. Now it only does not work on Mac Os.

Inspecting the webview I can see that the class was added and the property visibility is set as 'visible'.

.webBrowser {

position: relative;

width: 100%;

height: 100%;

overflow: hidden;

visibility: hidden;

display: inline-flex;

z-index: 1001;

min-width: 450px;

min-height: 420px;

user-select: auto;

}

.webBrowser.loaded

{

visibility: visible;

}

Issue 2:
In the repro case below, the webview is initially created with visibility: hidden. After a short delay, we switch to visibility: visible. The expected behaviour is that github.com is displayed in the webview regardless of the timeout duration.

Due to some regression in Electron 1.5.0, this results in the webview being permanently empty. Weirdly enough it works fine when using a short timeout (<20) on my macOS system.

How to reproduce

index.js:

'use strict';

const {app, BrowserWindow} = require('electron');
const path = require('path');

app.on('ready', () => {
const win = new BrowserWindow({
width: 500,
height: 500,
webPreferences: {
nodeIntegration: true
},
});
win.loadURL('file://' + path.join(__dirname, 'test.html'))
});

test.html:

<!DOCTYPE html>
<html>
<style>
html, body, webview {
position: fixed;
margin: 0;
width: 100%;
height: 100%;
}

.hidden {
visibility: hidden;
}
</style>
<body>
<webview id="webview" class="hidden" src="https://github.com"></webview>
</body>
<script>
setTimeout(() => {
const webview = document.getElementById('webview');
webview.style.visibility = 'visible';
}, 5000);
</script>
</html>
Issue 1:
Version

2.6.11

Reproduction link

https://jsbin.com/zoniwudugo/edit?html,console,output

Steps to reproduce

Attempt to instantiate an instance of Vue with a template where one of the bound props has no value.

What is expected?

Given that the template fails to compile in any usable way whatsoever, I'd expect an error to be thrown so that it can be caught and sent to an error monitoring service.

What is actually happening?

Warnings are turned off in Vue production mode, so there is no warning logged anywhere. Also, an error/exception is not thrown. Any HTML wrapped in the div registered for Vue is not rendered.

Our product is a Django app with mostly server rendered views. We're currently adding in some Vue components as we slowly migrate over to a SPA. As such, we ran ran in to this issue when some of our Django template code was incorrectly building a Vue component. Then when Vue tried to instantiate on the frontend, it was erring trying to compile the component template.

Issue 2:
Version

2.6.11

Reproduction link

https://codesandbox.io/s/prod-http-o0x6q?file=/src/App.vue

Steps to reproduce

If I assign a value to a property that is not defined in advance before using the Vue.set, then this property is not responsive.

f I delete the code of "assigning the value", then it works.

What is expected?

The value I set is not shown in the html.

What is actually happening?

The value I set is shown in the html.
Issue 1:
Feature request

Is your feature request related to a problem? Please describe.

There are directories in "pages" whose contents should all have the same layout. For example, an "articles" directory might have articles written in .mdx, which compile to react elements. It would be very useful for all the .mdx files under "articles" to have the same layout and shared logic.

Describe the solution you'd like

Ideally, one could create an _app.js file for each directory. All files in that directory would use that _app.js. Files in other directories with no custom app would use pages/_app.js if that file exists.

Describe alternatives you've considered

All the alternatives I've thought of seem to have the same problem, that the routing information needs to be written in code somewhere, in addition to next inferring that from the filesystem, which is redundant. For example, you could just have a single pages/_app.js and some logic in there to figure out which layouts to add to what. This makes it required to write out your routes in the _app.js file. It's basically a router inside a router, so it's not the best solution.

Another alternative is to keep the .mdx files (or react components) somewhere outside of "pages", and import them in pages/articles.jsx for example. Then, essentially implement a router that shows the proper component depending on the route. Again, you're basically implementing a router within a router.

Additional context

I'm new to next, so if there's something obvious I'm missing, I apologize.

Issue 2:
Edit July 2021: The layouts example has been updated to persist state across page transitions: https://github.com/vercel/next.js/tree/canary/examples/layout-component
Issue 1:
Description of the problem

When creating a polygon with constructPathShape.toShapes the order of the constructpathshapes commands plays a role which shouldn't be the case. (I think so)

I am adding a hole than the outer vertice then again a hole.

The last hole is not recognized.

https://jsfiddle.net/0g9bdar5/2/

The only thing which was changed is the order of the constructpathshape commands.

If I add the two holes at the beginning the polygon is rendered correctly.

https://jsfiddle.net/0g9bdar5/3/

Three.js version

latest

Browser

All of them

Chrome

Firefox

Internet Explorer

OS

All of them

Windows

macOS

Linux

Android

iOS

Hardware Requirements (graphics card, VR Device, ...)

Issue 2:
Adding this to the WebGlRenderer seems to work. It means it is not duplicating a second Frustrum instance and projection matrix.

this.isVisible = function(target) {
console.log("visible", _frustum.intersectsObject( target ));
};

Is this possible ?

There is an issue with Samsung Internet browser on android. it cannot detect visibility where Chrome works.
Issue 1:
💻

Would you like to work on a fix?

How are you using Babel?

Programmatic API (babel.transform, babel.parse)

Input code

maxHeight! < 1

Configuration file name

No response

Configuration

No response

Current and expected behavior

Should transform to

maxHeight < 1;

Omit typescript's !

Environment

Babel v7.14.5

@babel/preset-typescript: 7.14.5 => 7.14.5

@babel/preset-react: 7.14.5 => 7.14.5

Node 14

Possible solution

No response

Additional context

https://babeljs.io/repl#?browsers=defaults%2C%20not%20ie%2011%2C%20not%20ie_mob%2011&build=&builtIns=false&corejs=3.6&spec=false&loose=false&code_lz=LYQwHgEgpglg5gCwC4EIAEAeNBGIA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&sourceType=module&lineWrap=true&presets=env%2Creact%2Ctypescript&prettier=false&targets=&version=7.14.5&externalPlugins=

This bug reproduces only with react + typescript presets.

Issue 2:
💻

Would you like to work on a fix?

How are you using Babel?

babel-loader (webpack)

Input code

some.value! < another.value!

Configuration file name

No response

Configuration

No response

Current and expected behavior

I'm getting "SyntaxError: Missing semicolon." in version 7.14.5, but it was working fine in 7.14.4.

Environment

@babel/parser version 7.14.5

Possible solution

No response

Additional context

The typescript compiler is not complaining.