Jump to content
LaunchBox Community Forums

Launchbox crashing before even starting.


kamyk2000

Recommended Posts

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. Frown
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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. Image1.jpg 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).
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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?
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...