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

Bug when filling trace_ch field in TADC tree #82

Open
pcorcam opened this issue Mar 6, 2024 · 0 comments
Open

Bug when filling trace_ch field in TADC tree #82

pcorcam opened this issue Mar 6, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@pcorcam
Copy link

pcorcam commented Mar 6, 2024

Likely location of bug: /grand/dataio/root_trees.py

There is a bug when one tries to assign a value to trace_ch in a TADC tree. If you try to assign tadc.trace_ch = [my_trace_list], you get a very long error message that starts with:

*** Error in `python3': munmap_chunk(): invalid pointer: 0x000055bcdc9d65b0 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x7f474)[0x7fc44b063474]
[0x7fc38e68210e]
[0x7fc38e68230f]
[0x7fc38e68208e]
[0x7fc38e682284]
...

This is the same error one might encounter when using tadc.copy_contents(). However, tadc.trace_ch = np.array([my_trace_list]) DOES work. Hopefully this can help to solve this issue.

Note that there is no issue when assigning values to other TADC attributes, it's only a problem for tadc.trace_ch. Not checked for trace properties in other TTrees.

@pcorcam pcorcam added the bug Something isn't working label Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants