From b6b3d904ccb697587e17fc382005002db7805515 Mon Sep 17 00:00:00 2001 From: Daniel Sarfati Date: Thu, 5 Sep 2019 15:45:52 -0600 Subject: [PATCH] Updated OpenCL platforms error (#154) --- packages/desktop-app/package.json | 2 +- packages/desktop-app/src/Ethminer.ts | 8 +++----- packages/web-app/.env | 2 +- .../error-views/components/CudaErrorPage.tsx | 20 ++++++++----------- .../components/UnknownErrorPage.tsx | 7 +++++-- 5 files changed, 18 insertions(+), 21 deletions(-) diff --git a/packages/desktop-app/package.json b/packages/desktop-app/package.json index 0b4958b0e..4485a637d 100644 --- a/packages/desktop-app/package.json +++ b/packages/desktop-app/package.json @@ -1,6 +1,6 @@ { "name": "salad", - "version": "0.2.2", + "version": "0.2.3", "description": "Salad Technologies Desktop Application", "author": "Salad Technologies ", "homepage": "https://www.salad.io/", diff --git a/packages/desktop-app/src/Ethminer.ts b/packages/desktop-app/src/Ethminer.ts index 4e8554eb8..a43f9e72b 100644 --- a/packages/desktop-app/src/Ethminer.ts +++ b/packages/desktop-app/src/Ethminer.ts @@ -23,7 +23,6 @@ export class Ethminer { // Anti-Virus { error: 'is not recognized as an internal or external command', code: 314159265 }, { error: 'The system cannot find the path specified', code: 314159265 }, - { error: 'No OpenCL platforms found', code: 314159265 }, { error: 'Socket write failed', code: 314159265 }, // CUDA { error: '3221225595', code: 8675309 }, @@ -31,6 +30,7 @@ export class Ethminer { { error: 'CUDA error: Insufficient CUDA driver: 9', code: 8675309 }, { error: 'CUDA error: Insufficient CUDA driver: 7050', code: 8675309 }, { error: 'CUDA error in func', code: 8675309 }, + { error: 'No OpenCL platforms found', code: 8675309 }, // Unknown { error: 'stratum Error', code: 9999 }, { error: 'exit: 0', code: 9999 }, @@ -62,10 +62,8 @@ export class Ethminer { let platform = cuda ? '-U' : '-G' this.processName = 'ethminer.exe' - let cmd = `cd dist && cd ethminer && ${ - this.processName - } --farm-recheck 1000 ${platform} -P stratum1+tcp://0x6fF85749ffac2d3A36efA2BC916305433fA93731@eth-us-west1.nanopool.org:9999/${id}/notinuse%40salad.io` - + let cmd = `cd dist && cd ethminer && ${this.processName} --farm-recheck 1000 ${platform} -P stratum1+tcp://0x6fF85749ffac2d3A36efA2BC916305433fA93731@eth-us-west1.nanopool.org:9999/${id}/notinuse%40salad.io` + let ls = spawn(cmd, { shell: true, windowsHide: true, diff --git a/packages/web-app/.env b/packages/web-app/.env index 64f77e5fb..9398a9f55 100644 --- a/packages/web-app/.env +++ b/packages/web-app/.env @@ -7,7 +7,7 @@ REACT_APP_API_URL=https://api.salad.io/core/master/ REACT_APP_TERMS_VERSION=1.0 REACT_APP_WHATS_NEW_VERSION=2 REACT_APP_DATA_TRACKING_VERSION=1.0 -REACT_APP_VERSION=0.2.2 +REACT_APP_VERSION=0.2.3 REACT_APP_SUPPORT_URL=https://salad.io/support REACT_APP_DISCORD_URL=https://discord.gg/xcvmgQk diff --git a/packages/web-app/src/modules/error-views/components/CudaErrorPage.tsx b/packages/web-app/src/modules/error-views/components/CudaErrorPage.tsx index 91b2a8e86..cd07e28d6 100644 --- a/packages/web-app/src/modules/error-views/components/CudaErrorPage.tsx +++ b/packages/web-app/src/modules/error-views/components/CudaErrorPage.tsx @@ -22,25 +22,21 @@ export class CudaErrorPage extends Component { return (
- Just a quick warning that we’re detecting an insufficient{' '} - CUDA - version for your graphics card. This can cause major instability with Salad. We highly recommend{' '} - - downloading the latest GPU drivers{' '} - - to make sure it’s performing at tip-top shape. No dull knives in the Salad Kitchen! + We’re detecting that your GPU drivers are incompatible with Salad. In order to get chopping you will need to + update the the latest drivers. + NVIDIA Drivers + AMD Drivers
- If this issue persists, something else may be causing the problem. If so, please contact Salad Support, you - can either chat with us on Zendesk , or - join the - Discord for live help. + If this issue persists, something else may be causing the problem. If so, please contact + Salad Support, or join the + Discord for updates.
) diff --git a/packages/web-app/src/modules/error-views/components/UnknownErrorPage.tsx b/packages/web-app/src/modules/error-views/components/UnknownErrorPage.tsx index a7723549a..c00a62897 100644 --- a/packages/web-app/src/modules/error-views/components/UnknownErrorPage.tsx +++ b/packages/web-app/src/modules/error-views/components/UnknownErrorPage.tsx @@ -2,6 +2,7 @@ import React, { Component } from 'react' // Components import { ErrorPage } from '../../../components/ErrorPage' +import { ExternalLink } from '../../../components' interface Props { onCloseClicked?: () => void @@ -27,8 +28,10 @@ export class UnknownErrorPage extends Component { onSendLog={this.handleSendLogClicked} >
- We are sorry for the inconvenience. The salad miner has stopped working. Help us improve this experience and - squash this bug by sending us your logs. + We are sorry for the inconvenience, Salad doesn't seem to be working properly. If this issue persists, + something else may be causing the problem. If so, please contact + Salad Support, join the + Discord for updates and send us your logs.
)