tshear Posted August 19, 2023 Share Posted August 19, 2023 I am using launchbox 13.6 I am using windows 11 The error occurs when just starting launchbox. When I attempt to use the scrolling bar I get an error message. The program was running fin untill I installed the latest update. Now it just crashes after starting. It is on an external drive. The Message: The given key '5' was not present in the dictionary. ( It says 4 sometimes.) App: LaunchBox Version: 13.6 Theme: Default Type: System.Collections.Generic.KeyNotFoundException Site: Void ThrowKeyNotFoundException[T](T) Source: System.Private.CoreLib at Unbroken.LaunchBox.Windows.Desktop.VirtualizingTilePanel.ArrangeOverride(Size finalSize) at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect) at System.Windows.UIElement.Arrange(Rect finalRect) at System.Windows.ContextLayoutManager.UpdateLayout() at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg) at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget) at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) Recent Log: 6:48:05 PM Exception Quote Link to comment Share on other sites More sharing options...
tshear Posted August 19, 2023 Author Share Posted August 19, 2023 16 hours ago, tshear said: The given key '5' was not present in the dictionary. The error message "The given key '5' was not present in the dictionary" itself doesn't inherently depend on the operating system version (Windows 10 vs. Windows 11). This error is typically related to how you're working with dictionaries in your Python code. It's more likely that there are differences in your code, environment, or data that are causing this error to appear on one system (Windows 11) and not the other (Windows 10). Here are a few reasons why you might be encountering this difference: 1. **Code or Data Differences:** If the same code is executed on both Windows 10 and Windows 11, but you're getting different results, there might be differences in the data being used or in the environment itself. Double-check that the dictionaries you're working with on both systems have the expected keys and values. 2. **Python Version:** Make sure that you're using the same version of Python on both systems. Python code can behave differently between different versions due to changes in language features or bug fixes. 3. **External Dependencies:** If your code relies on external packages or libraries, there might be differences in how those libraries behave on different operating systems. Verify that you're using the same versions of any libraries across both systems. 4. **User Permissions:** If your code involves file access or system resources, differences in user permissions on the two systems could lead to different behavior. 5. **Operating System Specifics:** While the error itself is not directly related to the operating system, there might be subtle differences in how Python interacts with the operating system's internals, which could impact the behavior of your code. 6. **Configuration:** If your code interacts with system settings or configuration files, differences in those settings between Windows 10 and Windows 11 could lead to different outcomes. In order to narrow down the cause of the discrepancy, you'll need to carefully compare the code, data, environment (Python version, libraries, etc.), and any other relevant factors between your Windows 10 and Windows 11 systems. If you're still unable to identify the cause, providing more specific details about your code and the context in which this error is occurring would be helpful for further assistance. Chat gpt thinks your code is crap. Quote Link to comment Share on other sites More sharing options...
Guest Posted August 19, 2023 Share Posted August 19, 2023 (edited) 2 hours ago, tshear said: The error message "The given key '5' was not present in the dictionary" itself doesn't inherently depend on the operating system version (Windows 10 vs. Windows 11). This error is typically related to how you're working with dictionaries in your Python code. It's more likely that there are differences in your code, environment, or data that are causing this error to appear on one system (Windows 11) and not the other (Windows 10). Here are a few reasons why you might be encountering this difference: 1. **Code or Data Differences:** If the same code is executed on both Windows 10 and Windows 11, but you're getting different results, there might be differences in the data being used or in the environment itself. Double-check that the dictionaries you're working with on both systems have the expected keys and values. 2. **Python Version:** Make sure that you're using the same version of Python on both systems. Python code can behave differently between different versions due to changes in language features or bug fixes. 3. **External Dependencies:** If your code relies on external packages or libraries, there might be differences in how those libraries behave on different operating systems. Verify that you're using the same versions of any libraries across both systems. 4. **User Permissions:** If your code involves file access or system resources, differences in user permissions on the two systems could lead to different behavior. 5. **Operating System Specifics:** While the error itself is not directly related to the operating system, there might be subtle differences in how Python interacts with the operating system's internals, which could impact the behavior of your code. 6. **Configuration:** If your code interacts with system settings or configuration files, differences in those settings between Windows 10 and Windows 11 could lead to different outcomes. In order to narrow down the cause of the discrepancy, you'll need to carefully compare the code, data, environment (Python version, libraries, etc.), and any other relevant factors between your Windows 10 and Windows 11 systems. If you're still unable to identify the cause, providing more specific details about your code and the context in which this error is occurring would be helpful for further assistance. Chat gpt thinks your code is crap. I'm pretty sure lb is not coded in Python. Guess that's what you get for asking a AI robot about something you don't understand at all. Edited August 19, 2023 by KingSlayer420 Quote Link to comment Share on other sites More sharing options...
neil9000 Posted August 19, 2023 Share Posted August 19, 2023 1 minute ago, KingSlayer420 said: I'm pretty sure lb is not coded in Python. Guess that's what you get for asking a AI robot about something you don't understand at all. 100% correct, it's C#. Quote Link to comment Share on other sites More sharing options...
marcel_knotter Posted August 20, 2023 Share Posted August 20, 2023 I have the same error and error code. It was a fresh install. It started ok but scrolling will give about 20 errors an then it hangs Quote Link to comment Share on other sites More sharing options...
tshear Posted August 21, 2023 Author Share Posted August 21, 2023 Thanks for the reply Marcel, I was feeling like the lone ranger. I was thinking it was something else but it seems to be a problem possibly with an update to windows 11 perhaps, as all of my computers/laptops using windows 10 seem to have no problem with the new update. Quote Link to comment Share on other sites More sharing options...
tshear Posted August 21, 2023 Author Share Posted August 21, 2023 On 8/19/2023 at 1:45 PM, KingSlayer420 said: I'm pretty sure lb is not coded in Python. Guess that's what you get for asking a AI robot about something you don't understand at all. Thanks for the useless reply. Quote Link to comment Share on other sites More sharing options...
Guest Posted August 21, 2023 Share Posted August 21, 2023 (edited) 14 minutes ago, tshear said: Thanks for the useless reply. I could say the same thing to you. If there are bugs in the newest version, the best way to not get help is to write a post based off a AI response and say the code is crap. Edited August 21, 2023 by KingSlayer420 Quote Link to comment Share on other sites More sharing options...
tshear Posted August 21, 2023 Author Share Posted August 21, 2023 14 minutes ago, KingSlayer420 said: I could say the same thing to you. If there are bugs in the newest version, the best way to not get help is to write a post based off a AI response and say the code is crap. Well through no fault of my own, I guess I'll just have to wait until the bug gets fixed that completely shuts the program down on the system I intended it for. Quote Link to comment Share on other sites More sharing options...
tshear Posted August 21, 2023 Author Share Posted August 21, 2023 48 minutes ago, KingSlayer420 said: I could say the same thing to you. If there are bugs in the newest version, the best way to not get help is to write a post based off a AI response and say the code is crap. Well through no fault of my own, I guess I'll just have to wait until the bug gets fixed that completely shuts the program down on the system I intended it for. Quote Link to comment Share on other sites More sharing options...
marcel_knotter Posted August 21, 2023 Share Posted August 21, 2023 i will make a video about it and send it to Jason or one of his colleagues there can always go something wrong in programming. if you try to improve code/make it run faster, there could be unforseen problems. it is not that it is cappy code or something. it is an awesome piece of programming. i will try both my arcade cabinet and the digital slot machine. both are running the same version, if they both fail than we know that it is not system independend. Quote Link to comment Share on other sites More sharing options...
marcel_knotter Posted August 21, 2023 Share Posted August 21, 2023 please try if this helps for now Quote Link to comment Share on other sites More sharing options...
Retro808 Posted August 21, 2023 Share Posted August 21, 2023 6 hours ago, tshear said: Well through no fault of my own, I guess I'll just have to wait until the bug gets fixed that completely shuts the program down on the system I intended it for. Can you try what the other user posted in his video and report. The best thing to do when you have issues is just report it, provide any errors you get, advise of exact steps, and provide any system specs. We have only 2 devs and they typically are not on over the weekend. A little patience goes a long way. We know you purchased the program and expect it to work, so do the devs, but being crass in your posts is not helpful. In @marcel_knotter video I see he is using a translated version of LB. Perhaps something going on related to that. @tshear are you using a translated language version? Quote Link to comment Share on other sites More sharing options...
C-Beats Posted August 21, 2023 Share Posted August 21, 2023 This error is related to the arrange by setting you are using. If you change to title for now you shouldn't have that error. We had it corrected in beta, but I'm wondering (like Retro808) if this is occurring because of a translation/culture issue. What language are you two running in LB? 1 Quote Link to comment Share on other sites More sharing options...
tshear Posted August 21, 2023 Author Share Posted August 21, 2023 1 hour ago, Retro808 said: Can you try what the other user posted in his video and report. The best thing to do when you have issues is just report it, provide any errors you get, advise of exact steps, and provide any system specs. We have only 2 devs and they typically are not on over the weekend. A little patience goes a long way. We know you purchased the program and expect it to work, so do the devs, but being crass in your posts is not helpful. In @marcel_knotter video I see he is using a translated version of LB. Perhaps something going on related to that. @tshear are you using a translated language version? It's possible it's been corrupted in some way. I installed a fresh version on a drive for test purposes and the error was not there. It's odd it (the updated version) works on Windows 10 but not 11. I tried using the ai with the information that the programming was in c# and it gave a similar answer to the one I got before. I ran it in safe mode and the error was still there. It would seem that the update would find errors and clear them during install. It's a nice program, but I just hope you can understand my frustration. I will be getting a larger drive soon anyway and will carefully install everything again. Sorry for my crass attitude... Sometimes problems are a good thing...there is something to learn. Quote Link to comment Share on other sites More sharing options...
tshear Posted August 22, 2023 Author Share Posted August 22, 2023 On 8/21/2023 at 8:07 AM, C-Beats said: This error is related to the arrange by setting you are using. If you change to title for now you shouldn't have that error. We had it corrected in beta, but I'm wondering (like Retro808) if this is occurring because of a translation/culture issue. What language are you two running in LB? I am using english as far as I know. After testing further I noticed that the error is only occuring only on one computer (a Windows 11 system). The others are Windows 10 and 11. I checked all my drivers and re-installed windows but to no good effect. Its a new mini computer and my drive is new also. The kicker is that the graphics card on the system I want to use is the best one of the bunch as far as any computers are concerned. It seems to be a hardware issue or perhaps some system files are corrupted??? Its a crazy problem for sure... Quote Link to comment Share on other sites More sharing options...
tshear Posted August 22, 2023 Author Share Posted August 22, 2023 14 minutes ago, tshear said: I am using english as far as I know. After testing further I noticed that the error is only occuring only on one computer (a Windows 11 system). The others are Windows 10 and 11. I checked all my drivers and re-installed windows but to no good effect. Its a new mini computer and my drive is new also. The kicker is that the graphics card on the system I want to use is the best one of the bunch as far as any computers are concerned. It seems to be a hardware issue or perhaps some system files are corrupted??? Its a crazy problem for sure... It did stop crashing after I changed it to select by title...Thanks! I would say by taking a wild guess now that perhaps my system files or your program dependencies on my computer (C# windows files?) are the culprit...? Quote Link to comment Share on other sites More sharing options...
C-Beats Posted August 22, 2023 Share Posted August 22, 2023 LLM's can be useful tools but are FAR from perfect and struggle with many tasks, using them as your sole source of information as to what is occurring is pretty reckless. As of right now that error is caused by the logic used to determine where the separators should appear within the view when using an Arrange By setting that utilizes them. Could you answer the following for me so that I can attempt to more closely recreate what you are seeing and attempt to get it corrected: 1. What arrange by setting are you using when you see this happen? 2. Does it happen with any arrange by setting with a separation label, or just the one? 3. How many items are in the filter you currently have selected? In Default theme this string is located at the top of the window and will say "Displaying XX of XX Games" (or something similar). I need the first number. 4. How many boxes are in a row of your grid currently? 5. Does changing the box size change the behavior you are seeing? Quote Link to comment Share on other sites More sharing options...
waldo4 Posted August 23, 2023 Share Posted August 23, 2023 (edited) I have the same issue on launchbox on my arcade cab (key 5 not present). Tried two different computers (one a lightweight, the other a gaming rig), totally fresh installs (purely default settings across the board, imported 250 mame roms is the full extent of the current game list), computer isn't the problem. Scrolling the games list is an insta-crash. Maybe it doesn't like forced 4:3 aspect ratio on a portrait monitor? Bigbox works fine, but its a pain for playlist management compared to launchbox. Is there a place to get an older working rev of launchbox? Edited August 23, 2023 by waldo4 Quote Link to comment Share on other sites More sharing options...
marcel_knotter Posted August 23, 2023 Share Posted August 23, 2023 @waldo4 please try the temporarly method from my video, i hope it helps 1 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.