I don't know if I should post these findings here... please correct me, or move this to a more appropriate section...While moving a project to the 2011 version, I had multiple CE crashes while trying to generate geometry. The crash was related to a 'setback' operation. I had something like this:
HouseSetBack -->
setback(gardenSetback){
remainder : innerRect House |
all: NIL
}
The mere opening of the CGA rule file containing this, would crash CE, because of the default preview bar of the rule (I reckon it evaluates the code, thus crashing)....If started through a terminal, CE outputs the following:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f6112ff80a3, pid=13790, tid=140054875539200
#
# JRE version: 6.0_26-b03
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.1-b02 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libcom_procedural_grammarcore.so+0x29f0a3] SetbackOperation::FaceSetback::extractSetbackFaces(std::vector<unsigned, std::allocator<unsigned> > const&, Mesh const*)+0x671
How to solve? Well, I merely changed the code to the following, reversing the selector's order:
HouseSetBack -->
setback(gardenSetback){
all: NIL |
remainder : innerRect House
}
Which, probably, is the way it is meant to be used... I'm a little confuse now... anyway I think it's not supposed to crash CE !Can anyone confirm this?Using Ubuntu Linux 64 bits, CityEngine 2011 64 bit.Hope this helps,André