an item with same key already added

Forum rules
No roms requests or illegal links

Post a reply

Smilies
:D :) :( :o :shock: :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen: :clap: :hum: :gnak: :lol: :super: :uh: :toobad:
View more smilies

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: an item with same key already added

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

by GustavoZ » Fri Aug 30, 2024 2:22 pm

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:

Re: an item with same key already added

by Wanderer » Sat Aug 10, 2024 10:54 am

bototin wrote: Fri Aug 09, 2024 4:14 pm nope, I'm just using my local pc on windows
Very strange...

Eric? Any ideas?

Re: an item with same key already added

by bototin » Fri Aug 09, 2024 4:14 pm

nope, I'm just using my local pc on windows

Re: an item with same key already added

by Wanderer » Fri Aug 09, 2024 7:23 am

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

by bototin » Wed Aug 07, 2024 12:30 pm

yes same issue with Melluish

Re: an item with same key already added

by Wanderer » Tue Aug 06, 2024 9:45 pm

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

by bototin » Mon Aug 05, 2024 9:48 am

same issue the link version that you gave

Re: an item with same key already added

by Wanderer » Sun Aug 04, 2024 8:24 pm

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

by bototin » Fri Aug 02, 2024 6:06 pm

yes, same here tried adding rom folder path the error pops up

Re: an item with same key already added

by Melluish » Fri Aug 02, 2024 2:47 pm

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

by Melluish » Fri Aug 02, 2024 12:11 pm

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

by Wanderer » Fri Aug 02, 2024 7:52 am

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

by Melluish » Thu Aug 01, 2024 10:58 pm

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

by Wanderer » Thu Aug 01, 2024 9:30 pm

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

by Melluish » Thu Aug 01, 2024 8:08 pm

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

by Melluish » Thu Aug 01, 2024 8:05 pm

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 433 times
romcenter_xml.zip
(7.9 KiB) Downloaded 416 times

Re: an item with same key already added

by Wanderer » Thu Aug 01, 2024 8:39 am

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

by Melluish » Wed Jul 31, 2024 12:31 pm

Sure, here we go.
Attachments
IBM - PC compatible - Datfile (17435) (2019-04-03 13-07-38).zip
(4.04 MiB) Downloaded 444 times

Re: an item with same key already added

by Wanderer » Wed Jul 31, 2024 7:58 am

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

by Wanderer » Wed Jul 31, 2024 7:57 am

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?

Re: an item with same key already added

by Melluish » 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.

Re: an item with same key already added

by bototin » Sun Jul 28, 2024 5:24 am

Re: an item with same key already added

by Wanderer » Thu Jul 25, 2024 7:09 am

I could check it. Can you post the dat here?

Re: an item with same key already added

by bototin » Wed Jul 24, 2024 5:51 am

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

by Wanderer » Tue Jul 23, 2024 11:08 am

Hi.

This looks like a datafile issue. Are you sure there is nothing duplicate in it?

an item with same key already added

by bototin » Tue Jul 23, 2024 9:59 am

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"

Top