LuxCoreRender / BlendLuxCore

Blender Integration for LuxCore
GNU General Public License v3.0
733 stars 92 forks source link

Unable to activate addon #114

Closed mageaster closed 6 years ago

mageaster commented 6 years ago

System Information

Ubuntu MATE 16.04.4, Nvidia GeForce GTX 550Ti, driver version 384.111

Software Version

Error message from Blender console

Traceback (most recent call last):
  File "/usr/share/blender/2.79/scripts/modules/addon_utils.py", line 331, in enable
    mod = __import__(module_name)
  File "~/.config/blender/2.79/scripts/addons/BlendLuxCore/__init__.py", line 2, in <module>
    from .bin import pyluxcore
ImportError: ~/.config/blender/2.79/scripts/addons/BlendLuxCore/bin/libembree.so.2: undefined symbol: _ZN3tbb10interface78internal15task_arena_base24internal_max_concurrencyEPKNS0_10task_arenaE

Short description of error

Addon installs, but unable to activate

Exact steps for others to reproduce the error

Launch Blender, install addon, try to activate.

Blender 2.79 official works nice.

Theverat commented 6 years ago

Blender 2.79 official works nice.

So only the 2.79b from this PPA fails to load it? Have you tried with the official Blender 2.79b?

We can only support official Blender releases due to a lack of manpower.

It reminds me a bit of this problem, it had to do with an older Blender version: https://forums.luxcorerender.org/viewtopic.php?f=4&t=193#p2510

Dade916 commented 6 years ago

It is like if this special version of Blender is compiled with an older version of Intel TBB and there is conflict with the newer version required by Intel Embree.

Anyway I don't have such a problem using official Blender 2.79b. The procedure used to compile Blender version: 2.79b (from Thomas Schiex PPA) may be not entirely correct or conform to what Blender Foundation does.

Any particular reason to not use the official Blender 2.79b ?

starkdd commented 6 years ago

Kubuntu Linux x64, Blender 2.79b official

Had trouble activating addon while following installation instruction.

Traceback (most recent call last):
  File "/opt/blender-2.79b/2.79/scripts/modules/addon_utils.py", line 331, in enable
    mod = __import__(module_name)
  File "/home/al/.config/blender/2.79/scripts/addons/BlendLuxCore/__init__.py", line 2, in <module>
    from .bin import pyluxcore
ImportError: /home/al/.config/blender/2.79/scripts/addons/BlendLuxCore/bin/pyluxcore.so: undefined symbol: rtcSetTransform2

Like pyluxcore binary has interface different from what LuxBlend expected.

Finally I found that I need to disable old LuxRender 1.7 addon and not only that, but restart Blender after deactivation, and now new LuxCore addon activation went smoothly. So, I think, it would be helpful, if installation instruction had something like:

1. disable old LuxRender 1.6/1.7 addon (if any)
2. save user settings and restart Blender
3. activate new LuxCore addon
4. save user settings and restart Blender

Hope it is relevant.

Theverat commented 6 years ago

I think step 4 is not needed, or is it? It should be added to the wiki here: https://wiki.luxcorerender.org/BlendLuxCore_Installation You can do it yourself if you want (create a wiki account) or I can do it.

starkdd commented 6 years ago

I think step 4 is not needed, or is it?

Yes, step 4 looks unnecessary.

You can do it yourself if you want (create a wiki account) or I can do it.

I'm not a native english-speaker. But I can do that. If nobody will make it in about a day than I will register and add a mark.

Dade916 commented 6 years ago

It may be handy to have a check in BlendLuxCore if the old plugin is enabled, is it possible ?

Theverat commented 6 years ago

I'm not a native english-speaker. But I can do that.

Nobody in the team is, currently ;) I'm asking you to do it because we are very few developers and it would be great if more people would participate in the project. Every bit that we don't have to do gives us more time to focus on the actual development.

It may be handy to have a check in BlendLuxCore if the old plugin is enabled, is it possible ?

I'll look into it.

mageaster commented 6 years ago

OK, 2.79b official activates the addon, but crashes while attempting to render.

Any particular reason to not use the official Blender 2.79b ?

It is cozily to get updates automatically, no need to go to the website, download an archive and unzip it. Nothing more.

Theverat commented 6 years ago

Any useful error messages or just the usual ERROR_ACCESS_VIOLATION?

Theverat commented 6 years ago

It may be handy to have a check in BlendLuxCore if the old plugin is enabled, is it possible ?

See my post here: https://forums.luxcorerender.org/viewtopic.php?f=5&p=2637#p2637

mageaster commented 6 years ago
~$ Downloads/blender-2.79b-linux-glibc219-x86_64/blender
Read prefs: ~/.config/blender/2.79/config/userpref.blend
found bundled python: ~ /Downloads/blender-2.79b-linux-glibc219-x86_64/2.79/python
Registered Animation Nodes with 497 modules.
pyluxcore version: 2.0beta2
Updating OpenCL device list
init
LuxCoreRenderEngine del
init
LuxCoreRenderEngine del
init
Can't tag errorlog for redraw in _RestrictContext
Rendering layer "RenderLayer"
exporter init
create_session
[SDL][86.457] Camera type: perspective
[SDL][86.457] Camera position: Point[7.48113, -6.50764, 5.34367]
[SDL][86.457] Camera target: Point[6.82957, -5.89347, 4.89839]
[SDL][86.457] Camera clipping plane disabled
converting lamp: Lamp
[SDL][86.463] Material definition: Surface_Material_140459269407240
Недопустимая инструкция (сделан дамп памяти) translating: "Invalid instruction (core dumped)"

What I did: started Blender, removed standard material, created new (matte, glossy, glass), changed lamp to Sun, attached it to Sky, started render.

Dade916 commented 6 years ago

Can you post the scene triggering this crash, are you rendering on CPU or GPU ?

Dade916 commented 6 years ago

And what CPU do you have ? It is unlikely but if you have a very old CPU, LuxCore may have been compiled with some instruction set is not supported by your CPU.

mageaster commented 6 years ago

My CPU is AMD Phenom II 1055T. No matter what I choose: CPU or GPU only, it crashes.

https://drive.google.com/open?id=1nmz43ddjVzNasMGd2_k2M0v0egb48gBs

starkdd commented 6 years ago

I'm asking you to do it because we are very few developers and it would be great if more people would participate in the project.

Got it. Added to the Wiki page.

https://drive.google.com/open?id=1nmz43ddjVzNasMGd2_k2M0v0egb48gBs

works fine for me, CPU, GPU, both. Intel i7 3770, AMD R9 290. So no new info from my side.

P.S. Tried to build Blender following instructions there: https://wiki.blender.org/index.php/Dev:Doc/Building_Blender/Linux/Ubuntu/CMake and got Blender incompatible with LuxCore 2.0 beta2. Error message at activation exactly like presented by mageaster.

ImportError: /home/al/.config/blender/2.79/scripts/addons/BlendLuxCore/bin/libembree.so.2: undefined symbol: ZN3tbb10interface78internal15task_arena_base24internal_max_concurrencyEPKNS0_10task_arenaE
Dade916 commented 6 years ago

The scene works fine here too. There must be something in mageaster installation.

@mageaster, can you try to download and install the BlendLuxCore CPU-only version (OpenCL-less) ? If it works it may be a problem strictly related to your OpenCL driver installation (not uncommon on Linux when using AMD/NVIDIA binary drivers).

mageaster commented 6 years ago

@Dade916, OpenCL-less version crashes as well.

Dade916 commented 6 years ago

Strange problem, one more test: try to download the stand alone cpu-only version (https://github.com/LuxCoreRender/LuxCore/releases/download/luxcorerender_v2.0beta2/luxcorerender-v2.0beta2-linux64.tar.bz2), unpack the tar and run the following command:

./bin/luxcoreui scenes/cornell/cornell.cfg

Does it work ?

mageaster commented 6 years ago
~/Downloads/luxcorerender-v2.0beta2-linux64$ ./bin/luxcoreui scenes/cornell/cornell.cfg
bash: ./bin/luxcoreui: Нет такого файла или каталога (no such file or directory)
~/Downloads/luxcorerender-v2.0beta2-linux64$ ./luxcoreui scenes/cornell/cornell.cfg
LuxCoreUI v2.0beta2 (LuxCore demo: http://www.luxcorerender.org)
[LuxCore][0.000] Configuration: 
[LuxCore][0.001]   film.width = "512"
[LuxCore][0.001]   film.height = "512"
[LuxCore][0.001]   image.filename = "cornell.png"
[LuxCore][0.001]   scene.file = "scenes/cornell/cornell.scn"
[SDL][0.001] Reading scene: scenes/cornell/cornell.scn
[SDL][0.001] Material definition: Khaki
Недопустимая (illegal) инструкция (instruction) (сделан дамп памяти)
Dade916 commented 6 years ago

Russian isn't exactly my native language, anyway I assume it is a crash.

There is something different in your system, it may be some language related setting. If you switch to a western language, I assume that it will work. I can not investigate this problem because I don't have such a system.

mageaster commented 6 years ago
:~$ locale
LANG=en_US.UTF-8
LANGUAGE=en
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=ru_RU.UTF-8
LC_TIME=ru_RU.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=ru_RU.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=ru_RU.UTF-8
LC_NAME=ru_RU.UTF-8
LC_ADDRESS=ru_RU.UTF-8
LC_TELEPHONE=ru_RU.UTF-8
LC_MEASUREMENT=ru_RU.UTF-8
LC_IDENTIFICATION=ru_RU.UTF-8
LC_ALL=
:~$ cd Downloads/luxcorerender-v2.0beta2-linux64
:~/Downloads/luxcorerender-v2.0beta2-linux64$ ./luxcoreui scenes/cornell/cornell.cfg
LuxCoreUI v2.0beta2 (LuxCore demo: http://www.luxcorerender.org)
[LuxCore][0.056] Configuration: 
[LuxCore][0.057]   film.width = "512"
[LuxCore][0.057]   film.height = "512"
[LuxCore][0.057]   image.filename = "cornell.png"
[LuxCore][0.057]   scene.file = "scenes/cornell/cornell.scn"
[SDL][0.057] Reading scene: scenes/cornell/cornell.scn
[SDL][0.058] Material definition: Khaki
Illegal instruction (core dumped)

I think, this issue should be isolated into a new entry.

Dade916 commented 6 years ago

Try:

gdb ./luxcoreui r scenes/cornell/cornell.cfg

and, after the crash:

bt

Does Russia uses "," as decimal separator instead of "." ? The problem may be here:

LC_NUMERIC=ru_RU.UTF-8

mageaster commented 6 years ago
Reading symbols from ./luxcoreui...done.
(gdb) r scenes/cornell/cornell.cfg 
Starting program: ~/Downloads/luxcorerender-v2.0beta2-linux64/luxcoreui scenes/cornell/cornell.cfg
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
LuxCoreUI v2.0beta2 (LuxCore demo: http://www.luxcorerender.org)
[LuxCore][0.000] Configuration: 
[LuxCore][0.000]   film.width = "512"
[LuxCore][0.000]   film.height = "512"
[LuxCore][0.000]   image.filename = "cornell.png"
[LuxCore][0.000]   scene.file = "scenes/cornell/cornell.scn"
[SDL][0.000] Reading scene: scenes/cornell/cornell.scn
[SDL][0.001] Material definition: Khaki

Program received signal SIGILL, Illegal instruction.
0x0000000000984a2c in boost::uuids::detail::seed_rng::sha1_random_digest_() ()
(gdb) bt
#0  0x0000000000984a2c in boost::uuids::detail::seed_rng::sha1_random_digest_()
    ()
#1  0x00000000009815ca in luxrays::NamedObject::GetUniqueName(std::string const&) ()
#2  0x00000000007d4816 in slg::Scene::GetTexture(luxrays::Property const&) ()
#3  0x00000000007c9bd1 in slg::Scene::CreateMaterial(unsigned int, std::string const&, luxrays::Properties const&) ()
#4  0x00000000007d2a85 in slg::Scene::ParseMaterials(luxrays::Properties const&) ()
#5  0x00000000007273f2 in slg::Scene::Parse(luxrays::Properties const&) ()
#6  0x000000000072a653 in slg::Scene::Scene(luxrays::Properties const&, float)
    ()
#7  0x0000000000745c41 in slg::RenderConfig::RenderConfig(luxrays::Properties const&, slg::Scene*) ()
#8  0x0000000000639e9a in luxcore::detail::RenderConfigImpl::RenderConfigImpl(luxrays::Properties const&, luxcore::detail::SceneImpl*) ()
#9  0x0000000000630af2 in luxcore::RenderConfig::Create(luxrays::Properties const&, luxcore::Scene*) ()
#10 0x000000000051526b in main ()

Does Russia uses "," as decimal separator instead of "." ?

Yes, it uses comma, but changing numeric locale has no effect.

Dade916 commented 6 years ago

It may be something like this: https://issues.apache.org/jira/browse/IMPALA-1399?attachmentSortBy=fileName

Check the "julien.eid_impala_81c5 Julien Eid added a comment - 22/Dec/14 18:02" comment. Boost seems to uses SSE4 to accelerate boost::uuids so current LuxCore binaries works only on SSE4 capable CPUs even it is not compiled to use SSE4 instruction set.

I will check if it is easy to disable Boost SSE4 usage but it may be not possible.

Theverat commented 6 years ago

That's weird because I have the exact same CPU on my Windows machine (AMD Phenom II 1055t) and it works fine there.

Dade916 commented 6 years ago

It may be just the Linux Boost binaries used, to be compiled (by error) for SSE4. My CPU is SSE4 enabled.

mageaster commented 6 years ago
(gdb) display/i $pc
1: x/i $pc
=> 0x984a2c <_ZN5boost5uuids6detail8seed_rng19sha1_random_digest_Ev+9868>:  pshufb %xmm7,%xmm0
(gdb) 

Google says that pshufb is ssse3 instruction

Dade916 commented 6 years ago

pshufb is an SSSE3 instruction (notice the additional "S") and it is apparently not supported by AMD Phenom II.

mageaster commented 6 years ago

But it works on @Theverat's PC.

Dade916 commented 6 years ago

But it works on @Theverat's PC.

On Windows, where the binaries are not the same and I guess the Boost library has been compiled without "SSSE3" support.

mageaster commented 6 years ago

Dammit. Looks like I have to upgrade my pc. Should I close the issue?

Dade916 commented 6 years ago

Wait, I will check if I can compile boost without SSS3 instructions (like on Windows).

mageaster commented 6 years ago

I've compiled LuxCore with dynamic linking accordingly to wiki and... YES! It RUNS!!! How to make it work from Blender?

Theverat commented 6 years ago

This should copy all the needed binaries to the right location. See also the readme in the bin folder.

mageaster commented 6 years ago

Well...

:~$ Downloads/blender-2.79b-linux-glibc219-x86_64/blender
Read prefs: ~/.config/blender/2.79/config/userpref.blend
found bundled python: /home/maxx/Downloads/blender-2.79b-linux-glibc219-x86_64/2.79/python
Registered Animation Nodes with 497 modules.
pyluxcore version: 2.0beta2
Read blend: ~/Картинки/3dsxperience/LuxCrash.blend
Updating OpenCL device list
init
Can't tag errorlog for redraw in _RestrictContext
Rendering layer "RenderLayer"
exporter init
create_session
[SDL][3.668] Camera type: perspective
[SDL][3.668] Camera position: Point[7.48113, -6.50764, 5.34367]
[SDL][3.668] Camera target: Point[6.82957, -5.89347, 4.89839]
[SDL][3.668] Camera clipping plane disabled
converting lamp: Lamp
[SDL][3.676] Material definition: Surface_Mat1_140493320838152
[SDL][3.680] Scene objects count: 1
[SDL][3.680] Light definition: Lamp_Lamp_140493320835080
[SDL][3.680] Light definition: __WORLD_BACKGROUND_LIGHT__
WARNING: Use a non-automatic tonemapper to get tonemapped AOVs
Can't tag errorlog for redraw in _RestrictContext
[LuxCore][3.843] Configuration: 
[LuxCore][3.844]   path.pathdepth.diffuse = 5
[LuxCore][3.844]   path.pathdepth.specular = 6
[LuxCore][3.844]   scene.epsilon.max = 0.10000000149011612
[LuxCore][3.844]   film.filter.width = 1.5
[LuxCore][3.844]   path.pathdepth.glossy = 5
[LuxCore][3.844]   film.width = 960
[LuxCore][3.844]   renderengine.seed = 1
[LuxCore][3.844]   batch.haltthreshold = 0.0001
[LuxCore][3.844]   path.pathdepth.total = 7
[LuxCore][3.844]   sampler.metropolis.largesteprate = 0.40000000000000002
[LuxCore][3.844]   film.height = 540
[LuxCore][3.844]   batch.haltthreshold.stoprendering.enable = 0
[LuxCore][3.844]   film.filter.type = "BLACKMANHARRIS"
[LuxCore][3.844]   sampler.sobol.adaptive.strength = 0.69999998807907104
[LuxCore][3.844]   sampler.type = "SOBOL"
[LuxCore][3.844]   scene.epsilon.min = 9.9999997473787516e-06
[LuxCore][3.844]   sampler.metropolis.maxconsecutivereject = 512
[LuxCore][3.844]   sampler.metropolis.imagemutationrate = 0.10000000000000001
[LuxCore][3.844]   lightstrategy.type = "LOG_POWER"
[LuxCore][3.844]   path.forceblackbackground.enable = 0
[LuxCore][3.844]   renderengine.type = "PATHCPU"
[LuxCore][3.844]   film.outputs.1.filename = "RADIANCE_GROUP.exr"
[LuxCore][3.844]   film.outputs.1.id = 0
[LuxCore][3.844]   film.outputs.1.type = "RADIANCE_GROUP"
[LuxCore][3.844]   film.outputs.0.index = 0
[LuxCore][3.844]   film.outputs.0.type = "RGB_IMAGEPIPELINE"
[LuxCore][3.844]   film.outputs.0.filename = "RGB_IMAGEPIPELINE_0.png"
[LuxCore][3.844]   film.imagepipelines.0.radiancescales.0.rgbscale = 1 1 1
[LuxCore][3.844]   film.imagepipelines.0.1.type = "TONEMAP_AUTOLINEAR"
[LuxCore][3.844]   film.imagepipelines.0.0.type = "NOP"
[LuxCore][3.844]   film.imagepipelines.0.2.scale = 0.5
[LuxCore][3.844]   film.imagepipelines.0.radiancescales.0.enabled = 1
[LuxCore][3.844]   film.imagepipelines.0.2.type = "TONEMAP_LINEAR"
[LuxCore][3.844]   film.imagepipelines.0.radiancescales.0.globalscale = 1
Traceback (most recent call last):
  File "~/Downloads/blender-2.79b-linux-glibc219-x86_64/2.79/scripts/addons/BlendLuxCore/engine/__init__.py", line 38, in render_final
    final.render(self, scene)
  File "~/Downloads/blender-2.79b-linux-glibc219-x86_64/2.79/scripts/addons/BlendLuxCore/engine/final.py", line 34, in render
    _render_layer(engine, scene)
  File "~Downloads/blender-2.79b-linux-glibc219-x86_64/2.79/scripts/addons/BlendLuxCore/engine/final.py", line 46, in _render_layer
    engine.session = engine.exporter.create_session(scene, engine=engine)
  File "~/Downloads/blender-2.79b-linux-glibc219-x86_64/2.79/scripts/addons/BlendLuxCore/export/__init__.py", line 127, in create_session
    renderconfig = pyluxcore.RenderConfig(config_props, luxcore_scene)
RuntimeError: std::bad_cast
ERROR: std::bad_cast
Can't tag errorlog for redraw in _RestrictContext
LuxCoreRenderEngine del
Error: std::bad_cast

Cyrillic in path doesn't matter.

Dade916 commented 6 years ago

That is the "locale" problem for sure, with C library trying to parse "," instead of "." in floating point numbers. Try to force local to "us" or "C".

mageaster commented 6 years ago

That is the "locale" problem for sure

Nope.


:~$ locale
LANG=en_US.UTF-8
LANGUAGE=en
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=en_US.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_ALL=
:~$ Downloads/blender-2.79b-linux-glibc219-x86_64/blender
Read prefs: /~/.config/blender/2.79/config/userpref.blend
found bundled python: ~/Downloads/blender-2.79b-linux-glibc219-x86_64/2.79/python
Registered Animation Nodes with 497 modules.
pyluxcore version: 2.0beta2
Read blend: ~/Pictures/3dsxperience/LuxCrash.blend
Updating OpenCL device list
init
Can't tag errorlog for redraw in _RestrictContext
Rendering layer "RenderLayer"
exporter init
create_session
[SDL][3.055] Camera type: perspective
[SDL][3.055] Camera position: Point[7.48113, -6.50764, 5.34367]
[SDL][3.055] Camera target: Point[6.82957, -5.89347, 4.89839]
[SDL][3.055] Camera clipping plane disabled
converting lamp: Lamp
[SDL][3.063] Material definition: Surface_Mat1_139773022526472
[SDL][3.066] Scene objects count: 1
[SDL][3.066] Light definition: Lamp_Lamp_139773022523400
[SDL][3.067] Light definition: __WORLD_BACKGROUND_LIGHT__
WARNING: Use a non-automatic tonemapper to get tonemapped AOVs
Can't tag errorlog for redraw in _RestrictContext
[LuxCore][3.232] Configuration: 
[LuxCore][3.232]   film.filter.width = 1.5
[LuxCore][3.232]   path.pathdepth.total = 7
[LuxCore][3.232]   batch.haltthreshold.stoprendering.enable = 0
[LuxCore][3.232]   lightstrategy.type = "LOG_POWER"
[LuxCore][3.232]   film.width = 960
[LuxCore][3.232]   batch.haltthreshold = 0.0001
[LuxCore][3.232]   path.pathdepth.diffuse = 5
[LuxCore][3.232]   path.pathdepth.glossy = 5
[LuxCore][3.232]   path.forceblackbackground.enable = 0
[LuxCore][3.232]   sampler.metropolis.imagemutationrate = 0.10000000000000001
[LuxCore][3.232]   sampler.metropolis.largesteprate = 0.40000000000000002
[LuxCore][3.232]   renderengine.seed = 1
[LuxCore][3.232]   sampler.metropolis.maxconsecutivereject = 512
[LuxCore][3.232]   path.pathdepth.specular = 6
[LuxCore][3.232]   scene.epsilon.min = 9.9999997473787516e-06
[LuxCore][3.232]   sampler.type = "SOBOL"
[LuxCore][3.232]   scene.epsilon.max = 0.10000000149011612
[LuxCore][3.232]   film.filter.type = "BLACKMANHARRIS"
[LuxCore][3.232]   sampler.sobol.adaptive.strength = 0.69999998807907104
[LuxCore][3.232]   renderengine.type = "PATHCPU"
[LuxCore][3.232]   film.height = 540
[LuxCore][3.232]   film.outputs.0.type = "RGB_IMAGEPIPELINE"
[LuxCore][3.232]   film.outputs.1.id = 0
[LuxCore][3.232]   film.outputs.0.index = 0
[LuxCore][3.232]   film.outputs.0.filename = "RGB_IMAGEPIPELINE_0.png"
[LuxCore][3.232]   film.outputs.1.type = "RADIANCE_GROUP"
[LuxCore][3.232]   film.outputs.1.filename = "RADIANCE_GROUP.exr"
[LuxCore][3.232]   film.imagepipelines.0.0.type = "NOP"
[LuxCore][3.232]   film.imagepipelines.0.radiancescales.0.globalscale = 1
[LuxCore][3.232]   film.imagepipelines.0.radiancescales.0.enabled = 1
[LuxCore][3.232]   film.imagepipelines.0.2.scale = 0.5
[LuxCore][3.232]   film.imagepipelines.0.1.type = "TONEMAP_AUTOLINEAR"
[LuxCore][3.232]   film.imagepipelines.0.2.type = "TONEMAP_LINEAR"
[LuxCore][3.232]   film.imagepipelines.0.radiancescales.0.rgbscale = 1 1 1
Traceback (most recent call last):
  File "~/Downloads/blender-2.79b-linux-glibc219-x86_64/2.79/scripts/addons/BlendLuxCore/engine/__init__.py", line 38, in render_final
    final.render(self, scene)
  File "~/Downloads/blender-2.79b-linux-glibc219-x86_64/2.79/scripts/addons/BlendLuxCore/engine/final.py", line 34, in render
    _render_layer(engine, scene)
  File "~/Downloads/blender-2.79b-linux-glibc219-x86_64/2.79/scripts/addons/BlendLuxCore/engine/final.py", line 46, in _render_layer
    engine.session = engine.exporter.create_session(scene, engine=engine)
  File "~/Downloads/blender-2.79b-linux-glibc219-x86_64/2.79/scripts/addons/BlendLuxCore/export/__init__.py", line 127, in create_session
    renderconfig = pyluxcore.RenderConfig(config_props, luxcore_scene)
RuntimeError: std::bad_cast
ERROR: std::bad_cast
Can't tag errorlog for redraw in _RestrictContext
LuxCoreRenderEngine del
Error: std::bad_cast
Dade916 commented 6 years ago

Try the "./luxcoreui scenes/cornell/cornell.cfg" test first (Blender+Python+LuxCore are a lot of software layers and someone my set/rest the locale).

mageaster commented 6 years ago

As i said, luxcoreui itself WORKS even with russian locale.

mageaster commented 6 years ago

OK, I've made some tests and got this thing: if I unzip BlendLuxcore that I've downloaded from link on the site and get binaries i've built manually except pyluxcore, I got crash with previous error:

[SDL][86.457] Camera clipping plane disabled
converting lamp: Lamp
[SDL][86.463] Material definition: Surface_Material_140459269407240
Недопустимая инструкция (сделан дамп памяти) translating: "Invalid instruction (core dumped)"

If I replace pyluxcore with one I've compiled, I get errors two posts above.

Dade916 commented 6 years ago

You can try to check if this is the source of your problem: https://forums.luxcorerender.org/viewtopic.php?f=4&t=223&start=10#p2894

mageaster commented 6 years ago

No, doctor House, this is not lupus...^U I've tried on my laptop with Intel Core i3 3110 (which supports ssse3, sse4 etc), KDE Neon WITH TOTALLY RUSSIAN LOCALE and it works. And no, I never run user's soft with root privileges. And international font are off, I don't need them.

Dade916 commented 6 years ago

So I guess the problem is in your Phenom II system, closing the issue.

mageaster commented 6 years ago

How can it be problem in Phenom II system, if self-built luxcoreui works? No, this is pyluxcore issue.

Dade916 commented 6 years ago

Or its a problem of how the Phenom II system is installed: some setting, some package conflict or something else. Anyway it is something only you can track because it happens only on that particular system as the test on your laptop seems to prove.

leso-kn commented 6 years ago

I'm facing the same issue. Running on completely different hardware here:

I assume it might be a shared library path issue. I've been facing this with other projects, that i couldn't compile due to undefined symbol errors, even though they were compiling just fine on other machines. Back then i fixed it by adding a directory to LDFLAGS. There's a similar environment variable called LD_LIBRARY_PATH for dynamically linked executables.

I'll be searching on this today and post my findings here

@mageaster Are you still facing this issue?

leso-kn commented 6 years ago

The renderer itself works for me too. Only BlendLuxCore fails to activate with the same undefined symbol error as mageaster's

mageaster commented 6 years ago

@leso-kn I didn't try it any more.

leso-kn commented 6 years ago

Hrm.. maybe you could try again with the latest version. If the issue persists i'll tell you if i can fix it

mageaster commented 6 years ago

OK, I've tested it right now. Blender 2.79b official, BlendLuxCore 2.0 with OpenCL official. Now on Kubuntu 18.04. Add-on activates, but still crashes Blender even when I try to open a preview (probably still requires SSE4/SSSE3).