| Anonymous | Login | 2025-10-30 20:49 UTC | ![]() |
| My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0002091 | VCMI | GUI - Other | public | 2015-02-15 15:50 | 2016-01-17 12:36 | ||||
| Reporter | Kantor | ||||||||
| Assigned To | SXX | ||||||||
| Priority | normal | Severity | major | Reproducibility | always | ||||
| Status | closed | Resolution | fixed | ||||||
| Platform | OS | OS Version | |||||||
| Product Version | 0.97b | ||||||||
| Target Version | Fixed in Version | 0.97c | |||||||
| Summary | 0002091: Keeping pressed any hotkey button on keyboard lead to significant memory leak | ||||||||
| Description | As summary says, keeping pressed any hotkey button on keyboard lead to significant memory leak both in pregame GUI or in anywhere else. Simply launch VCMI_client and in the menu keep pressed, eg. 'N' hotkey for New Game option. | ||||||||
| Tags | No tags attached. | ||||||||
| Attached Files | |||||||||
Notes |
|
|
(0005514) SXX (administrator) 2015-02-15 17:23 |
I already investigated this one from my personal interest. According to Massif biggest leak everywhere is inside CButton::leftClick that lead to SoundHandler::GetSoundChunk, but it's not problem with "chunk" as far as I remember. E.g it's something wrong within CSoundHandler::GetSoundChunk or even in SDL2 (though I doubt it). |
|
(0005515) SXX (administrator) 2015-02-15 17:48 |
Oh, feel myself a dumb. Previous time when I tried to fix it I'd edited wrong "CSoundHandler::playSound" function. Basically we just need to use "Mix_FreeChunk" in both of them (when chunk playback finished of course). |
|
(0005516) SXX (administrator) 2015-02-15 18:11 |
Though once I fixed this massif start crashing for me. :-) So can only make sure it's fixed by testing. Though I'll make some more code cleanup here and then likely sent pull request for review. |
|
(0005517) SXX (administrator) 2015-02-15 20:03 |
Pull request: https://github.com/vcmi/vcmi/pull/89 [^] |
|
(0005518) SXX (administrator) 2015-02-15 22:08 |
Should be now fixed in git: https://github.com/vcmi/vcmi/commit/37a5930f84dbab02ac0681597890cde61ff08365 [^] |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2015-02-15 15:50 | Kantor | New Issue | |
| 2015-02-15 17:23 | SXX | Note Added: 0005514 | |
| 2015-02-15 17:23 | SXX | Assigned To | => SXX |
| 2015-02-15 17:23 | SXX | Status | new => confirmed |
| 2015-02-15 17:48 | SXX | Note Added: 0005515 | |
| 2015-02-15 18:11 | SXX | Note Added: 0005516 | |
| 2015-02-15 20:03 | SXX | Note Added: 0005517 | |
| 2015-02-15 22:08 | SXX | Note Added: 0005518 | |
| 2015-02-15 22:08 | SXX | Status | confirmed => resolved |
| 2015-02-15 22:08 | SXX | Fixed in Version | => 0.97c |
| 2015-02-15 22:08 | SXX | Resolution | open => fixed |
| 2016-01-17 12:36 | SXX | Status | resolved => closed |
| Copyright © 2000 - 2025 MantisBT Team |