AntiMicroX / AntiMicroX/antimicrox

memory leak when changing name of accelerometer and gyroscope keys for my controller

未關閉
#1,187 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
C++
星號
4k
分支
249
平均合併
13 分鐘
30 天內合併 PR
1

描述

### Is there an existing issue for this?

- [x] I searched the existing issues and did not find anything similar.

### Current Behavior

I was going to name the gyroscope and accelerometer keys as I like to label stuff for readability.
- typing "Tilt - Right" if you were curious,
then my computer started to slow down and antimicrox got killed automatically.

after some testing,
- editing the name section of a key under sensors, i.e a gyro or accel key, starts leaking memory
- editing the action section has no effect.
- adding hotkeys works fine
- as does adding advanced setting like mouse speed mods

- memory only leaks when typing
- pasting a long string doesn't start a leak
- pasting multiple short strings does stark leaking memory
- save / load with the name section filled doesn't start a leak

- seems to be that changing the name section multiple times consecutively without closing the app causes the leak

### Expected Behavior

_No response_

### Steps To Reproduce

1. plug in a controller with gyroscope sensors.
2. click on any [NO KEY] button for "Accelerometer" or "Gyroscope"
3. type in the name section a string longer than 4 characters while monitoring memory usage
4. kill the program before it starts to slow down your pc

### Environment

```markdown
Program Version 3.5.1
Compiled from packaging: flatpak
Built Against SDL 2.30.9
Running With SDL 2.32.4
Using Qt 6.8.3
Using Event Handler: uinput
Compositor type: wayland
Host OS: org.kde.Platform Version: 6.8 Architecture: x86_64
```

### Anything else?

possibly affected by the controller's multi-platform compatibility features
- Gullikit KK3 Controller

the gyroscope and accelerometer only show up in switch connectivity mode.
- is registered as "Nintendo Switch Pro Controller" in menus.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。