kamyk2000 Posted October 16, 2015 Author Share Posted October 16, 2015 So I updated to the latest version today, and everything seemed ok at first. After a while though it started crashing when I was updating various games to completed status. Then I noticed it had somehow lost all of the boxart for all of my NES games which I had to redownload for every NES game. Launchbox kept occasionally crashing. Then I added a few new fields. I added Frontends to platforms and to genre, and I added PC client to Status or whatever it is that lists "Imported PC game" etc. Launchbox crashed again, and now it won't load at all and keeps giving me the following error message: System.ArgumentException: An item with the same key has already been added. at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at LaunchBox.Data.DataManager.Load() at LaunchBox.Data.DataManager..ctor(Boolean bare) at LaunchBox.Program.Main(String[] args) Don't know what to do here since even if there is a bugfix I can't launch it to update. If I have to clean install I will be a very unhappy person as I have over 1000 games I've added to Launchbox and have manually edited quite a number of the entries over time. Quote Link to comment Share on other sites More sharing options...
Jason Carr Posted October 17, 2015 Share Posted October 17, 2015 Hi @kamyk2000, that's pretty scary. Doesn't make much sense. The images are all stored only on disk, so the only way they would disappear is if somehow they all got deleted. Did you do an image cleanup or anything like that? There are backups of your LaunchBox.xml in the Backups folder, assuming they haven't all gotten corrupted. I'm sure if the new version is this busted, we'll be getting reports left and right. I have been getting reports of a painting bug but it's not corrupting installations. Not to blame your hardware, but it is possible that this could be a data corruption issue with your hard drive, though I can't say for sure. Quote Link to comment Share on other sites More sharing options...
Jason Carr Posted October 17, 2015 Share Posted October 17, 2015 The first thing to try I guess is restoring backup XML files from your Backups folder. Also, if you would, zip up your Backups folder and email it to me at jasondavidcarr at gmail dot com and I'll look at it to see if I can figure out what happened. Quote Link to comment Share on other sites More sharing options...
kamyk2000 Posted October 17, 2015 Author Share Posted October 17, 2015 Using the most recent xml backup Launchbox launched then crashed and gave me this: System.ArgumentException: Parameter is not valid. at System.Drawing.Image.get_RawFormat() at System.Drawing.Graphics.IgnoreMetafileErrors(Image image, Int32& errorStatus) at System.Drawing.Graphics.DrawImage(Image image, Int32 x, Int32 y) at System.Drawing.Graphics.DrawImage(Image image, Point point) at LaunchBox.Drawing.GameDetailsGui.Paint(Graphics g, Int32 yOffset, Boolean controlFocused) at LaunchBox.Controls.GameDetailsControl.OnPaint(PaintEventArgs e) at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer) at System.Windows.Forms.Control.WmPaint(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) I also tried the earliest backup first and Launchbox launched but I didn't leave it running for any significant length of time before trying the last backup instead. The file I uploaded is a .7zip btw. I had to rename it to .zip because apparently the forum doesn't like .7zip or .rar files. It should handle just like a .zip from my understanding though. If not, just change the extension back to 7zip. Edit: No, I didn't do an image cleanup or anything of the sort. However a month or so ago I did change the platform on all of them to Nintendo NES from the original Nintendo Entertainment System because the default choices you have for platform names are a bit lengthy to fit nicely with a 3 tile wide game list with details pane open on my computer. I have a 5:4 ratio of 1280x1024. I deliberately chose a 4:3 24' monitor because I don't like widescreen and neither do (does?) most of my old PC games. As you can see, I've added my own custom labels before (Pc-Not Installed), and never had the images disappear from that category. However, regarding the NES images disappearing I'd bet it's because I moved them all to a new category en-masse using the group edit function, because I also noticed that my Nintendo NES category did not have a clear logo or any other logo in bigbox mode until I deliberately added one to the proper image subfolder via Tools>Edit platform. In any event I'm far more interested in why Launchbox keeps crashing on me. More edit:In case you were wondering Castlevania III is on there twice because it's 2 different roms, and I am adding pc games that are not installed by using a placeholder file for the .exe (O.k. I think I'm finally done editing my post, lol). Quote Link to comment Share on other sites More sharing options...
kamyk2000 Posted October 17, 2015 Author Share Posted October 17, 2015 Sorry for double posting. Tired of editing. O.k. So the image thing apppaears to be more of an issue than I thought. I was scrolling through my pc games list and all of a sudden the images for Warcraft II Battlenet edition went poof from the database too. I am currently having to redownload that as well now. My HD is in good health and I have a HD monitoring program telling me so. This seems to be related to the image based crash I posted previously. Every so often Launchbox is trying to get an image and not finding it for some reason and crashing when it can't show it. Like every so often when it reads an image it's deleting it instead or something. Or forgetting it already has it. Quote Link to comment Share on other sites More sharing options...
Jason Carr Posted October 17, 2015 Share Posted October 17, 2015 Hmm...have you tried refreshing the cache with Tools > Refresh All Images? Quote Link to comment Share on other sites More sharing options...
Jason Carr Posted October 17, 2015 Share Posted October 17, 2015 That error I've hopefully fixed with the latest beta. However, the error should be completely unrelated to disappearing images; really that shouldn't even be possible, so I'm baffled as to why the images are disappearing. However, I'm wondering if the cache is getting messed up. Quote Link to comment Share on other sites More sharing options...
Jason Carr Posted October 17, 2015 Share Posted October 17, 2015 Sorry, I missed part of your post. I will play with the batch edit to see if the images disappear. Quote Link to comment Share on other sites More sharing options...
kamyk2000 Posted October 17, 2015 Author Share Posted October 17, 2015 Thank you. I'm still more concerned with why my database went PFFT though... Here is the specific launchbox.xml it kept crashing on (again a 7zip renamed to zip) Quote Link to comment Share on other sites More sharing options...
Jason Carr Posted October 17, 2015 Share Posted October 17, 2015 There are instances where a LaunchBox crash (a hard crash/freeze) can cause XML corruption, which is one of the reasons for the backups. I'm guessing what happened is that a glitch with 4.3 caused a freeze and resulted in a corrupt LaunchBox.xml file. It doesn't happen often but it does happen. I do have an idea to fix it that is on my list. Are you able to get it to happen again? Quote Link to comment Share on other sites More sharing options...
kamyk2000 Posted October 17, 2015 Author Share Posted October 17, 2015 If I add that .xml file back in yes. I suppose I can try to do what I was doing before and add the fields I was adding before. Give me about 10 minutes or so... Quote Link to comment Share on other sites More sharing options...
kamyk2000 Posted October 17, 2015 Author Share Posted October 17, 2015 Yes I can. System.ArgumentException: An item with the same key has already been added. at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at LaunchBox.Data.DataManager.Load() at LaunchBox.Data.DataManager..ctor(Boolean bare) at LaunchBox.Program.Main(String[] args) Step by step what I did was I added two new things to PC. BattlenetLauncher.exe from Blizzard, and GalaxyClient.exe from GOG. Then in both cases (one at a time) I edited the Platform to Emulators, and then the Status to PC Client. I also edited both seperately to reflect their respective Publishers and Developers (GOG and BLizzard). Lastly I then changed the Emulators platform to Frontends using manage platforms. Upon exiting and restarting Launchbox it gave me the error again, and I had to go back to my earliest database backup to get it to launch. It either has to do with the Publishers field, the Developers field, or renaming the platform via manage platforms. Edit:I just checked. It isn't renaming the platform via manage platforms. Edit:I also just checked putting PC Client in the status field. It isn't that either. Quote Link to comment Share on other sites More sharing options...
Jason Carr Posted October 17, 2015 Share Posted October 17, 2015 Okay, so I see what the problem is. For some reason there are two platform elements in the XML file with the same name, which is what is causing the error. I have no idea how that could have ever happened to begin with though, that's the trouble. Still researching... Quote Link to comment Share on other sites More sharing options...
kamyk2000 Posted October 17, 2015 Author Share Posted October 17, 2015 I'm afraid I can't help because I just did the same things in a different order and Launchbox didn't crash strangely enough. Quote Link to comment Share on other sites More sharing options...
Jason Carr Posted October 17, 2015 Share Posted October 17, 2015 The file in the zip file crashed for me immediately on load, before I even did anything at all. Quote Link to comment Share on other sites More sharing options...
Jason Carr Posted October 17, 2015 Share Posted October 17, 2015 Was that XML file before or after you renamed "Emulators" to "Frontends"? Quote Link to comment Share on other sites More sharing options...
kamyk2000 Posted October 17, 2015 Author Share Posted October 17, 2015 I'll keep experimenting. Edit:After I think. But see above. Quote Link to comment Share on other sites More sharing options...
Jason Carr Posted October 17, 2015 Share Posted October 17, 2015 Thanks kamyk. I just put in a safeguard, so that if it does happen, it recovers gracefully (fixes it) instead of crashing. Still not sure how it happened but I've confirmed that things work properly now even when loading the broken file. So I think we're ready for release. Quote Link to comment Share on other sites More sharing options...
kamyk2000 Posted October 17, 2015 Author Share Posted October 17, 2015 It is so nice having a dev who listens and tries to fix things. Wish all devs were as supportive. Quote Link to comment Share on other sites More sharing options...
Jason Carr Posted October 17, 2015 Share Posted October 17, 2015 I appreciate all the support from you guys, especially in situations like this. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.