AnsweredAssumed Answered

cityengine 2017 crashes on random shapes when generating geometry using complicated .cga rule - hs_err_pid - JVM EXCEPTION_ACCESS_VIOLATION

Question asked by mdekys_bagira on Oct 24, 2017
Latest reply on Nov 9, 2017 by CLau-esristaff

Hello,

 

I am using a complicated cga rule on shapes (that are actually untextured 3d building models )

this rule calculates all kinds of things in order to realistically subdivide and texture these building models on input.

 

While the output looks really nice, this rule often crashes CE when I select several buildings and generate them. The crash completely kills CE and only generates a logfile (attached) hs_err_pid<process number> which is not related to .cga rule

 

The problem is that I cannot reproduce this crash because for example when I select 1 group of buildings and generate them it may crash during one attempt but won't crash when I restart CE, select exactly the same number of buildings and generate them again.

 

The other thing I found out is that if I set Number of parrallel generate threads to 1 instead of default 0 - it is less likely to crash but still crashes a lot.

 

Another weird thing is that no matter how many parrallel generate threads I use, when I manually select building by building (shape by shape) and generate only one at a time it never crashes. But I am using thousands of buildings and generating them one-by-one is extremely time and file consuming

 

I tested this only on 2017 because I'm using a lot of occlusion functions with labels (which are really awesome btw) which is unsupproted by previous versions.

 

Because the code is really complicated, it leaves no log on where this happend, and it happens randomly it is difficult for me to pinpoint the cause of the problem.

 

Does anybody have similiar problem? or at least do you have any idea if there are some .cga commands which are more likely to cause this hs_err_pid issiue?

I'm suspecting alignScopeToAxes, alignScopeToGeometry and innerRectangle

 

thanks for help,

 

Mark

Attachments

Outcomes