Bug 1532: crash at the very end of texturing

This has been a few days I experience a crash at the very end of the texturing process.
Unwrapping seems to go fine, Texturing goes to 100% but then the process bar starts again at 0% and RC crashes.
Any idea ? I tried several quality level : a few days ago, this crashed only on “high res” (more than 4 8k textures for my model), but now this crashes even with a single texture…

Any idea ???
Thanks !!

RealityCaptureCrash_6295_73240-667_1_0_2_2393_RC.zip

Hi Jonathan
please click on the MODEL and make a screenshot of the UV settings used for that model.

Hello !
This seems to be strange here : model is marked as “TX” but texturing is reported to be 0x0 0 textures :

texturing_crash.PNG

Hi Jonathan
use the RECONSTRUCTION->UNWRAP tool, as UVs are mandatory before texturing. I recommend you to use the FIXED TEXEL SIZE ( all in the ortho tool settings ) and then use the OPTIMAL TEXEL VALUE in TEXEL VALUE to get 100 % texture quality… then use the TEXTURING button to calculate the actual textures…

Ok I am going to try but I never have to do that usually : Texture is doing an Unwrapping before actual texturing ?

I tried the Unwrap tool and it fails with an Unexpected program state.
Here is a capture :

unwrapping_crash.PNG

I don’t know if that is a clue, but Unwrapping process went quickly to 100% then stalled at 100% for a few minutes before the unexpected program state. Usually unwrapping is quite fast (less than 1 minute on my machine with a 5M model).

Hi Jonathan
Why are you NOT using the FIXED TEXEL DETAIL – change it from the MAXIMAL TEXTURE COUNT. You have changed the GUTTER value to 4 ( 8 pix distance between UV islands ) and with a SINGLE 8k texture for such a BIG model ? :slight_smile:
Your settings are very BAD for UVs as the resulting texture would be in say 1 pix for 10+ cm2 or even worse…

Ok, I will do this test again in fixed texel but I already did it before and it keeps crashing whatever the settings are…

And I changed the gutter value so there is less artifacts with in-game mipmapping.

Hi Jonathan
go to RECONSTRUCTION->SETTINGS->ADVANCED->USE LEGACY UNWRAP ALGO and set it to FALSE… then use the FIXED TEXEL VALUE again. first try it with gutter of 2 -> 4 pix ( then try to change it to higher numbers )

Thanks Milos !
This is no more crashing !

Jonathan.

well, I spoke too fast. :frowning:
Unwrapping is now working fine, but Texturing is crashing.
I am trying to keeep identical settings between Unwrapping tool and Reconstruction settings, but no luck.
I tried with several Unwrap settings (legacy true/false, Gutter 2,4, Fixed texel size of 1mm, 2mm, 3mm).
I still have this crash…

Attached is the dump file :
RealityCaptureCrash_6300_26709-667_1_0_2_2393_RC.zip

I did a few more tests, and it is crashing when I have a lot of textures (more than 4).
So if I keep the resolution low (e.g. 1 cm/texel -> 2 8k textures), this is not crashing, but if I want more resolution (e.g. 2mm/texel -> 31 8k textures), this is crashing.

Hi Jonathan
try to clear the CACHE before texturing ( don’t forget to save the project before you do it ! ).

are you using the FIXED TEXEL SIZE setting ?
what is your texture quality ? is it 10-100% or ?
is your model properly scaled, georeferenced, when you say 1mm resolution ?

are you using FIXED TEXEL SIZE settings ?

Yes (I tested between 1mm and 6mm, everything under 5.5mm is crashing)

what is your Tx quality ?

Depending on my tests, it was between 30% and 90%.

It’s your model properly scaled, georeferenced when you say 1mm res ?

Yes, I scaled it using Control points and a distance constraint.

I will try to clear the cache before TX.

This is still crashing after clearing the cache. I tested with fixed texel size = 2mm and 4mm (screenshot)

unwrapping.PNG

What can I do ?

Hi Jonathan
And if you use the OPTIMAL TEXEL value ( 0.001267 ), does it crash, too ?

Go to RECONSTRUCTION->SETTINGS->ADVANCED-> USE LEGACY UNWRAP ALGORITHM-> set it to FALSE to make it use it new UNWRAP algorithm. You need to restart RC to accept changes. Then try again to unwrap and texture it.

Hi Milos,

And if you use OPTIMAL TEXEL value ( 0.001267 ) it crash too ?

Go to RECONSTRUCTION->SETTINGS->COLORING-Tx->ADVANCED-> USE LEGACY UNWRAP ALGO-> set form TRUE to FALSE so it use new UNWRAP algo. you need restart RC to accept changes. Then try out again to unwrap and Tx.

Yes, it crashes at the beginning of Unwrapping.

I did another test : I exported the component to a fresh new RC project and did the reconstruction again (in normal). And it still crashes at Texturing (tested with FIXED texel size 3mm unwrapping (14 8k textures).

My workflow :

-reconstruct in normal (gives a 430M model).
-simplify to 5M.
-export to obj.
-clean the obj in MeshLab (delete triangles, close holes, remove unreferenced vertices) and save.
-import the obj.
-simplify to 200k.
-unwrap (fixed texel size 3mm -> 14 textures).
-texture (crash during texturing).

Hi Jonathan
OK, so you always export it to Meshlab for cleaning and import back the OBJ ?
Can you try to UNWRAP just the SIMPLIFIED model without prior export-import ??
Can you send me the OBJ for inspection ???