-
Notifications
You must be signed in to change notification settings - Fork 37
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
podio-dump takes very long and prints errors #312
Comments
Are the 90 seconds repeatable? I.e. does it still happen on the second time around? I get quite a bit of delay the first time due to the cvmfs cache population, but it gtes down to (a still very slow) roughly 20 seconds on subsequent tries. |
On lxplus I imagine... One way of helping with this is not to build with debug symbols, I think the difference is noticeable. |
Has the file been written with the exact same version of EDM4hep that has been used for reading? While, I see the same error when running from podio import root_io, frame
from edm4hep import (
TrackerHitPlaneCollection,
MCRecoTrackerAssociationCollection,
SimTrackerHitCollection,
)
hits = TrackerHitPlaneCollection()
for _ in range(3):
hits.create()
simhits = SimTrackerHitCollection()
for _ in range(3):
simhits.create()
rels = MCRecoTrackerAssociationCollection()
for i in range(3):
rel = rels.create()
rel.setWeight(i)
rel.setSim(simhits[i])
rel.setRec(hits[2 - i])
event = frame.Frame()
event.put(hits, "hits")
event.put(simhits, "simhits")
event.put(rels, "relations")
writer = root_io.Writer("tracker_hit_repro.edm4hep.root")
writer.write_frame(event, "events") which I think should be a minimal reproducer (judging from the contents of the errors). But this just works for me: $ podio-dump tracker_hit_repro.edm4hep.root
input file: tracker_hit_repro.edm4hep.root
datamodel model definitions stored in this file: edm4hep
Frame categories in this file:
Name Entries
------ ---------
events 1
################################### events: 0 ####################################
Collections:
Name ValueType Size ID
--------- --------------------------------- ------ --------
hits edm4hep::TrackerHitPlane 3 fb2c5a48
relations edm4hep::MCRecoTrackerAssociation 3 8eb44c8d
simhits edm4hep::SimTrackerHit 3 25874f6b
Parameters:
Name Type Elements
------ ------ ---------- |
Using today's k4hep nightlies, I create and read (using podio-dump) an edm4hep file created with my steering scripts and one with your minimal reproducer script. The error does not occur using the minimal reproducer but still with my scripts. In my understanding, this excludes different versions of edm4hep as the cause. |
Thanks for testing. In that case it indeed looks like something that is not yet caught by the minimal reproducer. |
key4hep version: nightlies from 2024-06-06 but also occurred in other versions from the last month
podio-dump status_v11_REC.edm4hep.root
The text was updated successfully, but these errors were encountered: