# Root file crashing root when opened

**URL:** <https://root-forum.cern.ch/t/root-file-crashing-root-when-opened/59503>\
**Category:** Newbie\
**Created:** [May 29, 2024, 11:44am UTC](https://root-forum.cern.ch/t/root-file-crashing-root-when-opened/59503 "2024-05-29T11:44:48Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Davide\_La\_Rosa](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/davide_la_rosa/32/36647_2.png) [@Davide\_La\_Rosa](https://root-forum.cern.ch/u/Davide_La_Rosa)\
**Post date:** [May 29, 2024, 11:44am UTC](https://root-forum.cern.ch/t/root-file-crashing-root-when-opened/59503/1 "2024-05-29T11:44:48Z")

</div>

* * *

_ROOT Version:_ 6.30.06  
_Platform:_ Windows 10

* * *

Hello. When I open a root file from the object browser I encounter a crash. Can you help me with the issue?

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [May 29, 2024, 11:49am UTC](https://root-forum.cern.ch/t/root-file-crashing-root-when-opened/59503/2 "2024-05-29T11:49:08Z")

</div>

Well, I’m afraid there is not much we can do with so little information…

---

<div class="post-metadata">

**Author:** ![Davide\_La\_Rosa](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/davide_la_rosa/32/36647_2.png) [@Davide\_La\_Rosa](https://root-forum.cern.ch/u/Davide_La_Rosa)\
**Post date:** [May 29, 2024, 11:49am UTC](https://root-forum.cern.ch/t/root-file-crashing-root-when-opened/59503/3 "2024-05-29T11:49:49Z")

</div>

Is there a way to know if it’s that specific file that causes the issue?

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [May 29, 2024, 11:50am UTC](https://root-forum.cern.ch/t/root-file-crashing-root-when-opened/59503/4 "2024-05-29T11:50:33Z")

</div>

Try another file (there is the `hsimple.root` file in tutorials)

---

<div class="post-metadata">

**Author:** ![Davide\_La\_Rosa](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/davide_la_rosa/32/36647_2.png) [@Davide\_La\_Rosa](https://root-forum.cern.ch/u/Davide_La_Rosa)\
**Post date:** [May 29, 2024, 12:17pm UTC](https://root-forum.cern.ch/t/root-file-crashing-root-when-opened/59503/5 "2024-05-29T12:17:17Z")

</div>

The file from tutorial works properly, I have no idea why the file I’m trying to open crashes root since other people already opened the file without any issue…

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [May 29, 2024, 12:18pm UTC](https://root-forum.cern.ch/t/root-file-crashing-root-when-opened/59503/6 "2024-05-29T12:18:04Z")

</div>

can you share the file?

---

<div class="post-metadata">

**Author:** ![Davide\_La\_Rosa](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/davide_la_rosa/32/36647_2.png) [@Davide\_La\_Rosa](https://root-forum.cern.ch/u/Davide_La_Rosa)\
**Post date:** [May 29, 2024, 12:20pm UTC](https://root-forum.cern.ch/t/root-file-crashing-root-when-opened/59503/7 "2024-05-29T12:20:37Z")

</div>

> **[Download files - Filemail](https://www.filemail.com/d/uwphzkkctihzrii)**
>
> Click here to view and download these shared files from Filemail.com

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [May 29, 2024, 12:25pm UTC](https://root-forum.cern.ch/t/root-file-crashing-root-when-opened/59503/8 "2024-05-29T12:25:04Z")

</div>

I have no problem opening it:

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/4/b/4b3261a7e0902291868b1e1a4574a86ab87ca702.png)

---

<div class="post-metadata">

**Author:** ![Davide\_La\_Rosa](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/davide_la_rosa/32/36647_2.png) [@Davide\_La\_Rosa](https://root-forum.cern.ch/u/Davide_La_Rosa)\
**Post date:** [May 29, 2024, 12:30pm UTC](https://root-forum.cern.ch/t/root-file-crashing-root-when-opened/59503/9 "2024-05-29T12:30:27Z")

</div>

I guess it might be a memory error… Maybe it’s because there’s much more data in this file than the data in the tutorial files

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [May 29, 2024, 12:36pm UTC](https://root-forum.cern.ch/t/root-file-crashing-root-when-opened/59503/10 "2024-05-29T12:36:12Z")

</div>

No, since ROOT only loads the data in memory when reading them, in my example the data from the `e3lab` branch

---

<div class="post-metadata">

**Author:** ![Davide\_La\_Rosa](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/davide_la_rosa/32/36647_2.png) [@Davide\_La\_Rosa](https://root-forum.cern.ch/u/Davide_La_Rosa)\
**Post date:** [May 29, 2024, 1:07pm UTC](https://root-forum.cern.ch/t/root-file-crashing-root-when-opened/59503/11 "2024-05-29T13:07:27Z")

</div>

Then I have no idea about what may cause this. Any suggestion?

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [May 29, 2024, 1:09pm UTC](https://root-forum.cern.ch/t/root-file-crashing-root-when-opened/59503/12 "2024-05-29T13:09:44Z")

</div>

A question first: how did you start ROOT and how did you open the file?

---

<div class="post-metadata">

**Author:** ![Davide\_La\_Rosa](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/davide_la_rosa/32/36647_2.png) [@Davide\_La\_Rosa](https://root-forum.cern.ch/u/Davide_La_Rosa)\
**Post date:** [May 29, 2024, 5:43pm UTC](https://root-forum.cern.ch/t/root-file-crashing-root-when-opened/59503/13 "2024-05-29T17:43:01Z")

</div>

I started ROOT from the x64 Native Tools for VS 2022. Then I ran the command “TBrowser b” and from the object browser I opened the file in question.

---

<div class="post-metadata">

**Author:** ![ferhue](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ferhue/32/29462_2.png) [@ferhue](https://root-forum.cern.ch/u/ferhue)\
**Post date:** [May 29, 2024, 6:28pm UTC](https://root-forum.cern.ch/t/root-file-crashing-root-when-opened/59503/14 "2024-05-29T18:28:56Z")

</div>

Is there any error printed in terminal when it crashes? Could you paste it here?

---

<div class="post-metadata">

**Author:** ![Davide\_La\_Rosa](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/davide_la_rosa/32/36647_2.png) [@Davide\_La\_Rosa](https://root-forum.cern.ch/u/Davide_La_Rosa)\
**Post date:** [May 29, 2024, 8:24pm UTC](https://root-forum.cern.ch/t/root-file-crashing-root-when-opened/59503/15 "2024-05-29T20:24:38Z")

</div>

No errors, whenever I try to open the file the Object Browser stops working and the terminal does not let me do anything (probably because it’s still loading the file). I’ve tried waiting around 10 minutes to see if it eventually gets over it, but unfortunately it remains stuck. If I try to click on the object browser window, Windows says the program is not responding and asks me if I want to terminate the process.

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [May 30, 2024, 7:20am UTC](https://root-forum.cern.ch/t/root-file-crashing-root-when-opened/59503/16 "2024-05-30T07:20:25Z")

</div>

Then you can try the debug version of ROOT and debug it…

---

<div class="post-metadata">

**Author:** ![Davide\_La\_Rosa](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/davide_la_rosa/32/36647_2.png) [@Davide\_La\_Rosa](https://root-forum.cern.ch/u/Davide_La_Rosa)\
**Post date:** [May 30, 2024, 7:18pm UTC](https://root-forum.cern.ch/t/root-file-crashing-root-when-opened/59503/17 "2024-05-30T19:18:58Z")

</div>

I’ve found the problem. Apparently root is not able to open files saved on the desktop. The solution was to simple move it to any other directory. However, now a new issue came out, as the x64 native tools is not recognising root as a valid command…

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [May 30, 2024, 7:22pm UTC](https://root-forum.cern.ch/t/root-file-crashing-root-when-opened/59503/18 "2024-05-30T19:22:09Z")

</div>

Oh right, don’t use special folders, of folders in a path containing blanks (spaces)

---

<div class="post-metadata">

**Author:** ![Davide\_La\_Rosa](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/davide_la_rosa/32/36647_2.png) [@Davide\_La\_Rosa](https://root-forum.cern.ch/u/Davide_La_Rosa)\
**Post date:** [May 30, 2024, 7:28pm UTC](https://root-forum.cern.ch/t/root-file-crashing-root-when-opened/59503/19 "2024-05-30T19:28:00Z")

</div>

Right, I’m not. Now I’m simply trying to start root from the native tools as I’ve always did but it does not recognise root as a valid command anymore…

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [May 30, 2024, 7:28pm UTC](https://root-forum.cern.ch/t/root-file-crashing-root-when-opened/59503/20 "2024-05-30T19:28:58Z")

</div>

you have to call `thisroot.bat` first

[Next page](https://root-forum.cern.ch/t/root-file-crashing-root-when-opened/59503.md?page=2)
