Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#22,330 コメント 0 件 リアクション 0 件 担当者 2 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@pcanal がすでに取り組んでいます。

2026年5月19日 から。

評価

この issue はまだ評価されていません。

説明

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

主要言語
C++
スター
3.3k
フォーク
1.6k
平均マージ
2日 16時間
マージ済み PR(30日)
194

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

root-project/root のほかの issue

root-project/root の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。