Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Region class: waitBest hit IndexOutOfBoundsException #584

Open
thinhdnn opened this issue May 28, 2023 · 0 comments
Open

Region class: waitBest hit IndexOutOfBoundsException #584

thinhdnn opened this issue May 28, 2023 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@thinhdnn
Copy link

thinhdnn commented May 28, 2023

My cases:

  1. Bigger image is the first, and the second is the matching image. This will throw an exception.
  2. The first is the matching image, and the second is a bigger image. This will show the first image matched.

Because here. results.add((Integer) current[0], (Long) current[1]); get exception Index of outbound for case 1
Cannot add index 1 to empty list.

for (Future result : fResults) {
try {
Object[] current = (Object[]) result.get();
maxDuration = Math.max((Long) current[1], maxDuration);
results.add((Integer) current[0], (Long) current[1]);
} catch (InterruptedException e) {
e.printStackTrace();
} catch (ExecutionException e) {
e.printStackTrace();
}
}

@thinhdnn thinhdnn reopened this May 28, 2023
@thinhdnn thinhdnn changed the title waitBest hit exception if one of images to search is larger than screen image waitBest hit exception May 28, 2023
@thinhdnn thinhdnn changed the title waitBest hit exception waitBest hit IndexOutOfBoundsException May 28, 2023
@RaiMan RaiMan self-assigned this Jun 25, 2023
@RaiMan RaiMan added the bug Something isn't working label Jul 26, 2023
@RaiMan RaiMan added this to the 2.0.6 milestone Jul 26, 2023
@RaiMan RaiMan changed the title waitBest hit IndexOutOfBoundsException Region class: waitBest hit IndexOutOfBoundsException Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants