Norway
Joined: Apr 18, 2014
Post Count: 259
Status:
Offline
Re: YafaRay rendering plug-in
I suspect that's what happened with me. I normally open programs from the spotlight search ( an old habit), and usually the latest version is the one on top of the list. As it happens: it wasn't.
Joined: Jul 20, 2020
Post Count: 12
Status:
Offline
Re: YafaRay rendering plug-in
I've been meaning to try out the new Yafaray renderer (I would indeed _love_ to have a faster and better renderer!), yet I get an error message (copied below from console). It looks like it is missing the Boost library or something: do I need to install that separately? I'm sorry if I'm just stupid, but help would be appreciated :)
For reference, I use the jar version of SH3D (version 6.3), with -xmx set to 12G on macOS 10.13.6 with i7/16GB RAM, and Oracle Java 8 version 251. The plugin is installed in the proper ~/Library/Application Support/eTeks/Sweet Home 3D/plugins folder.
The error message is this:
Exception in thread "pool-9-thread-1" java.lang.UnsatisfiedLinkError: /Users/Ghyslain/Library/Application Support/eTeks/Sweet Home 3D/work/6000-17cdb366-9f24-4bf5-8aba-6846e7cd9d4b/dll3757081845916336443tmp/libyafaray_v3_core.dylib: dlopen(/Users/Ghyslain/Library/Application Support/eTeks/Sweet Home 3D/work/6000-17cdb366-9f24-4bf5-8aba-6846e7cd9d4b/dll3757081845916336443tmp/libyafaray_v3_core.dylib, 1): Library not loaded: /usr/local/opt/boost/lib/libboost_system.dylib Referenced from: /Users/Ghyslain/Library/Application Support/eTeks/Sweet Home 3D/work/6000-17cdb366-9f24-4bf5-8aba-6846e7cd9d4b/dll3757081845916336443tmp/libyafaray_v3_core.dylib Reason: image not found at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824) at java.lang.Runtime.load0(Runtime.java:809) at java.lang.System.load(System.java:1086) at com.eteks.sweethome3d.plugin.yafarayrendering.YafarayRenderer.loadDLLs(YafarayRenderer.java:251) at com.eteks.sweethome3d.plugin.yafarayrendering.YafarayRenderer.<clinit>(YafarayRenderer.java:135) at com.eteks.sweethome3d.plugin.yafarayrendering.YafarayPhotoPanel.computePhoto(YafarayPhotoPanel.java: 776) at com.eteks.sweethome3d.plugin.yafarayrendering.YafarayPhotoPanel.access$1400(YafarayPhotoPanel.java:113) at com.eteks.sweethome3d.plugin.yafarayrendering.YafarayPhotoPanel$17.run(YafarayPhotoPanel.java:759) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)
Thanks in advance for the help! G.
P.S.: Since this happens to be my first post on this forum, let me just say to Emmanuel Puybaret and the other contributors of SH3D and its plugins that you guys are heros for the hobbyist architecture enthusiast that I am! Thanks for your hard work and dedication!
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
Re: YafaRay rendering plug-in
Ghyslain, it seems I missed one step during the build of the plug-in. Please try the version 1.3.1 which should fix your issue.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
Date/Time: 2020-07-22 17:28:51.455 +0200 OS Version: Mac OS X 10.13.6 (17G14019) Report Version: 12 Anonymous UUID: F590E1AE-84B7-61C6-CEA3-F11D1D8CF2C4
Joined: Jul 20, 2020
Post Count: 12
Status:
Offline
Re: YafaRay rendering plug-in
Thank you Emmanuel for your prompt reply!
I've now tried this new 1.3.1 version. However, another issue seems to have arisen and leads to a crash.
First trying the plugin with the jar version of the app and one of my projects. Upon launching the Create photo with Yafaray render, there is first a series of library reference error messages in the console:
dlerror: dlopen(/Users/Ghyslain/Library/Application Support/eTeks/Sweet Home 3D/work/6000-90938268-2b68-4125-a6c0-b417f8f85adb/dll4459707302376552544tmp/yafaray-plugins/libphotonmap.dylib, 2): Library not loaded: /usr/local/opt/boost/lib/libboost_system.dylib Referenced from: /Users/Ghyslain/Library/Application Support/eTeks/Sweet Home 3D/work/6000-90938268-2b68-4125-a6c0-b417f8f85adb/dll4459707302376552544tmp/yafaray-plugins/libphotonmap.dylib Reason: image not found dlerror: dlopen(/Users/Ghyslain/Library/Application Support/eTeks/Sweet Home 3D/work/6000-90938268-2b68-4125-a6c0-b417f8f85adb/dll4459707302376552544tmp/yafaray-plugins/libspotlight.dylib, 2): Library not loaded: /usr/local/opt/boost/lib/libboost_filesystem.dylib Referenced from: /Users/Ghyslain/Library/Application Support/eTeks/Sweet Home 3D/work/6000-90938268-2b68-4125-a6c0-b417f8f85adb/dll4459707302376552544tmp/yafaray-plugins/libspotlight.dylib Reason: image not found
Etc., etc. (I won't copy all the logs here because it would fill out the forum, but I can send them to you in full if needed.)
Then, after some crunching (with medium-high CPU utilization), the application exits with this error:
# # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x000000018df57b7d, pid=9787, tid=0x0000000000027b67 # # JRE version: Java(TM) SE Runtime Environment (8.0_201-b09) (build 1.8.0_201-b09) # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.201-b09 mixed mode bsd-amd64 compressed oops) # Problematic frame: # C [libyafaray_v3_core.dylib+0x60b7d] yafaray::imageFilm_t::setProgressBar(yafaray::progressBar_t*)+0xd # # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again # # An error report file with more information is saved as: # /Users/Ghyslain/hs_err_pid9787.log # # If you would like to submit a bug report, please visit: # http://bugreport.java.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. #
The referenced log file begins with the following:
# A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x000000018df57b7d, pid=9787, tid=0x0000000000027b67 # # JRE version: Java(TM) SE Runtime Environment (8.0_201-b09) (build 1.8.0_201-b09) # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.201-b09 mixed mode bsd-amd64 compressed oops) # Problematic frame: # C [libyafaray_v3_core.dylib+0x60b7d] yafaray::imageFilm_t::setProgressBar(yafaray::progressBar_t*)+0xd # # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again # # If you would like to submit a bug report, please visit: # http://bugreport.java.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. #
--------------- T H R E A D ---------------
Current thread (0x00007fdfc00a6000): JavaThread "pool-11-thread-1" [_thread_in_native, id=162663, stack(0x00007000075e9000,0x00007000076e9000)]
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
Re: YafaRay rendering plug-in
Ghyslain, it seems I missed more than one step during the build of the plug-in 1.3. Please try the version 1.3.2 which should fix at least the "Library not loaded" errors you reported. Not sure if the other errors are bound to this first ones. I hope so.
No, versions 1.3.1 and 1.3.2 fixes only wrong internal links in .dylib libraries for macOS. The recent changes in YafaRay will be incorporated to YafaRay rendering plug-in later. It's not urgent because the change log lists only issues on some features not used in the plug-in.
Can I somehow use it for video too?
See PhotoVideoRendering plug-in cited in plug-ins page.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator