Scene texture maps resize policy

Discussion related to the LuxCore functionality, implementations and API.
User avatar
Sharlybg
Donor
Posts: 2858
Joined: Mon Dec 04, 2017 10:11 pm
Location: Ivory Coast

Re: Scene texture maps resize policy

Post by Sharlybg » Fri Jun 18, 2021 10:15 am

Dade wrote:
Fri Jun 18, 2021 10:06 am
Sharlybg wrote:
Thu Jun 17, 2021 6:09 pm
Displacement crash it for sure here is the file. To be able to render just disconnect the displacement node from the material output.

Download file
https://drive.google.com/file/d/1xF6-Zv ... sp=sharing
I should have fixed this problem.
great will check that.
Support LuxCoreRender project with salts and bounties

Portfolio : https://www.behance.net/DRAVIA

User avatar
Dade
Developer
Posts: 5456
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Scene texture maps resize policy

Post by Dade » Fri Jun 18, 2021 10:16 am

Sharlybg wrote:
Fri Jun 18, 2021 10:15 am
great will check that.
Wait for the new build to be ready: https://dev.azure.com/LuxCoreRender/Lux ... der/_build
Support LuxCoreRender project with salts and bounties

juangea
Donor
Posts: 324
Joined: Thu Jan 02, 2020 6:23 pm

Re: Scene texture maps resize policy

Post by juangea » Fri Jun 18, 2021 10:30 am

Weird, yes, you are right, I don't have the message as sent in the PM's, I'll check it.

Mmm we have this experience in two different computers, we will fully uninstall LuxCore and reinstall it, is there something else we can delete, like some CUDA cache or something like that?

This happens in both GPU and CPU rendering mode, so I doubt is related to a driver problem.

User avatar
Dade
Developer
Posts: 5456
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Scene texture maps resize policy

Post by Dade » Fri Jun 18, 2021 10:53 am

juangea wrote:
Fri Jun 18, 2021 10:30 am
Weird, yes, you are right, I don't have the message as sent in the PM's, I'll check it.

Mmm we have this experience in two different computers, we will fully uninstall LuxCore and reinstall it, is there something else we can delete, like some CUDA cache or something like that?

This happens in both GPU and CPU rendering mode, so I doubt is related to a driver problem.
Try to check if you really have the latest version by looking at the log. There should be new image map information like sizes (i.e. "[1024x1024]") , etc.
Support LuxCoreRender project with salts and bounties

juangea
Donor
Posts: 324
Joined: Thu Jan 02, 2020 6:23 pm

Re: Scene texture maps resize policy

Post by juangea » Fri Jun 18, 2021 11:37 am

Yes, I can see that information, the tx preparing process happens, and it does not crash if I don’t enable the resize policy option, but I’ll do a clean install and I’ll tell you the outcome.

Thanks!

User avatar
Odilkhan Yakubov
Posts: 160
Joined: Fri Jan 26, 2018 10:07 pm
Location: Tashkent, Uzbekistan

Re: Scene texture maps resize policy

Post by Odilkhan Yakubov » Fri Jun 18, 2021 12:16 pm

Sharlybg wrote:
Thu Jun 17, 2021 5:48 pm
380mb saved on the house schminke:

Hause SCH Mem.jpg

Had some crashes with the displacement textures on the ground but
It stop crashing when removed the displacement part of the material.
But with that your export and init times are increased by so far about 2.5x. Why?
Image

juangea
Donor
Posts: 324
Joined: Thu Jan 02, 2020 6:23 pm

Re: Scene texture maps resize policy

Post by juangea » Fri Jun 18, 2021 12:57 pm

The time increase should happen the first time, when all the .tx files are generated, after that the conversion should not happen again and I suspect the export time should go back to normal :)

juangea
Donor
Posts: 324
Joined: Thu Jan 02, 2020 6:23 pm

Re: Scene texture maps resize policy

Post by juangea » Fri Jun 18, 2021 5:12 pm

I still get a crash, I reached to it when I enabled cache friendly sampling with PGI and Env caches, I sent you both a PM with the file to download it, it should crash as soon as you press render, remember to unpack the textures before, it seems to work fine with non-unpacked textures.

I performed a full clean install, uninstalling everything and reinstall the build from 7 hours ago.

User avatar
Dade
Developer
Posts: 5456
Joined: Mon Dec 04, 2017 8:36 pm
Location: Italy

Re: Scene texture maps resize policy

Post by Dade » Sat Jun 19, 2021 9:08 am

juangea wrote:
Fri Jun 18, 2021 5:12 pm
I still get a crash, I reached to it when I enabled cache friendly sampling with PGI and Env caches, I sent you both a PM with the file to download it, it should crash as soon as you press render, remember to unpack the textures before, it seems to work fine with non-unpacked textures.
The scene is working fine here. Before, you wrote cube+texture scene was crashing, it doesn't anymore ?

Does this new scene crash if and only if you enable cache friendly sampling ? Is it related to the new image resize policy ?
Support LuxCoreRender project with salts and bounties

juangea
Donor
Posts: 324
Joined: Thu Jan 02, 2020 6:23 pm

Re: Scene texture maps resize policy

Post by juangea » Mon Jun 21, 2021 12:18 pm

So i downloaded today's build.

The scene I sent you is working fine too on my end now, and the cube test is working fine too, however a production scene is not, I recorded a video showing all the process and the terminal with the output, and doing several tests, the one that crashes is the latest one, and it crashes when I enable PGI:

https://youtu.be/kVpcglBC3Tw

I hope this helps, tell me how to proceed to further help you out with this.

BTW: This is the crash.txt file for the crash you see in the video:

Code: Select all

# Blender 2.93.1, Commit date: 2021-06-03 11:24, Hash dddbec89f358
bpy.context.scene.exclude = False  # Property
bpy.context.scene.luxcore.config.photongi.enabled = False  # Property
bpy.context.scene.luxcore.config.envlight_cache.enabled = False  # Property
bpy.context.scene.luxcore.config.image_resize_policy.enabled = True  # Property
bpy.context.scene.luxcore.config.image_resize_policy.enabled = False  # Property
bpy.context.scene.luxcore.config.photongi.enabled = True  # Property
bpy.context.scene.luxcore.config.envlight_cache.enabled = True  # Property
bpy.context.scene.luxcore.config.envlight_cache.enabled = False  # Property
bpy.context.scene.luxcore.config.photongi.enabled = False  # Property
Saved "int_villa_dor_resize_test.blend"  # Info
bpy.context.scene.luxcore.config.image_resize_policy.enabled = True  # Property
bpy.context.scene.luxcore.config.image_resize_policy.type = 'MINMEM'  # Property
bpy.context.scene.luxcore.config.image_resize_policy.type = 'MIPMAPMEM'  # Property
bpy.context.scene.luxcore.config.image_resize_policy.type = 'MINMEM'  # Property
bpy.context.scene.luxcore.config.photongi.enabled = True  # Property

# backtrace
./bin/blender(BLI_system_backtrace+0x33) [0xa786aa3]
./bin/blender() [0xf6a059]
/lib/x86_64-linux-gnu/libc.so.6(+0x41950) [0x7f45cf870950]
/home/jgea/.config/blender/2.93/scripts/addons/BlendLuxCore/bin/pyluxcore.so(_ZN3slg8ImageMap19InstrumentationInfo14ThreadFinalizeEv+0x82) [0x7f45803a3d72]
/home/jgea/.config/blender/2.93/scripts/addons/BlendLuxCore/bin/pyluxcore.so(+0xbd420d) [0x7f458063e20d]
/home/jgea/.config/blender/2.93/scripts/addons/BlendLuxCore/bin/pyluxcore.so(+0xbd4510) [0x7f458063e510]
/home/jgea/.config/blender/2.93/scripts/addons/BlendLuxCore/bin/pyluxcore.so(+0x1f9e742) [0x7f4581a08742]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x9590) [0x7f45cffbf590]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x43) [0x7f45cf948223]

# Python backtrace


Post Reply