Commit Graph

670 Commits

Author SHA1 Message Date
Raimund58
fa82be607c Add a method to prevent special characters in the cache path 2020-12-11 20:30:16 +00:00
Luis Uguina
46ad1882a7 feat: add GPU id to error report 2020-10-30 07:41:38 +11:00
Luis Uguina
b21e5c5a2c feat: make stats and last rendered frame panels collapsible
The visual footprint of the client is quite big (520x800 px). This PR allows the use to collapse/expand any of the Global stats, Session infos and Last uploaded frame panels to reduce the vertical visual footprint.

Fixed the wrong size detection at client start issue found by Clou.
2020-10-30 07:21:29 +11:00
Luis Uguina
7c798e6364 fix: showLastRender method randomly breaks upload queue
The method img.getScaledInstance returns null under some conditions (some images cannot be properly managed by Java Runtime), breaking the upload process and reducing the upload queue size in 1.

The process can potentially consume the three concurrent upload slots and hence leaving the client in a zombie state.
2020-10-29 16:45:33 +00:00
Jörn-Ingo Weigert
538dbfd97a Fix: Minor typos and description error in protocol.txt fixed 2020-10-29 16:44:55 +00:00
Sheepit Renderfarm
0567838290 Merge branch 'fix/code-formator' into 'master'
Code formating

See merge request sheepitrenderfarm/client!4
2020-10-27 13:48:15 +00:00
Sheepit Renderfarm
d3607ce177 Merge branch 'fix/handle-server-code-error' into 'master'
Handle server side error code

See merge request sheepitrenderfarm/client!3
2020-10-27 13:47:57 +00:00
Sheepit Renderfarm
2829106b41 Merge branch 'fix/NPE' into 'master'
Fix: NullPointerException

See merge request sheepitrenderfarm/client!2
2020-10-27 13:47:14 +00:00
Laurent Clouet
cceedb785c Code formating 2020-10-27 14:45:23 +01:00
Laurent Clouet
e1e680ace3 Handle server side error code 2020-10-27 14:42:59 +01:00
Laurent Clouet
cfa2acad8f Fix: NullPointerException 2020-10-27 14:32:11 +01:00
Laurent Clouet
986fef0e79 Migration from github to gitlab 2020-10-21 13:12:53 +02:00
Luis Uguina
6587b4dcef Feature: support for shared downloads directory (#295)
* Feature: support for shared downloads directory

This feature is especially relevant for users with several clients running simultaneously within the same computer (computers running several GPUs or any combination of GPUs + CPUs) or multiple computers running in a network. The feature allows the user to specify a shared downloads directory via the new -shared-downloads-dir client option. All the clients using that option will share the same binaries and scene files.

How it works?
The first client downloading a binary or scene will save the file in the directory especified in -shared-downloads-directory. The rest of the clients using the same option will wait until the file has been downloaded. Once the file has been downloaded, it will be ready for the rest of the clients.

This feature is especially relevant for users with metered/slow connections or multiple computers/clients that don't want to download the same binary/file multiple times.

IMPORTANT: All the clients intended to share the binaries and scenes must execute the client with the same -shared-downloads-dir parameter.
2020-10-21 13:03:09 +02:00
Laurent Clouet
70d7dc052c Handle new protocole value 2020-10-10 10:52:39 +02:00
Laurent Clouet
330f2c6fd8 Fix: division per zero 2020-09-12 11:12:54 +02:00
Luis Uguina
d152e0b0ff Feature: add session data consumption information in GUI/text UIs (#287)
* Feature: add session data consumption information in GUI/text UIs

Adds the total bytes downloaded and uploaded in the current session as well as the average data transfer rate for both UL/DL. The information is not added to the 1-line UI as the line will take 150+ characters in the screen.
2020-09-12 02:00:24 +02:00
Robert Owens
4fa886c4de Updates usage command (#296) 2020-09-11 14:11:53 +02:00
Luis Uguina
18aa522c11 Feature: Make -hostname a cmd line variable (#290) 2020-09-09 12:18:46 +02:00
Luis Uguina
04be222f00 Cleanup: remove unused imports (#294) 2020-09-08 01:00:44 +02:00
Laurent Clouet
2126ca63fe Update README.md 2020-08-29 16:42:42 +02:00
Laurent Clouet
14447df154 Ref: rename variable 2020-08-29 16:18:00 +02:00
Luis Uguina
a119fc2e2d Fix: Display error & stop retrying in case of test frames render error (#289) 2020-08-29 16:15:01 +02:00
Luis Uguina
0b53177ab1 Fix: Make initial Test/Power Frames ignore user maximum render time setting (#288) 2020-08-29 16:13:20 +02:00
tuxun
b5131098b7 restore missing time remaining time in UI with openCL (#282)
* restore missing time remaining time in UI with openCL
2020-07-28 15:28:06 +02:00
Luis Uguina
9f5c35d02f Feature: allow the client to shut down the computer at or after a certain time (#249)
A new -shutdown <time> option has been created to specify the time when the client will stop asking for new jobs, will finish uploading the frames in the upload queue and will shutdown the computer. The time argument can have two different formats: an absolute date & time in the format yyyy-MM-ddThh:mm:ss (24h format) or a relative time in the format +m where m is the number of minutes from now.

The user can also select the shutdown-mode, where "wait" will wait for all the processes (render + pending uploads) to finish and "hard" will cancel all the pending jobs and will initiate the computer shutdown.
2020-07-27 16:49:36 +02:00
Andrew Smith
22e914dcc0 fix broken stack trace printer (#283) 2020-07-26 14:05:07 +02:00
Laurent Clouet
a7269ab15b Java 8 is the minimum version 2020-07-25 20:05:20 +02:00
Luis Uguina
4dba9ebf94 Fix: NullPointerException triggered when http error in job allocation (#274) 2020-07-07 15:38:23 +02:00
M*C*O
e4be013505 Fix failed MimeType detection (#277)
* Fix failed MimeType detection

* Fix failed MimeType detection

* Fix formatting
2020-07-07 15:37:15 +02:00
Laurent Clouet
63a2b553fa Detect if the client is runnig headless 2020-07-03 11:15:00 +02:00
DaCoolX
caca7e1f7c Include public key as password in help (#276)
* Include public key as password in help
2020-06-27 01:52:00 +02:00
Luis Uguina
36c14b6ee1 Fix: -renderbucket-size value not applied to GPU render (#256)
* Fix: -renderbucket-size option not applied if configuration file doesn't exist
2020-06-21 11:21:23 +02:00
Luis Uguina
f3538eafde Fix: NULL MimeType when sending files without extension (#270) 2020-06-21 11:16:18 +02:00
Luis Uguina
375ff311d4 Fix: add RENDERER_KILLED_BY_USER to download checks (#271) 2020-06-21 11:15:53 +02:00
Luis Uguina
cc99f3a146 Fix: unable to show the message error in case of HTTP return code != Error.Type.OK (#272) 2020-06-21 11:15:30 +02:00
Luis Uguina
b4511e7730 Feature: check for HTTP 413 (Entity too large) errors (#264) 2020-06-20 18:42:20 +02:00
Luis Uguina
57cae65412 Fix: allow to cancel download by user or server initiated reset (#266) 2020-06-20 18:36:55 +02:00
Luis Uguina
27d8b05b12 Feat: include Java version in HTTP User-Agent (#269) 2020-06-20 18:33:59 +02:00
Luis Uguina
608e1d7aea Fix: -compute-method not set when configuration file present (#268) 2020-06-20 18:31:31 +02:00
Luis Uguina
7685051662 Fix: Send reset signal to server on job upload error (#260)
* Fix: Send reset signal to server on job upload error
2020-06-18 13:57:52 +02:00
Luis Uguina
838cd7c0ec Fix: RENDERER_KILLED error sends a frame reset to server (#259) 2020-06-18 10:43:18 +02:00
Luis Uguina
b91bf3c0c5 Feat: in text UIs, show render progress in one line (#257)
The text UI gets quite messy during the render process, as it takes at least one extra line of the screen per second. This PR fixes that issue and also shows an ASCII bar to show the render progress.
2020-06-17 10:24:59 +02:00
Luis Uguina
ce756db69d Fix: HTTPSendFile doesn't send a valid MimeType header to server (#263) 2020-06-17 10:19:29 +02:00
Luis Uguina
4ab4fa3e8e Refactor: update deprecated call to method to latest version (#262) 2020-06-17 10:18:13 +02:00
Luis Uguina
29f25f4f7e Fix: include any unhandled error response from server in error logs (#265) 2020-06-16 15:22:21 +02:00
Luis Uguina
231c1ee448 Fix: remove unused checkpoints from memory (#258) 2020-06-16 14:03:17 +02:00
Luis Uguina
fe69d6faa2 Feature: in text UI, show downloads in a single-line (#250)
* Feature: show downloads in a single-line in text UIs
2020-06-14 12:01:32 +02:00
Luis Uguina
8736892565 Fix: Job killed by time limit is incorrectly catalogued as NO_FILE_OUTPUT (#252)
As the value of the askForRendererKill flag is set right after the return of the kill process, under some particular memory and system load circumstances, a race condition occurs and the rendering process in the main thread is closed faster than the process.destroy() returns the control to the thread the called the OS.getOS().kill(process.getProcess()) method. If that condition occurs, the isAskForRendererKill() check returns false (the flag hasn't been set to True in the separate thread) and the execution continues with the frame output check (that doesn't exist as the rendering process was interrupted). The final outcome is a wrong NO_FILE_OUTPUT error instead of the proper RENDERER_KILLED_BY_USER_OVER_TIME.

The fix has been setting the askForRendererKill flag to true before the process is destroyed. If the racing condition occurs, the askForRendererKill will be correctly set.
2020-06-12 11:32:06 +02:00
Luis Uguina
e06a9a9c1b Feature: minimize to SysTray option on the settings screen (#246)
* Feature: minimize to SysTray on the settings screen
2020-06-09 06:47:39 +02:00
Luis Uguina
658e698cab Remove the 5 minutes wait for the RENDERER_KILLED_BY_USER_OVER_TIME error code (#251) 2020-06-08 10:07:49 +02:00