Page 1 of 1
an item with same key already added
Posted: Tue Jul 23, 2024 9:59 am
by bototin
https://snipboard.io/YTE9ky.jpg
after creating IBM PC redump dats and add the folder of the roms the error pops up like this "an item with same key already added"
Re: an item with same key already added
Posted: Tue Jul 23, 2024 11:08 am
by Wanderer
Hi.
This looks like a datafile issue. Are you sure there is nothing duplicate in it?
Re: an item with same key already added
Posted: Wed Jul 24, 2024 5:51 am
by bototin
im not sure. when I importing the dats from redump IBM PC and create new lines the errors comes out
Re: an item with same key already added
Posted: Thu Jul 25, 2024 7:09 am
by Wanderer
I could check it. Can you post the dat here?
Re: an item with same key already added
Posted: Sun Jul 28, 2024 5:24 am
by bototin
Re: an item with same key already added
Posted: Wed Jul 31, 2024 12:30 am
by Melluish
I'm also getting this exact error with official Redump IBM - PC compatible DATs for the last year or so. If you go back to one from a few years ago it works fine. For example "IBM - PC compatible - Datfile (17435) (2019-04-03 13-07-38).dat" works without the error. I can't attach it because .dat files aren't allowed.
Re: an item with same key already added
Posted: Wed Jul 31, 2024 7:57 am
by Wanderer
Can you please upload it here as a zip file or somewhere else that does not require a login and permission asking?
Re: an item with same key already added
Posted: Wed Jul 31, 2024 7:58 am
by Wanderer
Melluish wrote: ↑Wed Jul 31, 2024 12:30 am
I'm also getting this exact error with official Redump IBM - PC compatible DATs for the last year or so. If you go back to one from a few years ago it works fine. For example "IBM - PC compatible - Datfile (17435) (2019-04-03 13-07-38).dat" works without the error. I can't attach it because .dat files aren't allowed.
Hi. Try uploading it as a compressed file (zip, 7z preferably).
Re: an item with same key already added
Posted: Wed Jul 31, 2024 12:31 pm
by Melluish
Sure, here we go.
Re: an item with same key already added
Posted: Thu Aug 01, 2024 8:39 am
by Wanderer
Melluish wrote: ↑Wed Jul 31, 2024 12:31 pm
Sure, here we go.
OK, thanks. I did some quick preliminary checks but didn't find anything. Can you also post the log file? (C:\ProgramData\romcenter\romcenter_xml.log). At least the last 100 lines where the actual problem should be displayed...
Re: an item with same key already added
Posted: Thu Aug 01, 2024 8:05 pm
by Melluish
No problem. I made sure to try to create the Romcenter database again just now so it should be the last thing in the log.
The problem occurs not when creating the database but after its finished when you try to add a ROM path, so it might be that there are two games or something in my set that would end up being renamed identically? Not sure. I've also included an `ls -la` of my "IBM - PC compatible" ROMs directory.
Re: an item with same key already added
Posted: Thu Aug 01, 2024 8:08 pm
by Melluish
Just some extra info:
- The DAT that I used to get the error in that log is "IBM - PC compatible - Datfile (48267) (2024-07-30 22-31-44).dat".
- My ROM path is on a network share, but this has never given me any other issues.
- I run Romcenter in a Windows 10 VM on a Linux host, again, this has never been an issue.
Re: an item with same key already added
Posted: Thu Aug 01, 2024 9:30 pm
by Wanderer
OK, i checked all files, there is nothing that is obviously wrong, so this is something that only Eric can answer via code debugging.
A suggestion i have personally tried in similar cases is to create an empty data folder, add it to RC and add files gradually in it and refresh it in RC. That way you will eventually be able to find the first file that causes the issue. Then remove all files again, put THAT file in the folder first and then keep adding files and refreshing the folder until you find the second file that causes the "duplicate key" issue. Then you can check both of them and perhaps find what's causing the error.
The files you sent in pc-ls.txt are not that many. If you decide to try it out, please let us know, out of curiosity. Perhaps the error can be corrected by manually altering the game zip (or by fixing one game at a time from within RC), regardless of what Eric may find and change in the code...
Re: an item with same key already added
Posted: Thu Aug 01, 2024 10:58 pm
by Melluish
Many thanks for having a look. I just tried again, recreated the DB and added a ROM path that was completely empty and still got the error. This leads me to believe it's an issue with the DAT.
Re: an item with same key already added
Posted: Fri Aug 02, 2024 7:52 am
by Wanderer
OK, that's strange. When you posted the dat, i performed a similar task but with a folder with files from an emulator, which was not empty. The folder appeared normally, with all its contents gray of course, since they were not relevant to the dat.
- What version of RC are you using?
- Is there a chance there are hidden files in that rom path? Since you are referring to a linux network path, i checked the pc-ls.txt just in case it contained two files with the same name but different casing, but that was not the case. Unless something hidden exists...
Re: an item with same key already added
Posted: Fri Aug 02, 2024 12:11 pm
by Melluish
How odd. I'm using 4.1.1.51 20201230 which still seems to be the version available on the website. I will try some more tests with a local folder in the VM.
Re: an item with same key already added
Posted: Fri Aug 02, 2024 2:47 pm
by Melluish
Tried again with all local files/folders. Same issue. As soon as I add the empty ROM path I get the dialog box appear about the same key already added.
Re: an item with same key already added
Posted: Fri Aug 02, 2024 6:06 pm
by bototin
yes, same here tried adding rom folder path the error pops up
Re: an item with same key already added
Posted: Sun Aug 04, 2024 8:24 pm
by Wanderer
OK, without touching your existing RC installation, can you try it with
this version? Place it in a different folder, run it and then just add the folder and see what happens. If it works, try backing up your roms and test it further.
Remember, it's still a beta version, could have serious bugs...
Re: an item with same key already added
Posted: Mon Aug 05, 2024 9:48 am
by bototin
same issue the link version that you gave
Re: an item with same key already added
Posted: Tue Aug 06, 2024 9:45 pm
by Wanderer
Hmmm, strange. Well, i guess it's one of the things Eric must take a look at, to understand what's going on.
Melluish wrote: ↑Thu Aug 01, 2024 8:08 pm
- My ROM path is on a network share, but this has never given me any other issues.
- I run Romcenter in a Windows 10 VM on a Linux host, again, this has never been an issue.
@bototin
Do you perhaps have a similar setup to what Melluish has described?
Re: an item with same key already added
Posted: Wed Aug 07, 2024 12:30 pm
by bototin
yes same issue with Melluish
Re: an item with same key already added
Posted: Fri Aug 09, 2024 7:23 am
by Wanderer
I'm not asking about the issue, i'm asking if you also have a Windows VM on a Linux host and run RC from there.
Re: an item with same key already added
Posted: Fri Aug 09, 2024 4:14 pm
by bototin
nope, I'm just using my local pc on windows
Re: an item with same key already added
Posted: Sat Aug 10, 2024 10:54 am
by Wanderer
bototin wrote: ↑Fri Aug 09, 2024 4:14 pm
nope, I'm just using my local pc on windows
Very strange...
Eric? Any ideas?
"An item with the same key has already been added""
Posted: Fri Aug 30, 2024 2:22 pm
by GustavoZ
Hello guys... I've been having a problem with the RomCenter 4.1.1
I'm trying to verify some PC games images (iso / bin - cue) formats...
I got the .dat file from Redump.org, at the time is the IBM - PC compatible - Datfile (48805) (2024-08-30 14-33-48)
Since the dat itself is on .DAT format, the RomCenter "convert" to .RDT
At this point NO PROBLEM... but WHEN I add the "games folder" I receive a errror message
"Error "An item with the same key has already been added" and I CAN'T add the game folder to verify the games images.
Someone could help ?