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

Java exception #71

Closed
zodi1337 opened this issue May 31, 2018 · 2 comments
Closed

Java exception #71

zodi1337 opened this issue May 31, 2018 · 2 comments

Comments

@zodi1337
Copy link

Hi there!
I'm new to jminer and currently i'm like to test the poc1 / poc2 feature.
I created 3 testplotfiles (each 100GB / poc1), and 1 testplotfile (100GB / poc2), stored in different directories (c:\burst\plots\poc1 and c:\burst\plots\poc2).
Actually i tried to start jminer just with plotPaths=C:/burst/plots/poc1 configured.
Configfile looks good to me but jminer throws an exception:

I attached also my jminer.properties
jminer-properties.zip

All is done on a:
intel i7-4790K, Nvidia GTX970, 16GB RAM, Win10pro 64bit

c:\jminer>java -jar -d64 -XX:+UseG1GC c:\jminer\burstcoin-jminer-0.5.2-RELEASE.jar
17:10:21.983 [main] INFO burstcoin.jminer.JMinerApplication - Starting the engines ... please wait!
2018-05-31 17:10:22.812  INFO 10208 --- [           main] b.jminer.core.checker.util.OCLChecker    : -------------------------------------------------------
2018-05-31 17:10:22.814  INFO 10208 --- [           main] b.jminer.core.checker.util.OCLChecker    : List of system openCL platforms and devices (* = used for mining)
2018-05-31 17:10:22.814  INFO 10208 --- [           main] b.jminer.core.checker.util.OCLChecker    :
2018-05-31 17:10:22.816  INFO 10208 --- [           main] b.jminer.core.checker.util.OCLChecker    :  * PLATFORM-[0] NVIDIA CUDA - (OpenCL 1.2 CUDA 9.2.81)
2018-05-31 17:10:22.818  INFO 10208 --- [           main] b.jminer.core.checker.util.OCLChecker    :  *   DEVICE-[0] GeForce GTX 970 (4GB) - NVIDIA Corporation (OpenCL 1.2 CUDA | '397.64')
2018-05-31 17:10:22.818  INFO 10208 --- [           main] b.jminer.core.checker.util.OCLChecker    :  *          [0] work group size: '1024', computing units: '13', available 'true'
2018-05-31 17:10:22.888  INFO 10208 --- [           main] b.jminer.core.checker.util.OCLChecker    :
2018-05-31 17:10:22.888  INFO 10208 --- [           main] b.jminer.core.checker.util.OCLChecker    : (*) openCL context successfully started! (platformId: 0, deviceId: 0)
2018-05-31 17:10:22.888  INFO 10208 --- [           main] b.jminer.core.checker.util.OCLChecker    : -------------------------------------------------------
2018-05-31 17:10:23.354  INFO 10208 --- [cTaskExecutor-1] b.j.c.n.t.NetworkRequestLastWinnerTask   : Requesting mined blocks from wallet ...
2018-05-31 17:10:23.509  INFO 10208 --- [           main] burstcoin.jminer.JMinerCommandLine       : -------------------------------------------------------
2018-05-31 17:10:23.509  INFO 10208 --- [           main] burstcoin.jminer.JMinerCommandLine       :                             Burstcoin (BURST)
2018-05-31 17:10:23.516  INFO 10208 --- [           main] burstcoin.jminer.JMinerCommandLine       :             __         __   GPU assisted PoC-Miner
2018-05-31 17:10:23.516  INFO 10208 --- [           main] burstcoin.jminer.JMinerCommandLine       :            |__| _____ |__| ____   ___________
2018-05-31 17:10:23.516  INFO 10208 --- [           main] burstcoin.jminer.JMinerCommandLine       :    version |  |/     \|  |/    \_/ __ \_  __ \
2018-05-31 17:10:23.516  INFO 10208 --- [           main] burstcoin.jminer.JMinerCommandLine       :      0.5.2 |  |  Y Y  \  |   |  \  ___/|  | \/
2018-05-31 17:10:23.522  INFO 10208 --- [           main] burstcoin.jminer.JMinerCommandLine       :        /\__|  |__|_|  /__|___|  /\___  >__|
2018-05-31 17:10:23.523  INFO 10208 --- [           main] burstcoin.jminer.JMinerCommandLine       :        \______|     \/        \/     \/
2018-05-31 17:10:23.524  INFO 10208 --- [           main] burstcoin.jminer.JMinerCommandLine       :       mining engine: BURST-LUXE-RED2-G6JW-H4HG5
2018-05-31 17:10:23.524  INFO 10208 --- [           main] burstcoin.jminer.JMinerCommandLine       :      openCL checker: BURST-QHCJ-9HB5-PTGC-5Q8J9
2018-05-31 17:10:23.524  INFO 10208 --- [           main] burstcoin.jminer.JMinerCommandLine       : -------------------------------------------------------
2018-05-31 17:10:23.524  INFO 10208 --- [           main] burstcoin.jminer.JMinerCommandLine       : NOTICE:
2018-05-31 17:10:23.524  INFO 10208 --- [           main] burstcoin.jminer.JMinerCommandLine       : 1. Only use POC1 or POC2 per drive (plotPaths), mixed is not supported!
2018-05-31 17:10:23.524  INFO 10208 --- [           main] burstcoin.jminer.JMinerCommandLine       : 2. POC2 plotfiles are detected by not having 'staggersize' in filename.
2018-05-31 17:10:23.887  INFO 10208 --- [cTaskExecutor-1] b.j.c.n.t.NetworkRequestLastWinnerTask   : Total mined blocks: '0', received in '1' ms
2018-05-31 17:10:24.174  INFO 10208 --- [cTaskExecutor-2] burstcoin.jminer.JMinerCommandLine       : -------------------------------------------------------
2018-05-31 17:10:24.175  INFO 10208 --- [cTaskExecutor-2] burstcoin.jminer.JMinerCommandLine       : POOL account 'BURST-HKML-NRG6-VBRA-2F8PS', assigned miners '2856'
2018-05-31 17:10:24.175  INFO 10208 --- [cTaskExecutor-2] burstcoin.jminer.JMinerCommandLine       :      balance '116756 BURST', total mined '4437179 BURST'
2018-05-31 17:10:24.666  INFO 10208 --- [        Timer-1] burstcoin.jminer.JMinerCommandLine       : -------------------------------------------------------
2018-05-31 17:10:24.670  INFO 10208 --- [        Timer-1] burstcoin.jminer.JMinerCommandLine       : START block '496345', scoopNumber '93', capacity '322 GB'
2018-05-31 17:10:24.670  INFO 10208 --- [        Timer-1] burstcoin.jminer.JMinerCommandLine       :       targetDeadline '31536000', netDiff '482699', genSig '932c2f..'
2018-05-31 17:10:24.705  INFO 10208 --- [   readerPool-1] burstcoin.jminer.JMinerCommandLine       : dl '542508756' > '31536000' skipped
2018-05-31 17:10:24.710  INFO 10208 --- [   readerPool-1] burstcoin.jminer.JMinerCommandLine       : 34% done (0TB 107GB), avg.'557 MB/s'
2018-05-31 17:10:24.741  INFO 10208 --- [   readerPool-1] burstcoin.jminer.JMinerCommandLine       : 67% done (0TB 214GB), avg.'663 MB/s', eff.'819 MB/s'
Exception in thread "readerPool-1" java.lang.ArithmeticException: Division by zero
        at java.math.BigDecimal.divide(Unknown Source)
        at burstcoin.jminer.core.round.Round.getNetworkQuality(Round.java:365)
        at burstcoin.jminer.core.round.Round.onRoundFinish(Round.java:350)
        at burstcoin.jminer.core.round.Round.triggerFinishRoundEvent(Round.java:331)
        at burstcoin.jminer.core.round.Round.handleMessage(Round.java:255)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.springframework.context.event.ApplicationListenerMethodAdapter.doInvoke(ApplicationListenerMethodAdapter.java:261)
        at org.springframework.context.event.ApplicationListenerMethodAdapter.processEvent(ApplicationListenerMethodAdapter.java:180)
        at org.springframework.context.event.ApplicationListenerMethodAdapter.onApplicationEvent(ApplicationListenerMethodAdapter.java:142)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:400)
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:367)
        at burstcoin.jminer.core.checker.Checker.handleMessage(Checker.java:77)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.springframework.context.event.ApplicationListenerMethodAdapter.doInvoke(ApplicationListenerMethodAdapter.java:261)
        at org.springframework.context.event.ApplicationListenerMethodAdapter.processEvent(ApplicationListenerMethodAdapter.java:180)
        at org.springframework.context.event.ApplicationListenerMethodAdapter.onApplicationEvent(ApplicationListenerMethodAdapter.java:142)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
        at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:400)
        at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:367)
        at burstcoin.jminer.core.reader.task.ReaderLoadDriveTask.load(ReaderLoadDriveTask.java:151)
        at burstcoin.jminer.core.reader.task.ReaderLoadDriveTask.run(ReaderLoadDriveTask.java:104)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
2018-05-31 17:10:24.786  INFO 10208 --- [cTaskExecutor-4] burstcoin.jminer.JMinerCommandLine       :       winner block '496344', 'BURST-42PP-CYFP-Z8JU-CUVVP'
2018-05-31 17:22:12.730  INFO 10208 --- [        Timer-1] burstcoin.jminer.JMinerCommandLine       : -------------------------------------------------------
2018-05-31 17:22:12.736  INFO 10208 --- [        Timer-1] burstcoin.jminer.JMinerCommandLine       : START block '496346', scoopNumber '4056', capacity '322 GB'
2018-05-31 17:22:12.736  INFO 10208 --- [        Timer-1] burstcoin.jminer.JMinerCommandLine       :       targetDeadline '31536000', netDiff '436563', genSig '0e72d5..'
2018-05-31 17:22:12.818  INFO 10208 --- [   readerPool-2] burstcoin.jminer.JMinerCommandLine       : dl '797327774' > '31536000' skipped
2018-05-31 17:22:12.818  INFO 10208 --- [   readerPool-2] burstcoin.jminer.JMinerCommandLine       : 34% done (0TB 107GB), avg.'297 MB/s'
2018-05-31 17:22:12.898  INFO 10208 --- [   readerPool-2] burstcoin.jminer.JMinerCommandLine       : dl '169032977' > '31536000' skipped
2018-05-31 17:22:12.898  INFO 10208 --- [   readerPool-2] burstcoin.jminer.JMinerCommandLine       : 67% done (0TB 214GB), avg.'312 MB/s', eff.'327 MB/s'
2018-05-31 17:22:12.932 DEBUG 10208 --- [askExecutor-359] b.j.c.n.t.NetworkRequestLastWinnerTask   : lastBlock from walletServer outdated, retry-1 in 500ms
Exception in thread "readerPool-2" java.lang.ArithmeticException: Division by zero
        at java.math.BigDecimal.divide(Unknown Source)
de-luxe added a commit that referenced this issue May 31, 2018
@de-luxe
Copy link
Owner

de-luxe commented May 31, 2018

@zodi1337 Thank you for reporting! Thats distressing, uploaded a fixed version ... download 0.5.2-RELEASE again please.

@de-luxe de-luxe closed this as completed May 31, 2018
@zodi1337
Copy link
Author

Confirmed from my side that it's working now! May my tests begin ;)

This shouldn't be distressing! When someone is working there are always mistakes!
Thanks you VERY MUCH for this fast fix and your work in general!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants