NVil Forum

General Category => Bug Reports => Topic started by: Mason on April 11, 2014, 10:37:19 am

Title: Crash on Export
Post by: Mason on April 11, 2014, 10:37:19 am


I have a particularly heavy scene that is crashing on export as .obj

754 objects,
9000 meshes

1.2m Polys

any solutions?
Title: Re: Crash on Export
Post by: IStonia on April 11, 2014, 11:15:57 am
The file will be too big for my pc. But I can make debug versions for you to track down why it crashes.

How it crashed?

Select all the objects. Then object mode > Geometry > Combine(Merge Meshes). See if it can be done.
Title: Re: Crash on Export
Post by: Mason on April 11, 2014, 11:24:23 am
Its just to much data for it to export.  I could send you the scene file if you want.  I am able to export smaller chunks...but this is less then ideal.

Merging objects will also crash.
Title: Re: Crash on Export
Post by: Mason on April 11, 2014, 11:30:27 am
https://dl.dropboxusercontent.com/u/3784437/Topol_10.rar
Title: Re: Crash on Export
Post by: Mason on April 11, 2014, 02:53:30 pm
same problem...even with a great deal deleted.  Crashes even if i try to combine meshes.
Title: Re: Crash on Export
Post by: steve on April 11, 2014, 03:33:13 pm
Hi Mason,

I am not sure what is causing the crash (only had a quick look up to now). It is not a memory problem(well, not on my setup).

The model will export in .dae
Can you use that format for now?

---------------------------------------

Having a look over the model (the objects that where not hidden), there are a lot of overlapping duplicates(some objects duplicated 2 or 3 times but are in same exact space). There are also various objects that contain 100+ meshes, but only 2 meshes that contain faces/verts

It does look like that is the root of the problem (multiple empty meshes in multiple objects), although I do not know where all(or how many) the problem objects are. I have narrowed an example file down to 21 objects that are reported to contain 993 meshes, which crashes Nvil on .obj export. I will see if I can norrow that down more before posting the example for IStonia to look at.

----------------------------------------




Title: Re: Crash on Export
Post by: Mason on April 11, 2014, 07:49:10 pm
yeah...just started to notice that.  Looks really ugly...wish there was a way to clean up and optimize empty Meshes/objects
Title: Re: Crash on Export
Post by: Mason on April 11, 2014, 07:57:50 pm
Yup...i was able to isolate it to the empty meshes causing the error.  I dont know how i created the empty meshes.

Its bad enough where an object with 200 polygons might have 20 empty meshes and combining that with other objects is enough to crash Nvil.

I think we need a Scene Cleanup feature
Title: Re: Crash on Export
Post by: steve on April 11, 2014, 08:26:52 pm
Hi IStonia,

I have attached part of the file uploaded by Mason. (19 objects with 633 mesh)
When attempting to export that file as .obj, it causes overflow and Nvil crashes.

It appears the problem is due to the many empty mesh contained in the objects.

Could you please take a look when you can find time.


https://www.mediafire.com/?97stk3amm4assit

Title: Re: Crash on Export
Post by: steve on April 11, 2014, 08:33:02 pm
Hi Mason,

Yup...i was able to isolate it to the empty meshes causing the error.  I dont know how i created the empty meshes.
I have not seen empty mesh before.

Quote
I think we need a Scene Cleanup feature
Lets see if IStonia can find time to look at the problem. I am sure he will find an answer.

Title: Re: Crash on Export
Post by: IStonia on April 12, 2014, 06:58:36 am
Hi IStonia,

I have attached part of the file uploaded by Mason. (19 objects with 633 mesh)
When attempting to export that file as .obj, it causes overflow and Nvil crashes.

It appears the problem is due to the many empty mesh contained in the objects.

Could you please take a look when you can find time.


https://www.mediafire.com/?97stk3amm4assit



It did not crash on me when I saved it to obj file.
Title: Re: Crash on Export
Post by: steve on April 12, 2014, 10:18:22 am
It did not crash on me when I saved it to obj file.

Looks like you need to test it on 64 bit system

I just checked with dec-23-13 build (32 bit) and that exports that example to .obj OK, but later builds that I have checked(that run as 64 bit on my setup) all crash (.net framework stack_overflow_exception)
Title: Re: Crash on Export
Post by: IStonia on April 12, 2014, 11:45:10 am
I added two selection tools

object mode > Selection > Select Empty Objects.
mesh mode > Selection > Select Empty Meshes.

http://www.digitalfossils.com/Download/NVil-Apr-11-14.rar
Title: Re: Crash on Export
Post by: steve on April 12, 2014, 12:22:12 pm
Hi IStonia,

Many thanks for the new selection options.
Would it be possible, when you have time, to add those as shortcut tools, so they can be placed in a composite tool?

Title: Re: Crash on Export
Post by: steve on April 13, 2014, 03:27:58 am
Hi IStonia,

I have been looking more at this crash.
I am seeing problems(Crash -> stack_overflow_exception) when "combing" or "exporting to .obj" of more than 510 mesh.

When combing objects/mesh, for example 400 box, the display/ui disappears for a split second(not a good sign).

Also, when I attempt to import an .obj file that contains more than 512 objects (512 = interesting number), with one of the .obj import options to divide into mesh/objects, again Nvil crashes.

I am only seeing this on 64 bit version (in the earlier builds I have that run as 32 bit, those do not crash.

Title: Re: Crash on Export
Post by: IStonia on April 15, 2014, 11:50:17 am
256 is one byte. Let's find out what it is.

Can you test this debug version on Combine function with that file? You will see a few messages before it crashes. I want to see the last message you can receive.
http://www.digitalfossils.com/Download/NVil-Apr-12a-14-Debug.rar
Title: Re: Crash on Export
Post by: steve on April 15, 2014, 12:25:53 pm
Hi IStonia,

I checked with 2 different files.

One was 1000 box primitive's, the other was the (part) test file I posted to thread.

After selecting all and Combine.

Both crashed after pressing OK on "Build Geometry"

-----------------------
Made a quick vid for you:-

https://www.mediafire.com/?exgpwfzxyw8opu1


Title: Re: Crash on Export
Post by: IStonia on April 16, 2014, 07:21:08 am
Can you test this
http://www.digitalfossils.com/Download/NVil-Apr-13a-14-Debug.rar
Title: Re: Crash on Export
Post by: steve on April 16, 2014, 07:30:42 am
Hi IStonia,

That build crashed after pressing OK on "UpdateFrameMatrices"

Title: Re: Crash on Export
Post by: IStonia on April 16, 2014, 07:48:49 am
Please test this
http://www.digitalfossils.com/Download/NVil-Apr-13b-14-Debug.rar
Title: Re: Crash on Export
Post by: steve on April 16, 2014, 07:54:27 am
Hi IStonia,

Crashed again after pressing Ok on "UpdateFrameMatrices"
Title: Re: Crash on Export
Post by: IStonia on April 19, 2014, 07:07:11 am
Try this
http://www.digitalfossils.com/Download/NVil-Apr-14-14.rar
Title: Re: Crash on Export
Post by: steve on April 19, 2014, 07:55:28 am
On tests made, no crashing while combining.
Title: Re: Crash on Export
Post by: Darcvizer on April 20, 2014, 11:48:38 pm
 I have a problem
https://www.youtube.com/watch?v=YL86WwC-KFQ&feature=youtu.be
Title: Re: Crash on Export
Post by: IStonia on April 21, 2014, 12:39:17 am
Can you send me the dae file?
Title: Re: Crash on Export
Post by: Darcvizer on April 21, 2014, 12:49:38 am
Geometry file horrible, but that file by customer
http://yadi.sk/d/zV854kewMrnjt
Title: Re: Crash on Export
Post by: IStonia on April 23, 2014, 12:07:33 pm
Try this and let me know the result.
http://www.digitalfossils.com/Download/NVil-Apr-18-14.rar
Title: Re: Crash on Export
Post by: Darcvizer on April 23, 2014, 01:11:39 pm
Yes, it works.
Title: Re: Crash on Export
Post by: Darcvizer on April 23, 2014, 01:39:24 pm
in this build does not work StreamLine extrude
https://www.youtube.com/watch?v=KKVaxR7PJAw&feature=youtu.be
Title: Re: Crash on Export
Post by: IStonia on April 23, 2014, 06:59:43 pm
try this
http://www.digitalfossils.com/Download/NVil-Apr-19-14.rar
Title: Re: Crash on Export
Post by: steve on April 27, 2014, 03:35:59 pm
I was having another look at "Combine(merge mesh)". It appears to be using an excessive amount of memory.

With the example of 1000 box(6000 polygons). I "Combine(merge mesh)", which took over a minute to complete, and checking memory usage, Nvil was using approx 6.6 GB of memory. (forgot to add:- After performing the "Combine(merge mesh)", I closed Nvil. The UI closed, but Nvil remained in memory for another few seconds, in those few seconds, Nvil started using 2 CPU cores, and memory usage increased to approx 12 GB)

Thinking it may be a problem specific with 64 bit version. I checked in Dec-23-13 build(32 bit), and attempted "Combine(merge mesh)" on 600 simple box. It caused error of "Out_of_memory"(approx 1.4 GB).


Title: Re: Crash on Export
Post by: IStonia on April 29, 2014, 10:45:31 am
How is it now?
Title: Re: Crash on Export
Post by: steve on April 29, 2014, 11:21:42 am
Very much better. I think that is now OK.

Many thanks.
Title: Re: Crash on Export
Post by: Darcvizer on May 02, 2014, 11:33:36 pm
export problem http://joxi.ru/SytkUxjKTJDrH0b7lfA
Title: Re: Crash on Export
Post by: IStonia on May 02, 2014, 11:53:33 pm
Can you send me the scene file for testing? info@digitalfossils.com
Title: Re: Crash on Export
Post by: Darcvizer on May 03, 2014, 12:17:23 am
http://joxi.ru/ujVkUxjKTJCDDih0HUo
Title: Re: Crash on Export
Post by: IStonia on May 03, 2014, 12:47:53 am
Which update did you use? What are your exporting options? I don't have any problem with this update
http://www.digitalfossils.com/Download/NVil-Apr-25-14.rar
Title: Re: Crash on Export
Post by: Darcvizer on May 03, 2014, 01:28:52 am
I used 15 Apr. sorry
Title: Re: Crash on Export
Post by: IStonia on May 03, 2014, 01:38:40 am
I tested your file on the 15 Apr version and still can't reproduce the problem. Does it still happen in the latest version I gave you?
Title: Re: Crash on Export
Post by: Darcvizer on May 03, 2014, 01:45:57 am
Apr 25 works well. However, in 15 apr does not save not obj not dae
Title: Re: Crash on Export
Post by: Darcvizer on May 17, 2014, 02:41:56 am
https://www.youtube.com/watch?v=xk61KdqKo-Y
http://yadi.sk/d/3JnUvDvOQTWLD  ------ file