sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: deno
Issue: Deno panicked trying to run ZeroMQ from NPM package
Labels: bug,node native extension

While trying to run the code bellow:
```
import zmq from "npm:zeromq@5"

async function run(): Promise<void> {
  const sock = new zmq.Pull

  sock.connect("tcp://127.0.0.1:3000")
  console.log("Worker connected to port 3000")

  for await (const [msg] of sock) {
    console.log("work: %s", msg.toString())
  }
}

run()
```
Deno panicked

Platform: macos x86_64
Version: 1.31.3
Args: ["deno", "run", "zmq-worker.ts"]

thread 'main' panicked at 'napi_register_module_v1 not found: DlSym { desc: "dlsym(0x7fc9dd4391d0, napi_register_module_v1): symbol not found" }', /private/tmp/deno-20230316-8411-14pm5ia/deno/ext/napi/lib.rs:707:14
stack backtrace:
   0:        0x108dee56a - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::hd84bb6a6cfdab3c7
   1:        0x10834fc9a - core::fmt::write::h064e45b009bad019
   2:        0x108dc976c - std::io::Write::write_fmt::h2baab28417cc385e
   3:        0x108dee35a - std::sys_common::backtrace::print::h40507d34f683de75
   4:        0x108dccd63 - std::panicking::default_hook::{{closure}}::h41d95177e478a814
   5:        0x108dcca74 - std::panicking::default_hook::h92082f3783ffd863
   6:        0x1082d6e24 - deno::setup_panic_hook::{{closure}}::hb16ad9950d35c310
   7:        0x108dcd602 - std::panicking::rust_panic_with_hook::h7164f539cab4c561
   8:        0x108dee9e5 - std::panicking::begin_panic_handler::{{closure}}::h0697ed62d1c15d34
   9:        0x108dee948 - std::sys_common::backtrace::__rust_end_short_backtrace::h035e1452da26fb2c
  10:        0x108dcd172 - _rust_begin_unwind
  11:        0x10a2599c3 - core::panicking::panic_fmt::h619520ac8a6ef893
  12:        0x10a259e25 - core::result::unwrap_failed::h5bb33123d8199612
  13:        0x10888d983 - <extern "C" fn(A0) .> R as v8::support::CFnFrom<F>>::mapping::c_fn::hd22173f4c0d0adf0
  14:        0x1091d5e3f - __ZN2v88internal12_GLOBAL__N_119HandleApiCallHelperILb0EEENS0_11MaybeHandleINS0_6ObjectEEEPNS0_7IsolateENS0_6HandleINS0_10HeapObjectEEENS8_INS0_20FunctionTemplateInfoEEENS8_IS4_EEPmi
  15:        0x1091d5435 - __ZN2v88internal21Builtin_HandleApiCallEiPmPNS0_7IsolateE
Repository: godot
Issue: Variables are not inherited from custom class 
Labels: bug,topic:gdscript

### Godot version

4.0.1

### System information

Windows 7 64-bit, GTX 750 Ti GPU

### Issue description

So I have this class that is an extension of Control:
![image](https://user-images.githubusercontent.com/40964335/226776408-dc90909e-32d3-40c0-8e67-b8eae48b79d6.png)

This class has two variables that are needed:
![image](https://user-images.githubusercontent.com/40964335/226776507-701b65a9-aaab-485b-aac2-679446ef6e32.png)

So I extended this class, to use for different data types
![image](https://user-images.githubusercontent.com/40964335/226777020-5a9ac800-b206-4795-a89b-b2c68820440b.png)

I attempt to create on in the main scene with the following code:

```func _ready() -> void:
	if create_picker:
		var sphere : MeshInstance3D = get_node("Sphere")
		
		var picker : PropertyPicker = PropertyPicker.create(sphere,"global_position","Vector3")
		self.add_child(picker)
```

Using this code returns the following error:
![image](https://user-images.githubusercontent.com/40964335/226777286-8693e7bb-1cc0-4edd-9a48-798aaa3a84f8.png)

So I added a testing var that essentially comments this out:
![image](https://user-images.githubusercontent.com/40964335/226777490-f2b3d583-cff4-4ce6-a941-172ddb514568.png)

I then manually added an instance of the picker in godot, and disabled the creation
![image](https://user-images.githubusercontent.com/40964335/226777572-67ad9d3f-eb76-406a-a702-4d9652e70bd4.png)


Running the scene, it appears as it should..
![image](https://user-images.githubusercontent.com/40964335/226777665-a248abf7-09ed-4310-82d4-21d47c9e9e91.png)

But upon going to Remote, it shows that the variables are completely missing
![image](https://user-images.githubusercontent.com/40964335/226777755-279cbc37-2b0b-4270-89eb-114279ea3bc9.png)

Maybe it has nothing to do with the inheritance of classes? I thought, so I did this:
![image](https://user-images.githubusercontent.com/40964335/226777860-919cc160-5352-432a-8c56-f4e556e1487b.png)

But upon running, these intended variables are there, but only on the base class.
![image](https://user-images.githubusercontent.com/40964335/226777923-f52faf38-b972-400c-9a53-35bb9b8f8186.png)

		


### Steps to reproduce

1. Create a class, and give this class variables
2. Extend the class
3. Instance a node from the extension
4. Variables from the original class are not there.

### Minimal reproduction project

[bad_class.zip](https://github.com/godotengine/godot/files/11035386/bad_class.zip)
Repository: ant-design
Issue: 是否考虑将 placement 放到 ConfigProvider 中？
Labels: Inactive

### What problem does this feature solve?

popover 弹出内容的 placement 可能有统一的视觉规范

### What does the proposed API look like?

提供一个配置对象：
```js
<ConfigProvider 
  placement={{
    tooltip: 'bottom',
    dropdown: 'left-bottom'
  }}
/>
```

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: tensorflow
Issue: Linking external/org_tensorflow/tensorflow/libtensorflow_cc.so.2.13.0 failed: (Exit 1): gcc failed: error executing command 
Labels: stat:awaiting tensorflower,type:bug,type:build/install,subtype: ubuntu/linux,TF 2.12

<details><summary>Click to expand!</summary> 
 
 ### Issue Type

Bug

### Have you reproduced the bug with TF nightly?

No

### Source

source

### Tensorflow Version

Head

### Custom Code

No

### OS Platform and Distribution

Linux

### Mobile device

_No response_

### Python version

_No response_

### Bazel version

_No response_

### GCC/Compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current Behaviour?

[Dynamic Pywrap PR 58734](https://github.com/tensorflow/tensorflow/pull/58734) seems to introduce a a TensorFlow Serving linking error.


### Standalone code to reproduce the issue

Run
```shell
$ git clone git@github.com:tensorflow/serving.git
$ cd serving
$ sudo ./tools/run_in_docker.sh bazel test --action_env=TF_REVISION=6147c03eb9af1e5d2ae155045b33e909ef96944e tensorflow_serving/... &> /tmp/tfs_bazel_output.log
```
and search `Linking external` in /tmp/tfs_bazel_output.log



### Relevant log output

```shell
/usr/local/google/home/rostam/Workspace/tmp/serving/.cache/_bazel_root/7c4195127656842bcf1efda48d8fd065/external/org_tensorflow/tensorflow/BUILD:1214:21: Linking external/org_tensorflow/tensorflow/libtensorflow_cc.so.2.12.0 failed: (Exit 1): gcc failed: error executing command 
  (cd /usr/local/google/home/rostam/Workspace/tmp/serving/.cache/_bazel_root/7c4195127656842bcf1efda48d8fd065/execroot/tf_serving && \
  exec env - \
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
    PWD=/proc/self/cwd \
    TF_REVISION=6147c03eb9af1e5d2ae155045b33e909ef96944e \
  /usr/bin/gcc @bazel-out/k8-opt/bin/external/org_tensorflow/tensorflow/libtensorflow_cc.so.2.12.0-2.params)

```
Repository: pytorch
Issue: MPS: `unique` and `unique_consecutive` extremely slow when `return_counts=True`
Labels: module: performance,triaged,module: mps

### 🐛 Describe the bug

There appears to be a severe performance issue with `unique` and `unique_consecutive` when `return_counts=True` and the device is mps. I performed the following test:

```
import timeit

import torch

t = torch.randint(10, size=(100000,), device='mps')
t = t[t.argsort()]
t_cpu = t.cpu()

number = 10

print(timeit.timeit('t.unique()', globals=globals(), number=number))
print(timeit.timeit('t.unique(return_inverse=True)', globals=globals(), number=number))
print(timeit.timeit('t.unique(return_counts=True)', globals=globals(), number=number))
print(timeit.timeit('t_cpu.unique()', globals=globals(), number=number))
print(timeit.timeit('t_cpu.unique(return_inverse=True)', globals=globals(), number=number))
print(timeit.timeit('t_cpu.unique(return_counts=True)', globals=globals(), number=number))
print()
print(timeit.timeit('t.unique_consecutive()', globals=globals(), number=number))
print(timeit.timeit('t.unique_consecutive(return_inverse=True)', globals=globals(), number=number))
print(timeit.timeit('t.unique_consecutive(return_counts=True)', globals=globals(), number=number))
print(timeit.timeit('t_cpu.unique_consecutive()', globals=globals(), number=number))
print(timeit.timeit('t_cpu.unique_consecutive(return_inverse=True)', globals=globals(), number=number))
print(timeit.timeit('t_cpu.unique_consecutive(return_counts=True)', globals=globals(), number=number))
```
Output:
```
0.026759792000000004
0.035945208000000006
2.092266542
0.0016070839999997588
0.004217375000000079
0.006821041999999888

0.009870165999999791
0.010194499999999884
2.0578671660000003
0.0006946670000003152
0.0007299169999992472
0.0006608329999995277
```
As you can see, `unique` and `unique_consecutive` with `return_counts=True` on mps is around 100x slower. This gets even worse (can be 1000-10000x slower) if I increase the number of elements.

### Versions

Collecting environment information...
PyTorch version: 2.1.0.dev20230320
Is debug build: False
CUDA used to build PyTorch: None
ROCM used to build PyTorch: N/A

OS: macOS 13.2.1 (arm64)
GCC version: Could not collect
Clang version: 12.0.0 (clang-1200.0.32.28)
CMake version: version 3.26.0
Libc version: N/A

Python version: 3.9.16 | packaged by conda-forge | (main, Feb  1 2023, 21:38:11)  [Clang 14.0.6 ] (64-bit runtime)
Python platform: macOS-13.2.1-arm64-arm-64bit
Is CUDA available: False
CUDA runtime version: No CUDA
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: No CUDA
Nvidia driver version: No CUDA
cuDNN version: No CUDA
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

CPU:
Apple M1 Pro

Versions of relevant libraries:
[pip3] numpy==1.24.2
[pip3] torch==2.1.0.dev20230320
[conda] numpy                     1.24.2                   pypi_0    pypi
[conda] torch                     2.1.0.dev20230320          pypi_0    pypi

cc @ngimel @kulinseth @albanD @malfet @DenisVieriu97 @razarmehr @abhudev
Repository: PowerToys
Issue: FancyZones should restore the original window size immediately when dragging begins, not after dragging and releasing
Labels: Idea-Enhancement,Product-FancyZones,Needs-Triage

### Description of the new feature / enhancement

Currently, when dragging a snapped window out of a zone, it retains its "snapped" size while dragging, and only restores to its original size once the mouse is released.

It is counterintuitive to drag a window at its former snapped size, place it at a location on screen, and then have it change size only when released, therefore needing to place it again once it has been changed back to its original size.

Most window-snapping managers (Windows' own built-in snapping feature included) resize the window immediately when initially dragging it away from the snapped zone. This allows the user to see the target size and place the window on screen at its original/target dimensions.

### Scenario when this would be used?

The current method is visually counterintuitive, and inconsistent with the existing built-in snapping feature in Windows, and also requires an extra step to reposition each time a window is dragged out of a snapped zone because the window is the wrong size while you are moving it.

### Supporting information

_No response_
Repository: PowerToys
Issue: Use shortcut/GUI save and activate multiple app's position and size on multiple monitors
Labels: Needs-Triage

### Description of the new feature / enhancement

I want to be able to save the position/location and size of multiple apps into a shortcut OR GUI (i.e. taskbar hidden icons). Then when the shortcut is activated, the apps that are saved will move into that position. 

What is saved?
To keep things simple, it should kinda take a 'snapshot' of the currently opened app's position and size. 
Chrome on Monitor 1, Discord on left half of Monitor 2 and Steam on right half of Monitor 2 = App Position Profile 1
Teams on Monitor 1, Chrome on Monitor 2 and To Do floating on Monitor 2 = App Position Profile 2

Proposed shortcut
Not sure if this is best but could use the likes of Ctrl+Win+1 to 0

Further extension
-Could use this feature to launch the set of apps within an App Position Profile if they are not yet opened (optional)
-Could link with PowerToy's Always On Top feature to remember which app is 'always on top' as well

### Scenario when this would be used?

Using a laptop+external monitor combo, my laptop screen is significantly smaller than my monitor. Laptop screen is still useful but a bit hard to read on. So often I would have things less used like my mail and Teams app on my laptop screen with my browser on my external monitor for the bulk of my work. However, I want to submit a report on Teams at different times of the day, sparsely but consistently throughout the day. So I often drag my browser to my laptop screen and move over my Teams to the external monitor. There are other more complex shifting of app when I have apps on apps on half screens.

It would be great if I could select an 'app positions' profile via GUI or shortcut to be able to quickly change app positions and size.
With a hit of a button, boom, all my apps are at where I want them to be. Another button then boom, all shifted just the way I need it.

### Supporting information

_No response_
Repository: next.js
Issue: [NEXT-1195] Unable to build when using metadata and a dynamic import (await import(''), not next/dynamic)
Labels: bug,linear: next,Markdown (MDX)

### Verify canary release

- [x] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
Operating System:
      Platform: linux
      Arch: x64
      Version: #22 SMP Tue Jan 10 18:39:00 UTC 2023
    Binaries:
      Node: 16.17.0
      npm: 8.15.0
      Yarn: 1.22.19
      pnpm: 7.1.0
    Relevant packages:
      next: 13.2.5-canary.12
      eslint-config-next: N/A
      react: 18.2.0
      react-dom: 18.2.0

(Note: This is straight from the Codesandbox instance)
```


### Which area(s) of Next.js are affected? (leave empty if unsure)

MDX (@next/mdx)

### Link to the code that reproduces this issue

https://codesandbox.io/p/github/HMilbradt/next-bug/main?file=%2FREADME.md&workspace=%257B%2522activeFileId%2522%253A%2522clfj5a7i80000g3f115xy7jew%2522%252C%2522openFiles%2522%253A%255B%2522%252FREADME.md%2522%255D%252C%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522gitSidebarPanel%2522%253A%2522COMMIT%2522%252C%2522spaces%2522%253A%257B%2522clfj5a9m9001d356ruhenriv3%2522%253A%257B%2522key%2522%253A%2522clfj5a9m9001d356ruhenriv3%2522%252C%2522name%2522%253A%2522Default%2522%252C%2522devtools%2522%253A%255B%257B%2522key%2522%253A%2522clfj5a9ma001e356rnp4xvztx%2522%252C%2522type%2522%253A%2522PROJECT_SETUP%2522%252C%2522isMinimized%2522%253Afalse%257D%255D%257D%257D%252C%2522currentSpace%2522%253A%2522clfj5a9m9001d356ruhenriv3%2522%252C%2522spacesOrder%2522%253A%255B%2522clfj5a9m9001d356ruhenriv3%2522%255D%252C%2522hideCodeEditor%2522%253Afalse%257D

### To Reproduce

Simply open the app.  It will break immediately.  

To show that MDX is actually working, you can also remove the metadata from the "broken" page.tsx, or remove the dynamic import.

### Describe the Bug

The build throws saying that you're attempting to use metadata in a client component.  I'm assuming that the use of the dynamic import automatically means I'm using a client component.

### Expected Behavior

I would expect that this would work out of the box.  MDX renders fine when it's imported normally, and while this might be somewhat uncommon to do, it's incredibly useful for building out a blog based on MDX.  

Note that this example is an overly simplified version of what I'm doing.  In practice, I have a number of content files that I want to co-locate in my app directory, and in order to show my list of this content I need to dynamically load them in.

Thanks!

### Which browser are you using? (if relevant)

_No response_

### How are you deploying your application? (if relevant)

_No response_

<sub>[NEXT-1195](https://linear.app/vercel/issue/NEXT-1195/unable-to-build-when-using-metadata-and-a-dynamic-import-await-import)</sub>
Repository: three.js
Issue: Incorrect normal map with material.side = THREE.BackSide + vertex tangents
Labels: Regression

### Description

Mentioned by @WestLangley in https://github.com/mrdoob/three.js/pull/25580#issuecomment-1464746778, normal maps are displayed incorrectly when `material.side === THREE.BackSide` and the geometry uses vertex tangents.

### Reproduction steps

1. Create a geometry with vertex tangents
2. Create two material with the same normal map, one front-sided and one back-sided
3. Extrusions on one side should appear as indentations on the other side
Repository: angular
Issue: Angular element recreates last component when reattaching to DOM 
Labels: area: elements

### Which @angular/* package(s) are the source of the bug?

elements

### Is this a regression?

No

### Description

We develop Micro Frontend application by wrapping Angular components into Angular element. Micro Frontend is lazy loaded by platform application. An issue came up when Angular element is reattached to DOM. The component contained in Angular element that was last rendered previously would always be created and destroyed before the actual page is rendered. This is the scenario: 

1. The Micro Frontend is Angular element which contains 2 components. Let's name them A and B. 
2. The platform application lazy loads Micro Frontend when user navigates to page A backed by component A 
3. User navigates to page B backed by component B
4. User navigates to platform home page. 
5. User navigates to page A again. I would observe the creation and destruction of component B instance before component A instance is created and page A rendered. The observation is done by console log constructor() and ngOnInit() of component B.

It's on step #5 that creation and destruction of component B instance is causing trouble for us. User's intend was to go to page A, not B. The issue becomes visible to end user when component B ngOnInit() initiates service calls to retrieve data for page B. These service calls for page B are bogus. Backend service could reject them because user permissions may have changed since page B was last visited. 

Project https://github.com/fboeller/microfrontends-with-angular/tree/recording by Fabian Böller can be used as base code to illustrate the issue. Add console logs to constructor and ngOnInit() of BookingFormComponent and BookingListComponent. From homepage, user can navigate to "My Bookings" page and then "Book special offer now", and then back to homepage. Hit F12 to open browser dev console. Navigate to "My Bookings" page again. Console logs should show the creation and destruction of components A&B. 

We have tested it with Angular 9 to 15 and the behavior is consistent. It is a blocker for our project because the bogus service calls were failing. We have tried to add debounceTime() so that service calls inside ngOnInit() would not be made before the component is destroyed. It worked to certain extend but the hack could fail if end user computer is too slow for ngOnDestroy() to come around. Delay of 300ms may become noticeable to end user but even that may not be sufficient in all cases.
 

### Please provide a link to a minimal reproduction of the bug

https://github.com/fboeller/microfrontends-with-angular/tree/recording 

### Please provide the exception or error you saw

_No response_

### Please provide the environment you discovered this bug in (run `ng version`)

```true
Angular CLI: 15.2.4
Node: 16.13.0
Package Manager: npm 8.1.0
OS: win 32 x64
Angular: 15.2.3
```


### Anything else?

We tested Angular 9 to 15, Node.js 14.17.4 to 16.13.0. The behavior is consistent across all.
Repository: stable-diffusion-webui
Issue: [Bug]: Cancel venv "D:\WebUI\stable-diffusion-webui\venv\Scripts\Python.exe" Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] Commit hash: a9fed7c364061ae6efb37f797b6b522cb3cf7aa2 Installing gfpgan
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

Cancel
venv "D:\WebUI\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: a9fed7c364061ae6efb37f797b6b522cb3cf7aa2
Installing gfpgan


### Steps to reproduce the problem

1. Go to .... 
2. Press ....
3. ...
Cancel
venv "D:\WebUI\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: a9fed7c364061ae6efb37f797b6b522cb3cf7aa2
Installing gfpgan


### What should have happened?

Cancel
venv "D:\WebUI\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: a9fed7c364061ae6efb37f797b6b522cb3cf7aa2
Installing gfpgan


### Commit where the problem happens

Cancel venv "D:\WebUI\stable-diffusion-webui\venv\Scripts\Python.exe" Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] Commit hash: a9fed7c364061ae6efb37f797b6b522cb3cf7aa2 Installing gfpgan

### What platforms do you use to access the UI ?

Windows

### What browsers do you use to access the UI ?

Microsoft Edge

### Command Line Arguments

```Shell
Cancel
venv "D:\WebUI\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: a9fed7c364061ae6efb37f797b6b522cb3cf7aa2
Installing gfpgan
```


### List of extensions

Cancel
venv "D:\WebUI\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: a9fed7c364061ae6efb37f797b6b522cb3cf7aa2
Installing gfpgan


### Console logs

```Shell
Cancel
venv "D:\WebUI\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: a9fed7c364061ae6efb37f797b6b522cb3cf7aa2
Installing gfpgan
```


### Additional information

_No response_