OctaneBlender bugs
Posted: Thu Oct 02, 2025 5:41 pm
Hi
I am adding OctaneBlender to Royal Render.
I am using OctaneBlender30.7.0 \ 4.5
And I have some bug reports.
1)
The Blender function gpu.platform.backend_type_get() triggers an exception if Blender runs in commandline mode:
"SystemError: GPU functions for drawing are not available in background mode"
Fix:
Edit OctaneBlender30.7.0\4.5\scripts\addons_core\octane\core\client.py and change
use_opengl = gpu.platform.backend_type_get() == 'OPENGL'
into
use_opengl = False
try:
use_opengl = gpu.platform.backend_type_get() == 'OPENGL'
# On batch render this function returns an exception and octane is not loaded:
# "SystemError: GPU functions for drawing are not available in background mode"
except:
pass
2)
If there is an issue with OctaneServer (e.g. not started or no internet), then the process freezes and does not finish.
This happens in UI and Commandline mode.
Within the UI mode, the render progress bar is still visible and Blender is still marked "green" in the Windows Task bar.
In Commandline mode, it just stops and Blender never quits:
R 69| ' 17:20.47 rrBlend : Rendering Frames: 1 - 1
R 70| OctaneClient::connectToServer: socket connect error
R 71| Octane: can't connect to Octane server.
R 72| OctaneClient::connectToServer: socket connect error
R 73| Octane: can't connect to Octane server.
R 74| Blender 4.5.2 LTS (hash 51e1d4fa9527 built 2025-09-05 00:20:12)
R 75| Read blend: "E:\3D\Blender\4.5_cube_octane.blend"
R 76| Fra:1 Mem:19.65M (Peak 20.22M) | Time:00:04.08 |
R 77| Scene, ViewLayer | Elapsed: 00:00.00
[...SNIP....]
R130| Fra:1 Mem:82.93M (Peak 146.21M) | Time:00:04.12 |
R131| Scene, ViewLayer | Elapsed: 00:00.03
R132| Not connected | Octane 2025.3 - 30.7.
R133| No Render-server at address "127.0.0.1"
3)
OctaneServer has noi verification it it was already started.
At the moment you try to start the TCP server and if it fails it just assumes that the server might be running.
And this dialog windows stays open.
I could imagine that it may create issues if you create some automated way to start OctaneServer.
The check could be done either by getting a process list of the machine.
Or by connecting to the local TCP port to verify if Octane answers the request.
(Of course there are other ways as well)
4)
OctaneServer requires a commandline flag NOT to display any dialogs.
And the render addon in Blender should log error messages of OctaneServer.
E.g. if the Internet is done, it first shows some "Octane-Style" dialog "A Valid Intetnet Connection is required".
And if I click "cancel" it shows another "Windows Style" dialog "Error activate Octane License".
And even if I cancel that dialog as well, Blender does not continue and the farm machine is blocked for nothing.
Perhaps the same as in 2), but this time it happens while Blender is starting, so you get no log with any error message.
Side-Note:
Some commandline flags or text file to setup credentials for the first time would be nice for this case as well.
In case there is a customer that wants to run Octane on new machines/VMs on a farm in a datacenter.
5)
The dialog window I mentioned in 3) cuts the text at the end.
On my machine the last text line is "time, attempting to r"
The issue is not that important as the main text is shown before the last line.
PS:
As far as I see Install instructions have to be updated in your forum post.
You do not need to install the addon into blender as it is included.
viewtopic.php?p=440630
I am adding OctaneBlender to Royal Render.
I am using OctaneBlender30.7.0 \ 4.5
And I have some bug reports.
1)
The Blender function gpu.platform.backend_type_get() triggers an exception if Blender runs in commandline mode:
"SystemError: GPU functions for drawing are not available in background mode"
Fix:
Edit OctaneBlender30.7.0\4.5\scripts\addons_core\octane\core\client.py and change
use_opengl = gpu.platform.backend_type_get() == 'OPENGL'
into
use_opengl = False
try:
use_opengl = gpu.platform.backend_type_get() == 'OPENGL'
# On batch render this function returns an exception and octane is not loaded:
# "SystemError: GPU functions for drawing are not available in background mode"
except:
pass
2)
If there is an issue with OctaneServer (e.g. not started or no internet), then the process freezes and does not finish.
This happens in UI and Commandline mode.
Within the UI mode, the render progress bar is still visible and Blender is still marked "green" in the Windows Task bar.
In Commandline mode, it just stops and Blender never quits:
R 69| ' 17:20.47 rrBlend : Rendering Frames: 1 - 1
R 70| OctaneClient::connectToServer: socket connect error
R 71| Octane: can't connect to Octane server.
R 72| OctaneClient::connectToServer: socket connect error
R 73| Octane: can't connect to Octane server.
R 74| Blender 4.5.2 LTS (hash 51e1d4fa9527 built 2025-09-05 00:20:12)
R 75| Read blend: "E:\3D\Blender\4.5_cube_octane.blend"
R 76| Fra:1 Mem:19.65M (Peak 20.22M) | Time:00:04.08 |
R 77| Scene, ViewLayer | Elapsed: 00:00.00
[...SNIP....]
R130| Fra:1 Mem:82.93M (Peak 146.21M) | Time:00:04.12 |
R131| Scene, ViewLayer | Elapsed: 00:00.03
R132| Not connected | Octane 2025.3 - 30.7.
R133| No Render-server at address "127.0.0.1"
3)
OctaneServer has noi verification it it was already started.
At the moment you try to start the TCP server and if it fails it just assumes that the server might be running.
And this dialog windows stays open.
I could imagine that it may create issues if you create some automated way to start OctaneServer.
The check could be done either by getting a process list of the machine.
Or by connecting to the local TCP port to verify if Octane answers the request.
(Of course there are other ways as well)
4)
OctaneServer requires a commandline flag NOT to display any dialogs.
And the render addon in Blender should log error messages of OctaneServer.
E.g. if the Internet is done, it first shows some "Octane-Style" dialog "A Valid Intetnet Connection is required".
And if I click "cancel" it shows another "Windows Style" dialog "Error activate Octane License".
And even if I cancel that dialog as well, Blender does not continue and the farm machine is blocked for nothing.
Perhaps the same as in 2), but this time it happens while Blender is starting, so you get no log with any error message.
Side-Note:
Some commandline flags or text file to setup credentials for the first time would be nice for this case as well.
In case there is a customer that wants to run Octane on new machines/VMs on a farm in a datacenter.
5)
The dialog window I mentioned in 3) cuts the text at the end.
On my machine the last text line is "time, attempting to r"
The issue is not that important as the main text is shown before the last line.
PS:
As far as I see Install instructions have to be updated in your forum post.
You do not need to install the addon into blender as it is included.
viewtopic.php?p=440630