[ オリジナルレポート ]

BugID: #08139

カテゴリ 重要度 ステータス 解決状況 登録日時 最終更新
システムコア解決済み修正済み2021-11-24 06:532021-11-26 21:02
 
テスターhap担当者galibertソース
バージョン0.237発生バージョン0.200修正バージョン0.239
修正コミット a7e18d4プルリク
フラグ
セット emumem
セット詳細
 
概 要ハードリセットするとメモリリークする。
詳 細There's a big memory leak after doing a hard reset (Shift F3)
再現手順- open Windows taskmanager to have a look at MAME's memory usage
- start a machine that allocates a lot of memory, for example:
mame.exe sun4_110 -window -ui_active

- look at memory usage and see it increase after each time you press Shift+F3
- eventually (after multiple GB total allocated), may get a crash:
Caught unhandled St9bad_alloc exception: std::bad_alloc

The crash is more likely to happen with a 32bit build.

Note, which machine/game you start, does not matter.
mame.exe pacman also leaks memory (much less since it doesn't allocate a lot), do Shift+F3 20 times and memory usage has doubled in pacman's case

The memory leak also happens if you restart the machine from MAME's internal UI, so:
mame.exe -> select sun4_110 -> exit back to UI -> select sun4_110 -> exit back to UI -> ...
追加情報 
 
添付ファイル