tag:blogger.com,1999:blog-36992715.post4856708766597251793..comments2024-03-25T11:14:26.579+01:00Comments on zap's mental ray tips: Yer in a "Heap" of trouble now: Avoiding random crashes in Maya/Max due to running out of Windows resources!Master Zaphttp://www.blogger.com/profile/08935910250942359436noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-36992715.post-33918261338612405562008-05-08T01:25:00.000+02:002008-05-08T01:25:00.000+02:00Ok, so the hex data doesn't copy correctly out of ...Ok, so the hex data doesn't copy correctly out of comments, so don't use that part. Ugh. Just use zap's directions but change the memory to 8192 instead. The other two entries under [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows] work right though...Aaron Bockeliehttps://www.blogger.com/profile/00136755435931587042noreply@blogger.comtag:blogger.com,1999:blog-36992715.post-45919112318529591632008-05-08T01:19:00.000+02:002008-05-08T01:19:00.000+02:00Hi, just thought I'd let you know you need to chan...Hi, just thought I'd let you know you need to change allocation of two other constants in order for this to be fixed correctly, GIDProcessHandleQuota and UserProcesHandleQuota. Otherwise you're just giving more memory to the same finite number of handles without actually allowing more handles to spawn. When setting the session manager memory limit, you can safely set memory to 8192 on 32 bit windows versions, as well.<BR/><BR/>GDIProcessHandle's max value is 16384, and User is 18000.<BR/><BR/>For the comment about xp64 the reason your numbers are bigger is because your address space (64 bits) allows much larger memory allocation for handles.<BR/><BR/>I hope it fits in the comment but here's a reg key that you can copy into a text file and save as .reg and it will set user and gdi sessions to 16384 and session manager to 8mb.<BR/><BR/>Copy and paste everything below this line in my comment into the .txt file and rename it to .reg. (If renamed correctly the icon turns into a picture of little blue squares)<BR/><BR/>Windows Registry Editor Version 5.00<BR/><BR/>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\SubSystems]<BR/>"Windows"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\<BR/> 74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,63,\<BR/> 00,73,00,72,00,73,00,73,00,2e,00,65,00,78,00,65,00,20,00,4f,00,62,00,6a,00,\<BR/> 65,00,63,00,74,00,44,00,69,00,72,00,65,00,63,00,74,00,6f,00,72,00,79,00,3d,\<BR/> 00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,53,00,68,00,61,00,\<BR/> 72,00,65,00,64,00,53,00,65,00,63,00,74,00,69,00,6f,00,6e,00,3d,00,31,00,30,\<BR/> 00,32,00,34,00,2c,00,38,00,31,00,39,00,32,00,2c,00,35,00,31,00,32,00,20,00,\<BR/> 57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,3d,00,4f,00,6e,00,20,00,53,00,75,\<BR/> 00,62,00,53,00,79,00,73,00,74,00,65,00,6d,00,54,00,79,00,70,00,65,00,3d,00,\<BR/> 57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,20,00,53,00,65,00,72,00,76,00,65,\<BR/> 00,72,00,44,00,6c,00,6c,00,3d,00,62,00,61,00,73,00,65,00,73,00,72,00,76,00,\<BR/> 2c,00,31,00,20,00,53,00,65,00,72,00,76,00,65,00,72,00,44,00,6c,00,6c,00,3d,\<BR/> 00,77,00,69,00,6e,00,73,00,72,00,76,00,3a,00,55,00,73,00,65,00,72,00,53,00,\<BR/> 65,00,72,00,76,00,65,00,72,00,44,00,6c,00,6c,00,49,00,6e,00,69,00,74,00,69,\<BR/> 00,61,00,6c,00,69,00,7a,00,61,00,74,00,69,00,6f,00,6e,00,2c,00,33,00,20,00,\<BR/> 53,00,65,00,72,00,76,00,65,00,72,00,44,00,6c,00,6c,00,3d,00,77,00,69,00,6e,\<BR/> 00,73,00,72,00,76,00,3a,00,43,00,6f,00,6e,00,53,00,65,00,72,00,76,00,65,00,\<BR/> 72,00,44,00,6c,00,6c,00,49,00,6e,00,69,00,74,00,69,00,61,00,6c,00,69,00,7a,\<BR/> 00,61,00,74,00,69,00,6f,00,6e,00,2c,00,32,00,20,00,50,00,72,00,6f,00,66,00,\<BR/> 69,00,6c,00,65,00,43,00,6f,00,6e,00,74,00,72,00,6f,00,6c,00,3d,00,4f,00,66,\<BR/> 00,66,00,20,00,4d,00,61,00,78,00,52,00,65,00,71,00,75,00,65,00,73,00,74,00,\<BR/> 54,00,68,00,72,00,65,00,61,00,64,00,73,00,3d,00,31,00,36,00,00,00<BR/><BR/>[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows]<BR/>"GDIProcessHandleQuota"=dword:00004000<BR/>"USERProcessHandleQuota"=dword:00004000Aaron Bockeliehttps://www.blogger.com/profile/00136755435931587042noreply@blogger.comtag:blogger.com,1999:blog-36992715.post-68907158357014245882008-02-28T17:10:00.000+01:002008-02-28T17:10:00.000+01:00hello zap, i have been reading your blog for a whi...hello zap, i have been reading your blog for a while now, and all those tips are very helpful :)<BR/><BR/><BR/>however I have this problem when rendering, i have done a short animation, it's nothing <I>very</I> heavy, about 70000 polys and 5 lights, 300 frames...<BR/><BR/>but it's not really that heavy like those movie quality stuff! anyway my render just decides to not want to render frames 222 or 228 depending on the set up (i moved the camera a bit) while i could render the frames after it, i wonder why it just decides to crash at that point? i tried rendering at 1280*4xx and 200*100 (!) and both lead to the same crash...<BR/><BR/>here's a screenshot of the crash:<BR/><BR/>http://img176.imageshack.us/img176/154/mentalraycrash2gn1.jpg<BR/><BR/>i really hope you could help, as I was looking on google but i get no conclusive solutions!<BR/><BR/>thanks in advance!GeckoKidhttps://www.blogger.com/profile/11420142899219741136noreply@blogger.comtag:blogger.com,1999:blog-36992715.post-64357024717035873752007-11-08T18:50:00.000+01:002007-11-08T18:50:00.000+01:00Hey Zap, has it been known for mental ray in max9 ...<B>Hey Zap, has it been known for mental ray in max9 to exceed these limitations in the process of rendering a frame?</B><BR/><BR/>THIS problem? No, never. mental ray doesn't use window handles (at least, if one or two is used for some socket communication, those are established when ray starts).<BR/><BR/>But natuarally you can run out of any other finite storage....<BR/><BR/>/ZMaster Zaphttps://www.blogger.com/profile/08935910250942359436noreply@blogger.comtag:blogger.com,1999:blog-36992715.post-82116316536369603262007-11-08T07:36:00.000+01:002007-11-08T07:36:00.000+01:00Hey Zap, has it been known for mental ray in max9 ...Hey Zap, has it been known for mental ray in max9 to exceed these limitations in the process of rendering a frame? If so, what would impact, if any, would it have on the resulting render? a crash? a less accurate final gather solution? any visual difference?kevinhttps://www.blogger.com/profile/01014522459673183279noreply@blogger.comtag:blogger.com,1999:blog-36992715.post-18912538329826250962007-10-16T09:53:00.000+02:002007-10-16T09:53:00.000+02:00Good news, thanks!Good news, thanks!coolroyhttps://www.blogger.com/profile/01495910087309465037noreply@blogger.comtag:blogger.com,1999:blog-36992715.post-21059149343559792492007-10-15T19:26:00.000+02:002007-10-15T19:26:00.000+02:00Coz in XSI everything works perfectly anyway, with...Coz in XSI everything works perfectly anyway, without tips? ;)<BR/><BR/>Honestly, stay tuned, XSI tips will be coming.<BR/><BR/>/ZMaster Zaphttps://www.blogger.com/profile/08935910250942359436noreply@blogger.comtag:blogger.com,1999:blog-36992715.post-52079305036231894792007-10-15T19:21:00.000+02:002007-10-15T19:21:00.000+02:00hi zap!why your tips are so max and maya specific?...hi zap!<BR/>why your tips are so max and maya specific?<BR/>XSI uses mantal ray too and its default render there.coolroyhttps://www.blogger.com/profile/01495910087309465037noreply@blogger.comtag:blogger.com,1999:blog-36992715.post-90420311585740025872007-10-15T17:26:00.000+02:002007-10-15T17:26:00.000+02:00Man you are scaring me with your knowledge ... and...Man you are scaring me with your knowledge ... and your ease at explaining complex stuff and making simple and interesting! Great post!Sylvain Bergerhttps://www.blogger.com/profile/04036137663328791255noreply@blogger.comtag:blogger.com,1999:blog-36992715.post-50215138979130431092007-10-15T16:26:00.000+02:002007-10-15T16:26:00.000+02:00iam on xp64 and it looks like its bigger than xp32...iam on xp64 and it looks like its bigger than xp32 :)<BR/><BR/>%SystemRoot%\system32\csrss.exe ObjectDirectory=\Windows SharedSection=1024,20480,768 Windows=On SubSystemType=Windows ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3 ServerDll=winsrv:ConServerDllInitialization,2 ProfileControl=Off MaxRequestThreads=16Stephan Wagemannhttps://www.blogger.com/profile/09189265168789001267noreply@blogger.comtag:blogger.com,1999:blog-36992715.post-74749462236553947002007-10-15T11:50:00.000+02:002007-10-15T11:50:00.000+02:00WOW !!! thx again zapWOW !!! thx again zapInohttps://www.blogger.com/profile/01314301851922482802noreply@blogger.com