Forum Stats

  • 3,750,796 Users
  • 2,250,251 Discussions
  • 7,867,147 Comments

Discussions

Java Runtime Environment Crash error

User_DH7ZL
User_DH7ZL Member Posts: 1
edited Jan 24, 2021 12:11PM in Java Runtime Environment (JRE)

I try to run one of my Java class on IntelliJ IDEA.

My codes are here:

package byog.lab5;
	

	import byog.TileEngine.TERenderer;
	import byog.TileEngine.TETile;
	import byog.TileEngine.Tileset;
	

	/**
	 *  Draws a world that is mostly empty except for a small region.
	 */
	public class BoringWorldDemo {
	    private static final int WIDTH = 60;
	    private static final int HEIGHT = 30;
	

	    public static void main(String[] args) {
	        // initialize the tile rendering engine with a window of size WIDTH x HEIGHT
	        TERenderer ter = new TERenderer();
	        ter.initialize(WIDTH, HEIGHT);
	

	        // initialize tiles
	        TETile[][] world = new TETile[WIDTH][HEIGHT];
	        for (int x = 0; x < WIDTH; x += 1) {
	            for (int y = 0; y < HEIGHT; y += 1) {
	                world[x][y] = Tileset.NOTHING;
	            }
	        }
	

	        // fills in a block 14 tiles wide by 4 tiles tall
	        for (int x = 20; x < 35; x += 1) {
	            for (int y = 5; y < 10; y += 1) {
	                world[x][y] = Tileset.WALL;
	            }
	        }
	

	        // draws the world to the screen
	        ter.renderFrame(world);
	    }
	

	

	}

However as I started to run it, the error occurred, as shown below.

I have viewed some similar problem posted (with different Problematic frame though),

tried to uninstall my JDK and IntelliJ, and then updated then to the latest version.

But the problem still exists.

Is there any suggestion on how to solve this problem?

I will appreciate your help.

# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffb5b8b02ae, pid=12156, tid=14368
#
# JRE version: Java(TM) SE Runtime Environment (15.0.2+7) (build 15.0.2+7-27)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (15.0.2+7-27, mixed mode, sharing, tiered, compressed oops, g1 gc, windows-amd64)
# Problematic frame:
# C  [awt.dll+0x902ae]
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---------------  S U M M A R Y ------------

Command Line: -javaagent:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.3.1\lib\idea_rt.jar=54723:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.3.1\bin -Dfile.encoding=UTF-8 byog.lab5.BoringWorldDemo

Host: Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz, 8 cores, 7G,  Windows 10 , 64 bit Build 19041 (10.0.19041.662)
Time: Sun Jan 24 16:30:56 2021 ���� (�W����) elapsed time: 0.507240 seconds (0d 0h 0m 0s)


---------------  S Y S T E M  ---------------

OS:
 Windows 10 , 64 bit Build 19041 (10.0.19041.662)
OS uptime: 0 days 0:14 hours

CPU: total 8 (initial active 8) (4 cores per cpu, 2 threads per core) family 6 model 142 stepping 12 microcode 0xd6, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, vzeroupper, avx, avx2, aes, clmul, erms, 3dnowpref, lzcnt, ht, tsc, tscinvbit, bmi1, bmi2, adx, fma, clflush, clflushopt

Memory: 4k page, system-wide physical 8072M (2756M free)
TotalPageFile size 9096M (AvailPageFile size 3193M)
current process WorkingSet (physical memory assigned to process): 53M, peak: 53M
current process commit charge ("private bytes"): 221M, peak: 221M

vm_info: Java HotSpot(TM) 64-Bit Server VM (15.0.2+7-27) for windows-amd64 JRE (15.0.2+7-27), built on Dec  7 2020 20:07:01 by "mach5one" with unknown MS VC++:1925

END.

Answers