Skip to content
This repository has been archived by the owner on Jun 10, 2020. It is now read-only.

ERROR: Coordinate out of bounds!. You will need to restart HearthStats.net Uploader. #387

Closed
jtcorth opened this issue Jun 7, 2014 · 4 comments
Labels

Comments

@jtcorth
Copy link

jtcorth commented Jun 7, 2014

Hello,

I've been having issues with the Uploader. I follow the instructions (1 - Set your deck slots on the "Decks" tab, 2 - Run Hearthstone in WINDOWED mode), but I get the error stated in the title of the thread. I couldn't find another post with the same issue, not in Google nor this page. Does anyone know what can be happening? The log file has information pasted below.

Thanks a lot in advance!

18:59:57.813 [ main] INFO net.hearthstats.Main - **********************************************************************
18:59:57.817 [ main] INFO net.hearthstats.Main - Starting HearthStats.net Uploader 0.17.5 on WINDOWS
18:59:57.819 [ main] INFO net.hearthstats.Main - os.name=Windows 8
18:59:57.819 [ main] INFO net.hearthstats.Main - os.version=6.2
18:59:57.819 [ main] INFO net.hearthstats.Main - os.arch=x86
18:59:57.819 [ main] INFO net.hearthstats.Main - java.runtime.version=1.7.0_55-b14
18:59:57.819 [ main] INFO net.hearthstats.Main - java.class.path=C:\Users\José Tomás\Desktop\HStats\HearthStats.exe;anything;uploader-0.17.5.jar;scala-library-2.11.1.jar;scala-swing_2.11-1.0.1.jar;commons-lang3-3.3.1.jar;commons-io-2.4.jar;jna-platform-4.0.0.jar;jna-4.0.0.jar;ini4j-0.5.2.jar;jai_imageio-1.1.jar;javaocr-core-1.0.jar;javaocr-plugin-awt-1.0.jar;javaocr-plugin-cluster-1.0.jar;commons-math-2.1.jar;javaocr-plugin-fir-1.0.jar;javaocr-plugin-moment-1.0.jar;javaocr-plugin-morphology-1.0.jar;json-simple-1.1.1.jar;miglayout-swing-4.2.jar;miglayout-core-4.2.jar;JGoogleAnalyticsTracker-1.2.0.jar;logback-classic-1.1.1.jar;logback-core-1.1.1.jar;slf4j-api-1.7.6.jar
18:59:57.819 [ main] INFO net.hearthstats.Main - java.library.path=C:\Program Files (x86)\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Java\jre7\bin;.
18:59:57.820 [ main] INFO net.hearthstats.Main - user.language=en
18:59:57.820 [ main] INFO net.hearthstats.Main - **********************************************************************
18:59:59.079 [ main] INFO net.hearthstats.app - HearthStats.net Uploader v0.17.5-WINDOWS
18:59:59.080 [ main] INFO net.hearthstats.app - 1 - Set your deck slots on the "Decks" tab
18:59:59.080 [ main] INFO net.hearthstats.app - 2 - Run Hearthstone in WINDOWED mode
18:59:59.080 [ main] INFO net.hearthstats.app - 3 - Look for event notifications in this log and bottom right of screen
18:59:59.082 [ main] INFO net.hearthstats.app - 4 - Submit feedback here (please copy and paste your log file in C:\Users\José Tomás\Desktop\HStats\log.txt)
18:59:59.082 [ main] INFO net.hearthstats.app - Checking for updates ...
19:00:01.215 [ main] INFO net.hearthstats.app - Latest version available: 0.17.5
19:00:01.216 [ main] INFO net.hearthstats.app - Waiting for Hearthstone (in windowed mode) ...
19:00:13.845 [Thread-3] INFO net.hearthstats.app - Hearthstone window found with process name Hearthstone.exe
19:00:14.333 [Thread-3] ERROR n.h.Monitor - - exception which is not being handled:
java.lang.ArrayIndexOutOfBoundsException: Coordinate out of bounds!
at sun.awt.image.IntegerInterleavedRaster.getDataElements(Unknown Source) ~[na:1.7.0_55]
at java.awt.image.BufferedImage.getRGB(Unknown Source) ~[na:1.7.0_55]
at net.hearthstats.analysis.ScreenAnalyser.checkForExactMatch(ScreenAnalyser.java:276) ~[HearthStats.exe:na]
at net.hearthstats.analysis.ScreenAnalyser.identifyScreen(ScreenAnalyser.java:83) ~[HearthStats.exe:na]
at net.hearthstats.analysis.HearthstoneAnalyser.analyze(HearthstoneAnalyser.java:91) ~[HearthStats.exe:na]
at net.hearthstats.Monitor._handleHearthstoneFound(Monitor.java:1067) [HearthStats.exe:na]
at net.hearthstats.Monitor.pollHsImpl(Monitor.java:1098) [HearthStats.exe:na]
at net.hearthstats.Monitor.access$1400(Monitor.java:41) [HearthStats.exe:na]
at net.hearthstats.Monitor$18.run(Monitor.java:1497) [HearthStats.exe:na]
at java.lang.Thread.run(Unknown Source) [na:1.7.0_55]
19:00:14.334 [Thread-3] ERROR net.hearthstats.app - ERROR: Coordinate out of bounds!. You will need to restart HearthStats.net Uploader.
java.lang.ArrayIndexOutOfBoundsException: Coordinate out of bounds!
at sun.awt.image.IntegerInterleavedRaster.getDataElements(Unknown Source) ~[na:1.7.0_55]
at java.awt.image.BufferedImage.getRGB(Unknown Source) ~[na:1.7.0_55]
at net.hearthstats.analysis.ScreenAnalyser.checkForExactMatch(ScreenAnalyser.java:276) ~[HearthStats.exe:na]
at net.hearthstats.analysis.ScreenAnalyser.identifyScreen(ScreenAnalyser.java:83) ~[HearthStats.exe:na]
at net.hearthstats.analysis.HearthstoneAnalyser.analyze(HearthstoneAnalyser.java:91) ~[HearthStats.exe:na]
at net.hearthstats.Monitor._handleHearthstoneFound(Monitor.java:1067) [HearthStats.exe:na]
at net.hearthstats.Monitor.pollHsImpl(Monitor.java:1098) [HearthStats.exe:na]
at net.hearthstats.Monitor.access$1400(Monitor.java:41) [HearthStats.exe:na]
at net.hearthstats.Monitor$18.run(Monitor.java:1497) [HearthStats.exe:na]
at java.lang.Thread.run(Unknown Source) [na:1.7.0_55]

@gtch gtch added the bug label Jun 8, 2014
@gtch
Copy link
Member

gtch commented Jun 8, 2014

Looks like a bug. I'm not yet sure what triggers it, but it could be because the Hearthstone window size changes during startup... it is briefly just a pixel or two wide. I should be able to stop this by adding some extra checks for small windows.

@gtch
Copy link
Member

gtch commented Jun 8, 2014

I've managed to trigger this myself so that will make it easier to fix.

13:46:03.055 [Thread-3] ERROR          n.h.Monitor -   - exception which is not being handled:
java.lang.ArrayIndexOutOfBoundsException: Coordinate out of bounds!
    at sun.awt.image.IntegerInterleavedRaster.getDataElements(Unknown Source) ~[na:1.7.0_55]
    at java.awt.image.BufferedImage.getRGB(Unknown Source) ~[na:1.7.0_55]
    at net.hearthstats.analysis.ScreenAnalyser.checkForExactMatch(ScreenAnalyser.java:276) ~[HearthStats.exe:na]
    at net.hearthstats.analysis.ScreenAnalyser.identifyScreen(ScreenAnalyser.java:83) ~[HearthStats.exe:na]
    at net.hearthstats.analysis.HearthstoneAnalyser.analyze(HearthstoneAnalyser.scala:106) ~[HearthStats.exe:na]
    at net.hearthstats.Monitor._handleHearthstoneFound(Monitor.java:1109) [HearthStats.exe:na]
    at net.hearthstats.Monitor.pollHsImpl(Monitor.java:1137) [HearthStats.exe:na]
    at net.hearthstats.Monitor.access$1400(Monitor.java:83) [HearthStats.exe:na]
    at net.hearthstats.Monitor$18.run(Monitor.java:1534) [HearthStats.exe:na]
    at java.lang.Thread.run(Unknown Source) [na:1.7.0_55]
13:46:03.056 [Thread-3] ERROR  net.hearthstats.app - ERROR: Coordinate out of bounds!. You will need to restart HearthStats.net Uploader.
java.lang.ArrayIndexOutOfBoundsException: Coordinate out of bounds!
    at sun.awt.image.IntegerInterleavedRaster.getDataElements(Unknown Source) ~[na:1.7.0_55]
    at java.awt.image.BufferedImage.getRGB(Unknown Source) ~[na:1.7.0_55]
    at net.hearthstats.analysis.ScreenAnalyser.checkForExactMatch(ScreenAnalyser.java:276) ~[HearthStats.exe:na]
    at net.hearthstats.analysis.ScreenAnalyser.identifyScreen(ScreenAnalyser.java:83) ~[HearthStats.exe:na]
    at net.hearthstats.analysis.HearthstoneAnalyser.analyze(HearthstoneAnalyser.scala:106) ~[HearthStats.exe:na]
    at net.hearthstats.Monitor._handleHearthstoneFound(Monitor.java:1109) [HearthStats.exe:na]
    at net.hearthstats.Monitor.pollHsImpl(Monitor.java:1137) [HearthStats.exe:na]
    at net.hearthstats.Monitor.access$1400(Monitor.java:83) [HearthStats.exe:na]
    at net.hearthstats.Monitor$18.run(Monitor.java:1534) [HearthStats.exe:na]
    at java.lang.Thread.run(Unknown Source) [na:1.7.0_55]

@jtcorth
Copy link
Author

jtcorth commented Jun 8, 2014

Excellent!! Great coding knowledge man. So, where should I add the pixel calculation addition?

Thanks!

@gtch
Copy link
Member

gtch commented Jun 8, 2014

The fix will be in the next release... I haven't built that yet but it will be in the next 24 hours or so. It will automatically download once you open up HearthStats Uploader, or you can get it from https://github.com/HearthStats/HearthStats.net-Uploader/releases once it's available.

@gtch gtch closed this as completed in 57c2c6f Jun 11, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants