AntiMicroX / AntiMicroX/antimicrox
memory leak when changing name of accelerometer and gyroscope keys for my controller
- Ngôn ngữ chính
- C++
- Star
- 4k
- Fork
- 249
- Merge trung bình
- 13 phút
- Pull request đã merge (30 ngày)
- 1
Mô tả
### 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.
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.