Network baking seems broken (Python error) #50332

Closed
opened 2016-12-27 22:02:30 +01:00 by Benjamin Schwarcz · 8 comments

System Information
OS: Ubuntu Server - Linux version 4.4.0-47-generic (buildd@lcy01-03) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.2)
Hardware: Intel NUC with Core i5 (nuc6i5syh)
Graphics card: onboard (not really relevant since i try to bake)
RAM: 8 GB

Blender Version
Broken: 2.78a official and 2.78-3a9c490-linux-glibc219-x86_64 nightly

Short description of error
Set up Master and Slave on the system and ran it via console using
./blender -b /home/toxic/slave.blend --addons netrender -a -noaudio -nojoystick
respective
./blender -b /home/toxic/master.blend --addons netrender -a -noaudio -nojoystick

Master starts fine and slave is also connected. Once i send a bake job from my Windows Client to the master, errors occour in the log and nothing is baked.

On master:
[27/Dec/2016 21:48:27] "POST /slave HTTP/1.1" 200 -

Exception happened during processing of request from ('192.168.0.125', 60806)
Traceback (most recent call last):

File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/pyth                                                                                                                                                             on/lib/python3.5/socketserver.py", line 625, in process_request_thread
  self.finish_request(request, client_address)
File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/pyth                                                                                                                                                             on/lib/python3.5/socketserver.py", line 354, in finish_request
  self.RequestHandlerClass(request, client_address, self)
File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/pyth                                                                                                                                                             on/lib/python3.5/socketserver.py", line 681, in __init__
  self.handle()
File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/pyth                                                                                                                                                             on/lib/python3.5/http/server.py", line 422, in handle
  self.handle_one_request()
File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/pyth                                                                                                                                                             on/lib/python3.5/http/server.py", line 410, in handle_one_request
  method()
File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/scri                                                                                                                                                             pts/addons/netrender/master.py", line 479, in do_GET
  self.server.balance()
File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/scri                                                                                                                                                             pts/addons/netrender/master.py", line 1073, in balance
  self.balancer.balance(self.jobs)
File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/scri                                                                                                                                                             pts/addons/netrender/balancing.py", line 108, in balance
  jobs[:] = sorted(jobs, key=self.sortKey)
File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/scri                                                                                                                                                             pts/addons/netrender/balancing.py", line 103, in sortKey
  self.applyRules(job))
File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/scri                                                                                                                                                             pts/addons/netrender/balancing.py", line 84, in applyRules
  return sum((rule.rate(job) for rule in self.rules if rule.enabled))
File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/scri                                                                                                                                                             pts/addons/netrender/balancing.py", line 84, in <genexpr>
  return sum((rule.rate(job) for rule in self.rules if rule.enabled))
File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/scri                                                                                                                                                             pts/addons/netrender/balancing.py", line 144, in rate
  return total_category_usage / maximum_priority

ZeroDivisionError: float division by zero

on Slave
Fra:249 Mem:16.26M (0.00M, Peak 29.88M) | Time:00:00.00 | Network render node in itiation
Created directory: /tmp/slave_aca854ea81854d542103b15db6388e2d
Fra:249 Mem:16.26M (0.00M, Peak 29.88M) | Time:00:00.00 | Network render connect ed to master, waiting for jobs
Error: Remote end closed connection without response
Error: Traceback (most recent call last):

File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/scri                                                                                                                                                             pts/addons/netrender/client.py", line 367, in render
  raise e
File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/scri                                                                                                                                                             pts/addons/netrender/client.py", line 360, in render
  self.render_slave(scene)
File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/scri                                                                                                                                                             pts/addons/netrender/client.py", line 387, in render_slave
  slave.render_slave(self, scene.network_render, scene.render.threads)
File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/scri                                                                                                                                                             pts/addons/netrender/slave.py", line 160, in render_slave
  response = conn.getresponse()
File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/pyth                                                                                                                                                             on/lib/python3.5/http/client.py", line 1197, in getresponse
  response.begin()
File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/pyth                                                                                                                                                             on/lib/python3.5/http/client.py", line 297, in begin
  version, status, reason = self._read_status()
File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/pyth                                                                                                                                                             on/lib/python3.5/http/client.py", line 266, in _read_status
  raise RemoteDisconnected("Remote end closed connection without"

http.client.RemoteDisconnected: Remote end closed connection without response

location: :-1

Traceback (most recent call last):

File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/scri                                                                                                                                                             pts/addons/netrender/client.py", line 367, in render
  raise e
File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/scri                                                                                                                                                             pts/addons/netrender/client.py", line 360, in render
  self.render_slave(scene)
File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/scri                                                                                                                                                             pts/addons/netrender/client.py", line 387, in render_slave
  slave.render_slave(self, scene.network_render, scene.render.threads)
File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/scri                                                                                                                                                             pts/addons/netrender/slave.py", line 160, in render_slave
  response = conn.getresponse()
File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/pyth                                                                                                                                                             on/lib/python3.5/http/client.py", line 1197, in getresponse
  response.begin()
File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/pyth                                                                                                                                                             on/lib/python3.5/http/client.py", line 297, in begin
  version, status, reason = self._read_status()
File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/pyth                                                                                                                                                             on/lib/python3.5/http/client.py", line 266, in _read_status
  raise RemoteDisconnected("Remote end closed connection without"

http.client.RemoteDisconnected: Remote end closed connection without response

location: :-1

Exact steps for others to reproduce the error
run latest nightly or official linux builds with the parameters mentioned above, try to send a simple blend file containing fluid or smoke simulation to the master.slave.blend

master.blend

**System Information** OS: Ubuntu Server - Linux version 4.4.0-47-generic (buildd@lcy01-03) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.2) Hardware: Intel NUC with Core i5 (nuc6i5syh) Graphics card: onboard (not really relevant since i try to bake) RAM: 8 GB **Blender Version** Broken: 2.78a official and 2.78-3a9c490-linux-glibc219-x86_64 nightly **Short description of error** Set up Master and Slave on the system and ran it via console using ./blender -b /home/toxic/slave.blend --addons netrender -a -noaudio -nojoystick respective ./blender -b /home/toxic/master.blend --addons netrender -a -noaudio -nojoystick Master starts fine and slave is also connected. Once i send a bake job from my Windows Client to the master, errors occour in the log and nothing is baked. **On master:** [27/Dec/2016 21:48:27] "POST /slave HTTP/1.1" 200 - ---------------------------------------- Exception happened during processing of request from ('192.168.0.125', 60806) Traceback (most recent call last): ``` File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/pyth on/lib/python3.5/socketserver.py", line 625, in process_request_thread self.finish_request(request, client_address) File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/pyth on/lib/python3.5/socketserver.py", line 354, in finish_request self.RequestHandlerClass(request, client_address, self) File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/pyth on/lib/python3.5/socketserver.py", line 681, in __init__ self.handle() File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/pyth on/lib/python3.5/http/server.py", line 422, in handle self.handle_one_request() File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/pyth on/lib/python3.5/http/server.py", line 410, in handle_one_request method() File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/scri pts/addons/netrender/master.py", line 479, in do_GET self.server.balance() File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/scri pts/addons/netrender/master.py", line 1073, in balance self.balancer.balance(self.jobs) File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/scri pts/addons/netrender/balancing.py", line 108, in balance jobs[:] = sorted(jobs, key=self.sortKey) File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/scri pts/addons/netrender/balancing.py", line 103, in sortKey self.applyRules(job)) File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/scri pts/addons/netrender/balancing.py", line 84, in applyRules return sum((rule.rate(job) for rule in self.rules if rule.enabled)) File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/scri pts/addons/netrender/balancing.py", line 84, in <genexpr> return sum((rule.rate(job) for rule in self.rules if rule.enabled)) File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/scri pts/addons/netrender/balancing.py", line 144, in rate return total_category_usage / maximum_priority ``` ZeroDivisionError: float division by zero **on Slave** Fra:249 Mem:16.26M (0.00M, Peak 29.88M) | Time:00:00.00 | Network render node in itiation Created directory: /tmp/slave_aca854ea81854d542103b15db6388e2d Fra:249 Mem:16.26M (0.00M, Peak 29.88M) | Time:00:00.00 | Network render connect ed to master, waiting for jobs Error: Remote end closed connection without response Error: Traceback (most recent call last): ``` File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/scri pts/addons/netrender/client.py", line 367, in render raise e File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/scri pts/addons/netrender/client.py", line 360, in render self.render_slave(scene) File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/scri pts/addons/netrender/client.py", line 387, in render_slave slave.render_slave(self, scene.network_render, scene.render.threads) File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/scri pts/addons/netrender/slave.py", line 160, in render_slave response = conn.getresponse() File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/pyth on/lib/python3.5/http/client.py", line 1197, in getresponse response.begin() File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/pyth on/lib/python3.5/http/client.py", line 297, in begin version, status, reason = self._read_status() File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/pyth on/lib/python3.5/http/client.py", line 266, in _read_status raise RemoteDisconnected("Remote end closed connection without" ``` http.client.RemoteDisconnected: Remote end closed connection without response location: <unknown location>:-1 Traceback (most recent call last): ``` File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/scri pts/addons/netrender/client.py", line 367, in render raise e File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/scri pts/addons/netrender/client.py", line 360, in render self.render_slave(scene) File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/scri pts/addons/netrender/client.py", line 387, in render_slave slave.render_slave(self, scene.network_render, scene.render.threads) File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/scri pts/addons/netrender/slave.py", line 160, in render_slave response = conn.getresponse() File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/pyth on/lib/python3.5/http/client.py", line 1197, in getresponse response.begin() File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/pyth on/lib/python3.5/http/client.py", line 297, in begin version, status, reason = self._read_status() File "/home/toxic/blender/blender-2.78-3a9c490-linux-glibc219-x86_64/2.78/pyth on/lib/python3.5/http/client.py", line 266, in _read_status raise RemoteDisconnected("Remote end closed connection without" ``` http.client.RemoteDisconnected: Remote end closed connection without response location: <unknown location>:-1 **Exact steps for others to reproduce the error** run latest nightly or official linux builds with the parameters mentioned above, try to send a simple blend file containing fluid or smoke simulation to the master.[slave.blend](https://archive.blender.org/developer/F423861/slave.blend) [master.blend](https://archive.blender.org/developer/F423862/master.blend)

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @toxic_garden

Added subscriber: @toxic_garden

Added subscriber: @JamesCrowther

Added subscriber: @JamesCrowther

Update: issue only happens if the "priority"-options in the master webUI are enabled. Unchecking the first two checkboxes avoid the mentioned error.

Update: issue only happens if the "priority"-options in the master webUI are enabled. Unchecking the first two checkboxes avoid the mentioned error.
Member

Added subscriber: @TheOnlyJoey

Added subscriber: @TheOnlyJoey
Member

Seems not to be a direct regression.
As the netrender is currently unmaintained, will be removed in 2.8 and can be worked around, closing this.
In 2.8 this will be replaced with better options.

Seems not to be a direct regression. As the netrender is currently unmaintained, will be removed in 2.8 and can be worked around, closing this. In 2.8 this will be replaced with better options.
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Joey Ferwerda self-assigned this 2017-01-19 17:33:53 +01:00

Hi Joey, can you elaborate on "better options" Im working on a network rendering addon for blender at the moment, would be nice to know what the plans are regarding this feature.

Hi Joey, can you elaborate on "better options" Im working on a network rendering addon for blender at the moment, would be nice to know what the plans are regarding this feature.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#50332
No description provided.