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
[RF] HistFactory workspaces incompatible between versions 6.26 and 6.28 #12967
Comments
Hi, thanks for reporting this! It is indeed a bug that you can't read the 6.26 workspace in 6.28. The other way around is expected, with RooFit you can't read back a RooWorkspace with any ROOT version that is older that the version it was created with. When I run the reproducer in the debugger, I get this stack trace:
So the crash is here (https://github.com/root-project/root/blob/master/io/io/src/TBufferFile.cxx#L245): if (nwh == 255) {
*this >> nbig;
obj->resize(nbig,'\0');
ReadFastArray((char*)obj->data(),nbig);
} I have put some debug printouts. When it crashes, To me that looks more like a problem with IO than with HistFactory (the memory layout of the Maybe in the best case, the fix would just be adding a simple |
This completes the list of LinkDef entries for the classes in `RooStats/HistFactory/Systematics.h`. Closes root-project#12967.
Okay I found the fix: adding some missing entries to the |
Thanks a lot for looking into this! Great to hear that this will be fixed in the next release. |
This completes the list of LinkDef entries for the classes in `RooStats/HistFactory/Systematics.h`. Closes #12967.
This completes the list of LinkDef entries for the classes in `RooStats/HistFactory/Systematics.h`. Closes root-project#12967.
This completes the list of LinkDef entries for the classes in `RooStats/HistFactory/Systematics.h`. Closes root-project#12967.
This completes the list of LinkDef entries for the classes in `RooStats/HistFactory/Systematics.h`. Closes #12967.
This completes the list of LinkDef entries for the classes in `RooStats/HistFactory/Systematics.h`. Closes root-project#12967.
This completes the list of LinkDef entries for the classes in `RooStats/HistFactory/Systematics.h`. Closes root-project#12967.
This completes the list of LinkDef entries for the classes in `RooStats/HistFactory/Systematics.h`. Closes #12967.
Check duplicate issues.
Describe the bug
It is not possible to operate on a HistFactory Measurement object in a workspace created with ROOT 6.26 by using ROOT 6.28. Attempting to do so results in the following:
The opposite scenario (workspace created in 6.28, using 6.26 to read it) also causes issues. This means that there is essentially some trial&error when handling unknown workspaces to find a suitable ROOT version.
What is the expected behaviour?
Unclear to me whether this breaking change is expected or not, but the error message is not particularly clear in case this is expected.
How to reproduce?
Create HistFactory workspace in ROOT 6.26 (or use this example https://cernbox.cern.ch/s/uRaTglosZypwm81, created from xmls via
hist2workspace
using 6.26/08), here calledworkspace_example.root
:ROOT version
6.28/04
How did you install ROOT?
custom build, container via https://gitlab.cern.ch/atlas-amglab/atlstats
Which operating system are you using?
N/A
Additional context
No response
The text was updated successfully, but these errors were encountered: