Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto
#22,330 0 comentarios 0 reacciones 2 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@pcanal ya está trabajando en esto.

Desde el 19/5/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

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

Lenguaje dominante
C++
Estrellas
3.3k
Forks
1.6k
Merge medio
2 d 17 h
PR fusionados (30 d)
188

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de root-project/root

Todos los issues de root-project/root

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.