sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: opencv
Issue: calibrateCameraCharuco assertion failure fabs(sc) > DBL_EPSILON
Labels: bug,category: objdetect

### System Information

OpenCV Python version: 4.8.1.78
Operating System: macOS Sonoma 14.1.2
Python version: 3.10.13

### Detailed description

I am processing thousands of frames of video, looking for CharuCo markers, then passing them to `cv2.aruco.calibrateCameraCharuco()` for camera calibration. However, on two troublesome frames, the detected markers are causing an exception:

```
cv2.error: OpenCV(4.8.1) opencv/modules/calib3d/src/calibration.cpp:1213:
error: (-215:Assertion failed) 
abs(sc) > DBL_EPSILON in function 'cvFindExtrinsicCameraParams2'
```

I played around with changing the `corners` values, but they don't seem to matter much. However, changing the detected IDs from 91...103 to 90...102 seems to work around it. Maybe the detected corners are impossible for this set of IDs?

### Steps to reproduce

```python
import cv2
import cv2.aruco as aruco

board = aruco.CharucoBoard(
    (14, 9), 0.04, 0.03,
    aruco.getPredefinedDictionary(aruco.DICT_5X5_250)
)

corners = np.array([
       [[ 533.85803 ,  129.24774 ]],
       [[ 616.1158  ,  117.733536]],
       [[ 703.45984 ,  106.37297 ]],
       [[ 794.1943  ,   97.3181  ]],
       [[ 889.30615 ,   89.45472 ]],
       [[ 985.22974 ,   84.335266]],
       [[1081.9414  ,   81.53368 ]],
       [[1177.3636  ,   81.79102 ]],
       [[1270.7202  ,   83.72454 ]],
       [[1359.4841  ,   87.39689 ]],
       [[1444.7225  ,   93.94712 ]],
       [[1523.5964  ,  101.25833 ]],
       [[1597.2476  ,  109.724556]]
    ], dtype=np.float32)

ids = np.arange(91, 104, dtype=np.int32)

aruco.calibrateCameraCharuco(
    [corners], [ids],
    board,
    (1920, 1080),
    None, None
)
```

The coordinates and IDs come from the attached image. 

```python3
    corners, ids, rejected = aruco.detectMarkers(gray, charuco_dict)
    corners, ids, _, _ = aruco.refineDetectedMarkers(gray, board, corners, ids, rejected)
    ret, charuco_corners, charuco_ids = aruco.interpolateCornersCharuco(corners, ids, gray, board)
```

### Issue submission checklist

- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [X] I updated to the latest OpenCV version and the issue is still there
- [X] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: next.js
Issue: __debugSource and __debugOwner are always undefined for RSCs
Labels: bug

### Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/suspicious-euclid-qq4zfy

### To Reproduce

Run the repro sandbox and check the console. I log the React Fiber instance for both components and the value of the `__debugSource` is null for Server Component.  

### Current vs. Expected behavior

The server component fiber nodes does not contain the `__debugSource` and `__debugOwner` information while the client only components do. All components that get rendered should have the debugging information during development.

### Verify canary release

- [X] I verified that the issue exists in the latest Next.js canary release

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 22.6.0: Wed Jul  5 22:22:05 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6000
Binaries:
  Node: 20.8.0
  npm: 10.1.0
  Yarn: 4.0.2
  pnpm: N/A
Relevant Packages:
  next: 14.0.4
  eslint-config-next: 14.0.4
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.3.2
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

App Router

### Additional context

This bug impacts tools that rely on `__debugSource` in development. Please check https://github.com/ericclemmons/click-to-component/issues/78
Repository: flutter
Issue: [pigeon] Add a linter test for C++ generator
Labels: a: tests,platform-windows,package,team-ecosystem,p: pigeon,P3,triaged-ecosystem

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Use case

CI testing for pigeon generated code.

Currently with pigeon generated code linter output has lots of recommendations.

### Proposal

The proposal is to add test cases to the pigeon package that run in CI.  The test cases would run pigeon and run linter on generated output. Then compile the output with equivalent of warn as error, failing test if compile fails.

The current class of issues in case of CPP output includes:
* Unused parameters
* Use std::move to prevent redundant allocations
* In some cases use emplace_back instead of push_back
* Const correctness

The goal being to enforce a higher code quality for pigeon generated code, and prevent step of having to hand modify pigeon generated code.
Repository: rust
Issue: add riscv64-unknown-linux-ohos target
Labels: C-feature-request
Repository: vscode
Issue: macOS path bar "Open in Terminal" opens VSCode instead of Terminal
Labels: macos,under-discussion

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes (VSCode is not even running)

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.85.0
- OS Version: macOS Sonoma 14.1.2 (23B92)

Steps to Reproduce:

1. Show the path bar in macOS finder (`opt + cmd + p`).
2. Right click a folder there and select "open in Terminal" (not "Services -> open Terminal").
3. Instead of the Terminal (original `Terminal.app`) VSCode opens in that folder.

It's really annoying and it started some weeks ago. I want to open a terminal, if I right click in the path bar and click open in terminal, not VSCode. There is also a [stackoverflow thread without satisfying answer](https://stackoverflow.com/questions/75080758/prevent-visual-studio-code-from-opening-up-when-open-in-terminal-option-is-selec) to this.
Repository: PowerToys
Issue: SvgThumbnailProvider stuck at 0.01% CPU usage.
Labels: Issue-Bug,Product-File Explorer,Needs-Triage,Needs-Team-Response

### Microsoft PowerToys version

0.76.1

### Installation method

PowerToys auto-update

### Running as admin

No

### Area(s) with issue?

File Explorer: Thumbnail preview

### Steps to reproduce

Enable SVG thumbnail preview.

### ✔️ Expected Behavior

SVGThumbnailProvider goes through the svg's in the folder the user's in and generates thumbnails.

### ❌ Actual Behavior

It spawns 1 process stuck on 1 svg file and only using 0.01% of the CPU.
It seems to have created a file in it's temp folder that's the same size as the SVG it's stuck on but doesn't do anything else than that.
Killing the process makes it pick new SVG files but again it just copies them to it's temp folder and gets stuck on them as well.

### Other Software

_No response_
Repository: godot
Issue: Looped animation with cubic interpolation shows wrong frame if first/last keys are exist in start/end point of the track
Labels: discussion,topic:animation

### Tested versions

Reproducible in 4.2 stable

_Bugsquad edited:_
~Not reproducible in 4.0 stable, but behave as described [here](https://github.com/godotengine/godot/issues/85068#issue-2000523918).~ It behaved differently in 4.0, but was also incorrect behavior at that point.

### System information

ubuntu 22.04

### Issue description

Looped animation in animation editor shows wrong frame if last one is selected. Selected last frame in the timeline is not relevant to its time and visually you don't know how last frame looks. A similar problem was fixed [here](https://github.com/godotengine/godot/issues/85068#issue-2000523918), but for linear interpolation, so it's probably related.


https://github.com/godotengine/godot/assets/72736632/e4356b8c-e876-413c-b8b3-133a2e272a8f



### Steps to reproduce

-    Make looped animation.
-   Add frame in the end of the timeline.
-   Select last frame.


### Minimal reproduction project (MRP)

N/A
Repository: pytorch
Issue: Batchnorm NAN in amp autocast mode.
Labels: module: cuda,triaged,module: amp (automated mixed precision),module: norms and normalization

### nan in batchnorm when using amp autocast mode.
It seems batchnorm compute mean var in fp16? It's very easy occur overlap in amp_autocast? It's my code:
```python
import torch.nn as nn
import torch
from torch.cuda.amp import autocast

bn_layer = nn.BatchNorm1d(10).cuda()
inp = torch.rand(2, 10).cuda() * 65535 * 2
conv_layer = nn.Linear(10, 10).cuda()

with autocast(enabled=True):
    x = conv_layer(inp)
    oup = bn_layer(x)
    print('bn_running_mean', bn_layer.running_mean, 'running_mean_dtype', bn_layer.running_mean.dtype)
```
Output:
```python
bn_running_mean tensor([nan, nan, nan, nan, nan, nan, nan, nan, nan, nan], device='cuda:0') running_mean_dtype torch.float32
```
And force fp32 in bn layer is not useful?
```python
with autocast(enabled=True):
    x = conv_layer(inp)
    with autocast(enabled=False, dtype=torch.float32):
        oup = bn_layer(x.float())
        print('bn_running_mean', bn_layer.running_mean, 'running_mean_dtype', bn_layer.running_mean.dtype)
```
The output:
```
bn_running_mean tensor([nan, nan, nan, nan, nan, nan, nan, nan, nan, nan], device='cuda:0') running_mean_dtype torch.float32
```

It seems batchnorm compute mean var in fp16? It's very easy occur overlap in amp_autocast? It's my code:
Many people meet LOSS NAN in autocast mode, maybe it's the main reason. But why mean, var is calculated in fp16?
@mingfeima  @ptrblck  Can you help me? Thanks!

### Versions

Setting:
- machine: ubuntu18.04
- pytorch version: torch1.12.1_cu113 (torch2.0.1_cu118 also can reproduce this problem



cc @mcarilli @ptrblck @leslie-fang-intel @jgong5
Repository: HelloGitHub
Issue: 【开源自荐】一个Laravel模块化开发框架 ModStart，支持超多成熟模块
Labels: PHP 项目

## 推荐项目

<!-- 这里是 HelloGitHub 月刊推荐项目的入口，欢迎自荐和推荐开源项目，唯一要求：请按照下面的提示介绍项目。-->


<!-- 点击上方 “Preview” 立刻查看提交的内容 -->


<!--仅收录 GitHub 上的开源项目，请填写 GitHub 的项目地址-->
- 项目地址：https://github.com/modstart/ModStartCMS

<!--请从中选择（C、C#、C++、CSS、Go、Java、JS、Kotlin、Objective-C、PHP、Python、Ruby、Rust、Swift、其它、书籍、机器学习）-->
- 类别：PHP

<!--请用 20 个左右的字描述它是做什么的，类似文章标题让人一目了然 -->
- 项目标题：基于Laravel的模块化开发框架

<!--这是个什么项目、能用来干什么、有什么特点或解决了什么痛点，适用于什么场景、能够让初学者学到什么。长度 32-256 字符-->
- 项目描述：ModStart 是一个基于 Laravel 的模块化快速开发框架。模块市场拥有丰富的功能应用，支持后台一键快速安装，让开发者能快的实现业务功能开发。

<!--令人眼前一亮的点是什么？类比同类型项目有什么特点！-->
- 亮点：模块化开发框架，插件式安装

- 示例代码：（可选）

```php
class NewsController extends Controller
{
    use HasAdminQuickCRUD;
    protected function crud(AdminCRUDBuilder $builder)
    {
        $builder
            ->init('news')
            ->field(function ($builder) {
                $builder->id('id','ID');
                $builder->text('title', '名称');
                $builder->image('cover', '封面');
                $builder->textarea('summary', '摘要');
                $builder->richHtml('content', '内容');
                $builder->display('created_at', '创建时间');
                $builder->display('updated_at', '更新时间');
            })
            ->gridFilter(function (GridFilter $filter) {
                $filter->eq('id', 'ID');
                $filter->like('title', '标题');
            })
            ->title('新闻管理');
    }
}
```

- 截图：

![image](https://github.com/521xueweihan/HelloGitHub/assets/78841409/682542b8-b7d1-4fa0-bf2d-45ffc691bcd6)


- 后续更新计划：代码生成、AI生成框架代码
Repository: PowerToys
Issue: Resizer, "overwrite" checkbox always unticked by default.
Labels: Idea-Enhancement,Product-Image Resizer,Needs-Team-Response

### Description of the new feature / enhancement

I used the very handy resizer a few hours ago to change the size of some images and for once I wanted to overwrite the resize on the same files so I checked that box.
Now I wanted to resize some other images and by default I never ever want to overwrite images but instead have them write separate images and I just assumed and didn't even think about that checkbox still being checked, soo now I've lost my original highres images having some 1024x683 instead which is VERY frustrating.
Please make that checkbox being unchecked by default at all times!

### Scenario when this would be used?

Always uncheck that checkbox. Or at least give an option for it. It's a very dangerous checkbox.

### Supporting information

_No response_
Repository: vscode
Issue: vscode menus become disabled
Labels: bug,menus

Not sure what causes it, but the menus become disabled (this is using a remote vscode). See attached screenshot.

Interestingly, if I click 'Report Issue' the menus will become enabled again.

<img width="464" alt="image" src="https://github.com/microsoft/vscode/assets/4958833/21574f05-8c77-4b72-91df-8237caa6b4d9">

I also attached a screenshot of a possible underlying cause?

<img width="1058" alt="image" src="https://github.com/microsoft/vscode/assets/4958833/e1aecdf5-8613-4af9-a663-53d5f8ea6373">
Repository: PowerToys
Issue: Dashboard, activate/deactivate indicator of some sort.  
Labels: Idea-Enhancement,Help Wanted,Product-Settings,Area-User Interface

### Description of the new feature / enhancement

If you enable or disable anything from the Dashboard, it's "jarring" since it just disappears and reappears somewhere else so fast. If you do it on accident it's hard to undo since you don't know where went. 

Some ideas:
1. Make it fade out and fade in so we can see what happened. 
2. Make the new location flash for a second in some way to catch your eye. 
3. Leave them all in place, sorted like they are on the left, and have a toggle to hide disabled modules.
4. Enable/disable from the left navigation (reduces the need for dashboard). On the left nav you can also "hide disabled modules).

### Scenario when this would be used?

Anytime you want to quickly toggle a feature off and back on. 

### Supporting information

_No response_
Repository: rust
Issue: Suggest not using method call syntax when type can't be inferred
Labels: A-diagnostics,T-compiler,A-inference,A-suggestion-diagnostics,D-papercut

### Code

```Rust
struct S<T> {
    f: fn(T) -> T,
}

fn main() {
    let mut n = 0i32;
    let s = S {
        f: |x| x.clone(),
    };
    n = (s.f)(n);
}
```


### Current output

```Shell
error[E0282]: type annotations needed
 --> src/main.rs:8:13
  |
8 |         f: |x| x.clone(),
  |             ^  - type must be known at this point
  |
help: consider giving this closure parameter an explicit type
  |
8 |         f: |x: /* Type */| x.clone(),
  |              ++++++++++++
```


### Desired output

```Shell
error[E0282]: type annotations needed
 --> src/main.rs:8:13
  |
8 |         f: |x| x.clone(),
  |             ^  - type must be known at this point
  |
help: consider giving this closure parameter an explicit type
  |
8 |         f: |x: /* Type */| x.clone(),
  |              ++++++++++++
  |
help: consider calling the function directly
  |
8 |         f: |x| Clone::clone(&x),
```


### Rationale and extra context

Calling the function directly gets rid of the "type annotations needed" error

### Other cases

_No response_

### Anything else?

_No response_
Repository: godot
Issue: EditorPlugin Class Throws An Error When Exporting to Android
Labels: bug,platform:android,topic:export

### Tested versions

4.2.Stable
4.1.1.Stable

### System information

Android

### Issue description

When exporting to Android, the following error is thrown:
>Parser Error: Could not find type "EditorPlugin" in the current scope.

This does not occur when exporting to Windows.

The following issue states that the EditorPlugin SHOULD throw an error during runtime: https://github.com/godotengine/godot/issues/19669

If this is the case, it's confusing why it only occurs for Android. 

Video demonstrating exporting to Windows Vs Android here: https://youtu.be/SMKFMsMt5Wg

### Steps to reproduce

Insert following line of code in any script and one-click deploy to android with "Deploy with Remote Debug" enabled.
`var editor_plugin : EditorPlugin`

The error is thrown whether the script is a `@tool` script or not. 

### Minimal reproduction project (MRP)

[EditorPluginBug.zip](https://github.com/godotengine/godot/files/13628999/EditorPluginBug.zip)
Repository: godot
Issue: Anonymous callables that are connected to singleton signals can cause errors
Labels: discussion,topic:gdscript,documentation

### Tested versions

Reproducible in v4.2.1.rc1.official [daeb1c729]

### System information

Godot v4.2.beta5 - Linux Mint 21.1 (Vera) - X11 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1050 Ti (nvidia; 535.129.03) - AMD Ryzen 5 3600 6-Core Processor (12 Threads)

### Issue description

Whenever I connect an anonymous lambda to a singleton signal, change the scene, then change it back. The anonymous lambda from the previous scene will get called causing a ``Previously freed`` error to happen. Printing the signal connections upon exiting the tree shows there is no connections to it. When printing the callable on the new scene, it says that its valid and exists. Also printing the object that is associated with it will show that its valid.

### Steps to reproduce

Reproduction project is below. The error is quite different being a ``Bad address index`` error in the reproduction instead? Hopefully this reproduction issue shows the issue I'm having.

### Minimal reproduction project (MRP)

To use this, press the space bar to switch the scene back and forth. An error should appear when doing so a few times.
[singleton_signal_errors.zip](https://github.com/godotengine/godot/files/13629471/singleton_signal_errors.zip)
Repository: deno
Issue: [deno task] suport filters/patterns/wildcards
Labels: suggestion,task runner

`npm` supports wildcards when running scripts. It's a common pattern for `package.json` to have things like:

```json
"scripts": {
  "lint:js": "eslint --cache --fix ./",
  "lint:css": "stylelint '**/*.scss' --syntax scss",
  "lint:css:fix": "stylefmt -R src/",
  "lint" : "npm-run-all lint:**"
}
```

Here, `lint:*` would match `lint:js` and `lint:css`, while `lint:**` also matches `lint:css:fix` —i.e. it behaves with colon-separated keys like shell globs behave with forward slash-separated file paths.

Could `deno task` also support the same thing? i.e.

```diff
 "tasks": {
   "check:test": "deno test -A --no-prompt --parallel src/",
   "check:lint": "deno lint",
   "check:types": "deno check src/**/*.ts",
-  "check": "deno task check:test ; deno task check:lint ; deno task check:types"
+  "check": "deno task check:*"
 }
```

`pnpm` also [supports a more capable version](https://pnpm.io/cli/run#running-multiple-scripts) of this, letting you pass a regex and specify options [like concurrency](https://pnpm.io/cli/run#--parallel).

---
[<small>original discussion on discord</small>](https://discord.com/channels/684898665143206084/684898665151594506/1183100195874025552)
Repository: next.js
Issue: NextJS 14.0.4 build error with  react-hook-form
Labels: bug

### Link to the code that reproduces this issue

https://github.com/elanpang/nxjs-14-rhf-7-issue-1.git

### To Reproduce

just run `npm run build`

### Current vs. Expected behavior

Current :

got the build error below:

Generating static pages (0/7)  [=   ]TypeError: Cannot read properties of null (reading 'control')
    at useController 

Expected:

build pass


### Verify canary release

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

### Provide environment information

```bash
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.1.0: Mon Oct  9 21:27:24 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T6000
Binaries:
  Node: 18.18.2
  npm: 9.8.1
  Yarn: 1.22.21
  pnpm: 8.10.0
Relevant Packages:
  next: 14.0.4
  eslint-config-next: 14.0.4
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.3.3
Next.js Config:
  output: N/A
```


### Which area(s) are affected? (Select all that apply)

Not sure

### Additional context

Run`npm run dev` works well.

I had tried 14.0.5-canary.5， got the same build error.

I'm not sure the root cause, also opened a ticket for react-hook-form, pls ref below:

https://github.com/react-hook-form/react-hook-form/issues/11279
Repository: PowerToys
Issue: FancyZones - Editing a Layout Bug
Labels: Issue-Bug,FancyZones-Editor,Product-FancyZones,Needs-Triage,Needs-Team-Response

### Microsoft PowerToys version

v0.76.1

### Installation method

GitHub

### Running as admin

No

### Area(s) with issue?

FancyZones

### Steps to reproduce

1. Open the layout editor
2. Edit a layout
3. Make some changes
4. Click the `cancel` button

### ✔️ Expected Behavior

The changes are not applied.

### ❌ Actual Behavior

The layout incorrectly saves the changes instead of cancelling them.

Note: The bug only happens sometimes.

### Other Software

_No response_
Repository: stable-diffusion-webui
Issue: How to do promptless training for ControlNet? is there any script for it?[Feature Request]: 
Labels: enhancement

### Is there an existing issue for this?

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

### What would your feature do ?

I need to do promptless training, how can I do it?

Is there any direct script for training promptless ControlNet ?

There is suggestions like providing empty string or writing general description like : ( nice image ....), but it is not look good.
I am looking to do prompltess training directly... is there any script for that?

### Proposed workflow

using direct script instead of providing empty string or any other symbols

### Additional information

_No response_
Repository: ant-design
Issue: 【Table】可拖拽排序的hover状态显示问题
Labels: Inactive,improvement

### Reproduction link

[https://ant.design/components/table-cn#components-table-demo-drag-sorting](https://ant.design/components/table-cn#components-table-demo-drag-sorting)

### Steps to reproduce

1、打开链接
2、拖拽第一行到第三行
3、拖拽结束时，松开鼠标，hover状态回到了第一行

### What is expected?

hover状态应该在第三行

### What is actually happening?

hover状态回到了第一行

| Environment | Info |
| --- | --- |
| antd | 5.12.1 |
| React | lastest |
| System | window 11 |
| Browser | 120 |

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->