Yeah, Frank, it must be a Mac thing.
I looked over your commandline, and all the switches looked correct, though I was suggesting dropping all of them completely for the test. I was making a mistake in mine and the program would just close without writing a file. It didn't look like it crashed, just stopped. (and it'll especially look like that if you're only writing one frame to test, which is what I was doing.)
Someone on this board (or via pm) figured it out for me. So I've stuck with setting everything up in the program (paths, switches, etc.) and just running the projects via the commandline. But I understand you may need more than that.
So, I'll bow out and hope support can figure it out for you.
Rendering via Cinema 4D command line
Moderators: ChrisHekman, aoktar
Hey,
Here's problem is to use "-nogui" parameter. When you use it, C4D works different and some required functionality missing for us. Without these we cannot run.
Here's problem is to use "-nogui" parameter. When you use it, C4D works different and some required functionality missing for us. Without these we cannot run.
Octane For Cinema 4D developer / 3d generalist
3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
- fuchsundvogel03
- Posts: 3
- Joined: Mon Nov 27, 2017 1:22 pm
RoyalRender uses also "-nogui" and it works with octane
Perhaps what aoktar means is not to use the -nogui switch with the commandline.exe (.app) because if you're using the commandline.exe (.app) version, you don't need the -nogui switch. It already is -nogui.
FWIW, I've been using the -nogui switch with Octane and C4d for years and it works fine—but always with the full "Cinema 4d.exe" path, not the commandline.exe. (look at my example in the previous posts) That would be the difference between what Frank's been doing and what I've been doing.
Worth a shot to drop it, or switch to using the full program.app with the switch.
FWIW, I've been using the -nogui switch with Octane and C4d for years and it works fine—but always with the full "Cinema 4d.exe" path, not the commandline.exe. (look at my example in the previous posts) That would be the difference between what Frank's been doing and what I've been doing.
Worth a shot to drop it, or switch to using the full program.app with the switch.
Sorry confused due a lot of synched issues and posts. Hard to keep attention while living and trying to work.BCres wrote:Perhaps what aoktar means is not to use the -nogui switch with the commandline.exe (.app) because if you're using the commandline.exe (.app) version, you don't need the -nogui switch. It already is -nogui.
FWIW, I've been using the -nogui switch with Octane and C4d for years and it works fine—but always with the full "Cinema 4d.exe" path, not the commandline.exe. (look at my example in the previous posts) That would be the difference between what Frank's been doing and what I've been doing.
Worth a shot to drop it, or switch to using the full program.app with the switch.
I'll remove what I wrote about "-nogui". It seems like working. It was a problem for exporting ORBX from command line. I mixed this topic with exportORBX command line option
Octane For Cinema 4D developer / 3d generalist
3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
Btw runned some test in OSX and windows. It's working well in Windows with "-nogui" but in OSX it's giving following errors. So my advice to remove "-nogui" in this case.
OpenGL root context initialized
Vendor : NVIDIA Corporation (2)
Renderer : NVIDIA GeForce GTX 680 OpenGL Engine
OpenGL version: 4.1 NVIDIA-10.17.5 355.10.05.45f01
Driver version: Unknown
OpenGL root context initialized
Vendor : VMware, Inc. (5)
Renderer : OSMesa - Gallium 0.4 on llvmpipe (LLVM 4.0, 256 bits)
OpenGL version: 3.3 (Core Profile) Mesa 17.0.1 (git-)
Driver version: 17.0.1 (git-)
CrashHandler not installed
/perforce_buildsystem_osx/compile-osx-3-release/depot/release/19.0/frameworks/kernel.framework/source/implementation/object_impl.cpp(2147): WARNING: net.maxon.c4d.bugslife_client: Couldn't resolve maxon.DataTypes:maxon.SourceControlChangeEntry, referenced by bugdatabase_perforce.cpp
/perforce_buildsystem_osx/compile-osx-3-release/depot/release/19.0/frameworks/kernel.framework/source/implementation/object_impl.cpp(2147): WARNING: net.maxon.c4d.bugslife_client: Couldn't resolve maxon.SourceControlInterface#1, referenced by bugdatabase_perforce.cpp
/perforce_buildsystem_osx/compile-osx-3-release/depot/release/19.0/frameworks/kernel.framework/source/implementation/object_impl.cpp(2147): WARNING: net.maxon.c4d.deployment: Couldn't resolve maxon.DataTypes:maxon.SourceControlChangeEntry, referenced by iobrowsermanager.cpp
/perforce_buildsystem_osx/compile-osx-3-release/depot/release/19.0/frameworks/kernel.framework/source/implementation/object_impl.cpp(2147): WARNING: net.maxon.c4d.deployment: Couldn't resolve maxon.SourceControlInterface#1, referenced by iobrowsermanager.cpp
Error: plugin (liboctane.dylib) doesn't return c4d_main ptr. symbol 'c4d_main' is missing. error: dlsym(0x10122fa50, c4d_main): symbol not found [osx_dll.cpp(150)]
Error: plugin (liboctane.dylib) doesn't return c4d_main ptr. symbol 'c4d_main' is missing. error: dlsym(0x10076c5a0, c4d_main): symbol not found [osx_dll.cpp(150)]
Error: plugin (liboctane.dylib) doesn't return c4d_main ptr. symbol 'c4d_main' is missing. error: dlsym(0x101020c40, c4d_main): symbol not found [osx_dll.cpp(150)]
Loaded Octane DLL:OctaneRender Demo 4.00 version:4000021
Octane Render Demo for Cinema 4D V4.00-R1-vdbFix BUILD:190 C4D:19053
Octane Render SDK version: 4.00
Loading Project: /Users/ahmet/Documents/tests/all_features_test.c4d
Work Scheduler initializing 4 worker threads
Activation time=3.535 sec.
Rendering frame 0 at <Wed Nov 28 20:43:52 2018>
Rendering Phase: Setup
Progress: 0%
FRAME 0 fps:30
docFrame:0 edRender:0 curFrame:0 From:0 To:5 rFps:30 docFps:30
Total time:111.837 ms. Estimated time:93.198 ms.
Calculation completed.... frames:[0-6]
--------------------------- EXPORT LOG ---------------------------
Octane For Cinema 4D developer / 3d generalist
3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
Thanks for testing it, Ahmet. Unfortunately, the -nogui flag doesn't seem to make any difference on our machines. It is interesting to note that you get the same
Following is the the entire output from an attempt to render a simple spinning cube sequence with Octane, without using the "-nogui" flag.
Are there any tests you'd like me to do? Unfortunately we don't have any single or double core machines with NVIDIA GPUs, or I'd test that myself.
Thanks for helping track this pesky problem down.
- Frank
but it doesn't interfere with your render. Now I see that it's also in my successful non-Octane renders.I thought that error was the problem, but apparently not.Error: plugin (liboctane.dylib) doesn't return c4d_main ptr. symbol 'c4d_main' is missing. error: dlsym(0x10122fa50, c4d_main): symbol not found [osx_dll.cpp(150)]
Following is the the entire output from an attempt to render a simple spinning cube sequence with Octane, without using the "-nogui" flag.
At which point the process just hangs. And here is a nearly identical scene that does not use Octane and renders fine:Frank@FranksMachine:~$/Applications/MAXON/Cinema\ 4D\ R19/Commandline.app/Contents/MacOS/Commandline -render /Users/Frank/Documents/DeadlineTesting/Octane_SpinCube.c4d
Application start : 11/28/18 at 16:49:56
Executable : 64 Bit
Version / Build : 19.068 / RB245443
Debugger : not available
Memory model : release
Startup path : file:///Applications/MAXON/Cinema 4D R19
Application path : file:///Applications/MAXON/Cinema 4D R19/Commandline.app
Application executable : file:///Applications/MAXON/Cinema 4D R19/Commandline.app/Contents/MacOS/Commandline
Resource path : file:///Applications/MAXON/Cinema 4D R19/resource
Module path(s) : file:///Applications/MAXON/Cinema 4D R19/corelibs
Temporary path : file:///var/folders/wj/grb122b95wx_f5wb49217y800000gp/T
Prefs path : file:///Users/Frank/Library/Preferences/MAXON/Cinema 4D R19_8DA1506D
Global Prefs path : file:///Users/Frank/Library/Preferences/MAXON
OS version : OS X: Version 10.12.6 (Build 16G1114)
Processor : 8(16)x Intel Xeon CPU E5-1680 v2
Computer name : Franks Mac Pro
Thread Count : 16
Cpu Speed (MHz) : 3000.000
Application Type : Modular
Command line arguments : "-render" "/Users/Frank/Documents/DeadlineTesting/Octane_SpinCube.c4d"
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/browser.xlib with module(s) net.maxon.c4d.browser
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/c4dplugin.xlib with module(s) net.maxon.c4dplugin net.maxon.c4d.c4dplugin
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/crashhandler.module.xlib with module(s) net.maxon.crashhandler
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/crypt.module.xlib with module(s) net.maxon.crypt
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/drawport.module.xlib with module(s) net.maxon.drawport
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/drawport_general.module.xlib with module(s) net.maxon.drawport_general
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/drawport_opengl.module.xlib with module(s) net.maxon.drawport_opengl
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/drawport_selector.module.xlib with module(s) net.maxon.drawport_selector
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/embree.module.xlib with module(s) net.maxon.embree
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/geom.module.xlib with module(s) net.maxon.geom
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/glclvk_trace.module.xlib with module(s) net.maxon.glclvk_trace
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/gui.module.xlib with module(s) net.maxon.gui
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/image.module.xlib with module(s) net.maxon.image
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/image_avfoundation.module.xlib with module(s) net.maxon.image_avfoundation
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/image_openexr.module.xlib with module(s) net.maxon.image_openexr
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/io_obj.xlib with module(s) net.maxon.c4d.io_obj
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/math.module.xlib with module(s) net.maxon.math
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/mesh.module.xlib with module(s) net.maxon.mesh
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/misc.module.xlib with module(s) net.maxon.misc
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/mkmodeler.xlib with module(s) net.maxon.c4d.mkmodeler
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/network.module.xlib with module(s) net.maxon.network
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/opencl.module.xlib with module(s) net.maxon.opencl
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/opensubdiv.module.xlib with module(s) net.maxon.opensubdiv
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/render.module.xlib with module(s) net.maxon.render
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/shaderbase.module.xlib with module(s) net.maxon.shaderbase
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/tessellation.module.xlib with module(s) net.maxon.tessellation
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/xtensions.xlib with module(s) net.maxon.c4d.xtensions
OpenGL root context initialized
Vendor : ATI Technologies Inc. (1)
Renderer : AMD Radeon HD - FirePro D300 OpenGL Engine
OpenGL version: 4.1 ATI-1.51.8
Driver version: Unknown
OpenGL root context initialized
Vendor : VMware, Inc. (5)
Renderer : OSMesa - Gallium 0.4 on llvmpipe (LLVM 4.0, 256 bits)
OpenGL version: 3.3 (Core Profile) Mesa 17.0.1 (git-)
Driver version: 17.0.1 (git-)
Error: plugin (liboctane.dylib) doesn't return c4d_main ptr. symbol 'c4d_main' is missing. error: dlsym(0x7fddc0d5dcf0, c4d_main): symbol not found [osx_dll.cpp(150)]
CRITICAL: Stop [ge_container.cpp(755)]
Loaded Octane DLL:OctaneRender Studio 4.00 version:4000021
Octane Render VR for Cinema 4D V4.00 built for:190 C4D vers:19068
Octane Render SDK version: 4.00
Loading Project: /Users/Frank/Documents/DeadlineTesting/Octane_SpinCube.c4d
Work Scheduler initializing 16 worker threads
Activation time=9.806 sec.
Rendering frame 1 at <Wed Nov 28 16:50:07 2018>
Rendering Phase: Setup
Progress: 0%
FRAME 1 fps:30
--------------------------- EXPORT LOG ---------------------------
It's interesting to note that the Octane scene that hangs includes the following lines right before the render begins, while the scene without Octane that renders properly does not show any thread initialization:Frank@FranksMachine:~$/Applications/MAXON/Cinema\ 4D\ R19/Commandline.app/Contents/MacOS/Commandline -render /Users/Frank/Documents/DeadlineTesting/C4D_SpinCube.c4d
Application start : 11/28/18 at 17:00:22
Executable : 64 Bit
Version / Build : 19.068 / RB245443
Debugger : not available
Memory model : release
Startup path : file:///Applications/MAXON/Cinema 4D R19
Application path : file:///Applications/MAXON/Cinema 4D R19/Commandline.app
Application executable : file:///Applications/MAXON/Cinema 4D R19/Commandline.app/Contents/MacOS/Commandline
Resource path : file:///Applications/MAXON/Cinema 4D R19/resource
Module path(s) : file:///Applications/MAXON/Cinema 4D R19/corelibs
Temporary path : file:///var/folders/wj/grb122b95wx_f5wb49217y800000gp/T
Prefs path : file:///Users/Frank/Library/Preferences/MAXON/Cinema 4D R19_8DA1506D
Global Prefs path : file:///Users/Frank/Library/Preferences/MAXON
OS version : OS X: Version 10.12.6 (Build 16G1114)
Processor : 8(16)x Intel Xeon CPU E5-1680 v2
Computer name : Franks Mac Pro
Thread Count : 16
Cpu Speed (MHz) : 3000.000
Application Type : Modular
Command line arguments : "-render" "/Users/Frank/Documents/DeadlineTesting/C4D_SpinCube.c4d"
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/browser.xlib with module(s) net.maxon.c4d.browser
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/c4dplugin.xlib with module(s) net.maxon.c4dplugin net.maxon.c4d.c4dplugin
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/crashhandler.module.xlib with module(s) net.maxon.crashhandler
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/crypt.module.xlib with module(s) net.maxon.crypt
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/drawport.module.xlib with module(s) net.maxon.drawport
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/drawport_general.module.xlib with module(s) net.maxon.drawport_general
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/drawport_opengl.module.xlib with module(s) net.maxon.drawport_opengl
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/drawport_selector.module.xlib with module(s) net.maxon.drawport_selector
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/embree.module.xlib with module(s) net.maxon.embree
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/geom.module.xlib with module(s) net.maxon.geom
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/glclvk_trace.module.xlib with module(s) net.maxon.glclvk_trace
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/gui.module.xlib with module(s) net.maxon.gui
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/image.module.xlib with module(s) net.maxon.image
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/image_avfoundation.module.xlib with module(s) net.maxon.image_avfoundation
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/image_openexr.module.xlib with module(s) net.maxon.image_openexr
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/io_obj.xlib with module(s) net.maxon.c4d.io_obj
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/math.module.xlib with module(s) net.maxon.math
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/mesh.module.xlib with module(s) net.maxon.mesh
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/misc.module.xlib with module(s) net.maxon.misc
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/mkmodeler.xlib with module(s) net.maxon.c4d.mkmodeler
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/network.module.xlib with module(s) net.maxon.network
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/opencl.module.xlib with module(s) net.maxon.opencl
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/opensubdiv.module.xlib with module(s) net.maxon.opensubdiv
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/render.module.xlib with module(s) net.maxon.render
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/shaderbase.module.xlib with module(s) net.maxon.shaderbase
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/tessellation.module.xlib with module(s) net.maxon.tessellation
Loading file:///Applications/MAXON/Cinema 4D R19/corelibs/xtensions.xlib with module(s) net.maxon.c4d.xtensions
OpenGL root context initialized
Vendor : ATI Technologies Inc. (1)
Renderer : AMD Radeon HD - FirePro D300 OpenGL Engine
OpenGL version: 4.1 ATI-1.51.8
Driver version: Unknown
OpenGL root context initialized
Vendor : VMware, Inc. (5)
Renderer : OSMesa - Gallium 0.4 on llvmpipe (LLVM 4.0, 256 bits)
OpenGL version: 3.3 (Core Profile) Mesa 17.0.1 (git-)
Driver version: 17.0.1 (git-)
Error: plugin (liboctane.dylib) doesn't return c4d_main ptr. symbol 'c4d_main' is missing. error: dlsym(0x7f81451a6130, c4d_main): symbol not found [osx_dll.cpp(150)]
CRITICAL: Stop [ge_container.cpp(755)]
Loaded Octane DLL:OctaneRender Studio 4.00 version:4000021
Octane Render VR for Cinema 4D V4.00 built for:190 C4D vers:19068
Octane Render SDK version: 4.00
Loading Project: /Users/Frank/Documents/DeadlineTesting/C4D_SpinCube.c4d
Rendering frame 1 at <Wed Nov 28 17:00:24 2018>
Rendering Phase: Setup
Progress: 0%
Rendering Phase: Main Render
Progress: 0%
Progress: 5%
Progress: 7%
(…then the whole frame sequence…)
Progress: 98%
Progress: 99%
Rendering Phase: Finalize
Rendering successful: 7.049 sec.
Frank@FranksMachine:~$
Also, your successful render log shows 4 threads initialized. So might it be something at a deeper level about multi-threading? All of the machines we have are between 8 and 12 cores and I believe all are dual threaded. This particular machine is 8 core, dual threaded. Might there be a thread limit that we are exceeding?Work Scheduler initializing 16 worker threads
Activation time=9.806 sec.
Are there any tests you'd like me to do? Unfortunately we don't have any single or double core machines with NVIDIA GPUs, or I'd test that myself.
Thanks for helping track this pesky problem down.
- Frank
Animation Technical Director - Washington DC
Note that I'm not using Commandline command. I'm using Cinema 4d.app. Because commandline is working in -nogui mode.
Octane For Cinema 4D developer / 3d generalist
3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
3930k / 16gb / 780ti + 1070/1080 / psu 1600w / numerous hw
Thanks for clarifying, but I should have also mentioned that when I try to render from the terminal with the full C4D app and -nogui, I get the identical terminal results as when using the command line renderer:Note that I'm not using Commandline command. I'm using Cinema 4d.app. Because commandline is working in -nogui mode.
... and hang.Frank@FranksMachine:~$/Applications/MAXON/Cinema\ 4D\ R19/C4D_R19.app/Contents/MacOS/CINEMA\ 4D -nogui -render /Users/Frank/Documents/DeadlineTesting/Octane_SpinCube.c4d
... etc. ...
Work Scheduler initializing 16 worker threads
Activation time=9.351 sec.
Rendering frame 1 at <Wed Nov 28 18:34:22 2018>
Rendering Phase: Setup
Progress: 0%
FRAME 1 fps:30
--------------------------- EXPORT LOG ---------------------------
I can render from the command line to the full C4D app, but only without using the -nogui flag.
It will launch the app, load the gui, load the plugin, then do all the actual rendering in the background, without ever loading the scene into the gui. The gui remains as empty as if starting fresh.
So it looks like for whatever reason, the Octane plugin really does need the full gui to load on these machines before it will kick off a render, whether using the Commandline.app or the Cinema 4D.app.
Puzzling, indeed.
Animation Technical Director - Washington DC