- --
Viewing Issue Advanced Details
[ Jump to Notes ]
ID | Category [?] | Severity [?] | Reproducibility | Date Submitted | Last Update |
---|---|---|---|---|---|
07978 | Interface | Critical (emulator) | Always | May 15, 2021, 09:49 | May 16, 2021, 05:37 |
Tester | kmg | View Status | Public | Platform | MAME (Self-compiled) |
Assigned To | AJR | Resolution | Fixed | OS | MacOS X |
Status [?] | Resolved | Driver | |||
Version | 0.231 | Fixed in Version | 0.232 | Build | 64-bit |
Fixed in Git Commit | eb5fc0c | Github Pull Request # | |||
Summary | 07978: UI: File Manager crashes MAME in spectacular ways | ||||
Description |
For any system, accessing File Manager, then a currently populated media slot, then accessing file manager from that submenu crashes MAME with various errors (segmentation faults, malloc errors, etc etc). I'm not setup to debug MAME but from playing around a few minutes it seems that this is due to each cfg's <image_directories> contents. When <device instance="foo" directory="" /> has empty string for a directory the problem strikes. The main issue I'm guessing is a missing reasonable default, say the working directory? It also seems from the errors that if the cfg file doesn't exist yet, directory may be null not just a null string. A secondary issue here is the behavior differs between running a software list item from the command line versus picking one in the UI. The latter properly populates directory with a non-empty string, the former seems to always default to "". Of course this may be moot if "" is handled gracefully :) |
||||
Steps To Reproduce |
Picking on nes arbitrarily: 1) erase nes.cfg 2) mame nes smb1 3) Menu -> File Manager -> cartridge (cart) smb1 (cart) -> [file manager] 4) Boom! Alternate step 2 that gives different error at end: 2) mame nes smb1 -> quit MAME (nes.cfg now has directory="") -> mame nes smb1 |
||||
Additional Information | |||||
Github Commit | |||||
Flags | |||||
Regression Version | 0.228 | ||||
Affected Sets / Systems | UI | ||||
Attached Files
|
|||||
Relationships
There are no relationship linked to this issue. |
Notes
2
No.18848
Tafoid Administrator
May 15, 2021, 11:58
|
Issue traced to January 20, 2021 "Much more core std::string_view modernization" https://github.com/mamedev/mame/commit/91921618c2e06bd0ed073b8efccd31a127c9012d |
---|---|
No.18849
Tafoid Administrator
May 15, 2021, 12:08
edited on: May 15, 2021, 12:08 |
----------------------------------------------------- |