Giter VIP home page Giter VIP logo

turbokrist's People

Contributors

dmarcuse avatar lemmmy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

turbokrist's Issues

JSONObject["address"] not found when attempting to start miner

After struggling to build turbokrist (due to a folly of my own), I finally got it to build. I followed the instructions, and everything was going fine until I tried to actually mine. Despite confirming that the address I was putting was correct, I kept getting that error despite trying new/different addresses.

The command I used, and the output, is as follows:

C:\Users\Moondancer\Krist\turbokrist\turbokrist-cli\build\libs>java -jar turbokrist-cli.jar -a --host kzwow91ylm -w 1072069736:4096
Exception in thread "main" org.json.JSONException: JSONObject["address"] not found.
        at org.json.JSONObject.get(JSONObject.java:471)
        at org.json.JSONObject.getJSONObject(JSONObject.java:636)
        at me.lignum.jkrist.Krist.getAddress(Krist.java:80)
        at me.apemanzilla.krist.turbokrist.MinerOptions.(MinerOptions.java:31)
        at me.apemanzilla.krist.turbokrist.cli.Launcher.main(Launcher.java:108)

OpenCL files fail to compile on OS X

com.nativelibs4java.opencl.CLBuildException: Compilation failure :  (devices: [Iris Pro (Apple)])
<program source>:68:6: error: no previous prototype for function 'digest'
void digest(byte* data, uint inputLen, byte* hash) {
     ^
<program source>:165:6: error: no previous prototype for function 'hashToLong'
long hashToLong(byte* hash) {
     ^
<program source>:170:6: error: no previous prototype for function 'longToHex'
void longToHex(long in, byte* hex, int offset) {
     ^
<program source>:243:9: error: comparison of integers of different signs: 'int' and 'unsigned long'
        if (id < sizeof(K)) {
     ~~ ^ ~~~~~~~~~

Occurs during the :test phase of the build.

Alienware 17 2xGPU

I tried everything for a week, no success to make it run

Windows 10 64 bit

Intel HD Graphics 530
Nvidia GTX 1080

latest java
latest SDK java
latest nvidia drivers
got CUDA

this is the error I get all the time:

https://pastebin.com/QT9yjgVS

Problem while building

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':compileJava'.
> Configuration with name 'default' not found.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 4.895 secs

If you need the total stack trace please tell me, it's quite a bit.

Invalid solution spam

Seeing as this bug has persisted from the original version of the Java portion of the code, I'd imagine it's a bug with the OpenCL mining kernel.

Miner won't start on krist_2.0

I'm having some trouble getting the miner to run. Whenever I start it, it just gets stuck on "Starting miner...". This only seems to happen on the krist_2.0 branch as of today, as it worked fine yesterday (same commit, though?).

This is the full command line I'm using:
java -jar turbokrist-cli.jar -h kre3w0i79j -w -13198598:2097152 -a

I'm running this on Xubuntu 15.10.

Trouble with compiling on Windows

:KristAPI:processResources UP-TO-DATE
:KristAPI:classes
:KristAPI:jar
:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.6
1 warning
:processResources
:classes
:jar
:assemble
:compileTestJava

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all dependencies for configuration ':testCompile'.
> Could not resolve junit:junit:4.12.
  Required by:
      :turbokrist:unspecified
   > Could not resolve junit:junit:4.12.
      > Could not parse Ivy file file:/C:/Users/justy/.gradle/caches/modules-2/metadata-2.16/descriptors/junit/junit/4.12/4471c3b2f5ea2d40ffaa8b3948cdbacd/ivy.xml
         > Content is not allowed in prolog.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 36.953 secs```

Trouble with compiling on Linux

Not sure if it's a bug or I'm being silly...

:test

me.apemanzilla.jclminer.tests.TestCLHashing > testHashing_digest FAILED
    java.lang.ExceptionInInitializerError
        Caused by: com.nativelibs4java.opencl.CLException
    java.lang.NullPointerException

me.apemanzilla.jclminer.tests.TestCLConstants > testConstant_K FAILED
    java.lang.NoClassDefFoundError
    java.lang.NullPointerException

me.apemanzilla.jclminer.tests.TestCLMacros > testMacro_PAD FAILED
    java.lang.NoClassDefFoundError
    java.lang.NullPointerException

me.apemanzilla.jclminer.tests.TestCLMacros > testMacro_RR FAILED
    java.lang.NoClassDefFoundError
    java.lang.NullPointerException

me.apemanzilla.jclminer.tests.TestCLMining > testMining_hashToLong FAILED
    java.lang.NoClassDefFoundError
    java.lang.NullPointerException

Dunno if this is intended, but it doesn't build the CLI, which is a problem.
Unless you're supposed to build it manually, in which case I get this:

Circular dependency between the following tasks:
:classes
\--- :compileJava
     \--- :jar
          \--- :classes (*)

(*) - details omitted (listed previously)

Performance hit when launched from bash script instead of terminal

I'm running turbokrist on Ubuntu 16.04, my laptop has a GT650m that is capable of about 33-35MH/s.

The startup command I'm using is java -jar turbokrist-cli.jar -h kmdni3p1au -a -w 069500862:131072. Oracle Java 8u101 is installed from the Webupd8 PPA.

When run from the command line, turbokrist will peg one core of my i7 3630QM to 100% and have two other cores hover around 25-30%. I get the full 33-35MH/s that I expect.

However, if the above Java command is put into a bash script called miner.sh, and run from the Linux terminal with ./miner.sh, only one CPU core is used. The rest remain idle, I hear an awful coil whine sound emanating from my laptop, and my hash rate drops to about 12-15MH/s.

This may be a Java bug and not related to turbokrist, but I run fairly heavy Minecraft servers on this machine regularly and they have no core locks or performance issues when running from a bash script instead of the terminal.

Build or Mining wiki pages out of date?

Description
Ran gradlew.bat build on Windows 10 and did not get build/libs/turbokrist-cli.jar got build/libs/turbokrist.jar which did not work with the Mining wiki page.

Expected Behavior

Running gradlew.bat build produces build/libs/turbokrist-cli.jar as described in the Building page of the wiki

Steps to reproduce

Follow instructions on the wiki.

Other Information

Hardware info

Off topic, you may want to look at this: https://help.github.com/articles/creating-an-issue-template-for-your-repository/

turbokrist stops mining after encountering a 429 Too Many Requests error.

Description

Turbokrist stops mining if it has submitted too many rejected solutions too quickly, encountering an HTTP 429: Too Many Requests

Expected Behavior

After encountering the HTTP error, Turbokrist should have either waited for the Retry-After response header's duration and keep mining or fully crash so that a script may restart it.

Steps to reproduce

  1. Let Turbokrist run for a while
  2. Turbokrist starts submitting many rejected solutions
  3. krist.ceriat.net returns an HTTP 429: Too Many Requests
  4. Turbokrist encounters an error, and stops mining without fully crashing

Other Information

Ubuntu 16.04.2 64-bit, GeForce GTX 950M: Driver 378.13

I discovered that krist.ceriat.net returns a pair of headers, X-Ratelimit-Remaining and X-Ratelimit-Limit, that can be used to check rates and halt requests in a timeout period. Rates seem to be per minute.

Error Report / Screenshot / Other Media

turbokrist.2017-04-01.00:02:51.snip.log

How to compile on a headless Linux server?

Aaaaaaaaaaaa.......... it just won't work. OpenCL won't work with Java.

0 LD-Server ~/turbokrist ./gradlew build
:JKrist:compileJava UP-TO-DATE
:JKrist:processResources UP-TO-DATE
:JKrist:classes UP-TO-DATE
:JKrist:jar UP-TO-DATE
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:jar UP-TO-DATE
:assemble UP-TO-DATE
:compileTestJava UP-TO-DATE
:processTestResources UP-TO-DATE
:testClasses UP-TO-DATE
:test

me.apemanzilla.jclminer.tests.TestCLConstants > testConstant_K FAILED
    java.lang.ExceptionInInitializerError
        Caused by: com.nativelibs4java.opencl.CLException
    java.lang.NullPointerException

me.apemanzilla.jclminer.tests.TestCLHashing > testHashing_digest FAILED
    java.lang.NoClassDefFoundError
    java.lang.NullPointerException

me.apemanzilla.jclminer.tests.TestCLMacros > testMacro_PAD FAILED
    java.lang.NoClassDefFoundError
    java.lang.NullPointerException

me.apemanzilla.jclminer.tests.TestCLMacros > testMacro_RR FAILED
    java.lang.NoClassDefFoundError
    java.lang.NullPointerException

me.apemanzilla.jclminer.tests.TestCLMining > testMining_hashToLong FAILED
    java.lang.NoClassDefFoundError
    java.lang.NullPointerException

5 tests completed, 5 failed
:test FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':test'.
> There were failing tests. See the report at: file:///home/logandark/turbokrist/build/reports/tests/index.html

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 3.356 secs

I have no idea how java development works. Can't you just provide a prebuilt jar?

Gradlew Build: tools.jar not found

I have attempted building this on windows 10 and ubuntu 14 and i have had no luck. the build fails just because of this tools.jar. This is a build failgue and i can't do a thing. I don't know how i got the error i just get it.

Could not find tools.jar

C:\Users\X\OneDrive\Documenten\GitHub\turbokrist>gradlew build
:JKrist:compileJava FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':JKrist:compileJava'.

Could not find tools.jar

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 6.004 secs

OpenCL doesn't work on macOS

Before you close this as a duplicate of #9, my issue is different.

My CPU and GPUs support OpenCL:

Device Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz supports OpenCL 1.2
Device Iris Pro supports OpenCL 1.2
Device AMD Radeon R9 M370X Compute Engine supports OpenCL 1.2

So, let's try to build turbokrist:

0 LoganDark ~ git clone --recursive https://github.com/apemanzilla/turbokrist
Cloning into 'turbokrist'...
remote: Counting objects: 579, done.
remote: Total 579 (delta 0), reused 0 (delta 0), pack-reused 579
Receiving objects: 100% (579/579), 132.06 KiB | 0 bytes/s, done.
Resolving deltas: 100% (176/176), done.
Checking connectivity... done.
Submodule 'JKrist' (https://github.com/Lignumm/JKrist) registered for path 'JKrist'
Cloning into '/Users/LoganDark/turbokrist/JKrist'...
cdSubmodule path 'JKrist': checked out 'f0f77f0e1b51e60f2c87d3889d8a760e71725315'
0 LoganDark ~ cd turbokrist
0 LoganDark ~/turbokrist ./gradlew build
Download https://repo1.maven.org/maven2/org/json/json/20160212/json-20160212.pom
Download https://repo1.maven.org/maven2/org/sonatype/oss/oss-parent/9/oss-parent-9.pom
Download https://repo1.maven.org/maven2/org/json/json/20160212/json-20160212.jar
:JKrist:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.7
1 warning
:JKrist:processResources UP-TO-DATE
:JKrist:classes
:JKrist:jar
:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.6
1 warning
:processResources
:classes
:jar
:assemble
:compileTestJava
warning: [options] bootstrap class path not set in conjunction with -source 1.6
1 warning
:processTestResources
:testClasses
:test

me.apemanzilla.jclminer.tests.TestCLConstants > testConstant_K FAILED
    org.bridj.SignalError
    java.lang.NullPointerException

me.apemanzilla.jclminer.tests.TestCLMacros > testMacro_PAD FAILED
    java.lang.NoClassDefFoundError
    java.lang.NullPointerException

me.apemanzilla.jclminer.tests.TestCLMacros > testMacro_RR FAILED
    java.lang.NoClassDefFoundError
    java.lang.NullPointerException

me.apemanzilla.jclminer.tests.TestCLHashing > testHashing_digest FAILED
    java.lang.NoClassDefFoundError
    java.lang.NullPointerException

me.apemanzilla.jclminer.tests.TestCLMining > testMining_hashToLong FAILED
    java.lang.NoClassDefFoundError
    java.lang.NullPointerException

5 tests completed, 5 failed
:test FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':test'.
> There were failing tests. See the report at: file:///Users/LoganDark/turbokrist/build/reports/tests/index.html

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 19.574 secs

It compiles/builds fine. It's the tests that fail.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.