HearthStats / HearthStats.net-Uploader

Auto uploader for HearthStats.net
BSD 3-Clause "New" or "Revised" License
123 stars 54 forks source link

Can't load library darwin/libCoreGraphics.dylib #431

Open iocron opened 10 years ago

iocron commented 10 years ago

Hello, i got the following error message when I start the uploader: ERROR: Unable to load library 'CoreGraphics': Native library (darwin/libCoreGraphics.dylib) not found in resource path ([file:/Applications/HearthStats.app/Contents/Java/Classes, file:/Applications/HearthStats.app/Contents/Java/HearthStatsUploader-OSX.jar]). You will need to restart HearthStats.net Uploader.

Kind regards, Sp

mtadd commented 10 years ago

I can duplicate the error with Heartstats v0.18.2-OSX on Mac OSX 10.7.5

log.txt dump follows

17:49:43.780 [ main] INFO net.hearthstats.Main - ** 17:49:43.793 [ main] INFO net.hearthstats.Main - Starting HearthStats.net Uploader 0.18.2 on OSX 17:49:43.796 [ main] INFO net.hearthstats.Main - os.name=Mac OS X 17:49:43.796 [ main] INFO net.hearthstats.Main - os.version=10.7.5 17:49:43.796 [ main] INFO net.hearthstats.Main - os.arch=x86_64 17:49:43.796 [ main] INFO net.hearthstats.Main - java.runtime.version=1.7.0_60-b19 17:49:43.796 [ main] INFO net.hearthstats.Main - java.class.path=/Applications/HearthStats.app/Contents/Java/Classes:/Applications/HearthStats.app/Contents/Java/HearthStatsUploader-OSX.jar 17:49:43.796 [ main] INFO net.hearthstats.Main - java.library.path=/Applications/HearthStats.app/Contents/MacOS 17:49:43.797 [ main] INFO net.hearthstats.Main - user.language=en 17:49:43.797 [ main] INFO net.hearthstats.Main - ** 17:49:45.636 [ main] INFO net.hearthstats.app - HearthStats.net Uploader v0.18.2-OSX 17:49:45.637 [ main] INFO net.hearthstats.app - 1 - Set your deck slots on the "Decks" tab 17:49:45.638 [ main] INFO net.hearthstats.app - 2 - Run Hearthstone in windowed or full-screen mode 17:49:45.638 [ main] INFO net.hearthstats.app - 3 - Look for event notifications in this log and bottom right of screen (windowed mode only) 17:49:45.640 [ main] INFO net.hearthstats.app - 4 - Submit feedback here (please copy and paste your log file in /Users/mtadd/Library/Application Support/HearthStatsUploader/log.txt) 17:49:45.640 [ main] INFO net.hearthstats.app - Checking for updates ... 17:49:51.769 [ main] INFO net.hearthstats.app - Latest version available: 0.18.2 17:49:51.803 [ main] INFO net.hearthstats.app - Waiting for Hearthstone ... 17:49:52.310 [Thread-1] ERROR n.h.Monitor - - exception which is not being handled: java.lang.RuntimeException: Unable to create screen capture for unity.Blizzard Entertainment.Hearthstone due to exception at net.hearthstats.osx.ProgramHelperOsx.getScreenCapture(ProgramHelperOsx.java:89) ~[HearthStatsUploader-OSX.jar:na] at net.hearthstats.Monitor._handleHearthstoneFound(Monitor.java:834) [HearthStatsUploader-OSX.jar:na] at net.hearthstats.Monitor.pollHsImpl(Monitor.java:870) [HearthStatsUploader-OSX.jar:na] at net.hearthstats.Monitor.access$900(Monitor.java:43) [HearthStatsUploader-OSX.jar:na] at net.hearthstats.Monitor$12.run(Monitor.java:1240) [HearthStatsUploader-OSX.jar:na] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_60] Caused by: java.lang.UnsatisfiedLinkError: Unable to load library 'CoreGraphics': Native library (darwin/libCoreGraphics.dylib) not found in resource path ([file:/Applications/HearthStats.app/Contents/Java/Classes, file:/Applications/HearthStats.app/Contents/Java/HearthStatsUploader-OSX.jar]) at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:271) ~[HearthStatsUploader-OSX.jar:na] at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:398) ~[HearthStatsUploader-OSX.jar:na] at com.sun.jna.Library$Handler.(Library.java:147) ~[HearthStatsUploader-OSX.jar:na] at com.sun.jna.Native.loadLibrary(Native.java:412) ~[HearthStatsUploader-OSX.jar:na] at com.sun.jna.Native.loadLibrary(Native.java:391) ~[HearthStatsUploader-OSX.jar:na] at net.hearthstats.osx.jna.CoreGraphicsLibrary.(CoreGraphicsLibrary.java:16) ~[HearthStatsUploader-OSX.jar:na] at net.hearthstats.osx.ProgramHelperOsx.findWindow(ProgramHelperOsx.java:324) ~[HearthStatsUploader-OSX.jar:na] at net.hearthstats.osx.ProgramHelperOsx.getScreenCapture(ProgramHelperOsx.java:73) ~[HearthStatsUploader-OSX.jar:na] ... 5 common frames omitted 17:49:52.313 [Thread-1] ERROR net.hearthstats.app - ERROR: Unable to load library 'CoreGraphics': Native library (darwin/libCoreGraphics.dylib) not found in resource path ([file:/Applications/HearthStats.app/Contents/Java/Classes, file:/Applications/HearthStats.app/Contents/Java/HearthStatsUploader-OSX.jar]). You will need to restart HearthStats.net Uploader. java.lang.UnsatisfiedLinkError: Unable to load library 'CoreGraphics': Native library (darwin/libCoreGraphics.dylib) not found in resource path ([file:/Applications/HearthStats.app/Contents/Java/Classes, file:/Applications/HearthStats.app/Contents/Java/HearthStatsUploader-OSX.jar]) at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:271) ~[HearthStatsUploader-OSX.jar:na] at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:398) ~[HearthStatsUploader-OSX.jar:na] at com.sun.jna.Library$Handler.(Library.java:147) ~[HearthStatsUploader-OSX.jar:na] at com.sun.jna.Native.loadLibrary(Native.java:412) ~[HearthStatsUploader-OSX.jar:na] at com.sun.jna.Native.loadLibrary(Native.java:391) ~[HearthStatsUploader-OSX.jar:na] at net.hearthstats.osx.jna.CoreGraphicsLibrary.(CoreGraphicsLibrary.java:16) ~[HearthStatsUploader-OSX.jar:na] at net.hearthstats.osx.ProgramHelperOsx.findWindow(ProgramHelperOsx.java:324) ~[HearthStatsUploader-OSX.jar:na] at net.hearthstats.osx.ProgramHelperOsx.getScreenCapture(ProgramHelperOsx.java:73) ~[HearthStatsUploader-OSX.jar:na] at net.hearthstats.Monitor._handleHearthstoneFound(Monitor.java:834) [HearthStatsUploader-OSX.jar:na] at net.hearthstats.Monitor.pollHsImpl(Monitor.java:870) [HearthStatsUploader-OSX.jar:na] at net.hearthstats.Monitor.access$900(Monitor.java:43) [HearthStatsUploader-OSX.jar:na] at net.hearthstats.Monitor$12.run(Monitor.java:1240) [HearthStatsUploader-OSX.jar:na] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_60]

mtadd commented 10 years ago

I also tried it with JRE 1.8.0_05-b13 and got the same exception.

trigun0x2 commented 10 years ago

Any update on this? @gtch

OrpheusNYC commented 10 years ago

I've gotten the same error every time since installing (and reinstalling). Update would be great.