# Fatal error in Java Runtime Enviroment

**URL:** <https://openrndr.discourse.group/t/fatal-error-in-java-runtime-enviroment/460>\
**Category:** Beginners\
**Created:** [November 11, 2022, 10:55pm UTC](https://openrndr.discourse.group/t/fatal-error-in-java-runtime-enviroment/460 "2022-11-11T22:55:11Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![paksis](https://avatars.discourse-cdn.com/v4/letter/p/839c29/32.png) [@paksis](https://openrndr.discourse.group/u/paksis)\
**Post date:** [November 11, 2022, 10:55pm UTC](https://openrndr.discourse.group/t/fatal-error-in-java-runtime-enviroment/460/1 "2022-11-11T22:55:11Z")

</div>

Hello,  
I am a complete newbie here.  
I want to start learning kotlin and OPENRNDR but it gives me this error every time i want to build the TemplateProgram:

EXCEPTION\_ACCESS\_VIOLATION (0xc0000005) at pc=0x00007ffe09ce59f0, pid=17728, tid=4688

Any help would be appreciated!

I would also appreciate if anyone could guide me on how to make the Spore OPENRNDR gif.  
 ![Spore- OPENRNDR](https://global.discourse-cdn.com/free1/uploads/openrndr/original/1X/d60507ebc50c6cc4d5d676ff3b7652c9a651a148.gif)

---

<div class="post-metadata">

**Author:** ![abe](https://yyz2.discourse-cdn.com/free1/user_avatar/openrndr.discourse.group/abe/32/700_2.png) [@abe](https://openrndr.discourse.group/u/abe)\
**Post date:** [November 12, 2022, 11:02am UTC](https://openrndr.discourse.group/t/fatal-error-in-java-runtime-enviroment/460/2 "2022-11-12T11:02:05Z")

</div>

Hello @pakisis!

Welcome to the forum 🙂

I don’t really know why that error might be happening. How did you try to run the program? By clicking the green triangle next to `fun main()` ? If yes, you installed IntelliJ Idea and then just cloned the openrndr-template repo?

About that gif: by looking at it I think it is

- rendering a noise function onto a low resolution [RenderTarget](https://guide.openrndr.org/advancedDrawing/renderTargets.html)
- writing [text](https://guide.openrndr.org/drawingBasics/text.html) on top of it
- downloading the pixels (using [shadow](https://guide.openrndr.org/advancedDrawing/colorbuffers.html#color-buffer-shadows))
- sampling those pixels and using the pixel colors (maybe the brightness?) to choose a texture from a collection of textures. I see four areas, each area draws the textures with different sizes: largest ones on the top, smallest on the bottom.

Something like that? 🙂

---

<div class="post-metadata">

**Author:** ![paksis](https://avatars.discourse-cdn.com/v4/letter/p/839c29/32.png) [@paksis](https://openrndr.discourse.group/u/paksis)\
**Post date:** [November 12, 2022, 11:27am UTC](https://openrndr.discourse.group/t/fatal-error-in-java-runtime-enviroment/460/3 "2022-11-12T11:27:45Z")

</div>

Yea, I cloned the template from the github link as said in the guide. It was built normally but when I tried to run it with the green triangle next to fun main ( ) it gave me that error every time. I thought the error was popping up because I am using Windows 11. I tried the same thing on a Windows 10 virtual machine but it gave different kind of error. So I am kind of stuck here.

---

<div class="post-metadata">

**Author:** ![abe](https://yyz2.discourse-cdn.com/free1/user_avatar/openrndr.discourse.group/abe/32/700_2.png) [@abe](https://openrndr.discourse.group/u/abe)\
**Post date:** [November 12, 2022, 11:47am UTC](https://openrndr.discourse.group/t/fatal-error-in-java-runtime-enviroment/460/4 "2022-11-12T11:47:33Z")

</div>

Could you paste the lines that follow that error? They might reveal which JVM is being used.

Which version of Idea do you have installed?

---

<div class="post-metadata">

**Author:** ![paksis](https://avatars.discourse-cdn.com/v4/letter/p/839c29/32.png) [@paksis](https://openrndr.discourse.group/u/paksis)\
**Post date:** [November 12, 2022, 12:05pm UTC](https://openrndr.discourse.group/t/fatal-error-in-java-runtime-enviroment/460/5 "2022-11-12T12:05:48Z")

</div>

These are the lines that follow the error in the virtual machine Windows 10:  
Exception in thread “main” java.lang.IllegalStateException: primary window could not be created  
at org.openrndr.internal.gl3.ApplicationGLFWGL3.createPrimaryWindow(ApplicationGLFWGL3.kt:549)  
at org.openrndr.internal.gl3.ApplicationGLFWGL3.(ApplicationGLFWGL3.kt:194)  
at org.openrndr.internal.gl3.ApplicationBaseGLFWGL3.build(ApplicationBaseGLFWGL3.kt:39)  
at org.openrndr.ApplicationBuilderKt.application(ApplicationBuilder.kt:84)  
at TemplateProgramKt.main(TemplateProgram.kt:9)  
at TemplateProgramKt.main(TemplateProgram.kt)

I have the 2022.2.3 version installed on both Windows 11 and Windows 10 virtual machine.

---

<div class="post-metadata">

**Author:** ![abe](https://yyz2.discourse-cdn.com/free1/user_avatar/openrndr.discourse.group/abe/32/700_2.png) [@abe](https://openrndr.discourse.group/u/abe)\
**Post date:** [November 12, 2022, 12:25pm UTC](https://openrndr.discourse.group/t/fatal-error-in-java-runtime-enviroment/460/6 "2022-11-12T12:25:35Z")

</div>

I think that might be because it can not create an OPENGL window in the virtual machine. I would first try without a virtual machine as that adds more things that could go wrong.

How does the error look in the Windows 11 machine?

---

<div class="post-metadata">

**Author:** ![paksis](https://avatars.discourse-cdn.com/v4/letter/p/839c29/32.png) [@paksis](https://openrndr.discourse.group/u/paksis)\
**Post date:** [November 12, 2022, 12:38pm UTC](https://openrndr.discourse.group/t/fatal-error-in-java-runtime-enviroment/460/7 "2022-11-12T12:38:22Z")

</div>

On the Windows 11 machine it gives me this every time:

```auto
 A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffe09ce59f0, pid=28180, tid=6636
#
# JRE version: OpenJDK Runtime Environment Corretto-17.0.5.8.1 (17.0.5+8) (build 17.0.5+8-LTS)
# Java VM: OpenJDK 64-Bit Server VM Corretto-17.0.5.8.1 (17.0.5+8-LTS, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
# Problematic frame:
# C [atio6axx.dll+0x1759f0]
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows

```

---

<div class="post-metadata">

**Author:** ![abe](https://yyz2.discourse-cdn.com/free1/user_avatar/openrndr.discourse.group/abe/32/700_2.png) [@abe](https://openrndr.discourse.group/u/abe)\
**Post date:** [November 12, 2022, 12:47pm UTC](https://openrndr.discourse.group/t/fatal-error-in-java-runtime-enviroment/460/8 "2022-11-12T12:47:52Z")

</div>

Does the reply here help?

> **[AMD driver conflicts with Java and causes crash (atio6axx.dll)](https://community.amd.com/t5/drivers-software/amd-driver-conflicts-with-java-and-causes-crash-atio6axx-dll/td-p/193499)**
>
> When I try to play Minecraft it crashes. According to the crash log, it crashes when it talks to my AMD graphics card. Everything is up to date and I reinstalled everything yet this still happens. I have also tried other things like changing UAC. My...

Maybe upgrading or downgrading your graphics drivers helps?

---

<div class="post-metadata">

**Author:** ![paksis](https://avatars.discourse-cdn.com/v4/letter/p/839c29/32.png) [@paksis](https://openrndr.discourse.group/u/paksis)\
**Post date:** [November 12, 2022, 8:51pm UTC](https://openrndr.discourse.group/t/fatal-error-in-java-runtime-enviroment/460/9 "2022-11-12T20:51:25Z")

</div>

Thank you, it helped me and now everything works!  
It still gives me this red text though:

> INFO [main] o.o.i.g.ApplicationGLFWGL3 ↘ 3.4.0 Win32 WGL Null EGL OSMesa VisualC DLL  
> INFO [main] o.o.Application ↘ no preload class found ‘org.openrndr.Preload’  
> INFO [main] o.o.i.g.ApplicationGLFWGL3 ↘ OpenGL vendor: ATI Technologies Inc.  
> INFO [main] o.o.i.g.ApplicationGLFWGL3 ↘ OpenGL renderer: AMD Radeon™ Graphics  
> INFO [main] o.o.i.g.ApplicationGLFWGL3 ↘ OpenGL version: 4.5.14800 Core Profile Forward-Compatible Context 22.5.1 30.0.15021.11005

Is this something that i need to be vary about?

---

<div class="post-metadata">

**Author:** ![abe](https://yyz2.discourse-cdn.com/free1/user_avatar/openrndr.discourse.group/abe/32/700_2.png) [@abe](https://openrndr.discourse.group/u/abe)\
**Post date:** [November 14, 2022, 11:04am UTC](https://openrndr.discourse.group/t/fatal-error-in-java-runtime-enviroment/460/10 "2022-11-14T11:04:05Z")

</div>

Happy that you got it working! What was the trick?

About that red text: it’s unfortunate that it’s red, because it’s just `INFO`. Nothing to worry about 🙂

---

<div class="post-metadata">

**Author:** ![paksis](https://avatars.discourse-cdn.com/v4/letter/p/839c29/32.png) [@paksis](https://openrndr.discourse.group/u/paksis)\
**Post date:** [November 14, 2022, 11:15am UTC](https://openrndr.discourse.group/t/fatal-error-in-java-runtime-enviroment/460/11 "2022-11-14T11:15:58Z")

</div>

I updated all drivers i could think of and it started working.  
Thank you for your suggestion!
