# Scilab works on my system - linux mint 21.2, but it gives a GLException, can I fix this?

**URL:** <https://scilab.discourse.group/t/scilab-works-on-my-system-linux-mint-21-2-but-it-gives-a-glexception-can-i-fix-this/301>\
**Category:** Scilab beginners\
**Created:** [December 19, 2023, 3:14pm UTC](https://scilab.discourse.group/t/scilab-works-on-my-system-linux-mint-21-2-but-it-gives-a-glexception-can-i-fix-this/301 "2023-12-19T15:14:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![decuser](https://avatars.discourse-cdn.com/v4/letter/d/5e9695/32.png) [@decuser](https://scilab.discourse.group/u/decuser)\
**Post date:** [December 19, 2023, 3:14pm UTC](https://scilab.discourse.group/t/scilab-works-on-my-system-linux-mint-21-2-but-it-gives-a-glexception-can-i-fix-this/301/1 "2023-12-19T15:14:58Z")

</div>

Hi,

Just installed Scilab 2024.0.0 on Linux Mint 21.2 w/Cinnamon. It appears to work, but when started from the command line, it throws (and catches) the GLException:

```auto
Caught handled GLException: EGLGLXDrawableFactory - Could not initialize shared resources for EGLGraphicsDevice[type .egl, v0.0.0, nativeDisplayID 0x0, connection :0, unitID 0, handle 0x0, owner true, ResourceToolkitLock[obj 0x3997013e, isOwner true, <3de96438, af401f8>[count 1, qsz 0, owner <main-SharedResourceRunner>]]] on thread main-SharedResourceRunner

```

My question is, is this something I can fix somehow?

Thanks,

Will

---

<div class="post-metadata">

**Author:** ![mottelet](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/mottelet/32/13_2.png) [@mottelet](https://scilab.discourse.group/u/mottelet)\
**Post date:** [December 19, 2023, 4:07pm UTC](https://scilab.discourse.group/t/scilab-works-on-my-system-linux-mint-21-2-but-it-gives-a-glexception-can-i-fix-this/301/2 "2023-12-19T16:07:15Z")

</div>

> [@decuser](#):
>
> ```auto
> Caught handled GLException: EGLGLXDrawableFactory - Could not initialize shared resources for EGLGraphicsDevice[type .egl, v0.0.0, nativeDisplayID 0x0, connection :0, unitID 0, handle 0x0, owner true, ResourceToolkitLock[obj 0x3997013e, isOwner true, <3de96438, af401f8>[count 1, qsz 0, owner <main-SharedResourceRunner>]]] on thread main-SharedResourceRunner
> 
> ```

Hello,

try this:

```auto
export _JAVA_OPTIONS='-Djogl.disable.opengles'

```

or, if the above does not work:

```auto
export LIBGL_ALWAYS_SOFTWARE=true scilab

```

S.

---

<div class="post-metadata">

**Author:** ![decuser](https://avatars.discourse-cdn.com/v4/letter/d/5e9695/32.png) [@decuser](https://scilab.discourse.group/u/decuser)\
**Post date:** [December 19, 2023, 4:34pm UTC](https://scilab.discourse.group/t/scilab-works-on-my-system-linux-mint-21-2-but-it-gives-a-glexception-can-i-fix-this/301/3 "2023-12-19T16:34:36Z")

</div>

The first works, so what’s it doing?

---

<div class="post-metadata">

**Author:** ![decuser](https://avatars.discourse-cdn.com/v4/letter/d/5e9695/32.png) [@decuser](https://scilab.discourse.group/u/decuser)\
**Post date:** [December 19, 2023, 4:35pm UTC](https://scilab.discourse.group/t/scilab-works-on-my-system-linux-mint-21-2-but-it-gives-a-glexception-can-i-fix-this/301/4 "2023-12-19T16:35:15Z")

</div>

or rather, it appears to be disabling opengles, whatever that is, do I want to install opengles?

---

<div class="post-metadata">

**Author:** ![mottelet](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/mottelet/32/13_2.png) [@mottelet](https://scilab.discourse.group/u/mottelet)\
**Post date:** [December 19, 2023, 5:08pm UTC](https://scilab.discourse.group/t/scilab-works-on-my-system-linux-mint-21-2-but-it-gives-a-glexception-can-i-fix-this/301/5 "2023-12-19T17:08:13Z")

</div>

> [@decuser](#):
>
> The first works, so what’s it doing?

I don’t know, I just did copy/paste the error message in Google search bar and found the solution. So just do the same if you want to figure it out.

S.
