Hello Guest

[CLOSED] EXCEPTION_ACCESS_VIOLATION Problematic frame: # C [ig8icd32.dll+0x85a95]

  • 5 Replies
  • 24111 Views
Hello,

I have a problem with a simple program that use LWJGL to render a Triangle and that make a simple animation of it.
This program works fine on the pc where i maked it but when I try to use it on a Notebook (i tested it on 2 Notebooks) it shows for a second a white window and then it disappears. On one of the 2 Notebooks where i tested it Java gives me this error log:

Code: [Select]
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x69325a95, pid=532, tid=3852
#
# JRE version: Java(TM) SE Runtime Environment (8.0_65-b17) (build 1.8.0_65-b17)
# Java VM: Java HotSpot(TM) Client VM (25.65-b01 mixed mode, sharing windows-x86 )
# Problematic frame:
# C  [ig8icd32.dll+0x85a95]
#
# 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.
#

I hope you can help me to solve this issue.
sorry for my english. ;D

Java Code:

*

Offline SHC

  • **
  • 94
    • GoHarsha.com
You are following my tutorial series? http://goharsha.com/lwjgl-tutorial-series/

I think that might be a driver issue, can you post the crash log? Without that we cannot tell much about the issue on what's happening. Also information on the notebook make and model and the GPU it's having will help.

Yes i'm following that tutorial series.  :D

this is the complete crash log:

Code: [Select]
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x69325a95, pid=532, tid=3852
#
# JRE version: Java(TM) SE Runtime Environment (8.0_65-b17) (build 1.8.0_65-b17)
# Java VM: Java HotSpot(TM) Client VM (25.65-b01 mixed mode, sharing windows-x86 )
# Problematic frame:
# C  [ig8icd32.dll+0x85a95]
#
# 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 (0x0065bc00):  JavaThread "main" [_thread_in_native, id=3852, stack(0x00b60000,0x00bb0000)]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000000

Registers:
EAX=0x00000003, EBX=0x00badb98, ECX=0x00000000, EDX=0x00000000
ESP=0x00bac74c, EBP=0x00bac754, ESI=0x00000030, EDI=0x17176000
EIP=0x69325a95, EFLAGS=0x00010206

Top of Stack: (sp=0x00bac74c)
0x00bac74c:   00bac900 00798fc0 00badb90 694c6099
0x00bac75c:   00000030 00798fc0 007b5240 00000000
0x00bac76c:   00000000 00000000 00000000 00000000
0x00bac77c:   00000000 00000000 00000000 00000000
0x00bac78c:   00000000 00000000 00000000 00000000
0x00bac79c:   00000000 00000000 00000000 00000000
0x00bac7ac:   00000000 00000000 00000000 00000000
0x00bac7bc:   00000000 00000000 00000000 00000000

Instructions: (pc=0x69325a95)
0x69325a75:   0f e7 4f 60 66 0f e7 47 70 83 ea 80 83 ef 80 48
0x69325a85:   75 a9 83 e6 7f 74 1a 8b c6 c1 e8 04 85 c0 74 11
0x69325a95:   66 0f 6f 02 66 0f e7 07 83 c2 10 83 c7 10 48 75
0x69325aa5:   ef 83 e6 0f 74 30 8b ce c1 e9 02 85 c9 74 0d 8b


Register to memory mapping:

EAX=0x00000003 is an unknown value
EBX=0x00badb98 is pointing into the stack for thread: 0x0065bc00
ECX=0x00000000 is an unknown value
EDX=0x00000000 is an unknown value
ESP=0x00bac74c is pointing into the stack for thread: 0x0065bc00
EBP=0x00bac754 is pointing into the stack for thread: 0x0065bc00
ESI=0x00000030 is an unknown value
EDI=0x17176000 is an unknown value


Stack: [0x00b60000,0x00bb0000],  sp=0x00bac74c,  free space=305k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [ig8icd32.dll+0x85a95]
C  [ig8icd32.dll+0x226099]
C  [ig8icd32.dll+0x17d7a3]
C  [ig8icd32.dll+0x22d93f]
C  [ig8icd32.dll+0x22d68a]
C  [ig8icd32.dll+0x248bf3]
C  [ig8icd32.dll+0x248ca9]
C  [ig8icd32.dll+0x248f44]
C  [ig8icd32.dll+0x3f0286]
C  [lwjgl32.dll+0x2d80]
j  org.lwjgl.opengl.GL11.glDrawArrays(III)V+11
j  com.main.Tutorial1.render(F)V+27
j  com.main.Main.start()V+53
j  com.main.Tutorial1.main([Ljava/lang/String;)V+7
v  ~StubRoutines::call_stub
V  [jvm.dll+0x158985]
V  [jvm.dll+0x21df3e]
V  [jvm.dll+0x158a1e]
V  [jvm.dll+0xdaac7]
V  [jvm.dll+0xe305f]
C  [java.exe+0x228d]
C  [java.exe+0xae9f]
C  [java.exe+0xaf29]
C  [KERNEL32.DLL+0x17c04]
C  [ntdll.dll+0x5ad1f]
C  [ntdll.dll+0x5acea]
C  0x00000000

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.lwjgl.opengl.GL11.nglDrawArrays(IIIJ)V+0
j  org.lwjgl.opengl.GL11.glDrawArrays(III)V+11
j  com.main.Tutorial1.render(F)V+27
j  com.main.Main.start()V+53
j  com.main.Tutorial1.main([Ljava/lang/String;)V+7
v  ~StubRoutines::call_stub

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

Java Threads: ( => current thread )
  0x0238e000 JavaThread "Service Thread" daemon [_thread_blocked, id=3484, stack(0x14d20000,0x14d70000)]
  0x0236f800 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=6500, stack(0x14c90000,0x14ce0000)]
  0x0236dc00 JavaThread "Attach Listener" daemon [_thread_blocked, id=3368, stack(0x14c00000,0x14c50000)]
  0x0236c000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3032, stack(0x14b70000,0x14bc0000)]
  0x02307000 JavaThread "Finalizer" daemon [_thread_blocked, id=5720, stack(0x149e0000,0x14a30000)]
  0x02305800 JavaThread "Reference Handler" daemon [_thread_blocked, id=4820, stack(0x14950000,0x149a0000)]
=>0x0065bc00 JavaThread "main" [_thread_in_native, id=3852, stack(0x00b60000,0x00bb0000)]

Other Threads:
  0x02301c00 VMThread [stack: 0x148c0000,0x14910000] [id=6124]
  0x023a4c00 WatcherThread [stack: 0x14db0000,0x14e00000] [id=5216]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap:
 def new generation   total 4928K, used 1918K [0x04400000, 0x04950000, 0x09950000)
  eden space 4416K,  31% used [0x04400000, 0x0455fa08, 0x04850000)
  from space 512K,  99% used [0x04850000, 0x048cfff8, 0x048d0000)
  to   space 512K,   0% used [0x048d0000, 0x048d0000, 0x04950000)
 tenured generation   total 10944K, used 2055K [0x09950000, 0x0a400000, 0x14400000)
   the space 10944K,  18% used [0x09950000, 0x09b51df8, 0x09b51e00, 0x0a400000)
 Metaspace       used 2618K, capacity 4735K, committed 4736K, reserved 5504K

Card table byte_map: [0x00cc0000,0x00d50000] byte_map_base: 0x00c9e000

Polling page: 0x00bb0000

CodeCache: size=32768Kb used=896Kb max_used=896Kb free=31871Kb
 bounds [0x023e0000, 0x024c8000, 0x043e0000]
 total_blobs=492 nmethods=165 adapters=258
 compilation: enabled

Compilation events (10 events):
Event: 0.610 Thread 0x0236f800  161             jdk.internal.org.objectweb.asm.ByteVector::putByte (39 bytes)
Event: 0.610 Thread 0x0236f800 nmethod 161 0x024bf208 code [0x024bf310, 0x024bf40c]
Event: 0.612 Thread 0x0236f800  162             jdk.internal.org.objectweb.asm.ClassWriter::newUTF8 (70 bytes)
Event: 0.612 Thread 0x0236f800 nmethod 162 0x024bf508 code [0x024bf650, 0x024bf818]
Event: 0.618 Thread 0x0236f800  163             java.net.URL::getProtocol (5 bytes)
Event: 0.618 Thread 0x0236f800 nmethod 163 0x024bf9c8 code [0x024bfac0, 0x024bfb40]
Event: 0.618 Thread 0x0236f800  164             java.lang.ClassLoader::checkName (43 bytes)
Event: 0.619 Thread 0x0236f800 nmethod 164 0x024bfb88 code [0x024bfcb0, 0x024bfe48]
Event: 0.619 Thread 0x0236f800  165             sun.misc.VM::allowArraySyntax (4 bytes)
Event: 0.619 Thread 0x0236f800 nmethod 165 0x024c0008 code [0x024c0100, 0x024c0180]

GC Heap History (4 events):
Event: 0.416 GC heap before
{Heap before GC invocations=0 (full 0):
 def new generation   total 4928K, used 4354K [0x04400000, 0x04950000, 0x09950000)
  eden space 4416K,  98% used [0x04400000, 0x04840be8, 0x04850000)
  from space 512K,   0% used [0x04850000, 0x04850000, 0x048d0000)
  to   space 512K,   0% used [0x048d0000, 0x048d0000, 0x04950000)
 tenured generation   total 10944K, used 0K [0x09950000, 0x0a400000, 0x14400000)
   the space 10944K,   0% used [0x09950000, 0x09950000, 0x09950200, 0x0a400000)
 Metaspace       used 1210K, capacity 3278K, committed 3392K, reserved 4480K
Event: 0.421 GC heap after
Heap after GC invocations=1 (full 0):
 def new generation   total 4928K, used 512K [0x04400000, 0x04950000, 0x09950000)
  eden space 4416K,   0% used [0x04400000, 0x04400000, 0x04850000)
  from space 512K, 100% used [0x048d0000, 0x04950000, 0x04950000)
  to   space 512K,   0% used [0x04850000, 0x04850000, 0x048d0000)
 tenured generation   total 10944K, used 867K [0x09950000, 0x0a400000, 0x14400000)
   the space 10944K,   7% used [0x09950000, 0x09a28c58, 0x09a28e00, 0x0a400000)
 Metaspace       used 1210K, capacity 3278K, committed 3392K, reserved 4480K
}
Event: 0.574 GC heap before
{Heap before GC invocations=1 (full 0):
 def new generation   total 4928K, used 4928K [0x04400000, 0x04950000, 0x09950000)
  eden space 4416K, 100% used [0x04400000, 0x04850000, 0x04850000)
  from space 512K, 100% used [0x048d0000, 0x04950000, 0x04950000)
  to   space 512K,   0% used [0x04850000, 0x04850000, 0x048d0000)
 tenured generation   total 10944K, used 867K [0x09950000, 0x0a400000, 0x14400000)
   the space 10944K,   7% used [0x09950000, 0x09a28c58, 0x09a28e00, 0x0a400000)
 Metaspace       used 2486K, capacity 4538K, committed 4608K, reserved 5504K
Event: 0.578 GC heap after
Heap after GC invocations=2 (full 0):
 def new generation   total 4928K, used 511K [0x04400000, 0x04950000, 0x09950000)
  eden space 4416K,   0% used [0x04400000, 0x04400000, 0x04850000)
  from space 512K,  99% used [0x04850000, 0x048cfff8, 0x048d0000)
  to   space 512K,   0% used [0x048d0000, 0x048d0000, 0x04950000)
 tenured generation   total 10944K, used 2055K [0x09950000, 0x0a400000, 0x14400000)
   the space 10944K,  18% used [0x09950000, 0x09b51df8, 0x09b51e00, 0x0a400000)
 Metaspace       used 2486K, capacity 4538K, committed 4608K, reserved 5504K
}

Deoptimization events (0 events):
No events

Internal exceptions (8 events):
Event: 0.030 Thread 0x0065bc00 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.defineClass(Ljava/lang/String;[BII)Ljava/lang/Class; name or signature does not match> (0x0440bfd0) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u65\4987\hotspot\src\share\v½¸â'¿ž?
Event: 0.030 Thread 0x0065bc00 Exception <a 'java/lang/NoSuchMethodError': Method sun.misc.Unsafe.prefetchRead(Ljava/lang/Object;J)V name or signature does not match> (0x0440c2a0) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u65\4987\hotspot\src\share\vm\prims\jni.cpp, lÂhL™òÖ?
Event: 0.353 Thread 0x0065bc00 Exception <a 'java/security/PrivilegedActionException'> (0x0464f768) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u65\4987\hotspot\src\share\vm\prims\jvm.cpp, line 1386]
Event: 0.353 Thread 0x0065bc00 Exception <a 'java/security/PrivilegedActionException'> (0x0464fb48) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u65\4987\hotspot\src\share\vm\prims\jvm.cpp, line 1386]
Event: 0.354 Thread 0x0065bc00 Exception <a 'java/security/PrivilegedActionException'> (0x04653d18) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u65\4987\hotspot\src\share\vm\prims\jvm.cpp, line 1386]
Event: 0.354 Thread 0x0065bc00 Exception <a 'java/security/PrivilegedActionException'> (0x046540f8) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u65\4987\hotspot\src\share\vm\prims\jvm.cpp, line 1386]
Event: 0.603 Thread 0x0065bc00 Exception <a 'java/lang/NoSuchFieldError': method resolution failed> (0x0449ae80) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u65\4987\hotspot\src\share\vm\prims\methodHandles.cpp, line 1146]
Event: 0.605 Thread 0x0065bc00 Exception <a 'java/lang/NoSuchFieldError': method resolution failed> (0x044a6fd0) thrown at [C:\re\workspace\8-2-build-windows-i586-cygwin\jdk8u65\4987\hotspot\src\share\vm\prims\methodHandles.cpp, line 1146]

Events (10 events):
Event: 0.622 loading class org/lwjgl/system/libffi/FFICIF
Event: 0.622 loading class org/lwjgl/system/libffi/FFICIF done
Event: 0.622 loading class java/nio/DirectIntBufferU
Event: 0.622 loading class java/nio/DirectIntBufferU done
Event: 0.623 loading class org/lwjgl/system/libffi/FFIClosure
Event: 0.623 loading class org/lwjgl/system/libffi/FFIClosure done
Event: 0.623 loading class com/main/FileUtil
Event: 0.623 loading class com/main/FileUtil done
Event: 0.624 Executing VM operation: Deoptimize
Event: 0.624 Executing VM operation: Deoptimize done


Dynamic libraries:
0x00da0000 - 0x00dd3000 C:\ProgramData\Oracle\Java\javapath\java.exe
0x77780000 - 0x778ee000 C:\Windows\SYSTEM32\ntdll.dll
0x769b0000 - 0x76af0000 C:\Windows\SYSTEM32\KERNEL32.DLL
0x76c50000 - 0x76d27000 C:\Windows\SYSTEM32\KERNELBASE.dll
0x74a90000 - 0x74b30000 C:\Windows\system32\apphelp.dll
0x6aec0000 - 0x6b126000 C:\Windows\AppPatch\AcGenral.DLL
0x77450000 - 0x77513000 C:\Windows\SYSTEM32\msvcrt.dll
0x77370000 - 0x773b1000 C:\Windows\SYSTEM32\sechost.dll
0x74f70000 - 0x74f8e000 C:\Windows\SYSTEM32\SspiCli.dll
0x77320000 - 0x77365000 C:\Windows\SYSTEM32\SHLWAPI.dll
0x74940000 - 0x74a2d000 C:\Windows\SYSTEM32\UxTheme.dll
0x763c0000 - 0x76513000 C:\Windows\SYSTEM32\USER32.dll
0x76ea0000 - 0x76faf000 C:\Windows\SYSTEM32\GDI32.dll
0x74a60000 - 0x74a83000 C:\Windows\SYSTEM32\WINMM.dll
0x70330000 - 0x70343000 C:\Windows\SYSTEM32\samcli.dll
0x766f0000 - 0x76819000 C:\Windows\SYSTEM32\ole32.dll
0x76bb0000 - 0x76c45000 C:\Windows\SYSTEM32\OLEAUT32.dll
0x6b320000 - 0x6b337000 C:\Windows\SYSTEM32\MSACM32.dll
0x74d90000 - 0x74d98000 C:\Windows\SYSTEM32\VERSION.dll
0x75100000 - 0x763bc000 C:\Windows\SYSTEM32\SHELL32.dll
0x74ee0000 - 0x74efb000 C:\Windows\SYSTEM32\USERENV.dll
0x74920000 - 0x7493a000 C:\Windows\SYSTEM32\dwmapi.dll
0x72540000 - 0x7268b000 C:\Windows\SYSTEM32\urlmon.dll
0x76d30000 - 0x76dac000 C:\Windows\SYSTEM32\ADVAPI32.dll
0x73c00000 - 0x73c65000 C:\Windows\SYSTEM32\WINSPOOL.DRV
0x6a860000 - 0x6a876000 C:\Windows\SYSTEM32\MPR.dll
0x770d0000 - 0x7718a000 C:\Windows\SYSTEM32\RPCRT4.dll
0x74f60000 - 0x74f6a000 C:\Windows\SYSTEM32\CRYPTBASE.dll
0x76820000 - 0x7699d000 C:\Windows\SYSTEM32\combase.dll
0x74a30000 - 0x74a53000 C:\Windows\SYSTEM32\WINMMBASE.dll
0x74ec0000 - 0x74ecf000 C:\Windows\SYSTEM32\profapi.dll
0x73df0000 - 0x74022000 C:\Windows\SYSTEM32\iertutil.dll
0x740d0000 - 0x742c3000 C:\Windows\SYSTEM32\WININET.dll
0x74f00000 - 0x74f54000 C:\Windows\SYSTEM32\bcryptPrimitives.dll
0x775d0000 - 0x7760c000 C:\Windows\SYSTEM32\cfgmgr32.dll
0x74e40000 - 0x74e61000 C:\Windows\SYSTEM32\DEVOBJ.dll
0x74cd0000 - 0x74d5b000 C:\Windows\SYSTEM32\SHCORE.DLL
0x76b80000 - 0x76ba7000 C:\Windows\system32\IMM32.DLL
0x76fb0000 - 0x770c2000 C:\Windows\SYSTEM32\MSCTF.dll
0x742d0000 - 0x744d6000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.9600.18006_none_a9ec6aab013aafee\COMCTL32.dll
0x6ae00000 - 0x6aebf000 C:\Program Files (x86)\Java\jre1.8.0_65\bin\msvcr100.dll
0x6aa30000 - 0x6adf4000 C:\Program Files (x86)\Java\jre1.8.0_65\bin\client\jvm.dll
0x74c90000 - 0x74c98000 C:\Windows\SYSTEM32\WSOCK32.dll
0x76dc0000 - 0x76dc6000 C:\Windows\SYSTEM32\PSAPI.DLL
0x77520000 - 0x77570000 C:\Windows\SYSTEM32\WS2_32.dll
0x76e30000 - 0x76e37000 C:\Windows\SYSTEM32\NSI.dll
0x6aa20000 - 0x6aa2c000 C:\Program Files (x86)\Java\jre1.8.0_65\bin\verify.dll
0x6a9f0000 - 0x6aa11000 C:\Program Files (x86)\Java\jre1.8.0_65\bin\java.dll
0x6a9d0000 - 0x6a9e3000 C:\Program Files (x86)\Java\jre1.8.0_65\bin\zip.dll
0x6a900000 - 0x6a9c8000 F:\Triangolo\native\lwjgl32.dll
0x6a780000 - 0x6a85e000 C:\Windows\SYSTEM32\OPENGL32.dll
0x6a8d0000 - 0x6a8f5000 C:\Windows\SYSTEM32\GLU32.dll
0x6a690000 - 0x6a77c000 C:\Windows\SYSTEM32\DDRAW.dll
0x6a8c0000 - 0x6a8c7000 C:\Windows\SYSTEM32\DCIMAN32.dll
0x692a0000 - 0x699c6000 C:\Windows\SYSTEM32\ig8icd32.dll
0x6bbf0000 - 0x6c467000 C:\Windows\SYSTEM32\igdusc32.dll
0x74ed0000 - 0x74edf000 C:\Windows\SYSTEM32\WTSAPI32.dll
0x74c50000 - 0x74c90000 C:\Windows\SYSTEM32\powrprof.dll
0x74e30000 - 0x74e39000 C:\Windows\SYSTEM32\kernel.appcore.dll
0x73c70000 - 0x73db1000 C:\Windows\SYSTEM32\dbghelp.dll

VM Arguments:
jvm_args: -Djava.library.path=native/
java_command: triangolo arcobaleno.jar
java_class_path (initial): triangolo arcobaleno.jar
Launcher Type: SUN_STANDARD

Environment Variables:
PATH=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\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\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\IPT
USERNAME=Marida
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 61 Stepping 4, GenuineIntel



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

OS: Windows 8.1 , 64 bit Build 9600 (6.3.9600.17415)

CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 61 stepping 4, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, erms, 3dnowpref, lzcnt, ht, tsc, tscinvbit, bmi1, bmi2, adx

Memory: 4k page, physical 4094768k(1420896k free), swap 5536560k(2414024k free)

vm_info: Java HotSpot(TM) Client VM (25.65-b01) for windows-x86 JRE (1.8.0_65-b17), built on Oct  6 2015 17:26:22 by "java_re" with MS VC++ 10.0 (VS2010)

time: Mon Oct 26 18:02:52 2015
elapsed time: 0 seconds (0d 0h 0m 0s)



The GPU of the notebook is an Nvidia GeForce 920M but it have also another video component the Intel HD Graphics 5500.
The Notebook is an Asus F554L with an Intel i3-5010U.

*

Offline SHC

  • **
  • 94
    • GoHarsha.com
My guess is that this is failing because there is no ShaderProgram is in use when calling glDrawBuffers(). This is, in Tutorial1 class you have this:

Code: [Select]
ShaderProgram shaderProgram = new ShaderProgram();
       
public Tutorial1() {
}

This is wrong, you have to create the shader program after you have a context. But here, you are calling glCreateProgram() (inside the ShaderProgram constructor) before you have an OpenGL context. It might be set to zero. Not all GPU drivers are forgiving, especially Intel ones.

That might be causing the crash to you. Move the instance creation into the init() method and you will be guaranteed that it is created after the OpenGL context is created.

*

Kai

Looking at your Tutorial1 class it is obvious that there are at least two problems with it, with the first problem being the reason for the crash.

First: during the very first render() invocation there is no vertex array bound to array index 0, since you are initializing your VAO/VBO after your first render.
Therefore the draw call sources from NULL memory at vertex array index 0, which causes the crash.
By the way: Whenever a draw function crashes hard, the reason I observed in every single case in the past was sourcing from NULL client memory due to a vertex array index enabled but no buffer object bound to it, in which case the last argument to glVertexAttribPointer will be interpreted as a native address/pointer and not as an offset into a VBO. See the spec of glVertexAttribPointer for this.

Second: you are recreating your VAO and VBO every single time as the last action in your render() method. This also will eventually result in the driver running out of memory/gl-name, since you leak each object allocation each frame. So you should once create the VAO/VBO in some "init()" method.
If you need to change the data inside that VBO, then use glBufferSubData().
« Last Edit: October 27, 2015, 21:19:08 by Kai »

Thanks for the fast answer,
I fixed the program and now works. Sorry for the obvious problems that i didn't see but i'm a noob and i've just started learning OpenGL.  :-\

Thanks again.   :)