Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#22,330 0 commenti 0 reazioni 2 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@pcanal ci sta già lavorando.

Dal 19/5/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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

Lingua principale
C++
Stelle
3.3k
Fork
1.6k
Merge medio
2g 16h
PR unite (30g)
194

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di root-project/root

Tutte le issue di root-project/root

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.