an item with same key already added

Romcenter 4 support discussion. Please do not post roms requests or illegal links, posts will be deleted. After discussion in this forum, please report any new bugs here.

Moderator: Wanderer

Forum rules
No roms requests or illegal links
bototin
PacMan
PacMan
Posts: 9
Joined: Thu Jun 07, 2012 2:19 am

an item with same key already added

Post 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"
User avatar
Wanderer
Board master
Board master
Posts: 805
Joined: Wed Oct 03, 2001 10:37 am
Location: Milky way

Re: an item with same key already added

Post by Wanderer »

Hi.

This looks like a datafile issue. Are you sure there is nothing duplicate in it?
bototin
PacMan
PacMan
Posts: 9
Joined: Thu Jun 07, 2012 2:19 am

Re: an item with same key already added

Post by bototin »

im not sure. when I importing the dats from redump IBM PC and create new lines the errors comes out
User avatar
Wanderer
Board master
Board master
Posts: 805
Joined: Wed Oct 03, 2001 10:37 am
Location: Milky way

Re: an item with same key already added

Post by Wanderer »

I could check it. Can you post the dat here?
bototin
PacMan
PacMan
Posts: 9
Joined: Thu Jun 07, 2012 2:19 am

Re: an item with same key already added

Post by bototin »

Melluish
PacMan
PacMan
Posts: 7
Joined: Thu Jun 27, 2019 11:06 pm

Re: an item with same key already added

Post 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.
Last edited by Melluish on Wed Jul 31, 2024 12:32 am, edited 1 time in total.
User avatar
Wanderer
Board master
Board master
Posts: 805
Joined: Wed Oct 03, 2001 10:37 am
Location: Milky way

Re: an item with same key already added

Post by Wanderer »

bototin wrote: Sun Jul 28, 2024 5:24 am Good day, yes here it is the link
https://drive.google.com/file/d/17QGF_d ... drive_link
Can you please upload it here as a zip file or somewhere else that does not require a login and permission asking?
User avatar
Wanderer
Board master
Board master
Posts: 805
Joined: Wed Oct 03, 2001 10:37 am
Location: Milky way

Re: an item with same key already added

Post 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).
Melluish
PacMan
PacMan
Posts: 7
Joined: Thu Jun 27, 2019 11:06 pm

Re: an item with same key already added

Post by Melluish »

Sure, here we go.
Attachments
IBM - PC compatible - Datfile (17435) (2019-04-03 13-07-38).zip
(4.04 MiB) Downloaded 540 times
User avatar
Wanderer
Board master
Board master
Posts: 805
Joined: Wed Oct 03, 2001 10:37 am
Location: Milky way

Re: an item with same key already added

Post 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...
Melluish
PacMan
PacMan
Posts: 7
Joined: Thu Jun 27, 2019 11:06 pm

Re: an item with same key already added

Post 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.
Attachments
pc-ls.txt.zip
(2.95 KiB) Downloaded 530 times
romcenter_xml.zip
(7.9 KiB) Downloaded 513 times
Melluish
PacMan
PacMan
Posts: 7
Joined: Thu Jun 27, 2019 11:06 pm

Re: an item with same key already added

Post 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.
User avatar
Wanderer
Board master
Board master
Posts: 805
Joined: Wed Oct 03, 2001 10:37 am
Location: Milky way

Re: an item with same key already added

Post 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...
Melluish
PacMan
PacMan
Posts: 7
Joined: Thu Jun 27, 2019 11:06 pm

Re: an item with same key already added

Post 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.
User avatar
Wanderer
Board master
Board master
Posts: 805
Joined: Wed Oct 03, 2001 10:37 am
Location: Milky way

Re: an item with same key already added

Post 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...
Melluish
PacMan
PacMan
Posts: 7
Joined: Thu Jun 27, 2019 11:06 pm

Re: an item with same key already added

Post 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.
Melluish
PacMan
PacMan
Posts: 7
Joined: Thu Jun 27, 2019 11:06 pm

Re: an item with same key already added

Post 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.
bototin
PacMan
PacMan
Posts: 9
Joined: Thu Jun 07, 2012 2:19 am

Re: an item with same key already added

Post by bototin »

yes, same here tried adding rom folder path the error pops up
User avatar
Wanderer
Board master
Board master
Posts: 805
Joined: Wed Oct 03, 2001 10:37 am
Location: Milky way

Re: an item with same key already added

Post 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...
bototin
PacMan
PacMan
Posts: 9
Joined: Thu Jun 07, 2012 2:19 am

Re: an item with same key already added

Post by bototin »

same issue the link version that you gave
User avatar
Wanderer
Board master
Board master
Posts: 805
Joined: Wed Oct 03, 2001 10:37 am
Location: Milky way

Re: an item with same key already added

Post 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?
bototin
PacMan
PacMan
Posts: 9
Joined: Thu Jun 07, 2012 2:19 am

Re: an item with same key already added

Post by bototin »

yes same issue with Melluish
User avatar
Wanderer
Board master
Board master
Posts: 805
Joined: Wed Oct 03, 2001 10:37 am
Location: Milky way

Re: an item with same key already added

Post 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.
bototin
PacMan
PacMan
Posts: 9
Joined: Thu Jun 07, 2012 2:19 am

Re: an item with same key already added

Post by bototin »

nope, I'm just using my local pc on windows
User avatar
Wanderer
Board master
Board master
Posts: 805
Joined: Wed Oct 03, 2001 10:37 am
Location: Milky way

Re: an item with same key already added

Post 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?
GustavoZ
Pong
Pong
Posts: 1
Joined: Fri Aug 30, 2024 2:16 pm

"An item with the same key has already been added""

Post 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 ? :toobad:
Post Reply