SketchUcation Premium Membership

 

 

(Update: posting results) Crashes even on powerful computer

Moderator: CPhillips

(Update: posting results) Crashes even on powerful computer

Postby Android No. 12 » Thu May 31, 2012 2:06 pm

I wanted to fill a volume with particles, and I decided sketchyphysics would do the trick.
To simplify, I used cubes, therefore limiting the number of polys. It is essential that I have around 1000 instances of the component, so it is relatively resource-intensive.
At around 300 instances, it was working pretty well, but at 500 my old machine started to groan, and eventually crash. So it was no surprise that 1000 made it crash after 70 frames.
So I started using Replay to save the positions, and advance at around 70 frames at a time. But I've now got to a point where it crashes after one frame.
So, I thought, it's probably my rubbishy old computer, which is 2ghz core 2 duo. I bought myself one hour of the highest power EC2 instance out there - i.e. I rented a omputer from amazon. This had the equivalent of 26 combined GHz and 34GB of ram. I could use this to do the simulation quickly.
But even given that, the program crashed after one frame.
It is frustrating, because it seems like I am being limited by something other than the available resources, and it refuses to work even slowly, it will just not work at all.

Any ideas for getting around this?
Last edited by Android No. 12 on Thu Jun 14, 2012 7:06 pm, edited 1 time in total.
Android No. 12
 
Posts: 38
Joined: Sun Jun 26, 2011 11:51 am
Location: United Kingdom

Re: Crashes even on powerful computer

Postby eidam655 » Fri Jun 01, 2012 5:29 pm

i would say this is the limit of SketchUp, as it's only a 32bit application, so even with LARGE_ADDRESS_AWARE it will not use more than 4GB of ram, and i would say that this is the issue.
User avatar
eidam655
 
Posts: 152
Joined: Mon Nov 30, 2009 8:09 pm
Name: eidam655
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: Crashes even on powerful computer

Postby Android No. 12 » Sat Jun 02, 2012 12:13 am

That's a shame, thanks for the help anyway. Quick questions:
I've never heard of LARGE_ADDRESS_AWARE, is it enabled by default, or how else do I enable it?
Also any other ideas for this situation? It's just a bit of fun, but I want to fill a room randomly, but roughly evenly, with around 1152 spheres.
Android No. 12
 
Posts: 38
Joined: Sun Jun 26, 2011 11:51 am
Location: United Kingdom

Re: Crashes even on powerful computer

Postby eidam655 » Sat Jun 02, 2012 12:55 am

technically speaking: http://msdn.microsoft.com/en-us/library/wz223b1z.aspx

if you are using the latest Sketchup, then this is enabled in the program itself in its source code. you may also have a look at the 3GB switch.

and i'm sorry, i don't have any ideas to help you with your actual problem, as i am not familiar with sketchyphysics :/ you'll have to wait for someone else to show up.
User avatar
eidam655
 
Posts: 152
Joined: Mon Nov 30, 2009 8:09 pm
Name: eidam655
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: Crashes even on powerful computer

Postby mac1 » Sat Jun 02, 2012 4:11 am

eidam655 wrote:technically speaking: http://msdn.microsoft.com/en-us/library/wz223b1z.aspx

if you are using the latest Sketchup, then this is enabled in the program itself in its source code. you may also have a look at the 3GB switch.

and i'm sorry, i don't have any ideas to help you with your actual problem, as i am not familiar with sketchy physics :/ you'll have to wait for someone else to show up.


As a point of clarification=> for w 32 bits the ram usage is split between the kernel and the program so Su gets a max of 2 GB but some drivers are subtracted from that. The 3 GB switch changes that to 3 GB for SU and 1 GB for the kernel. SU is large address aware but you have to change the boot.int to include the switch and it is not available for all mother boards.
Have you tried filling your room with using the array function instead of SP.
There was a recent posting of a model with > 9000 groups of the same item and no crask here.
SU does not use dual core so you get no speed advantage there.
Make sure you purge you model so you do not have extraneous geo " hanging around". Go to windows, model info statictics and purge.
Post you model here if possible.
Some clarification needed:The OS for your "old" machine 32 bit or 64?; the rental with large Ram implies 64. You have 64 drivers of course?. Have you set your BIOS to properly use your RAM what ever it is? What is the task manager showing for RAM usage?

BTW if the cubes are small that could be part of the problem. SU does not like small dimensions in the range of 1/16". Try making your cube pack a component and model at 100x etc and then scale down to desired size if models are small.
See how your machine handles this
10,890,940 edges, 5,556,601 faces 9261 instances made form spere with 111.4 in^3 volarrayed in room 12'x18'x9'
sphere array.skp
Please, register (free) to access all the attachments on the forums.
mac1
Top SketchUcator
 
Posts: 682
Joined: Wed Apr 16, 2008 4:05 pm

Re: Crashes even on powerful computer

Postby Android No. 12 » Sat Jun 02, 2012 10:09 am

Erm, my old machine is 64-bit, and the graphics driver is 54 bit if that's what you're talking about?
Model is attached. The cubes are big enough, and I've told sketchyphysics to consider them to be spheres, because I will eventually make them high-poly spheres - the cubes are my way of lowering polys.
The cubes are basically occupying the same space as each other, and when you click "go" the force themselves away from each other. I've tried putting them in 0G and 1G - 0G provided something similar to what I wanted when I tried it with 400 instances, but I needed more.
Perhaps this way of initially placing the cubes is the problem? But I did try it before by having the top open, and the cubes falling from above - it was fine at first but still crashed eventually.
I don't want to use an array because it needs to be "random".

I just tried re-running my simulation a few times to make observations.
When I run it from the beginning, it gets a few hundred frames in, before crashing. When I split it up into segments of around 75 frames, using the record feature, it can only last around 2 segments, and on the third it crashes immediately.
Memory usage stays at 2.7/4, processor at 55. I presumed 5% was other processes, and 50% was sketchup using only one core, but actually it seems like it's using each core equally.

When I ran your model, it took 5 seconds each time I zoomed or orbited. Even if I just press the "zoom extents" button, it took about 3 seconds to figure it out
Please, register (free) to access all the attachments on the forums.
Android No. 12
 
Posts: 38
Joined: Sun Jun 26, 2011 11:51 am
Location: United Kingdom

Re: Crashes even on powerful computer

Postby mac1 » Sun Jun 03, 2012 3:55 am

Don't use SP so some novice observation which may help:
The model I posted was heavy so the fact you were slow but getting splats may indicate problem is not you machine capability perse;
I was surprised when looking at the out liner the cubes are components and each can be selected but all the spheres are groups and clicking one selects all?;
How does the memory report compare with the RAM you have installed and have you checked your BIOS settings to make sure the kernel is not taking a excessive amount of memory? However,it seems to me you would then have a problem with model I posted.;
Check this link and scroll down to the 6-25-09 date and see if the suggested BIOS setting helps you any? http://www.sevenforums.com/hardware-dev ... sue-2.html:
RUN msconfig and when you open that, go to the boot tab and click 'advanced options' and un-check 'max memory' and see if that changes the memory allocation?
I ran simulation for about 400 frames with no problem, if you convert all the spheres to one component it seems to run faster, in wire frame rendering it looks like positions are some what packed around your starting point which leads me to think random means selection for a normal population. Don't know if that is important to you, task manager does not show any increase in the paging file usage so I am not hitting any memory limit; if I use the component browser to replace all boxes with sphere in then get splat but have not done any TS on that=> maybe operator error? Don't know the focus of your sim but thing you maybe better staring with thins not touching, all a ranodm walk around and when touch occurs it stops or ??
Good Luck
mac1
Top SketchUcator
 
Posts: 682
Joined: Wed Apr 16, 2008 4:05 pm

Re: Crashes even on powerful computer

Postby Android No. 12 » Mon Jun 04, 2012 12:13 am

I'm sorry, but I don't understand some of what you just said.
In my model, there are multiple instances of one component, "box", "box" should contain one group, a cube, which sketchyphysics considers a sphere. My plan is to run the simulation, then replace the group with a sphere, so I have a room full of spheres.
I get a bit scared with all these hacks, command-line things and BIOS settings, and I'm not sure what you mean by memory allocation, but when running the simulation, 2.8 out of 4 GB are used in total, and 1.6 out of the 2.8 is sketchup.
anyway I felt a bit guilty wasting your time on my little project, so I found a workaround. I restarted my computer, temporarily uninstalled all other plugins, ended all un-necessary processes. Ran it once until it crashed, to see how far I can go, which was 383 frames, then used the recording function to get to 380 precisely.
I can't remember distributions well, but I wanted relatively even spacing, but a random feel, I think that's "poisson"? you are right, they are a bit denser around the starting points, but I can live with that.
Here's the final result, with 1296-sided spheres. I will use vray to make some cliched eye-candy! The walls will be very colourful and stripy, and the spheres will be a mix of glass, frosted glass and metal, the ceiling will be a light-source and the ground a mirror. I will make a 360x180 panorama from where the camera is now.
Android No. 12
 
Posts: 38
Joined: Sun Jun 26, 2011 11:51 am
Location: United Kingdom

Re: Crashes even on powerful computer

Postby mac1 » Mon Jun 04, 2012 4:10 am

Not wasting any of my time. Learning as I go.
The spheres I see are in the outliner where each "box" shows as nested and if you do s right click on the box in your model SP UI shows it as sphere. That is the reasons I brought the question up.
The BIOS and msconfig are not hacks IMHO but just normal options in the windows OS ,but if you are happy with present results I would not touch them.
GDay
mac1
Top SketchUcator
 
Posts: 682
Joined: Wed Apr 16, 2008 4:05 pm

Re: Crashes even on powerful computer

Postby brookefox » Tue Jun 05, 2012 5:18 am

Hope you guys got it sorted out...

Where's the candy, please, sir?

Here's the final result, with 1296-sided spheres. I will use vray to make some cliched eye-candy! The walls will be very colourful and stripy, and the spheres will be a mix of glass, frosted glass and metal, the ceiling will be a light-source and the ground a mirror. I will make a 360x180 panorama from where the camera is now.
~ Brooke
User avatar
brookefox
 
Posts: 832
Joined: Thu Jun 26, 2008 4:17 pm
Location: Pacific northwest, USA
Name: Brooke
Operating system: Windows
SketchUp version: 8
License type: Free/Make
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: Crashes even on powerful computer

Postby Android No. 12 » Tue Jun 05, 2012 11:25 am

Just realised model didn't upload.
It's 156MB! :-o :shock: where can I upload it?
Eye candy will take a while also, rendering will take ages!
Android No. 12
 
Posts: 38
Joined: Sun Jun 26, 2011 11:51 am
Location: United Kingdom

Re: Crashes even on powerful computer

Postby Android No. 12 » Tue Jun 05, 2012 11:44 am

Here's the first preview
Android No. 12
 
Posts: 38
Joined: Sun Jun 26, 2011 11:51 am
Location: United Kingdom

Re: Crashes even on powerful computer

Postby mac1 » Tue Jun 05, 2012 4:06 pm

adroid:
Looks awesome !!
Try Google docs I think it will accept that size file.
mac1
Top SketchUcator
 
Posts: 682
Joined: Wed Apr 16, 2008 4:05 pm

Re: Crashes even on powerful computer

Postby Android No. 12 » Tue Jun 05, 2012 8:04 pm

Model: https://docs.google.com/open?id=0BzUvtd ... UNmZ1FaaGc
Render, 1728x3456, 360x180°:
Android No. 12
 
Posts: 38
Joined: Sun Jun 26, 2011 11:51 am
Location: United Kingdom

Re: Crashes even on powerful computer

Postby brookefox » Tue Jun 05, 2012 8:10 pm

Nice work getting it done, and nice render. Please consider posting these as you make them.
~ Brooke
User avatar
brookefox
 
Posts: 832
Joined: Thu Jun 26, 2008 4:17 pm
Location: Pacific northwest, USA
Name: Brooke
Operating system: Windows
SketchUp version: 8
License type: Free/Make
SketchUp use: architecture
Level of SketchUp: Intermediate

Re: Crashes even on powerful computer

Postby Android No. 12 » Tue Jun 05, 2012 9:25 pm

Thank you :D
I will post whenever I make any progress, but that's pretty slow atm... I've just made some vray materials, and added coloured stripes to the room, but the noticeable change will be when I apply the materials to the balls. There are 4 materials, and they will be applied randomly.
It's quite overdone - once you find vray or any other renderer, a lot of people just make a room and fill it with shiny spheres. However I've noticed most people just spread them around the floor, I've never seen them floating randomly in 3d before.
Android No. 12
 
Posts: 38
Joined: Sun Jun 26, 2011 11:51 am
Location: United Kingdom

Re: Crashes even on powerful computer

Postby dukejazz » Wed Jun 06, 2012 12:37 pm

by mac1 on Fri Jun 01, 2012 8:11 pm
pic_0067.jpg

Ok, and here my info
pic_0066.jpg


Here my list of thangs that may help: :idea:
1 select all- make group.
2 select all- make coponent.
3 OpenGL-use max text= off.
4 style - edges= off, when editing or viewing large objects in model.
5 Enitity egde work is copy over from another sketchup.
6 I move the total model center to orgin [0,0,0].

Instead of 15 sec, it now 3 to 4 sec

And why to do this, it the speed.
Please, register (free) to access all the attachments on the forums.
User avatar
dukejazz
 
Posts: 258
Joined: Thu May 28, 2009 7:13 am
Location: WA
Name: dukejazz
Operating system: Windows
SketchUp version: 7
License type: Free/Make
SketchUp use: hobby
Level of SketchUp: Intermediate

Re: Crashes even on powerful computer

Postby Android No. 12 » Sat Jun 09, 2012 11:54 am

Thanks for your help :D
I still haven't had time to sort out materials and stuff, but I've done some more angles. Click to enlarge.




Android No. 12
 
Posts: 38
Joined: Sun Jun 26, 2011 11:51 am
Location: United Kingdom

Re: Crashes even on powerful computer

Postby Android No. 12 » Wed Jun 13, 2012 9:44 pm

This is taking ages! I've got the fastest EC2 instance as before, it's been at this stage for around 20mins...
Android No. 12
 
Posts: 38
Joined: Sun Jun 26, 2011 11:51 am
Location: United Kingdom

Re: Crashes even on powerful computer

Postby Android No. 12 » Wed Jun 13, 2012 10:23 pm


didn't come out as brilliant as hoped
Android No. 12
 
Posts: 38
Joined: Sun Jun 26, 2011 11:51 am
Location: United Kingdom

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Need Authorised SketchUp Training by experts in various disciplines? Check out our Training details.

Ad Machine
Robot
 
Posts: 2012


Return to SketchyPhysics

Who is online

Users browsing this forum: No registered users and 0 guests