3 Bugs/Crashes, unsure how to proceed - LWJGL3

Started by Optimo, December 22, 2016, 14:21:47

Previous topic - Next topic

Optimo

At various times during my dev, I've encountered the following errors. They were not repeatable. This is what I presume to be a pretty light LWJGL3 build, I had spoken to spasi priorly about setting it up.
It includes:
lwjgl.jar
lwjgl-glfw.jar
lwjgl-opengl.jar
lwjgl-glfw-natives.windows.jar
lwjgl-natives-windows.jar
lwjgl-stb.jar
lwjgl-stb-natives-windows.jar

The error messages print out black instead of red. They are formatted the same, including a log file. I don't know what to do with these log files. Here is the top. There is local detail below this header on all of them:

Quote#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000007fefaa42311, pid=8084, tid=0x0000000000000fe4
#
# JRE version: Java(TM) SE Runtime Environment (8.0_111-b14) (build 1.8.0_111-b14)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.111-b14 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C  [lwjgl_stb.dll+0x22311]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
#   http://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.
#

---------------  T H R E A D  ---------------
<continued...>

Where it says lwjgl_stb.dll+0x22311, I have also gotten:

C  [lwjgl_stb.dll+0x22458]
C  [glfw.dll+0x8824]
C  [lwjgl_stb.dll+0x22311] (the first one mentioned)

I see that this is stb and glfw, but, as I say, I can't repeat them. I don't know what I do to incur them. I can't find information on them. Can anyone give me any details or advise me how to proceed?

Lastly, it *may* be that I run out of memory. This project routinely runs out of memory, and memory caps cause bizarre errors. If you told me it *could* be that causing these errors, I would be inclined to believe that until I can insure this build does not risk hitting memory cap.

Any information is greatly appreciated!  ;D

spasi

The above information is not very helpful. The crash logs usually include the Java stacktrace as well, could you please post a complete one?

Sounds like you might not be managing memory allocations properly (e.g. deallocating buffers while they're still in use). Could you also post some relevant code? What stb APIs do you use? How do you handle allocations and why do you run OOM so often?

Optimo

I understand. I reckon none of this data is too sensitive. Here is the most recent full crash log -- nix that. I got this when I tried:
Quote

The following error or errors occurred while posting this message:
The message exceeds the maximum allowed length (20000 characters).

I can post a full log, but it will take additional posts I guess.

QuoteSounds like you might not be managing memory allocations properly (e.g. deallocating buffers while they're still in use).
There is a very good chance I am making such a mistake. I am still newer to OpenGL/GLFW/LWJGL.

QuoteWhat stb APIs do you use?

Of STB I believe I only use:
org.lwjgl.stb.STBTruetype.stbtt_GetPackedQuad;                                         
org.lwjgl.stb.STBTruetype.stbtt_PackBegin;                                             
org.lwjgl.stb.STBTruetype.stbtt_PackEnd;                                               
org.lwjgl.stb.STBTruetype.stbtt_PackFontRange;                                         
org.lwjgl.stb.STBTruetype.stbtt_PackSetOversampling;                                   
org.lwjgl.stb.STBImage.stbi_failure_reason;                                           
org.lwjgl.stb.STBImage.stbi_image_free;                                               
org.lwjgl.stb.STBImage.stbi_info_from_memory;                                         
org.lwjgl.stb.STBImage.stbi_is_hdr_from_memory;                                       
org.lwjgl.stb.STBImage.stbi_load;                                                     
org.lwjgl.stb.STBImage.stbi_load_from_memory;   
and

org.lwjgl.stb.STBTTAlignedQuad;
org.lwjgl.stb.STBTTPackContext;
org.lwjgl.stb.STBTTPackedchar;     

One of the main things I do with STB is:
private void load_fonts() {
		font_tex = glGenTextures();
		chardata = STBTTPackedchar.malloc(6 * 128);

		try ( STBTTPackContext pc = STBTTPackContext.malloc() ) {
			ByteBuffer ttf = ioResourceToByteBuffer("demo/arial.ttf", 160 * 1024);
			//ByteBuffer ttf = ioResourceToByteBuffer("demo/impact.ttf", 160 * 1024);

			ByteBuffer bitmap = BufferUtils.createByteBuffer(BITMAP_W * BITMAP_H);

			stbtt_PackBegin(pc, bitmap, BITMAP_W, BITMAP_H, 0, 1, null);
			for ( int i = 0; i < 2; i++ ) {
				int p = (i * 3 + 0) * 128 + 32;
				chardata.limit(p + 95);
				chardata.position(p);
				stbtt_PackSetOversampling(pc, 1, 1);
				stbtt_PackFontRange(pc, ttf, 0, scale[i], 32, chardata);

				p = (i * 3 + 1) * 128 + 32;
				chardata.limit(p + 95);
				chardata.position(p);
				stbtt_PackSetOversampling(pc, 2, 2);
				stbtt_PackFontRange(pc, ttf, 0, scale[i], 32, chardata);

				p = (i * 3 + 2) * 128 + 32;
				chardata.limit(p + 95);
				chardata.position(p);
				stbtt_PackSetOversampling(pc, 3, 1);
				stbtt_PackFontRange(pc, ttf, 0, scale[i], 32, chardata);
			}
			chardata.clear();
			stbtt_PackEnd(pc);

			glBindTexture(GL_TEXTURE_2D, font_tex);
			glTexImage2D(GL_TEXTURE_2D, 0, GL_ALPHA, BITMAP_W, BITMAP_H, 0, GL_ALPHA, GL_UNSIGNED_BYTE, bitmap);
			glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
			glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);

		} catch (IOException e) {
			throw new RuntimeException(e);
		}
     

QuoteCould you also post some relevant code?
The problem here is my project is quite large and I don't yet know enough to deduce where I should suspect a problem is. Perhaps your help will help me better know where to look. I will post a full error log in subsequent posts. If you want error logs for all 3 types, I can post all those.

QuoteHow do you handle allocations and why do you run OOM so often?
I'm not totally sure how to answer this. I may not understand how to properly allocate memory. Many of these things I've learned in the context of a larger task, such as that example above. It has "chardata = STBTTPackedchar.malloc(6 * 128);". I've tried to ensure these things happen at appropriate environment states and locations, but I may be making a mistake.

I go OOM because of other things I think. It's a big project, lots going on. Don't think it's because anything related to LWJGL is getting out of hand.

Optimo

Next three posts is one of three error types: lwjgl_stb.dll+0x22311
Quote
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000007fefaa42311, pid=8084, tid=0x0000000000000fe4
#
# JRE version: Java(TM) SE Runtime Environment (8.0_111-b14) (build 1.8.0_111-b14)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.111-b14 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C  [lwjgl_stb.dll+0x22311]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
#   http://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.
#

---------------  T H R E A D  ---------------

Current thread (0x0000000001f5e800):  JavaThread "main" [_thread_in_native, id=4068, stack(0x0000000001f70000,0x0000000002070000)]

siginfo: ExceptionCode=0xc0000005, writing address 0x0000000073a28084

Registers:
RAX=0x0000000000000c01, RBX=0x000000007986ceec, RCX=0x0000000000000c00, RDX=0x0000000000000029
RSP=0x000000000206e370, RBP=0x000000012525b0f0, RSI=0x000000012525b110, RDI=0x0000000000000004
R8 =0x0000000000000c01, R9 =0x000000000206e3c4, R10=0x0000000000000048, R11=0x0000000000000012
R12=0x000000000206e3c0, R13=0x0000000073a27484, R14=0x0000000000000010, R15=0x00000000000000ff
RIP=0x000007fefaa42311, EFLAGS=0x0000000000010293

Top of Stack: (sp=0x000000000206e370)
0x000000000206e370:   000000007986ceec 000000012525b110
0x000000000206e380:   0000000000000000 0000000073a08c20
0x000000000206e390:   00000000c1200000 0000000001f54b00
0x000000000206e3a0:   0000000125254d70 000000012525b0f0
0x000000000206e3b0:   ffffffff0000031b 00000000000000c0
0x000000000206e3c0:   3e64cfffbe252e0f 0000000000000000
0x000000000206e3d0:   0000000000000000 0000000000000000
0x000000000206e3e0:   0000000000000000 bf27626000000000
0x000000000206e3f0:   0000000000000000 0000000000000000
0x000000000206e400:   3f7d508000000000 be7aa14000000000
0x000000000206e410:   000000003e7aa140 0000000000000000
0x000000000206e420:   0000000000000000 0000000000000000
0x000000000206e430:   0000000000000000 00000000bf800000
0x000000000206e440:   0000000000000000 0000000000000000
0x000000000206e450:   000000003f800000 0000000000000000
0x000000000206e460:   00000001149e7a10 0000000000000000

Instructions: (pc=0x000007fefaa42311)
0x000007fefaa422f1:   41 0f 54 c8 66 0f 5a d1 0f 57 c9 f3 41 0f 59 d1
0x000007fefaa42301:   f3 41 0f 58 d2 f3 0f 2c d2 41 3b d7 41 0f 4f d7
0x000007fefaa42311:   42 88 14 29 f3 43 0f 58 1c 0a 0f 28 c3 f3 41 0f
0x000007fefaa42321:   58 01 f3 0f 5a c8 41 0f 54 c8 66 0f 5a d1 0f 57


Register to memory mapping:

RAX=0x0000000000000c01 is an unknown value
RBX=0x000000007986ceec is an unknown value
RCX=0x0000000000000c00 is an unknown value
RDX=0x0000000000000029 is an unknown value
RSP=0x000000000206e370 is pointing into the stack for thread: 0x0000000001f5e800
RBP=0x000000012525b0f0 is an unknown value
RSI=0x000000012525b110 is an unknown value
RDI=0x0000000000000004 is an unknown value
R8 =0x0000000000000c01 is an unknown value
R9 =0x000000000206e3c4 is pointing into the stack for thread: 0x0000000001f5e800
R10=0x0000000000000048 is an unknown value
R11=0x0000000000000012 is an unknown value
R12=0x000000000206e3c0 is pointing into the stack for thread: 0x0000000001f5e800
R13=0x0000000073a27484 is an unknown value
R14=0x0000000000000010 is an unknown value
R15=0x00000000000000ff is an unknown value


Stack: [0x0000000001f70000,0x0000000002070000],  sp=0x000000000206e370,  free space=1016k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [lwjgl_stb.dll+0x22311]
C  [lwjgl_stb.dll+0x22a9f]
C  [lwjgl_stb.dll+0x22fe6]
C  [lwjgl_stb.dll+0x23389]
C  [lwjgl_stb.dll+0x24721]
C  [lwjgl_stb.dll+0x24b6c]
C  [lwjgl_stb.dll+0x2581f]
C  0x000000000260b567

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J 679  org.lwjgl.stb.STBTruetype.nstbtt_PackFontRange(JJIFIIJ)I (0 bytes) @ 0x000000000260b4e1 [0x000000000260b480+0x61]
J 783 C1 GLImageObject.load_fonts()V (327 bytes) @ 0x000000000265ec7c [0x000000000265c5c0+0x26bc]
j  CannonSprite.<init>(IIIILjava/lang/String;IIIIIIIIII)V+114
j  NewCore.enemyFireCannon(IIIIILjava/lang/String;I)V+139
J 2963 C2 NewCore.enemyMove()V (3670 bytes) @ 0x0000000002c211c8 [0x0000000002c20d00+0x4c8]
J 2948 C1 NewCore.gameLoop()V (2055 bytes) @ 0x0000000002cc392c [0x0000000002cb8ec0+0xaa6c]
NewGameMainAct2.run(Ljava/lang/String;)V+402
j  NewGameMainAct2.main([Ljava/lang/String;)V+10
v  ~StubRoutines::call_stub

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x00000000792ce000 JavaThread "Direct Clip" daemon [_thread_blocked, id=6888, stack(0x000000013aee0000,0x000000013afe0000)]
  0x00000000792cd800 JavaThread "Direct Clip" daemon [_thread_blocked, id=8968, stack(0x000000013ad10000,0x000000013ae10000)]
  0x000000005a7d6000 JavaThread "Direct Clip" daemon [_thread_blocked, id=6576, stack(0x000000013abc0000,0x000000013acc0000)]
  0x000000005a7d5800 JavaThread "Direct Clip" daemon [_thread_blocked, id=8344, stack(0x000000013a1f0000,0x000000013a2f0000)]
  0x000000005a7d4800 JavaThread "Direct Clip" daemon [_thread_blocked, id=7056, stack(0x000000013a850000,0x000000013a950000)]
  0x000000005a7d4000 JavaThread "Direct Clip" daemon [_thread_blocked, id=6444, stack(0x000000013a700000,0x000000013a800000)]
  0x000000005a7d3000 JavaThread "Direct Clip" daemon [_thread_blocked, id=7912, stack(0x0000000066130000,0x0000000066230000)]
  0x000000005a7d2800 JavaThread "Direct Clip" daemon [_thread_blocked, id=2024, stack(0x000000013a460000,0x000000013a560000)]
  0x000000005a7d1800 JavaThread "Direct Clip" daemon [_thread_blocked, id=7400, stack(0x0000000139fa0000,0x000000013a0a0000)]
  0x000000005a7d1000 JavaThread "Direct Clip" daemon [_thread_blocked, id=4624, stack(0x000000013a330000,0x000000013a430000)]
  0x000000005a7d0000 JavaThread "Direct Clip" daemon [_thread_blocked, id=3476, stack(0x0000000137250000,0x0000000137350000)]
  0x000000005a7cf800 JavaThread "Direct Clip" daemon [_thread_blocked, id=7164, stack(0x0000000139d10000,0x0000000139e10000)]
  0x000000005a7ce000 JavaThread "Direct Clip" daemon [_thread_blocked, id=8180, stack(0x000000013a0f0000,0x000000013a1f0000)]
  0x000000005a7cd800 JavaThread "Direct Clip" daemon [_thread_blocked, id=960, stack(0x00000001394b0000,0x00000001395b0000)]
  0x000000005a7cc800 JavaThread "Direct Clip" daemon [_thread_blocked, id=5336, stack(0x0000000139e70000,0x0000000139f70000)]
  0x000000005a7cc000 JavaThread "Direct Clip" daemon [_thread_blocked, id=6968, stack(0x0000000139970000,0x0000000139a70000)]
  0x000000005a7cb000 JavaThread "Direct Clip" daemon [_thread_blocked, id=7288, stack(0x0000000139ba0000,0x0000000139ca0000)]
  0x000000005a7ca800 JavaThread "Direct Clip" daemon [_thread_blocked, id=5392, stack(0x0000000139a70000,0x0000000139b70000)]
  0x000000005a7c9800 JavaThread "Direct Clip" daemon [_thread_blocked, id=7348, stack(0x0000000139620000,0x0000000139720000)]
  0x000000005a7c9000 JavaThread "Direct Clip" daemon [_thread_blocked, id=5160, stack(0x00000001397f0000,0x00000001398f0000)]
  0x000000005a7c8000 JavaThread "Direct Clip" daemon [_thread_blocked, id=5864, stack(0x0000000138ae0000,0x0000000138be0000)]
  0x000000005a7c7800 JavaThread "Direct Clip" daemon [_thread_blocked, id=6464, stack(0x0000000138ea0000,0x0000000138fa0000)]
  0x0000000073517000 JavaThread "Direct Clip" daemon [_thread_blocked, id=3384, stack(0x0000000139330000,0x0000000139430000)]
  0x000000007b603000 JavaThread "Direct Clip" daemon [_thread_blocked, id=7992, stack(0x0000000137e60000,0x0000000137f60000)]
  0x0000000073516800 JavaThread "Direct Clip" daemon [_thread_blocked, id=8808, stack(0x0000000139160000,0x0000000139260000)]
  0x0000000073515000 JavaThread "Direct Clip" daemon [_thread_blocked, id=7548, stack(0x0000000138d00000,0x0000000138e00000)]
  0x0000000073514000 JavaThread "Direct Clip" daemon [_thread_blocked, id=6356, stack(0x0000000138bf0000,0x0000000138cf0000)]
  0x000000007b605000 JavaThread "Direct Clip" daemon [_thread_blocked, id=8124, stack(0x00000001389e0000,0x0000000138ae0000)]
  0x000000007b604800 JavaThread "Direct Clip" daemon [_thread_blocked, id=5328, stack(0x0000000138030000,0x0000000138130000)]
  0x000000006e2c9000 JavaThread "Direct Clip" daemon [_thread_blocked, id=5932, stack(0x0000000137ca0000,0x0000000137da0000)]
  0x000000007b603800 JavaThread "Direct Clip" daemon [_thread_blocked, id=7440, stack(0x00000001378a0000,0x00000001379a0000)]
  0x000000007b602000 JavaThread "Direct Clip" daemon [_thread_blocked, id=6448, stack(0x0000000137ab0000,0x0000000137bb0000)]
  0x000000006e2cb000 JavaThread "Direct Clip" daemon [_thread_blocked, id=7592, stack(0x0000000068200000,0x0000000068300000)]
  0x000000006e2ca800 JavaThread "Direct Clip" daemon [_thread_blocked, id=7360, stack(0x0000000137600000,0x0000000137700000)]
  0x000000005ae5c800 JavaThread "Direct Clip" daemon [_thread_blocked, id=5916, stack(0x00000001379b0000,0x0000000137ab0000)]
  0x000000006e2c9800 JavaThread "Direct Clip" daemon [_thread_blocked, id=7968, stack(0x0000000139000000,0x0000000139100000)]
  0x000000006e2c8000 JavaThread "Direct Clip" daemon [_thread_blocked, id=5644, stack(0x00000001377a0000,0x00000001378a0000)]
  0x000000006e2c7800 JavaThread "Direct Clip" daemon [_thread_blocked, id=5784, stack(0x0000000137500000,0x0000000137600000)]
  0x000000006e2c6800 JavaThread "Direct Clip" daemon [_thread_blocked, id=5912, stack(0x0000000136d60000,0x0000000136e60000)]
  0x000000006e2c6000 JavaThread "Direct Clip" daemon [_thread_blocked, id=8664, stack(0x0000000137150000,0x0000000137250000)]
  0x000000006e2c5000 JavaThread "Direct Clip" daemon [_thread_blocked, id=8012, stack(0x0000000136e70000,0x0000000136f70000)]
  0x000000006e2c4000 JavaThread "Direct Clip" daemon [_thread_blocked, id=8044, stack(0x0000000136c50000,0x0000000136d50000)]
  0x000000005ae6a800 JavaThread "Direct Clip" daemon [_thread_blocked, id=7128, stack(0x0000000136a10000,0x0000000136b10000)]
  0x000000005ae69800 JavaThread "Direct Clip" daemon [_thread_blocked, id=9052, stack(0x0000000136fa0000,0x00000001370a0000)]
  0x000000005ae69000 JavaThread "Direct Clip" daemon [_thread_blocked, id=4372, stack(0x0000000060aa0000,0x0000000060ba0000)]
  0x000000005ae68000 JavaThread "Direct Clip" daemon [_thread_blocked, id=6380, stack(0x0000000136b40000,0x0000000136c40000)]
  0x000000005ae67800 JavaThread "Direct Clip" daemon [_thread_blocked, id=5060, stack(0x000000011d790000,0x000000011d890000)]
  0x000000005ae66800 JavaThread "Direct Clip" daemon [_thread_blocked, id=6788, stack(0x000000007d020000,0x000000007d120000)]
  0x000000005ae66000 JavaThread "Direct Clip" daemon [_thread_blocked, id=6400, stack(0x000000007e900000,0x000000007ea00000)]
  0x000000005ae65000 JavaThread "Direct Clip" daemon [_thread_blocked, id=8508, stack(0x00000001364e0000,0x00000001365e0000)]
  0x000000005ae64800 JavaThread "Direct Clip" daemon [_thread_blocked, id=5960, stack(0x0000000136350000,0x0000000136450000)]
  0x000000005ae63800 JavaThread "Direct Clip" daemon [_thread_blocked, id=8176, stack(0x0000000136220000,0x0000000136320000)]
  0x000000005ae62800 JavaThread "Direct Clip" daemon [_thread_blocked, id=5840, stack(0x0000000062360000,0x0000000062460000)]
  0x000000005ae62000 JavaThread "Direct Clip" daemon [_thread_blocked, id=6812, stack(0x000000011d680000,0x000000011d780000)]
  0x000000005ae61000 JavaThread "Direct Clip" daemon [_thread_blocked, id=6872, stack(0x00000001024c0000,0x00000001025c0000)]
  0x000000005ae60800 JavaThread "Direct Clip" daemon [_thread_blocked, id=7080, stack(0x0000000062470000,0x0000000062570000)]
  0x000000005ae5f800 JavaThread "Direct Clip" daemon [_thread_blocked, id=3736, stack(0x0000000100470000,0x0000000100570000)]
  0x000000005ae5c000 JavaThread "Direct Clip" daemon [_thread_blocked, id=8804, stack(0x00000000609a0000,0x0000000060aa0000)]
  0x000000005ae5d800 JavaThread "Direct Clip" daemon [_thread_blocked, id=8352, stack(0x000000005c810000,0x000000005c910000)]
  0x000000005ae5f000 JavaThread "Direct Clip" daemon [_thread_blocked, id=1656, stack(0x0000000072430000,0x0000000072530000)]
  0x000000005ae5e000 JavaThread "Direct Clip" daemon [_thread_blocked, id=4304, stack(0x0000000062d00000,0x0000000062e00000)]
  0x000000005ae5b000 JavaThread "Java Sound Event Dispatcher" daemon [_thread_blocked, id=8392, stack(0x0000000062730000,0x0000000062830000)]
  0x000000005ae07800 JavaThread "AWT-Windows" daemon [_thread_in_native, id=3368, stack(0x000000005a530000,0x000000005a630000)]
  0x000000005ae06000 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=8328, stack(0x000000005b1c0000,0x000000005b2c0000)]
  0x0000000058841000 JavaThread "Service Thread" daemon [_thread_blocked, id=4324, stack(0x000000005a050000,0x000000005a150000)]
  0x00000000587cb800 JavaThread "C1 CompilerThread3" daemon [_thread_blocked, id=2884, stack(0x000000005a410000,0x000000005a510000)]
  0x00000000587b0000 JavaThread "C2 CompilerThread2" daemon [_thread_blocked, id=4536, stack(0x000000005a230000,0x000000005a330000)]
  0x00000000587aa800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=6408, stack(0x0000000059e00000,0x0000000059f00000)]
  0x00000000587a5000 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=8792, stack(0x0000000059f40000,0x000000005a040000)]
  0x00000000587a0000 JavaThread "Attach Listener" daemon [_thread_blocked, id=4608, stack(0x0000000059c70000,0x0000000059d70000)]
  0x00000000576ff000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=5860, stack(0x0000000059b70000,0x0000000059c70000)]
  0x00000000576f0000 JavaThread "Finalizer" daemon [_thread_blocked, id=2512, stack(0x00000000597d0000,0x00000000598d0000)]
  0x00000000576e9000 JavaThread "Reference Handler" daemon [_thread_blocked, id=7052, stack(0x0000000059970000,0x0000000059a70000)]
=>0x0000000001f5e800 JavaThread "main" [_thread_in_native, id=4068, stack(0x0000000001f70000,0x0000000002070000)]

Other Threads:
  0x00000000576e2000 VMThread [stack: 0x00000000596d0000,0x00000000597d0000] [id=6832]
  0x0000000058850000 WatcherThread [stack: 0x000000005a660000,0x000000005a760000] [id=5696]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap:
PSYoungGen      total 40960K, used 406K [0x00000000d5900000, 0x00000000dc380000, 0x0000000100000000)
  eden space 40448K, 0% used [0x00000000d5900000,0x00000000d5901058,0x00000000d8080000)
  from space 512K, 78% used [0x00000000dc280000,0x00000000dc2e4820,0x00000000dc300000)
  to   space 512K, 0% used [0x00000000dc300000,0x00000000dc300000,0x00000000dc380000)
ParOldGen       total 103936K, used 57489K [0x0000000080a00000, 0x0000000086f80000, 0x00000000d5900000)
  object space 103936K, 55% used [0x0000000080a00000,0x0000000084224660,0x0000000086f80000)
Metaspace       used 15308K, capacity 15492K, committed 15744K, reserved 1062912K
  class space    used 1249K, capacity 1336K, committed 1408K, reserved 1048576K

Card table byte_map: [0x0000000011700000,0x0000000011b00000] byte_map_base: 0x00000000112fb000

Marking Bits: (ParMarkBitMap*) 0x0000000068f3a6c0
Begin Bits: [0x0000000012950000, 0x0000000014928000)
End Bits:   [0x0000000014928000, 0x0000000016900000)

Polling page: 0x0000000000140000

CodeCache: size=245760Kb used=8881Kb max_used=9453Kb free=236878Kb
bounds [0x0000000002340000, 0x0000000002d30000, 0x0000000011340000]
total_blobs=3396 nmethods=2386 adapters=923
compilation: enabled

Compilation events (10 events):
Event: 131.792 Thread 0x00000000587cb800 nmethod 3016 0x0000000002716990 code [0x0000000002716ae0, 0x0000000002716bf0]
Event: 131.823 Thread 0x00000000587cb800 3017       3       java.lang.Thread::checkAccess (14 bytes)
Event: 131.823 Thread 0x00000000587cb800 nmethod 3017 0x000000000281f250 code [0x000000000281f3c0, 0x000000000281f688]
Event: 131.823 Thread 0x00000000587cb800 3020       3       java.net.URLStreamHandler::setURL (159 bytes)
Event: 131.824 Thread 0x00000000587cb800 nmethod 3020 0x00000000029c9610 code [0x00000000029c9880, 0x00000000029cabc8]
Event: 131.824 Thread 0x00000000587cb800 3021       3       sun.net.www.protocol.file.FileURLConnection::<init> (38 bytes)
Event: 131.824 Thread 0x00000000587cb800 nmethod 3021 0x000000000270bd50 code [0x000000000270bee0, 0x000000000270c298]
Event: 131.825 Thread 0x00000000587cb800 3018       3       sun.net.www.protocol.jar.Handler::parseContextSpec (154 bytes)
Event: 131.826 Thread 0x00000000587cb800 nmethod 3018 0x00000000024f8890 code [0x00000000024f8c80, 0x00000000024fb2c8]
Event: 131.826 Thread 0x00000000587cb800 3019       3       sun.net.www.ParseUtil::canonizeString (195 bytes)

Optimo

Quote
GC Heap History (10 events):
Event: 131.356 GC heap before
{Heap before GC invocations=524 (full 3):
PSYoungGen      total 46080K, used 40342K [0x00000000d5900000, 0x00000000dc380000, 0x0000000100000000)
  eden space 45568K, 88% used [0x00000000d5900000,0x00000000d8055920,0x00000000d8580000)
  from space 512K, 12% used [0x00000000dc300000,0x00000000dc310000,0x00000000dc380000)
  to   space 512K, 0% used [0x00000000dc280000,0x00000000dc280000,0x00000000dc300000)
ParOldGen       total 103936K, used 57481K [0x0000000080a00000, 0x0000000086f80000, 0x00000000d5900000)
  object space 103936K, 55% used [0x0000000080a00000,0x0000000084222660,0x0000000086f80000)
Metaspace       used 15306K, capacity 15492K, committed 15744K, reserved 1062912K
  class space    used 1249K, capacity 1336K, committed 1408K, reserved 1048576K
Event: 131.357 GC heap after
Heap after GC invocations=524 (full 3):
PSYoungGen      total 45056K, used 64K [0x00000000d5900000, 0x00000000dc380000, 0x0000000100000000)
  eden space 44544K, 0% used [0x00000000d5900000,0x00000000d5900000,0x00000000d8480000)
  from space 512K, 12% used [0x00000000dc280000,0x00000000dc290000,0x00000000dc300000)
  to   space 512K, 0% used [0x00000000dc300000,0x00000000dc300000,0x00000000dc380000)
ParOldGen       total 103936K, used 57489K [0x0000000080a00000, 0x0000000086f80000, 0x00000000d5900000)
  object space 103936K, 55% used [0x0000000080a00000,0x0000000084224660,0x0000000086f80000)
Metaspace       used 15306K, capacity 15492K, committed 15744K, reserved 1062912K
  class space    used 1249K, capacity 1336K, committed 1408K, reserved 1048576K
}
Event: 131.473 GC heap before
{Heap before GC invocations=525 (full 3):
PSYoungGen      total 45056K, used 40322K [0x00000000d5900000, 0x00000000dc380000, 0x0000000100000000)
  eden space 44544K, 90% used [0x00000000d5900000,0x00000000d8050848,0x00000000d8480000)
  from space 512K, 12% used [0x00000000dc280000,0x00000000dc290000,0x00000000dc300000)
  to   space 512K, 0% used [0x00000000dc300000,0x00000000dc300000,0x00000000dc380000)
ParOldGen       total 103936K, used 57489K [0x0000000080a00000, 0x0000000086f80000, 0x00000000d5900000)
  object space 103936K, 55% used [0x0000000080a00000,0x0000000084224660,0x0000000086f80000)
Metaspace       used 15306K, capacity 15492K, committed 15744K, reserved 1062912K
  class space    used 1249K, capacity 1336K, committed 1408K, reserved 1048576K
Event: 131.473 GC heap after
Heap after GC invocations=525 (full 3):
PSYoungGen      total 44032K, used 64K [0x00000000d5900000, 0x00000000dc380000, 0x0000000100000000)
  eden space 43520K, 0% used [0x00000000d5900000,0x00000000d5900000,0x00000000d8380000)
  from space 512K, 12% used [0x00000000dc300000,0x00000000dc310000,0x00000000dc380000)
  to   space 512K, 0% used [0x00000000dc280000,0x00000000dc280000,0x00000000dc300000)
ParOldGen       total 103936K, used 57489K [0x0000000080a00000, 0x0000000086f80000, 0x00000000d5900000)
  object space 103936K, 55% used [0x0000000080a00000,0x0000000084224660,0x0000000086f80000)
Metaspace       used 15306K, capacity 15492K, committed 15744K, reserved 1062912K
  class space    used 1249K, capacity 1336K, committed 1408K, reserved 1048576K
}
Event: 131.589 GC heap before
{Heap before GC invocations=526 (full 3):
PSYoungGen      total 44032K, used 40301K [0x00000000d5900000, 0x00000000dc380000, 0x0000000100000000)
  eden space 43520K, 92% used [0x00000000d5900000,0x00000000d804b5d8,0x00000000d8380000)
  from space 512K, 12% used [0x00000000dc300000,0x00000000dc310000,0x00000000dc380000)
  to   space 512K, 0% used [0x00000000dc280000,0x00000000dc280000,0x00000000dc300000)
ParOldGen       total 103936K, used 57489K [0x0000000080a00000, 0x0000000086f80000, 0x00000000d5900000)
  object space 103936K, 55% used [0x0000000080a00000,0x0000000084224660,0x0000000086f80000)
Metaspace       used 15306K, capacity 15492K, committed 15744K, reserved 1062912K
  class space    used 1249K, capacity 1336K, committed 1408K, reserved 1048576K
Event: 131.590 GC heap after
Heap after GC invocations=526 (full 3):
PSYoungGen      total 43008K, used 64K [0x00000000d5900000, 0x00000000dc380000, 0x0000000100000000)
  eden space 42496K, 0% used [0x00000000d5900000,0x00000000d5900000,0x00000000d8280000)
  from space 512K, 12% used [0x00000000dc280000,0x00000000dc290000,0x00000000dc300000)
  to   space 512K, 0% used [0x00000000dc300000,0x00000000dc300000,0x00000000dc380000)
ParOldGen       total 103936K, used 57489K [0x0000000080a00000, 0x0000000086f80000, 0x00000000d5900000)
  object space 103936K, 55% used [0x0000000080a00000,0x0000000084224660,0x0000000086f80000)
Metaspace       used 15306K, capacity 15492K, committed 15744K, reserved 1062912K
  class space    used 1249K, capacity 1336K, committed 1408K, reserved 1048576K
}
Event: 131.706 GC heap before
{Heap before GC invocations=527 (full 3):
PSYoungGen      total 43008K, used 40281K [0x00000000d5900000, 0x00000000dc380000, 0x0000000100000000)
  eden space 42496K, 94% used [0x00000000d5900000,0x00000000d8046478,0x00000000d8280000)
  from space 512K, 12% used [0x00000000dc280000,0x00000000dc290000,0x00000000dc300000)
  to   space 512K, 0% used [0x00000000dc300000,0x00000000dc300000,0x00000000dc380000)
ParOldGen       total 103936K, used 57489K [0x0000000080a00000, 0x0000000086f80000, 0x00000000d5900000)
  object space 103936K, 55% used [0x0000000080a00000,0x0000000084224660,0x0000000086f80000)
Metaspace       used 15306K, capacity 15492K, committed 15744K, reserved 1062912K
  class space    used 1249K, capacity 1336K, committed 1408K, reserved 1048576K
Event: 131.707 GC heap after
Heap after GC invocations=527 (full 3):
PSYoungGen      total 41984K, used 64K [0x00000000d5900000, 0x00000000dc380000, 0x0000000100000000)
  eden space 41472K, 0% used [0x00000000d5900000,0x00000000d5900000,0x00000000d8180000)
  from space 512K, 12% used [0x00000000dc300000,0x00000000dc310000,0x00000000dc380000)
  to   space 512K, 0% used [0x00000000dc280000,0x00000000dc280000,0x00000000dc300000)
ParOldGen       total 103936K, used 57489K [0x0000000080a00000, 0x0000000086f80000, 0x00000000d5900000)
  object space 103936K, 55% used [0x0000000080a00000,0x0000000084224660,0x0000000086f80000)
Metaspace       used 15306K, capacity 15492K, committed 15744K, reserved 1062912K
  class space    used 1249K, capacity 1336K, committed 1408K, reserved 1048576K
}
Event: 131.824 GC heap before
{Heap before GC invocations=528 (full 3):
PSYoungGen      total 41984K, used 41536K [0x00000000d5900000, 0x00000000dc380000, 0x0000000100000000)
  eden space 41472K, 100% used [0x00000000d5900000,0x00000000d8180000,0x00000000d8180000)
  from space 512K, 12% used [0x00000000dc300000,0x00000000dc310000,0x00000000dc380000)
  to   space 512K, 0% used [0x00000000dc280000,0x00000000dc280000,0x00000000dc300000)
ParOldGen       total 103936K, used 57489K [0x0000000080a00000, 0x0000000086f80000, 0x00000000d5900000)
  object space 103936K, 55% used [0x0000000080a00000,0x0000000084224660,0x0000000086f80000)
Metaspace       used 15308K, capacity 15492K, committed 15744K, reserved 1062912K
  class space    used 1249K, capacity 1336K, committed 1408K, reserved 1048576K
Event: 131.825 GC heap after
Heap after GC invocations=528 (full 3):
PSYoungGen      total 40960K, used 402K [0x00000000d5900000, 0x00000000dc380000, 0x0000000100000000)
  eden space 40448K, 0% used [0x00000000d5900000,0x00000000d5900000,0x00000000d8080000)
  from space 512K, 78% used [0x00000000dc280000,0x00000000dc2e4820,0x00000000dc300000)
  to   space 512K, 0% used [0x00000000dc300000,0x00000000dc300000,0x00000000dc380000)
ParOldGen       total 103936K, used 57489K [0x0000000080a00000, 0x0000000086f80000, 0x00000000d5900000)
  object space 103936K, 55% used [0x0000000080a00000,0x0000000084224660,0x0000000086f80000)
Metaspace       used 15308K, capacity 15492K, committed 15744K, reserved 1062912K
  class space    used 1249K, capacity 1336K, committed 1408K, reserved 1048576K
}



Optimo

Quote
Deoptimization events (10 events):
Event: 75.537 Thread 0x0000000001f5e800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00000000025e56cc method=java.lang.Long.getChars(JI[C)V @ 94
Event: 78.610 Thread 0x0000000001f5e800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00000000026e86d0 method=NewCore.enemyMove()V @ 2299
Event: 106.636 Thread 0x0000000001f5e800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x0000000002461120 method=Ship.getSinkFactor()I @ 28
Event: 106.636 Thread 0x0000000001f5e800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00000000026d2370 method=java.math.BigDecimal.longCompareMagnitude(JJ)I @ 21
Event: 106.647 Thread 0x0000000001f5e800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00000000026c4dcc method=Ship.sink()Z @ 13
Event: 106.647 Thread 0x0000000001f5e800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x0000000002ad4100 method=Ship.sink()Z @ 13
Event: 106.648 Thread 0x0000000001f5e800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00000000026bd3b0 method=java.math.BigDecimal.longCompareMagnitude(JJ)I @ 21
Event: 106.664 Thread 0x0000000001f5e800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x000000000289d4d8 method=Ship.sink()Z @ 13
Event: 110.598 Thread 0x0000000001f5e800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x000000000290a430 method=Ship.weaponTransitionCollision()V @ 32
Event: 113.783 Thread 0x0000000001f5e800 Uncommon trap: reason=range_check action=make_not_entrant pc=0x00000000028600ac method=Ship.updateWeaponSideState()V @ 575

Internal exceptions (10 events):
Event: 0.096 Thread 0x0000000001f5e800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000d5b4eaa0) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u111\7883\hotspot\src\share\vm\prims\jvm.cpp, line 1386]
Event: 0.096 Thread 0x0000000001f5e800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000d5b526e8) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u111\7883\hotspot\src\share\vm\prims\jvm.cpp, line 1386]
Event: 0.096 Thread 0x0000000001f5e800 Exception <a 'java/security/PrivilegedActionException'> (0x00000000d5b528f8) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u111\7883\hotspot\src\share\vm\prims\jvm.cpp, line 1386]
Event: 0.123 Thread 0x0000000001f5e800 Exception <a 'java/lang/NoSuchFieldError': method resolution failed> (0x00000000d5c34928) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u111\7883\hotspot\src\share\vm\prims\methodHandles.cpp, line 1146]
Event: 0.124 Thread 0x0000000001f5e800 Exception <a 'java/lang/NoSuchFieldError': method resolution failed> (0x00000000d5c41ca8) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u111\7883\hotspot\src\share\vm\prims\methodHandles.cpp, line 1146]
Event: 0.165 Thread 0x0000000001f5e800 Exception <a 'java/io/FileNotFoundException'> (0x00000000d5d36b30) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u111\7883\hotspot\src\share\vm\prims\jni.cpp, line 709]
Event: 0.234 Thread 0x0000000001f5e800 Exception <a 'java/io/FileNotFoundException'> (0x00000000d5e164f0) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u111\7883\hotspot\src\share\vm\prims\jni.cpp, line 709]
Event: 0.476 Thread 0x0000000001f5e800 Exception <a 'sun/nio/fs/WindowsException'> (0x00000000d6073a10) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u111\7883\hotspot\src\share\vm\prims\jni.cpp, line 709]
Event: 0.476 Thread 0x0000000001f5e800 Exception <a 'sun/nio/fs/WindowsException'> (0x00000000d6075f08) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u111\7883\hotspot\src\share\vm\prims\jni.cpp, line 709]
Event: 0.476 Thread 0x0000000001f5e800 Exception <a 'sun/nio/fs/WindowsException'> (0x00000000d60766b0) thrown at [C:\re\workspace\8-2-build-windows-amd64-cygwin\jdk8u111\7883\hotspot\src\share\vm\prims\jni.cpp, line 709]

Events (10 events):
Event: 131.823 Thread 0x0000000073515800 Thread added: 0x0000000073515800
Event: 131.823 Thread 0x00000000587cb800 flushing nmethod 0x000000000286bf10
Event: 131.823 Thread 0x00000000587cb800 flushing nmethod 0x000000000286c550
Event: 131.823 Thread 0x00000000587cb800 flushing nmethod 0x00000000028cf990
Event: 131.824 Thread 0x00000000587cb800 flushing nmethod 0x000000000295fb90
Event: 131.824 Thread 0x00000000792ce000 Thread added: 0x00000000792ce000
Event: 131.824 Thread 0x0000000073515800 Thread exited: 0x0000000073515800
Event: 131.824 Executing VM operation: ParallelGCFailedAllocation
Event: 131.825 Executing VM operation: ParallelGCFailedAllocation done
Event: 131.826 Thread 0x00000000587cb800 flushing nmethod 0x0000000002a0b810


Dynamic libraries:
0x000000013f410000 - 0x000000013f447000    C:\Program Files\Java\jre1.8.0_111\bin\javaw.exe
0x0000000077550000 - 0x00000000776f9000    C:\Windows\SYSTEM32\ntdll.dll
0x0000000077330000 - 0x000000007744f000    C:\Windows\system32\kernel32.dll
0x000007fefd6f0000 - 0x000007fefd75b000    C:\Windows\system32\KERNELBASE.dll
0x000007fefef90000 - 0x000007feff06b000    C:\Windows\system32\ADVAPI32.dll
0x000007fefd760000 - 0x000007fefd7ff000    C:\Windows\system32\msvcrt.dll
0x000007feff3f0000 - 0x000007feff40f000    C:\Windows\SYSTEM32\sechost.dll
0x000007fefece0000 - 0x000007fefee0d000    C:\Windows\system32\RPCRT4.dll
0x0000000077450000 - 0x000000007754a000    C:\Windows\system32\USER32.dll
0x000007fefee10000 - 0x000007fefee77000    C:\Windows\system32\GDI32.dll
0x000007feff070000 - 0x000007feff07e000    C:\Windows\system32\LPK.dll
0x000007fefddd0000 - 0x000007fefde99000    C:\Windows\system32\USP10.dll
0x000007fefbca0000 - 0x000007fefbe94000    C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_fa396087175ac9ac\COMCTL32.dll
0x000007fefd850000 - 0x000007fefd8c1000    C:\Windows\system32\SHLWAPI.dll
0x000007fefec30000 - 0x000007fefec5e000    C:\Windows\system32\IMM32.DLL
0x000007fefee80000 - 0x000007fefef89000    C:\Windows\system32\MSCTF.dll
0x0000000066910000 - 0x00000000669e2000    C:\Program Files\Java\jre1.8.0_111\bin\msvcr100.dll
0x0000000068720000 - 0x0000000068fba000    C:\Program Files\Java\jre1.8.0_111\bin\server\jvm.dll
0x000007fef8ab0000 - 0x000007fef8ab9000    C:\Windows\system32\WSOCK32.dll
0x000007fefd800000 - 0x000007fefd84d000    C:\Windows\system32\WS2_32.dll
0x000007fefd8d0000 - 0x000007fefd8d8000    C:\Windows\system32\NSI.dll
0x000007fefa170000 - 0x000007fefa1ab000    C:\Windows\system32\WINMM.dll
0x000007fefc420000 - 0x000007fefc42c000    C:\Windows\system32\VERSION.dll
0x0000000077710000 - 0x0000000077717000    C:\Windows\system32\PSAPI.DLL
0x0000000072570000 - 0x000000007257f000    C:\Program Files\Java\jre1.8.0_111\bin\verify.dll
0x00000000723b0000 - 0x00000000723d9000    C:\Program Files\Java\jre1.8.0_111\bin\java.dll
0x00000000723f0000 - 0x0000000072406000    C:\Program Files\Java\jre1.8.0_111\bin\zip.dll
0x000007fefdea0000 - 0x000007fefec28000    C:\Windows\system32\SHELL32.dll
0x000007feff410000 - 0x000007feff613000    C:\Windows\system32\ole32.dll
0x000007fefd330000 - 0x000007fefd33f000    C:\Windows\system32\profapi.dll
0x0000000072390000 - 0x00000000723aa000    C:\Program Files\Java\jre1.8.0_111\bin\net.dll
0x000007fefcba0000 - 0x000007fefcbf5000    C:\Windows\system32\mswsock.dll
0x000007fefcb90000 - 0x000007fefcb97000    C:\Windows\System32\wship6.dll
0x0000000072370000 - 0x0000000072381000    C:\Program Files\Java\jre1.8.0_111\bin\nio.dll
0x000007fefab00000 - 0x000007fefab55000    C:\Users\Will\AppData\Local\Temp\lwjglWill\3.1.0-build-38\lwjgl.dll
0x000007fef6030000 - 0x000007fef6033000    C:\Windows\system32\api-ms-win-core-synch-l1-2-0.DLL
0x0000000060ba0000 - 0x0000000060d38000    C:\Program Files\Java\jre1.8.0_111\bin\awt.dll
0x000007fefd8e0000 - 0x000007fefd9b7000    C:\Windows\system32\OLEAUT32.dll
0x000007fefaa20000 - 0x000007fefaa94000    C:\Users\Will\AppData\Local\Temp\lwjglWill\3.1.0-build-38\lwjgl_stb.dll
0x000007fefd260000 - 0x000007fefd26f000    C:\Windows\system32\CRYPTBASE.dll
0x000007fefb690000 - 0x000007fefb6a8000    C:\Windows\system32\DWMAPI.DLL
0x000007fef24c0000 - 0x000007fef24fc000    C:\Users\Will\AppData\Local\Temp\lwjglWill\3.1.0-build-38\glfw.dll
0x000007fef26e0000 - 0x000007fef271c000    C:\Windows\system32\dinput8.dll
0x0000000000430000 - 0x000000000044e000    C:\Windows\system32\xinput1_3.dll
0x000007feff680000 - 0x000007feff857000    C:\Windows\system32\SETUPAPI.dll
0x000007fefd630000 - 0x000007fefd666000    C:\Windows\system32\CFGMGR32.dll
0x000007fefd680000 - 0x000007fefd69a000    C:\Windows\system32\DEVOBJ.dll
0x000007fefb700000 - 0x000007fefb70b000    C:\Windows\system32\HID.DLL
0x000007fefd6b0000 - 0x000007fefd6e9000    C:\Windows\system32\WINTRUST.dll
0x000007fefd3f0000 - 0x000007fefd55a000    C:\Windows\system32\CRYPT32.dll
0x000007fefd3d0000 - 0x000007fefd3df000    C:\Windows\system32\MSASN1.dll
0x000007fef43f0000 - 0x000007fef450d000    C:\Windows\system32\opengl32.dll
0x000007fef4570000 - 0x000007fef459d000    C:\Windows\system32\GLU32.dll
0x000007fef42f0000 - 0x000007fef43e1000    C:\Windows\system32\DDRAW.dll
0x000007fef4560000 - 0x000007fef4568000    C:\Windows\system32\DCIMAN32.dll
0x000000005c940000 - 0x000000005e324000    C:\Windows\system32\nvoglv64.DLL
0x000007fefbfb0000 - 0x000007fefbfdd000    C:\Windows\system32\ntmarta.dll
0x000007feff620000 - 0x000007feff672000    C:\Windows\system32\WLDAP32.dll
0x000007fef8b70000 - 0x000007fef8c0c000    C:\Windows\system32\mscms.dll
0x000007fefc610000 - 0x000007fefc62e000    C:\Windows\system32\USERENV.dll
0x000007fef9930000 - 0x000007fef9972000    C:\Windows\system32\icm32.dll
0x00000000125b0000 - 0x00000000125f7000    C:\Program Files\Java\jre1.8.0_111\bin\fontmanager.dll
0x000007fee94c0000 - 0x000007fee96bf000    C:\Windows\system32\d3d9.dll
0x000007fefb110000 - 0x000007fefb117000    C:\Windows\system32\d3d8thk.dll
0x000007fee7240000 - 0x000007fee8377000    C:\Windows\system32\nvd3dumx.dll
0x0000000180000000 - 0x0000000180139000    C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvSCPAPI64.dll
0x000007fef87d0000 - 0x000007fef8aa6000    C:\Windows\system32\nvapi64.dll
0x00000000003b0000 - 0x00000000003f2000    C:\Program Files\Java\jre1.8.0_111\bin\t2k.dll
0x0000000000400000 - 0x000000000040c000    C:\Program Files\Java\jre1.8.0_111\bin\jsound.dll
0x0000000001d90000 - 0x0000000001d9b000    C:\Program Files\Java\jre1.8.0_111\bin\jsoundds.dll
0x000007fef4260000 - 0x000007fef42e8000    C:\Windows\system32\DSOUND.dll
0x000007fefb620000 - 0x000007fefb64c000    C:\Windows\system32\POWRPROF.dll
0x000007fefb6b0000 - 0x000007fefb6fb000    C:\Windows\system32\MMDevAPI.DLL
0x000007fefbb20000 - 0x000007fefbc4c000    C:\Windows\system32\PROPSYS.dll
0x000007fefa000000 - 0x000007fefa03b000    C:\Windows\system32\wdmaud.drv
0x0000000001da0000 - 0x0000000001da6000    C:\Windows\system32\ksuser.dll
0x000007fefa650000 - 0x000007fefa659000    C:\Windows\system32\AVRT.dll
0x000007fef9f00000 - 0x000007fef9f4f000    C:\Windows\system32\AUDIOSES.DLL
0x000007fef9eb0000 - 0x000007fef9eba000    C:\Windows\system32\msacm32.drv
0x000007fef9e90000 - 0x000007fef9ea8000    C:\Windows\system32\MSACM32.dll
0x000007fef9e80000 - 0x000007fef9e89000    C:\Windows\system32\midimap.dll
0x000007feff2b0000 - 0x000007feff349000    C:\Windows\system32\CLBCatQ.DLL
0x000007feef2f0000 - 0x000007feef415000    C:\Windows\system32\dbghelp.dll

VM Arguments:
jvm_args: -Dfile.encoding=Cp1252
java_command: NewGameMainAct2
java_class_path (initial): C:\Users\Will\workspace2\TH-TNGL\bin;C:\Users\Will\workspace2\lwjgl-3.1.0-custom\lwjgl.jar;C:\Users\Will\workspace2\lwjgl-3.1.0-custom\lwjgl-glfw.jar;C:\Users\Will\workspace2\lwjgl-3.1.0-custom\lwjgl-opengl.jar;C:\Users\Will\workspace2\lwjgl-3.1.0-custom\lwjgl-glfw-natives-windows.jar;C:\Users\Will\workspace2\lwjgl-3.1.0-custom\lwjgl-natives-windows.jar;C:\Users\Will\workspace2\lwjgl-3.1.0-custom\lwjgl-stb.jar;C:\Users\Will\workspace2\lwjgl-3.1.0-custom\lwjgl-stb-natives-windows.jar;C:\Users\Will\workspace2\jogamp-all-platforms\jar\gluegen-rt.jar;C:\Users\Will\workspace2\jogamp-all-platforms\jar\jogl-all.jar
Launcher Type: SUN_STANDARD

Environment Variables:
PATH=C:/Program Files/Java/jre1.8.0_111/bin/server;C:/Program Files/Java/jre1.8.0_111/bin;C:/Program Files/Java/jre1.8.0_111/lib/amd64;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Autodesk\Backburner\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Skype\Phone\;C:\Users\Will\AppData\Local\.meteor\;C:\Users\Will\Desktop\DT Clutter 9.29.15\eclipse-java-mars-R-win32-x86_64\eclipse;
USERNAME=Will
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel



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

OS: Windows 7 , 64 bit Build 7601 (6.1.7601.18015)

CPU:total 8 (4 cores per cpu, 2 threads per core) family 6 model 58 stepping 9, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, aes, clmul, erms, ht, tsc, tscinvbit, tscinv

Memory: 4k page, physical 8343132k(3583772k free), swap 8751896k(1679184k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (25.111-b14) for windows-amd64 JRE (1.8.0_111-b14), built on Sep 22 2016 19:24:05 by "java_re" with MS VC++ 10.0 (VS2010)

time: Thu Dec 22 08:48:14 2016
elapsed time: 131 seconds (0d 0h 2m 11s)

spasi

Instead of pasting the log contents, you can click on "Attachments and other options" when replying and attach the log file itself.

One possibility is that you're hitting this issue, if you're using STBTTFontinfo for anything.

Another is that you're indeed in some kind of memory leak situation. It's odd that the load_fonts() happens inside your rendering loop, resources such as fonts are usually loaded in advance.

You could try running with -Dorg.lwjgl.util.DebugAllocator=true. This will print any allocations that have not been freed on exit.

Optimo

Quote from: spasi on December 22, 2016, 18:01:27It's odd that the load_fonts() happens inside your rendering loop, resources such as fonts are usually loaded in advance.
If it is, I don't think I meant for it to be. Did you gather that from the info I have given, or were you under the impression I was suggesting it was?

spasi

You can see it in the stacktrace:

QuoteJava frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J 679  org.lwjgl.stb.STBTruetype.nstbtt_PackFontRange(JJIFIIJ)I (0 bytes) @ 0x000000000260b4e1 [0x000000000260b480+0x61]
J 783 C1 GLImageObject.load_fonts()V (327 bytes) @ 0x000000000265ec7c [0x000000000265c5c0+0x26bc]
j  CannonSprite.<init>(IIIILjava/lang/String;IIIIIIIIII)V+114
j  NewCore.enemyFireCannon(IIIIILjava/lang/String;I)V+139
J 2963 C2 NewCore.enemyMove()V (3670 bytes) @ 0x0000000002c211c8 [0x0000000002c20d00+0x4c8]
J 2948 C1 NewCore.gameLoop()V (2055 bytes) @ 0x0000000002cc392c [0x0000000002cb8ec0+0xaa6c]
NewGameMainAct2.run(Ljava/lang/String;)V+402
j  NewGameMainAct2.main([Ljava/lang/String;)V+10
v  ~StubRoutines::call_stub

Optimo

This all happens outside of the draw() section. Draw() is at the end of a gameLoop();

spasi

Do the Truetype and TruetypeOversample demos work for you?

Does the crash happen every time load_fonts() is called? Or does it happen randomly?

Have you tried -Dorg.lwjgl.util.Debug=true and -Dorg.lwjgl.util.DebugAllocator=true?

Optimo

Those demos never crashed. But it seems pretty random. Likely due to my implementations in some way.

The crashes so far are rather random in timing, but I have feelings on what it could be.

I've not gotten to try out everything you've suggested, but what you have said makes me feel like I have a better idea what is happening. Not sure how soon I can get to it, but I will respond here when I have progress.

Thanks again! Happy holidays!  ;D

Optimo

I adjusted my build such that load_fonts wasn't being done when certain objects were created. I may be using load_fonts and these text datas incorrectly. With load_fonts not called at improper times, the program no longer crashes like originally mentioned. Thanks! Happy New Year!  ;D