Author Topic: Crash while importing from Sketchup  (Read 8603 times)

Alain

    Reputation: 0
Crash while importing from Sketchup
« on: October 16, 2011, 07:08:36 pm »
October 16, 2011, 07:08:36 pm
Hi all

I export a sketchupmodell to the *.dae format (did it like here http://sketchupvrayresources.blogspot.com/2011/09/tutorial-sketchup-to-lumion.html).
The file has about 6 MB.

But while importing to Lumion (free version), Lumion always crashes.

Using Win 7 64 Bit, 8 GB RAM, Pentium CPU 2 Cores 2.8 GHz.

Does anybody know what I could have done wrong ?


Kind regards
Alain

Re: Crash while importing from Sketchup
« Reply #1 on: October 17, 2011, 12:32:46 am »
October 17, 2011, 12:32:46 am
What graphics card are you using?

Alain

    Reputation: 0
Re: Crash while importing from Sketchup
« Reply #2 on: October 17, 2011, 10:09:05 am »
October 17, 2011, 10:09:05 am
Nvidia Geforce GTX 480


Re: Crash while importing from Sketchup
« Reply #3 on: October 17, 2011, 11:11:35 am »
October 17, 2011, 11:11:35 am
Hi Alain, please zip the SketchUp file and attach it to your next post, so that we can have a look.

(Click on "+ Additional options" to attach files)

Alain

    Reputation: 0
Re: Crash while importing from Sketchup
« Reply #4 on: October 17, 2011, 12:11:46 pm »
October 17, 2011, 12:11:46 pm
ok here it is...

Gaieus

    Reputation: 44
Re: Crash while importing from Sketchup
« Reply #5 on: October 17, 2011, 12:47:38 pm »
October 17, 2011, 12:47:38 pm
Interesting (and I understand, also rather annoying). It crashes my Lumion, too (32 bit XP+SP3, so only ~3.4/4Gb RAM, Nvidia 9600 TG with 1Gb).

I tried to clean up the model a bit. Deleted the trees and bushes (you get better ones in Lumion anyway), Purged the model and got it down to 21 Mb. Then used this Cleanup plugin to do some further clean-up and got this dialog when it was done (I have never seen anything like that) but at least it reduced it to 17Mb (although this is still huge for this file).

Also reset the axes (they were moved) and moved the model above the origin itself. Deleted three more layers (only one contained anything so interesting why the other two had not been purged or cleaned up by the plugin) to no avail. Finally even copied the model to a brand new file but still crashed.

I'll try to investigate further.

Gaieus

    Reputation: 44
Re: Crash while importing from Sketchup
« Reply #6 on: October 17, 2011, 02:40:47 pm »
October 17, 2011, 02:40:47 pm
OK, I went further and even exploded the whole model to no avail. Then I noticed that you have a certain material (Bod_Parkett) that was huge: over 11 Mb! Now I tried to resample it in the exported folder (it should work) but it still crashed Lumion.

Then I went back to SU and tried to edit texture image (right click on the thumbnail in the material browser) and resampled it in Paint.NET but upon saving (which should reload the modified material in SU), it gave me an "unexpected error" - so I thought I had the culprit.

I completely replaced this material with something else and voilá; it imported into Lumion just fine.

I.e. there is something in that image file which causes errors in various applications. Get rid of it (use a different material - it is ugly anyway if you ask me) and it will be good.

(Sigh...)

Re: Crash while importing from Sketchup
« Reply #7 on: October 17, 2011, 02:42:49 pm »
October 17, 2011, 02:42:49 pm
Thanks for finding out what caused the crash, Gaieus!

Alain

    Reputation: 0
Re: Crash while importing from Sketchup
« Reply #8 on: October 17, 2011, 02:49:09 pm »
October 17, 2011, 02:49:09 pm
Thank you very mutch Gaieus !

I see that the texture for that floormaterial was huge. I'll keep an eye on huge textures in future ;-)


Kind regards
Alain

Gaieus

    Reputation: 44
Re: Crash while importing from Sketchup
« Reply #9 on: October 17, 2011, 02:53:40 pm »
October 17, 2011, 02:53:40 pm
@Morten: I was also curious... ;) (you never know when you get into a similar trouble so best is to be prepared)

BTW I went back to the original file and did this change (only the "culprit" material swapped with another material already in the file: Bod_Schiffsboden) then did nothing special (not even cleanup) just a simple Purge (under Model info > Statistics) as it should be regularly done anyway and the file went down to 13 Mb and exported from SU just fine and imported to Lumion perfectly.

It's still a bit messy. There are a bunch of simple colours that I do not know where they are coming from. Maybe group/component materials but I did not go further to investigate because I wanted to only make this change to see if that material was indeed the culprit.

Originally there were a whole bunch of small fragments of the asphalt for instance. I have no idea where they came from because they purged perfectly.

@Alain: it was not only the size (as that could have been helped by resampling easier) but that image was buggy.

Re: Crash while importing from Sketchup
« Reply #10 on: October 17, 2011, 02:57:51 pm »
October 17, 2011, 02:57:51 pm
I'll make sure that the texture is forwarded to Artur so he can check what the underlying problem might be. Lumion should not crash if a texture is unreadable.

Thanks to both of you, for providing the crashing SketchUp file, and for isolating the culprit :)

Gaieus

    Reputation: 44
Re: Crash while importing from Sketchup
« Reply #11 on: October 17, 2011, 03:36:50 pm »
October 17, 2011, 03:36:50 pm
You welcome. Now maybe a few thoughts on my feature request:
http://lumion3d.com/forum/index.php?topic=2149.0

:D

Re: Crash while importing from Sketchup
« Reply #12 on: October 17, 2011, 03:48:04 pm »
October 17, 2011, 03:48:04 pm
(Ferry and Remko are in charge of feature requests, so I can't comment on that :))

Re: Crash while importing from Sketchup
« Reply #13 on: October 17, 2011, 04:04:43 pm »
October 17, 2011, 04:04:43 pm
It turns out that the jpg image is saved in CMYK format instead of RGB format.

It shouldn't crash though, so Artur will investigate the problem and try to fix it.

Gaieus

    Reputation: 44
Re: Crash while importing from Sketchup
« Reply #14 on: October 17, 2011, 06:09:53 pm »
October 17, 2011, 06:09:53 pm
Ah, good. It can cause issues in SU on the Windows system so I understand the error when trying to reload the edited image in SU.