Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[io] Require manual rules for all leaf count arrays?

Đang mở
#22,330 0 bình luận 0 reaction 2 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@pcanal đang làm issue này rồi.

Từ ngày 19/5/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

bug experiment in:I/O
Check duplicate issues.
  • Checked for duplicates
Description

It appears that having a read rule for one leaf count array requires treatment of all arrays using the same leaf count branch.

Reproducer

A reproducer is SoAEvolv.multiple.tar.gz, which is writing

struct SoAEvolv {
   int fElements = 0;
   float *fA = nullptr; //[fElements]
   float *fB = nullptr; //[fElements]

   ClassDefNV(SoAEvolv, 2)
};

and then reading it back into

struct SoAEvolv {
   int fElements = 0;
   double *fA = nullptr; //[fElements]
   double *fB = nullptr; //[fElements]

   ClassDefNV(SoAEvolv, 3)
};

while trying to evolve it with

#pragma read sourceClass="SoAEvolv" source="int fElements; float *fA" version="[-2]" targetClass="SoAEvolv" target="fA" code="{printf(\"onfile.fA = %p\n\", onfile.fA); fA = new double[onfile.fElements]{onfile.fA[0]};}"

When running ./read_soaevolv the output is:

onfile.fA = 0x3236ef0
Error in <TBufferFile::CheckByteCount>: object of class SoAEvolv read too few bytes: 12 instead of 16
fA = 0x377f800, fB = 0

showing that the manual rule executed, but fB was not read and ROOT is reporting an error.

ROOT version

master

Installation method

from source

Operating system

Linux

Additional context

FYI @Electricks94

Ngôn ngữ chính
C++
Star
3.3k
Fork
1.6k
Merge trung bình
2 ngày 15 giờ
Pull request đã merge (30 ngày)
207

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của root-project/root

Tất cả issue của root-project/root

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.