Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not all examples work when built out of the box #410

Closed
gordonwatts opened this issue Jun 21, 2018 · 4 comments
Closed

Not all examples work when built out of the box #410

gordonwatts opened this issue Jun 21, 2018 · 4 comments

Comments

@gordonwatts
Copy link

gordonwatts commented Jun 21, 2018

A number of examples fail out of the box. All the failures are due to missing data files. For example (copied from #406):

----------------------------------------------------------
 ### running test :  'geoPluginRun  -volmgr -destroy -plugin DD4hep_AlignmentExample_populate -input file:/root/install/examples/AlignDet/compact/Telescope.xml -iovs 10'
PersistencyIO    INFO  +++ Set Streamer to dd4hep::OpaqueDataBlock
PersistencyIO    INFO  +++ Patching TGeoVolume.fUserExtension to persistent
Info in <TGeoManager::TGeoManager>: Geometry world, Detector Geometry created
PersistencyIO    INFO  +++ Patching TGeoNode.fUserExtension to persistent
geoPluginRun: No geometry input supplied. No geometry will be loaded.
DD4hepVolumeManager INFO  **** running plugin DD4hepVolumeManager !
VolumeManager    INFO   - populating volume ids - be patient ...
VolumeManager    INFO   - populating volume ids - done. 0 nodes.
VolumeManager    INFO  +++ Volume manager populated and loaded.
XercesC          FATAL +++ FATAL Error at file "", Line 0 Column: 0 Message:unable to open primary document entity '/root/install/examples/AlignDet/compact/Telescope.xml'
RunPlugin        ERROR ++ Exception while executing plugin DD4hep_AlignmentExample_populate:
                Document::root: Invalid handle!
dd4hep: while parsing file:/root/install/examples/AlignDet/compact/Telescope.xml
dd4hep: with plugin:DD4hep_AlignmentExample_populate
geoPluginRun: Got uncaught exception: RunPlugin: ++ Exception while executing plugin DD4hep_AlignmentExample_populate:
                Document::root: Invalid handle!
dd4hep: while parsing file:/root/install/examples/AlignDet/compact/Telescope.xml
dd4hep: with plugin:DD4hep_AlignmentExample_populate
<end of output>
Test time =   0.37 sec
----------------------------------------------------------

This particular failure can be fixed by updating the CMakeLists.txt file in exampls/AlignDet by replacing the line:

dd4hep_install_dir( compact DESTINATION examples/AlignDet )

with

dd4hep_install_dir( compact DESTINATION ${DD4hep_DIR}/examples/AlignDet )

The rest of the test failures can be fixed with similar modifications. The CMakeLists.txt files in Conditionss and DDDB need to be similarly updated. The CMakeLists.txt in DDDB is slightly different and the one line must be updated to look like:

install ( FILES    data/DDDB.tar.gz DESTINATION ${DD4hep_DIR}/examples/DDDB)

I do not know the DD4hep cmake code well enough to know if this is a bug in the script copying over, or is the above code changes are the proper ones to fix. But, certainly, after these changes are made to the three files all tests build in the examples directory.

Using Ubuntu, Xenial, and working off the release 1.07 branch.

@MarkusFrankATcernch
Copy link
Contributor

MarkusFrankATcernch commented Jun 21, 2018

Please see: #409

Closed until fix proven to not work.

@gordonwatts
Copy link
Author

Ah, that looks like it should fix it!

@MarkusFrankATcernch
Copy link
Contributor

It worked for me on my box....the "official" tests are not (yet) updated to check this.

@gordonwatts
Copy link
Author

The latest version of the head seems to work well in my personal testing (e.g. built in a docker container):

  • All tests build out of the box
  • All examples build out of the box
  • It is now possible to set the install directory for the examples tests in another location, and everything all works properly there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants