Select to view content in your preferred language

Attribute maps broken ?

520
2
09-03-2012 08:57 PM
JensJebens
Emerging Contributor
Hi,


CityEngine throws the error below when using mapped attributes. This happens with fresh projects or one of the tutorials (MediEval_City_64Bit in this case). We're running Esri CityEngine 2011.2 build 120125 (trial, linux-64bit) on CentOs 6.1



The .project file of the MediEval project looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
        <name>Example_Medieval_City__2011_2</name>
        <comment></comment>
        <projects>
        </projects>
        <buildSpec>
                <buildCommand>
                        <name>org.python.pydev.PyDevBuilder__2011_2</name>
                        <arguments>
                        </arguments>
                </buildCommand>
                <buildCommand>
                        <name>com.procedural.lang.cga.cGABuilder__2011_2</name>
                        <arguments>
                        </arguments>
                </buildCommand>
                <buildCommand>
                        <name>com.procedural.lang.cga.cGABuilder</name>
                        <arguments>
                        </arguments>
                </buildCommand>
        </buildSpec>
        <natures>
                <nature>com.procedural.cityengine</nature>
                <nature>org.python.pydev.pythonNature</nature>
        </natures>
</projectDescription>




org.eclipse.core.internal.resources.ResourceException: Failed to read the project description file (.project) for '.attribute_layer'.  The file has been changed on disk, and it now contains invalid information.  The project will not function properly until the description file is restored to a valid state.
 at org.eclipse.core.internal.localstore.FileSystemResourceManager.read(FileSystemResourceManager.java:765)
 at org.eclipse.core.internal.resources.Project.updateDescription(Project.java:1289)
 at org.eclipse.core.internal.resources.Project.create(Project.java:295)
 at org.eclipse.core.internal.resources.Project.create(Project.java:256)
 at org.eclipse.core.internal.resources.Project.create(Project.java:249)
 at com.procedural.cemodel.CEAttribute.createFunctionFile(Unknown Source)
 at com.procedural.cemodel.CEAttribute.getFunctionFile(Unknown Source)
 at com.procedural.cemodel.CEAttribute.getFloatAttribute(Unknown Source)
 at com.procedural.cemodel.CEAttribute.getFloatAttribute(Unknown Source)
 at com.procedural.ceattribute.CEFunctionAttributeLayer.sample(Unknown Source)
 at org.corebounce.lib3d2.C3DOnscreen.fireCam(Unknown Source)
 at org.corebounce.lib3d2.C3DOnscreen.addToZoom(Unknown Source)
 at org.corebounce.ui.hid.HIDTargetManager.doFinish(Unknown Source)
 at org.corebounce.ui.hid.HIDTargetManager$1.run(Unknown Source)
 at org.eclipse.swt.widgets.Display.timerProc(Display.java:4154)
 at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
 at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2276)
 at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3207)
 at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
 at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
 at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
 at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
 at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
 at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
 at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
 at com.jigsawsoftware.license.client.ext.TrialLicenseApplication.start(TrialLicenseApplication.java)
 at com.procedural.cityengine.trial.Application.start(Unknown Source)
 at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
 at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
 at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
 at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
 at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
 at org.eclipse.equinox.launcher.Main.main(Main.java:1383)





org.xml.sax.SAXParseException: Premature end of file.
 at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
 at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:174)
 at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:388)
 at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1414)
 at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1059)
 at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
 at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
 at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
 at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
 at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
 at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
 at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
 at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
 at org.eclipse.core.internal.resources.ProjectDescriptionReader.read(ProjectDescriptionReader.java:919)
 at org.eclipse.core.internal.localstore.FileSystemResourceManager.read(FileSystemResourceManager.java:745)
 at org.eclipse.core.internal.resources.Project.updateDescription(Project.java:1289)
 at org.eclipse.core.internal.resources.Project.create(Project.java:295)
 at org.eclipse.core.internal.resources.Project.create(Project.java:256)
 at org.eclipse.core.internal.resources.Project.create(Project.java:249)
 at com.procedural.cemodel.CEAttribute.createFunctionFile(Unknown Source)
 at com.procedural.cemodel.CEAttribute.getFunctionFile(Unknown Source)
 at com.procedural.cemodel.CEAttribute.getFloatAttribute(Unknown Source)
 at com.procedural.cemodel.CEAttribute.getFloatAttribute(Unknown Source)
 at com.procedural.ceattribute.CEFunctionAttributeLayer.sample(Unknown Source)
 at org.corebounce.lib3d2.C3DOnscreen.fireCam(Unknown Source)
 at org.corebounce.lib3d2.C3DOnscreen.addToZoom(Unknown Source)
 at org.corebounce.ui.hid.HIDTargetManager.doFinish(Unknown Source)
 at org.corebounce.ui.hid.HIDTargetManager$1.run(Unknown Source)
 at org.eclipse.swt.widgets.Display.timerProc(Display.java:4154)
 at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
 at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2276)

TEXT OMITTED DUE TO LIMITED MAX FORUM POST LENGTH

 at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:235)
 at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:296)
 at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
 at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)
 at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
 at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
 at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
 at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
 at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
 at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
 at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
 at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
 at com.jigsawsoftware.license.client.ext.TrialLicenseApplication.start(TrialLicenseApplication.java)
 at com.procedural.cityengine.trial.Application.start(Unknown Source)
 at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
 at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
 at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
 at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
 at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
 at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
 at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
Tags (2)
0 Kudos
2 Replies
JensJebens
Emerging Contributor
Hmm, I started a new workspace and the problem went away.

You can delete the thread if you like.

PS: I was previously using a symlink for the workspace root, maybe that's got something to do with it?
0 Kudos
MatthiasBuehler1
Deactivated User
Hi !

Answer from our lead dev :

"The �??.attribute_layer�?� project is garbled. One could try to delete the folder in the workspace, but I think creating a new workspace may be more safe. Sure is that the attribute layer code is also stored in the scene ( cej ), so you'll lose nothing."


Hope this helps !
0 Kudos