Game Development Community

Purelight 1.6 Crash

by Ivan Mandzhukov · in pureLIGHT · 03/17/2011 (3:39 am) · 16 replies

Hi,
I am having problems with purelight 1.6 (the latest release). Everytime I hit "Start Bake"-> "1 Samples" it crashes with that message. Is it something wrong I am doing or a bug?

www.liman3d.com/download/purelight_crash.jpg
I convert all the objects with no warnings or error in Prelight. Here is my scene:

www.liman3d.com/download/purelight_crash2.jpg
And that are the lights in PureLight:

www.liman3d.com/download/purelight_crash3.jpg
Any ideas?
My thoughts are it may be because of the complexity of the scene.Am I right? However, the number of the poligons of the whole scene are not more than 14K - 15K

#1
03/17/2011 (4:01 am)
I just found that Purelight stops crashing when I reduce the Lightmap size from 1024 (only two that high maps in my scene) to 512. But this is not a solution because I need better detail for the lightmap of that two objects in my scene.
#2
03/17/2011 (4:42 am)
Are you sure that you're not out of RAM or have some bad RAM?

The scene doesn't look very complicated and I've just restarted using PL and haven't had any problems with the new version.
#3
03/17/2011 (5:23 am)
I have 4Gb memory.
I doubt it could be because of memory,however I installed the prior version 3.5.3.0 and my problems disappeared.
#4
03/17/2011 (5:32 am)
I was thinking GPU memory, but anyway, if the previous version isn't causing an issue ... probably not then.
#5
03/18/2011 (2:51 am)
In fact the previous version causes the same problem when I double the lightmap size from 1024 to 2048. It definitely went crash because of the lightmap size, but, why... The total memory for lightmaps in the scene is about 13MB...
#6
03/21/2011 (8:25 am)
Ivan, we are looking into it right now.
#7
03/21/2011 (9:18 am)
David,
I have problems to send you back an e-mail (receiving "mail delivery failed: returning message to sender") so I will answer to Tom's questions here:


I am afraid it is not possible to send you the scene.

The object that looks to cause the problem is LMM_teren. At a lightmap site of 1024 X 1024 the newest version of Purelight (1.6) crashes. If I reduce the light map site to 512 X 512 it won't crash. Similarly the same object on the previous version of Purelight doesn't crash it at a light map size of 1024 X 1024, but at 2048 X 2048. The LMM_teren object itself is complex - approximately 10 000 triangles. It is a whole level that uses more than 20 diffuse maps and 1 light map.


Sometimes Purelight gives me another statement (instead of the one I pointed out at GG) that it can not carry on - "Could not allocate enough memory for lighting thread 0.0 free bytes are required.". The whole scene according to Purelight uses about 13MB for light maps. The diffuse maps are about 20 MB.

The system on which I run Purelight :
Coreduo 2.4
4 GB RAM
Radeon X1950XTX

To be honest the lightmap size of 1024 X 1024 for LMM_teren does the job for me. So currently I prefer to get stuck to the previous version of purelight (3.5.3.0).
The only issue I am having is that I can not move to the newest version of Purelight that crashes on 1024 X 1024 for LMM_teren. Also if at some point we decide to double the lightmap sizes of the objects due to the possibility to make the game looks better I am afraid Purelight won't allow us to do that. And that's why I decided to ask what goes wrong in my case.

#8
03/21/2011 (9:40 am)
Sounds like there's just something about that LMM_teren mesh that the current version doesn't like. The email likely bounced due to size, but, just that single mesh file should work fine.
#9
03/21/2011 (10:24 am)
Also, which version of Windows are you running?
#10
03/21/2011 (10:42 am)
Windows XP 32bit
#11
03/21/2011 (1:33 pm)
That limits your memory to 4GB and that includes video. So, if you have a 1GB video card you only have 3GB available. Probably not your issue, but just an FYI.
#12
03/21/2011 (2:38 pm)
I'll give it a try on a powerful PC.
#13
03/22/2011 (7:18 am)
I just finished testing the newest version of Purelight (1.6) on this computer:

Core Quad , 2.66 Ghz
4GB RAM
Radeon 5670 , 1GB DDR5

The results are the same - Purelight crashes. And this time it crashes on all LMM objects with light map size bigger than 512 X 512. Even simple objects like torches with a single diffuse map cause a crash if its light map is bigger than 512 X 512. I don't think it is something related to memory.
#14
04/02/2011 (5:05 am)
Obviously this is a WinXP limitation.
#15
04/05/2011 (2:05 am)
This does sound like your running out of RAM, however, it would be
nice if PureLight could handle such issues with a more friendly and
informative message window :)
#16
04/05/2011 (7:49 am)
It is an address space limitation of the 32 bit version of pureLIGHT. I have added in better detection for such conditions and reduced the amount of memory required for the next release.