Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

intermittent "index out of range" on preview

See original GitHub issue

(keepass v2.45, this plugin v1.2.0)

I see the following error in the preview window, but only intermittently - I either see a list of passwords or this error.

Failed to generate a password.
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

If I use the plugin as the default password generator, this just results in intermittently not getting a password at all in the password field.

The previous version I used (I think it was 1.1.2 but I’m not certain) would, with some more restrictive settings, give a list with some entries and others with just an error text along the lines of “could not generate” (sorry again, I don’t remember the exact text). With this version it’s more all or nothing.

If the new approach is by design, I think the previous approach was preferable.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

ligoscommented, Jun 8, 2020

Fixed in Version 1.2.1

Thanks again for your help, @AGBrown

ligoscommented, May 29, 2020

Just an FYI, I’m swamped at work at the moment, so might be a week or so before I have enough time to fix this and do an update.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting "Out of range error" in a preview SwiftUI
I'm learning SwiftUI and are mapping my app, but I'm having an error with one of the previews. Hope you can help me...
Read more >
Index out of range, SwiftUI | Apple Developer Forums
As you might notice, in the previews I set when to When.Year, that is crashing the app because the array valoriAsseX is bigger...
Read more >
IndexOutOfRangeException Class (System)
The exception that is thrown when an attempt is made to access an element of an array or collection with an index that...
Read more >
Array elements intermittently showing "<Index Out Of ...
I will try to reproduce on the Win10 pc. According to Process Explorer, this instance has been running since 10:34:27 AM 5/24/2021.
Read more >
List Index Out of Range – Python Error [Solved]
This error generally occurs when we try to access an item in a list by using an index that doesn't exist within the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found