question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

libretrodb_tool list issue

See original GitHub issue

Guys, i’m hoping you can give me a sanity check on this issue.

I have this bash file:

#bash
for file in *.rdb
do
  echo $file\n
  libretrodb_tool "$file" list >> "${file%.rdb}.dat"

done

When I simply run the list commands myself, and pipe them to a file, all is well other than the Segmentation fault at the end of each file. No problem, I just remove that programmatically.

When I run the above code, the resulting files have many errors. For example, Tomb Raider.dat ends up like this:

{"sha1": "DE55A7D363A59CF930DAEFBFE2359863B499F527", "md5": "54C65C82FBED56DD47A9914AA1A60482", "crc": "4085E43A", "size": 1282096, "rom_name": "PCTomb5.exe", "description": "Tomb Raider Chronicles (En)", "name": "Tomb Raider Chronicles (En)"}
{"sha1": "E19AE5E7614B65F85CA50375CBB5460AE388481F", "md5": "835ABCC1E4F035CE5B1ACEE2E353ADA3", "crc": "FEF60887", "size": 786432, "rom_name": "tomb4.exe", "description": "Tomb Raider: The Last Revelation (En)", "name": "Tomb Raider: The Last Revelation (En)"}
{"sha1": "8E62F802FC72BE7145B38CF470C3CBAC81875CFA", "md5": "0F092652E6E9831DCB60DD028C343607", "crc": "6782077C", "size": 966656, "rom_name": "tomb3.exe", "description": "Tomb Raider 3 (En)", "name": "Tomb Raider 3 (En)"}
{"sha1": "AED5DA395D95888F63237138593B5ABCC64D6B6A", "md5": "A6E97AB9971C7D94B6F00EE75ECFD4A5", "crc": "4FA5A39B", "size": 912896, "rom_name": "Tomb2.exe", "description": "Tomb Raider 2 (En)", "name": "Tomb Raider 2 (En)"}
{"sha1": "0865F5D6BF0B9641FAF434D7539C21F7BEDC8281", "md5": "29758968E595{"sha1": "DE55A7D363A59CF930DAEFBFE2359863B499F527", "md5": "54C65C82FBED56DD47A9914AA1A60482", "crc": "4085E43A", "size": 1282096, "rom_name": "PCTomb5.exe", "description": "Tomb Raider Chronicles (En)", "name": "Tomb Raider Chronicles (En)"}
{"sha1": "E19AE5E7614B65F85CA50375CBB5460AE388481F", "md5": "835ABCC1E4F035CE5B1ACEE2E353ADA3", "crc": "FEF60887", "size": 786432, "rom_name": "tomb4.exe", "description": "Tomb Raider: The Last Revelation (En)", "name": "Tomb Raider: The Last Revelation (En)"}
{"sha1": "8E62F802FC72BE7145B38CF470C3CBAC81875CFA", "md5": "0F092652E6E9831DCB60DD028C343607", "crc": "6782077C", "size": 966656, "rom_name": "tomb3.exe", "description": "Tomb Raider 3 (En)", "name": "Tomb Raider 3 (En)"}
{"sha1": "AED5DA395D95888F63237138593B5ABCC64D6B6A", "md5": "A6E97AB9971C7D94B6F00EE75ECFD4A5", "crc": "4FA5A39B", "size": 912896, "rom_name": "Tomb2.exe", "description": "Tomb Raider 2 (En)", "name": "Tomb Raider 2 (En)"}
{"sha1": "0865F5D6BF0B9641FAF434D7539C21F7BEDC8281", "md5": "29758968E595

It literally ends right there.

There is a line in Atari - 7800.dat that looks like this: {"sha1": "2FF076488E39F{"sha1": "58E1A65114689E526AD89A4A47E237161D15AB2B", "md5": "324A08B67016600E5BD21218AA3E84F8", "crc": "629D1032", "size": 49280, "rom_name": "Super Huey UH-IX (USA).a78", "description": "Super Huey UH-IX (USA)", "name": "Super Huey UH-IX (USA)"}

I have no idea what could cause this. It almost seems impossible.

THANK YOU!

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
undeadindustriescommented, Nov 16, 2018

While fixing or adding that feature, do you think you could look into why it always ends with segment fault? Thaaaaaaaaaaankyou!!! 😃

Once my next project (libretro related) I’m probably going to jump in and start fixing libretro and lakka bugs! (finally)

1reaction
undeadindustriescommented, Nov 14, 2018

Can we keep this open until we have someone check it out? I’d try to resolve this myself. But C/C++ aren’t really my speciality…

Read more comments on GitHub >

github_iconTop Results From Across the Web

libretro/libretro-database: Repository containing cheatcode ...
System Source Repository The 3DO Company ‑ 3DO Redump > Trurip > TOSEC libretro‑dats Atari ‑ 2600 No‑Intro Atari ‑ 7800 No‑Intro
Read more >
Rom Scanning Tool for Windows - Libretro Forums
RetroArch Playlist Generator. Settings Menu: What it does: Scan rom directories Match roms automatically by CRC, exact filename, ...
Read more >
Libretro – A crossplatform application API, powering the ...
Guess we need a different way of fixing the validation issue. D3D12: Fixed validation error on start up due to buffers not being...
Read more >
RetroArch Playlist Buddy - Playlist and ... - Libretro Forums
RetroArch Playlist Buddy is a Windows-based tool that can be used to ... ROMs that is not supported by the RetroArch playlist database...
Read more >
RetroArch Playlist Buddy - Playlist and thumbnail generation ...
One update on the “Not Working” filter bug – SAM does correctly filter out romsets if they are marked Unplayable in the catver.ini...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found