# Crash when using GR

**URL:** <https://discourse.julialang.org/t/crash-when-using-gr/1910>\
**Category:** General Usage\
**Tags:** question\
**Created:** [February 4, 2017, 11:43pm UTC](https://discourse.julialang.org/t/crash-when-using-gr/1910 "2017-02-04T23:43:30Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![cserteGT3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/csertegt3/32/8283_2.png) [@cserteGT3](https://discourse.julialang.org/u/cserteGT3)\
**Post date:** [February 4, 2017, 11:43pm UTC](https://discourse.julialang.org/t/crash-when-using-gr/1910/1 "2017-02-04T23:43:30Z")

</div>

I want to use GR.jl (with Plots.jl), but after installing it, using GR crashes the program. So fast, that I can’t read the error message. I use 0.5.0 on win10. Couldn’t find any useful info. I’m also new to Julia and couldn’t find any log files yet.  
Can you help me out?

---

<div class="post-metadata">

**Author:** ![ihnorton](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ihnorton/32/26_2.png) [@ihnorton](https://discourse.julialang.org/u/ihnorton)\
**Post date:** [February 5, 2017, 1:17am UTC](https://discourse.julialang.org/t/crash-when-using-gr/1910/2 "2017-02-05T01:17:53Z")

</div>

You could start Julia from CMD, that way the window won’t close when the program does. Then post any error output.

---

<div class="post-metadata">

**Author:** ![cserteGT3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/csertegt3/32/8283_2.png) [@cserteGT3](https://discourse.julialang.org/u/cserteGT3)\
**Post date:** [February 5, 2017, 8:40am UTC](https://discourse.julialang.org/t/crash-when-using-gr/1910/3 "2017-02-05T08:40:58Z")

</div>

It says:  
Unable to load GR framework runtime environment  
C:\Users#BOSS.julia\v0.5\GR\src..\deps\gr\libGR.dll: No such file

(I know that the #BOSS is not the perfect username, but it didn’t worked in other account without any #).  
Before trying using GR I always ran Pkg.update(), and sometime it generates GitError. If not, then says: No packages to install, update or remove

---

<div class="post-metadata">

**Author:** ![jheinen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jheinen/32/2787_2.png) [@jheinen](https://discourse.julialang.org/u/jheinen)\
**Post date:** [February 5, 2017, 8:53am UTC](https://discourse.julialang.org/t/crash-when-using-gr/1910/4 "2017-02-05T08:53:30Z")

</div>

In your case, the correct path (for the GR run-time) should be something like `C:\Users#BOSS\.julia\v0.5\GR\deps\gr\libGR.dll`. I have no idea, why there is a `src\..` component in your path. There are also missing backslashes (typos?).

I’d suggest to re-build GR:

```julia
ENV["GRDIR"]=""
Pkg.build("GR")

```

If that doesn’t help, you probably have to remove and/or initialize your package environment (using `Pkg.init()`) and start from scratch …

---

<div class="post-metadata">

**Author:** ![cserteGT3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/csertegt3/32/8283_2.png) [@cserteGT3](https://discourse.julialang.org/u/cserteGT3)\
**Post date:** [February 5, 2017, 11:53am UTC](https://discourse.julialang.org/t/crash-when-using-gr/1910/5 "2017-02-05T11:53:13Z")

</div>

I reinstalled the whole Windows and didn’t help. On another PC it’s working just fine…  
I also tried to remove, rebuild. initialize the package, and also nothing.  
I searched through the GR folder and didn’t find libGR.dll in any folder.  
Should I copy the missing files and folders from the other computer (also win10)?

---

<div class="post-metadata">

**Author:** ![jheinen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jheinen/32/2787_2.png) [@jheinen](https://discourse.julialang.org/u/jheinen)\
**Post date:** [February 5, 2017, 12:17pm UTC](https://discourse.julialang.org/t/crash-when-using-gr/1910/6 "2017-02-05T12:17:15Z")

</div>

Did you Copy/Paste the path `C:\Users#BOSS.julia\v0.5\GR\src..\deps\gr\libGR.dll` ?

Do you have a similar username (with a `#` character) on the other PC (where it’s working)?

---

<div class="post-metadata">

**Author:** ![cserteGT3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/csertegt3/32/8283_2.png) [@cserteGT3](https://discourse.julialang.org/u/cserteGT3)\
**Post date:** [February 5, 2017, 2:25pm UTC](https://discourse.julialang.org/t/crash-when-using-gr/1910/7 "2017-02-05T14:25:55Z")

</div>

I don’t understand what you mean by copy/paste. I searched in the file explorer the dll file and couldn’t find it (on that computer which doesn’t work). On the working PC everything is in it’s place.  
Now on both PC-s are normal usernames (nothing special character).

Sorry, if I got you confused.

---

<div class="post-metadata">

**Author:** ![jheinen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jheinen/32/2787_2.png) [@jheinen](https://discourse.julialang.org/u/jheinen)\
**Post date:** [February 5, 2017, 6:51pm UTC](https://discourse.julialang.org/t/crash-when-using-gr/1910/8 "2017-02-05T18:51:47Z")

</div>

> [@cserteGT3](#):
>
> It says:  
> Unable to load GR framework runtime environment  
> C:\Users#BOSS.julia\v0.5\GR\src…\deps\gr\libGR.dll: No such file

In this post, there are two `\` missing - this path can’t work. That’s why I asked how you put the error message into the text window …

---

<div class="post-metadata">

**Author:** ![cserteGT3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/csertegt3/32/8283_2.png) [@cserteGT3](https://discourse.julialang.org/u/cserteGT3)\
**Post date:** [February 6, 2017, 8:03pm UTC](https://discourse.julialang.org/t/crash-when-using-gr/1910/9 "2017-02-06T20:03:25Z")

</div>

It was just copy/paste, so the two \ were missing in the Julia error message.  
On the fresh install (on the same PC), I get the same error and the \ are not missing:

C:\Users\Lajos.julia\v0.5\GR\src..\deps\gr\libGR.dll: No such file  
Now I reinstalled Julia completely (JuliaPro exactly) and had problem with installing the package, I link a printscreen.  
[https://goo.gl/WpAXme](https://goo.gl/WpAXme)  
I tried ` Pkg.build("GR")` and ` Pkg.build()`, but after them I had the same error as above.

---

<div class="post-metadata">

**Author:** ![cserteGT3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/csertegt3/32/8283_2.png) [@cserteGT3](https://discourse.julialang.org/u/cserteGT3)\
**Post date:** [February 7, 2017, 8:31pm UTC](https://discourse.julialang.org/t/crash-when-using-gr/1910/10 "2017-02-07T20:31:39Z")

</div>

While trying to add, remove and update packages I got several times GitHub timeout errors. A friend advised me to turn off the firewall and add the package, and it worked. Also thank you for your help!
