# Garfield ++ doesn't visualize: Aborted (core dumped)

**URL:** <https://root-forum.cern.ch/t/garfield-doesnt-visualize-aborted-core-dumped/58417>\
**Category:** Garfield++\
**Created:** [March 6, 2024, 7:02pm UTC](https://root-forum.cern.ch/t/garfield-doesnt-visualize-aborted-core-dumped/58417 "2024-03-06T19:02:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![toygarzeki](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/toygarzeki/32/35865_2.png) [@toygarzeki](https://root-forum.cern.ch/u/toygarzeki)\
**Post date:** [March 6, 2024, 7:02pm UTC](https://root-forum.cern.ch/t/garfield-doesnt-visualize-aborted-core-dumped/58417/1 "2024-03-06T19:02:45Z")

</div>

I use WSL (Ubuntu 20.04.6) for Root and Garfield++. The build was succesful, then I tried to run example/Gem. It gave some values but did not show up Root visualization and gave this error:

terminate called after throwing an instance of ‘std::logic\_error’  
what(): basic\_string::\_M\_construct null not valid

 ![resim_2024-03-06_220151288](https://root-forum.cern.ch/uploads/default/original/3X/5/8/5898272ddb20d9bbe251408359bd447398342b68.png)

Do anyone know why this happens? Thanks a lot in advance.

---

<div class="post-metadata">

**Author:** ![hschindl](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/977dab/32.png) [@hschindl](https://root-forum.cern.ch/u/hschindl)\
**Post date:** [March 7, 2024, 6:56am UTC](https://root-forum.cern.ch/t/garfield-doesnt-visualize-aborted-core-dumped/58417/2 "2024-03-07T06:56:10Z")

</div>

Hi,  
did you set the `GARFIELD_INSTALL` environment variable?

---

<div class="post-metadata">

**Author:** ![toygarzeki](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/toygarzeki/32/35865_2.png) [@toygarzeki](https://root-forum.cern.ch/u/toygarzeki)\
**Post date:** [March 7, 2024, 10:13am UTC](https://root-forum.cern.ch/t/garfield-doesnt-visualize-aborted-core-dumped/58417/3 "2024-03-07T10:13:10Z")

</div>

Thank you so much sir, it solved the problem real quick.

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [March 21, 2024, 10:13am UTC](https://root-forum.cern.ch/t/garfield-doesnt-visualize-aborted-core-dumped/58417/4 "2024-03-21T10:13:13Z")

</div>

Closed on March 21, 2024, 10:13am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
