# Warning in \<TBufferFile::WriteObjectAny\>: An object of type 13TStreamerInfo (from type\_info) passed through a TObject pointer was truncated (due a missing dictionary)!

**URL:** <https://root-forum.cern.ch/t/warning-in-tbufferfile-writeobjectany-an-object-of-type-13tstreamerinfo-from-type-info-passed-through-a-tobject-pointer-was-truncated-due-a-missing-dictionary/64255>\
**Category:** Newbie\
**Tags:** root\
**Created:** [September 30, 2025, 9:49am UTC](https://root-forum.cern.ch/t/warning-in-tbufferfile-writeobjectany-an-object-of-type-13tstreamerinfo-from-type-info-passed-through-a-tobject-pointer-was-truncated-due-a-missing-dictionary/64255 "2025-09-30T09:49:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Crisps](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/crisps/32/39101_2.png) [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Post date:** [September 30, 2025, 9:49am UTC](https://root-forum.cern.ch/t/warning-in-tbufferfile-writeobjectany-an-object-of-type-13tstreamerinfo-from-type-info-passed-through-a-tobject-pointer-was-truncated-due-a-missing-dictionary/64255/1 "2025-09-30T09:49:46Z")

</div>

* * *

_Dear experts_

I encountered this warning many times while running a program with ROOT library, but I don’t know how to locate the problematic code, how should I debug to find the problem?

```auto
Warning in <TBufferFile::WriteObjectAny>: An object of type 13TStreamerInfo (from type_info) passed through a TObject pointer was truncated (due a missing dictionary)!!!
Warning in <TBufferFile::WriteObjectAny>: An object of type 13TStreamerInfo (from type_info) passed through a TObject pointer was truncated (due a missing dictionary)!!!
Warning in <TBufferFile::WriteObjectAny>: An object of type 13TStreamerInfo (from type_info) passed through a TObject pointer was truncated (due a missing dictionary)!!!
Warning in <TBufferFile::WriteObjectAny>: An object of type 13TStreamerInfo (from type_info) passed through a TObject pointer was truncated (due a missing dictionary)!!!
......

```

_ROOT Version:_ 6.24.02  
_Platform:_ linux  
_Compiler:_ gcc 11.5.0-5

* * *

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [September 30, 2025, 10:40am UTC](https://root-forum.cern.ch/t/warning-in-tbufferfile-writeobjectany-an-object-of-type-13tstreamerinfo-from-type-info-passed-through-a-tobject-pointer-was-truncated-due-a-missing-dictionary/64255/2 "2025-09-30T10:40:13Z")

</div>

I guess @pcanal can help you.

---

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [September 30, 2025, 5:43pm UTC](https://root-forum.cern.ch/t/warning-in-tbufferfile-writeobjectany-an-object-of-type-13tstreamerinfo-from-type-info-passed-through-a-tobject-pointer-was-truncated-due-a-missing-dictionary/64255/3 "2025-09-30T17:43:51Z")

</div>

> [@Crisps](#):
>
> ```auto
> Warning in <TBufferFile::WriteObjectAny>: An object of type 13TStreamerInfo (from type_info) passed through a TObject pointer was truncated (due a missing dictionary)!!!
> 
> ```

This message is very surprising as it claims that ROOT does not know about one of its internal classes (`TStreamerInfo`). The two main potential causes are either:

- An inconsistent build, where 2 version of ROOT are being used to build part of the libraries (for example, if you upgraded ROOT but did not rebuild your own code).
- Some sort of memory corruption that cripple the ROOT meta data store. For this consider running the failing example with `valgrind –suppressions=$ROOTSYS/etc/valgrind-root.supp`…`

---

<div class="post-metadata">

**Author:** ![Crisps](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/crisps/32/39101_2.png) [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Post date:** [October 2, 2025, 9:09am UTC](https://root-forum.cern.ch/t/warning-in-tbufferfile-writeobjectany-an-object-of-type-13tstreamerinfo-from-type-info-passed-through-a-tobject-pointer-was-truncated-due-a-missing-dictionary/64255/4 "2025-10-02T09:09:56Z")

</div>

Thank you for the answer, I tried to rebuild the entire program, but these warnings still exist. And then I ran the `valgrind` as you suggested with root option, but no special output I got…here is the output file:

[53139245.txt](https://root-forum.cern.ch/uploads/short-url/m2mv1M65moF4LS684Z1hFkYcLd7.txt) (22.5 KB)

---

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [October 2, 2025, 4:07pm UTC](https://root-forum.cern.ch/t/warning-in-tbufferfile-writeobjectany-an-object-of-type-13tstreamerinfo-from-type-info-passed-through-a-tobject-pointer-was-truncated-due-a-missing-dictionary/64255/5 "2025-10-02T16:07:46Z")

</div>

Earlier in the output you have (See also your post at [Old ROOT open ROOT file created by new version of ROOT](https://root-forum.cern.ch/t/old-root-open-root-file-created-by-new-version-of-root/64245))

```auto
Error in <TList::Clear>: A list is accessing an object (0xc6fc9d20) already deleted (list name = TList)

```

You can either

- Download the tip of the v6-24-00-patches branch and build that version of ROOT

or

- Disable the new behavior when writing the files, by to calling `file->SetBit(TFile::k630forwardCompatibility);`. Alternatively The rootrc key `TFile.v630forwardCompatibility` can be used to change the default to have the bit set for all `TFiles`

You should fix this before moving on.

The next observation is that the error message:  
```

Warning in TBufferFile::WriteObjectAny: An object of type 13TStreamerInfo (from type\_info) passed through a TObject pointer was truncated (due a missing dictionary)!!!  
```

is happening at the end of the process. So this begs the questions on whether the `TFile` are all properly written and closed (the TFile object being deleted) before the end of main.

---

<div class="post-metadata">

**Author:** ![Crisps](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/crisps/32/39101_2.png) [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Post date:** [October 14, 2025, 12:37pm UTC](https://root-forum.cern.ch/t/warning-in-tbufferfile-writeobjectany-an-object-of-type-13tstreamerinfo-from-type-info-passed-through-a-tobject-pointer-was-truncated-due-a-missing-dictionary/64255/6 "2025-10-14T12:37:24Z")

</div>

Yes you are correct, after investigation I found that one `TFile` was not deleted properly. Thank you for your help!
