Failed to load image using stbi_load (lwjgl used) - kotlin
I'm learning OpenGL following this video. While it's based on C++, I attempt to use Kotlin instead with lwjgl. As I code and run this:
// Something above
stbi_set_flip_vertically_on_load(true)
val width = IntBuffer.allocate(1)
val height = IntBuffer.allocate(1)
val colorChannel = IntBuffer.allocate(1)
val imageBuffer = stbi_load(
"src/main/resources/$filePath",
width, height,
colorChannel, 0
) ?: throw NoSuchElementException(filePath)
// Something below
It explodes on stbi_load() outside JVM with the following error message:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ff98391456e, pid=3740, tid=0x0000000000004e94
#
# JRE version: OpenJDK Runtime Environment (8.0_302-b08) (build 1.8.0_302-b08)
# Java VM: OpenJDK 64-Bit Server VM (25.302-b08 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [lwjgl_stb.dll+0x456e]
#
# 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:
# https://github.com/corretto/corretto-8/issues/
# 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 (0x000001f98ec0c000): JavaThread "main" [_thread_in_native, id=20116, stack(0x000000b726100000,0x000000b726200000)]
siginfo: ExceptionCode=0xc0000005, writing address 0x0000000000000000
Registers:
RAX=0x0000000000000200, RBX=0x000000b7261fed00, RCX=0x000000b7261fec90, RDX=0x000001f98ebc0000
RSP=0x000000b7261febb0, RBP=0x0000000000000000, RSI=0x0000000000000000, RDI=0x000001f9b823d040
R8 =0x000000b7261fd438, R9 =0x0000000000000001, R10=0x0000000000000000, R11=0x000000b7261fd650
R12=0x0000000000000000, R13=0x0000000000000001, R14=0x0000000000000000, R15=0x0000000000000000
RIP=0x00007ff98391456e, EFLAGS=0x0000000000010246
Top of Stack: (sp=0x000000b7261febb0)
0x000000b7261febb0: 000001f9b6031d00 000000b700000000
0x000000b7261febc0: 0000000000000000 0000000000000000
0x000000b7261febd0: 000000b7261fed38 00007ff983953854
0x000000b7261febe0: 000001f9b602e730 ffffffffffffffff
0x000000b7261febf0: 000000b7261fed00 0000000000000000
0x000000b7261fec00: 0000000000000000 000001f9b823d040
0x000000b7261fec10: 0000000000000008 000000b7261fed38
0x000000b7261fec20: 0000000000000000 0000000000000000
0x000000b7261fec30: 0000000000000000 0000000000000000
0x000000b7261fec40: 0000000000000000 00007ff983914a9c
0x000000b7261fec50: 000001f900000000 000001f9b602e730
0x000000b7261fec60: 0000000000000000 0000000000000000
0x000000b7261fec70: 000001f900000000 000000b7261fec90
0x000000b7261fec80: 000001f900000008 00007ff9839539b8
0x000000b7261fec90: 0000000000000008 0000000000000000
0x000000b7261feca0: 000001f98ec0c000 000000b7261fef00
Instructions: (pc=0x00007ff98391456e)
0x00007ff98391454e: 24 20 48 8b cf 75 07 e8 26 0d 00 00 eb 05 e8 9f
0x00007ff98391455e: 11 00 00 89 6b 0c 48 8b f8 48 85 c0 74 56 8b 03
0x00007ff98391456e: 41 89 04 24 8b 43 04 41 89 07 4d 85 f6 74 0d 8b
0x00007ff98391457e: 43 08 41 89 06 eb 05 48 8b 74 24 58 48 8b ce ff
Register to memory mapping:
RAX=0x0000000000000200 is an unknown value
RBX=0x000000b7261fed00 is pointing into the stack for thread: 0x000001f98ec0c000
RCX=0x000000b7261fec90 is pointing into the stack for thread: 0x000001f98ec0c000
RDX=0x000001f98ebc0000 is an unknown value
RSP=0x000000b7261febb0 is pointing into the stack for thread: 0x000001f98ec0c000
RBP=0x0000000000000000 is an unknown value
RSI=0x0000000000000000 is an unknown value
RDI=0x000001f9b823d040 is an unknown value
R8 =0x000000b7261fd438 is pointing into the stack for thread: 0x000001f98ec0c000
R9 =0x0000000000000001 is an unknown value
R10=0x0000000000000000 is an unknown value
R11=0x000000b7261fd650 is pointing into the stack for thread: 0x000001f98ec0c000
R12=0x0000000000000000 is an unknown value
R13=0x0000000000000001 is an unknown value
R14=0x0000000000000000 is an unknown value
R15=0x0000000000000000 is an unknown value
Stack: [0x000000b726100000,0x000000b726200000], sp=0x000000b7261febb0, free space=1018k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j org.lwjgl.stb.STBImage.nstbi_load(JJJJI)J+0
j org.lwjgl.stb.STBImage.stbi_load(Ljava/lang/CharSequence;Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;Ljava/nio/IntBuffer;I)Ljava/nio/ByteBuffer;+64
j net.peanuuutz.graphics.Texture.<init>(Ljava/lang/String;IIII)V+67
j net.peanuuutz.graphics.TexturesKt.main()V+328
j net.peanuuutz.graphics.TexturesKt.main([Ljava/lang/String;)V+0
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x000001f9ac15a000 JavaThread "Service Thread" daemon [_thread_blocked, id=13668, stack(0x000000b727600000,0x000000b727700000)]
0x000001f9ac0c0000 JavaThread "C1 CompilerThread3" daemon [_thread_blocked, id=16976, stack(0x000000b727500000,0x000000b727600000)]
0x000001f9ac0be000 JavaThread "C2 CompilerThread2" daemon [_thread_blocked, id=20156, stack(0x000000b727400000,0x000000b727500000)]
0x000001f9ac0b9800 JavaThread "C2 CompilerThread1" daemon [_thread_blocked, id=24508, stack(0x000000b727300000,0x000000b727400000)]
0x000001f9ac0b6800 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=20268, stack(0x000000b727200000,0x000000b727300000)]
0x000001f9ac0b3000 JavaThread "Monitor Ctrl-Break" daemon [_thread_in_native, id=3656, stack(0x000000b727100000,0x000000b727200000)]
0x000001f9a9b9d000 JavaThread "Attach Listener" daemon [_thread_blocked, id=3060, stack(0x000000b727000000,0x000000b727100000)]
0x000001f9a9b9c800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=11092, stack(0x000000b726f00000,0x000000b727000000)]
0x000001f9a9b67000 JavaThread "Finalizer" daemon [_thread_blocked, id=14844, stack(0x000000b726e00000,0x000000b726f00000)]
0x000001f9a9b60800 JavaThread "Reference Handler" daemon [_thread_blocked, id=23064, stack(0x000000b726d00000,0x000000b726e00000)]
=>0x000001f98ec0c000 JavaThread "main" [_thread_in_native, id=20116, stack(0x000000b726100000,0x000000b726200000)]
Other Threads:
0x000001f9a9b39000 VMThread [stack: 0x000000b726c00000,0x000000b726d00000] [id=7040]
0x000001f9ac15e000 WatcherThread [stack: 0x000000b727700000,0x000000b727800000] [id=11348]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
heap address: 0x00000006c2600000, size: 4058 MB, Compressed Oops mode: Zero based, Oop shift amount: 3
Narrow klass base: 0x0000000000000000, Narrow klass shift: 3
Compressed class space size: 1073741824 Address: 0x00000007c0000000
Heap:
PSYoungGen total 75776K, used 23537K [0x000000076b780000, 0x0000000770c00000, 0x00000007c0000000)
eden space 65024K, 36% used [0x000000076b780000,0x000000076ce7c680,0x000000076f700000)
from space 10752K, 0% used [0x0000000770180000,0x0000000770180000,0x0000000770c00000)
to space 10752K, 0% used [0x000000076f700000,0x000000076f700000,0x0000000770180000)
ParOldGen total 173568K, used 0K [0x00000006c2600000, 0x00000006ccf80000, 0x000000076b780000)
object space 173568K, 0% used [0x00000006c2600000,0x00000006c2600000,0x00000006ccf80000)
Metaspace used 9236K, capacity 9501K, committed 9600K, reserved 1058816K
class space used 786K, capacity 879K, committed 896K, reserved 1048576K
Card table byte_map: [0x000001f99fc60000,0x000001f9a0450000] byte_map_base: 0x000001f99c64d000
Marking Bits: (ParMarkBitMap*) 0x0000000051011820
Begin Bits: [0x000001f9a09a0000, 0x000001f9a4908000)
End Bits: [0x000001f9a4908000, 0x000001f9a8870000)
Polling page: 0x000001f98eb80000
CodeCache: size=245760Kb used=2896Kb max_used=2896Kb free=242864Kb
bounds [0x000001f9908a0000, 0x000001f990b80000, 0x000001f99f8a0000]
total_blobs=1554 nmethods=665 adapters=802
compilation: enabled
Compilation events (10 events):
Event: 0.513 Thread 0x000001f9ac0c0000 661 3 java.lang.Thread::isInterrupted (6 bytes)
Event: 0.513 Thread 0x000001f9ac0c0000 nmethod 661 0x000001f990b70e10 code [0x000001f990b70f80, 0x000001f990b71110]
Event: 0.513 Thread 0x000001f9ac0c0000 662 3 sun.nio.ch.Util$BufferCache::get (164 bytes)
Event: 0.514 Thread 0x000001f9ac0c0000 nmethod 662 0x000001f990b71190 code [0x000001f990b71380, 0x000001f990b71ed0]
Event: 0.514 Thread 0x000001f9ac0c0000 663 3 sun.nio.ch.FileDispatcherImpl::read (8 bytes)
Event: 0.514 Thread 0x000001f9ac0c0000 nmethod 663 0x000001f990b72390 code [0x000001f990b72500, 0x000001f990b72690]
Event: 0.514 Thread 0x000001f9ac0c0000 665 3 java.util.WeakHashMap::put (162 bytes)
Event: 0.514 Thread 0x000001f9ac0c0000 nmethod 665 0x000001f990b72750 code [0x000001f990b72980, 0x000001f990b73820]
Event: 0.514 Thread 0x000001f9ac0c0000 664 ! 3 sun.nio.ch.ChannelInputStream::read (95 bytes)
Event: 0.515 Thread 0x000001f9ac0c0000 nmethod 664 0x000001f990b73e50 code [0x000001f990b74040, 0x000001f990b74af0]
GC Heap History (0 events):
No events
Deoptimization events (2 events):
Event: 0.166 Thread 0x000001f98ec0c000 Uncommon trap: reason=null_check action=make_not_entrant pc=0x000001f9909b55cc method=java.lang.String.equals(Ljava/lang/Object;)Z # 8
Event: 0.192 Thread 0x000001f98ec0c000 Uncommon trap: reason=unstable_if action=reinterpret pc=0x000001f990a362fc method=java.lang.String.indexOf([CII[CIII)I # 3
Classes redefined (0 events):
No events
Internal exceptions (10 events):
Event: 0.235 Thread 0x000001f98ec0c000 Exception <a 'java/security/PrivilegedActionException'> (0x000000076c26b4a8) thrown at [C:\wsjdk\Corretto8Src\installers\windows\zip\corretto-build\buildRoot\src\hotspot\src\share\vm\prims\jvm.cpp, line 1523]
Event: 0.235 Thread 0x000001f98ec0c000 Exception <a 'java/security/PrivilegedActionException'> (0x000000076c26b8a0) thrown at [C:\wsjdk\Corretto8Src\installers\windows\zip\corretto-build\buildRoot\src\hotspot\src\share\vm\prims\jvm.cpp, line 1523]
Event: 0.235 Thread 0x000001f98ec0c000 Exception <a 'java/security/PrivilegedActionException'> (0x000000076c26d940) thrown at [C:\wsjdk\Corretto8Src\installers\windows\zip\corretto-build\buildRoot\src\hotspot\src\share\vm\prims\jvm.cpp, line 1523]
Event: 0.235 Thread 0x000001f98ec0c000 Exception <a 'java/security/PrivilegedActionException'> (0x000000076c26dd38) thrown at [C:\wsjdk\Corretto8Src\installers\windows\zip\corretto-build\buildRoot\src\hotspot\src\share\vm\prims\jvm.cpp, line 1523]
Event: 0.235 Thread 0x000001f98ec0c000 Exception <a 'java/security/PrivilegedActionException'> (0x000000076c26fdd8) thrown at [C:\wsjdk\Corretto8Src\installers\windows\zip\corretto-build\buildRoot\src\hotspot\src\share\vm\prims\jvm.cpp, line 1523]
Event: 0.235 Thread 0x000001f98ec0c000 Exception <a 'java/security/PrivilegedActionException'> (0x000000076c2701d0) thrown at [C:\wsjdk\Corretto8Src\installers\windows\zip\corretto-build\buildRoot\src\hotspot\src\share\vm\prims\jvm.cpp, line 1523]
Event: 0.235 Thread 0x000001f98ec0c000 Exception <a 'java/security/PrivilegedActionException'> (0x000000076c272198) thrown at [C:\wsjdk\Corretto8Src\installers\windows\zip\corretto-build\buildRoot\src\hotspot\src\share\vm\prims\jvm.cpp, line 1523]
Event: 0.235 Thread 0x000001f98ec0c000 Exception <a 'java/security/PrivilegedActionException'> (0x000000076c272590) thrown at [C:\wsjdk\Corretto8Src\installers\windows\zip\corretto-build\buildRoot\src\hotspot\src\share\vm\prims\jvm.cpp, line 1523]
Event: 0.334 Thread 0x000001f98ec0c000 Exception <a 'sun/nio/fs/WindowsException'> (0x000000076c325c70) thrown at [C:\wsjdk\Corretto8Src\installers\windows\zip\corretto-build\buildRoot\src\hotspot\src\share\vm\prims\jni.cpp, line 711]
Event: 0.334 Thread 0x000001f98ec0c000 Exception <a 'sun/nio/fs/WindowsException'> (0x000000076c3276b0) thrown at [C:\wsjdk\Corretto8Src\installers\windows\zip\corretto-build\buildRoot\src\hotspot\src\share\vm\prims\jni.cpp, line 711]
Events (10 events):
Event: 0.507 loading class org/lwjgl/opengl/GL$ICDStatic$WriteOnce
Event: 0.507 loading class org/lwjgl/opengl/GL$ICDStatic$WriteOnce done
Event: 0.507 loading class net/peanuuutz/graphics/Texture
Event: 0.507 loading class net/peanuuutz/graphics/Texture done
Event: 0.507 loading class org/lwjgl/stb/STBImage
Event: 0.507 loading class org/lwjgl/stb/STBImage done
Event: 0.508 loading class org/lwjgl/stb/LibSTB
Event: 0.508 loading class org/lwjgl/stb/LibSTB done
Event: 0.516 loading class java/nio/HeapIntBuffer
Event: 0.516 loading class java/nio/HeapIntBuffer done
Dynamic libraries:
0x00007ff6c0390000 - 0x00007ff6c03ca000 C:\Users\<User>\.jdks\corretto-1.8.0_302\bin\java.exe
0x00007ff9bc240000 - 0x00007ff9bc430000 C:\windows\SYSTEM32\ntdll.dll
0x00007ff9bbe70000 - 0x00007ff9bbf22000 C:\windows\System32\KERNEL32.DLL
0x00007ff9b9660000 - 0x00007ff9b9903000 C:\windows\System32\KERNELBASE.dll
0x00007ff9baee0000 - 0x00007ff9baf83000 C:\windows\System32\ADVAPI32.dll
0x00007ff9bab50000 - 0x00007ff9babee000 C:\windows\System32\msvcrt.dll
0x00007ff9ba5e0000 - 0x00007ff9ba677000 C:\windows\System32\sechost.dll
0x00007ff9baf90000 - 0x00007ff9bb0b0000 C:\windows\System32\RPCRT4.dll
0x00007ff9bbf30000 - 0x00007ff9bc0c4000 C:\windows\System32\USER32.dll
0x00007ff9ba2c0000 - 0x00007ff9ba2e1000 C:\windows\System32\win32u.dll
0x00007ff9bb130000 - 0x00007ff9bb156000 C:\windows\System32\GDI32.dll
0x00007ff9b9450000 - 0x00007ff9b95e4000 C:\windows\System32\gdi32full.dll
0x00007ff9b92b0000 - 0x00007ff9b934e000 C:\windows\System32\msvcp_win.dll
0x00007ff9b9350000 - 0x00007ff9b944a000 C:\windows\System32\ucrtbase.dll
0x00007ff9a7010000 - 0x00007ff9a7295000 C:\windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.18362.657_none_e6c5b579130e3898\COMCTL32.dll
0x00007ff9bb8c0000 - 0x00007ff9bbbf6000 C:\windows\System32\combase.dll
0x00007ff9b9230000 - 0x00007ff9b92b0000 C:\windows\System32\bcryptPrimitives.dll
0x00007ff9badd0000 - 0x00007ff9badfe000 C:\windows\System32\IMM32.DLL
0x00007ff97c2b0000 - 0x00007ff97c39f000 C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\bin\msvcr120.dll
0x00007ff997140000 - 0x00007ff9971e6000 C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\bin\msvcp120.dll
0x0000000050820000 - 0x0000000051090000 C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\bin\server\jvm.dll
0x00007ff9bb0b0000 - 0x00007ff9bb0b8000 C:\windows\System32\PSAPI.DLL
0x00007ff9b36d0000 - 0x00007ff9b36da000 C:\windows\SYSTEM32\VERSION.dll
0x00007ff9b5a80000 - 0x00007ff9b5a89000 C:\windows\SYSTEM32\WSOCK32.dll
0x00007ff9aaac0000 - 0x00007ff9aaae4000 C:\windows\SYSTEM32\WINMM.dll
0x00007ff9bb0c0000 - 0x00007ff9bb12f000 C:\windows\System32\WS2_32.dll
0x00007ff9ab070000 - 0x00007ff9ab09d000 C:\windows\SYSTEM32\winmmbase.dll
0x00007ff9b95f0000 - 0x00007ff9b963a000 C:\windows\System32\cfgmgr32.dll
0x00007ff9b4cd0000 - 0x00007ff9b4cdf000 C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\bin\verify.dll
0x00007ff99cc00000 - 0x00007ff99cc29000 C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\bin\java.dll
0x00007ff99b8c0000 - 0x00007ff99b8ea000 C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\bin\instrument.dll
0x00007ff9a8a50000 - 0x00007ff9a8a66000 C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\bin\zip.dll
0x00007ff9bb1d0000 - 0x00007ff9bb8b5000 C:\windows\System32\SHELL32.dll
0x00007ff9bae10000 - 0x00007ff9baeb9000 C:\windows\System32\shcore.dll
0x00007ff9b99f0000 - 0x00007ff9ba16f000 C:\windows\System32\windows.storage.dll
0x00007ff9b9120000 - 0x00007ff9b913f000 C:\windows\System32\profapi.dll
0x00007ff9b9180000 - 0x00007ff9b91ca000 C:\windows\System32\powrprof.dll
0x00007ff9b9110000 - 0x00007ff9b9120000 C:\windows\System32\UMPDC.dll
0x00007ff9ba680000 - 0x00007ff9ba6d2000 C:\windows\System32\shlwapi.dll
0x00007ff9b9160000 - 0x00007ff9b9171000 C:\windows\System32\kernel.appcore.dll
0x00007ff9b9640000 - 0x00007ff9b9657000 C:\windows\System32\cryptsp.dll
0x00007ff99cc70000 - 0x00007ff99cc8a000 D:\IntelliJ IDEA 2021.1.1\bin\breakgen64.dll
0x00007ff9a7ef0000 - 0x00007ff9a7f0a000 C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\bin\net.dll
0x00007ff9ac1f0000 - 0x00007ff9ac210000 C:\windows\system32\PrxerDrv.dll
0x00007ff9b8980000 - 0x00007ff9b89e7000 C:\windows\system32\mswsock.dll
0x00007ff9a4930000 - 0x00007ff9a4942000 C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\bin\nio.dll
0x00007ff985d30000 - 0x00007ff985da2000 C:\Users\<User>\AppData\Local\Temp\lwjgl<User>\3.2.2-build-10\lwjgl.dll
0x00007ff987630000 - 0x00007ff98768e000 C:\Users\<User>\AppData\Local\Temp\lwjgl<User>\3.2.2-build-10\glfw.dll
0x00007ff9b7100000 - 0x00007ff9b7199000 C:\windows\system32\uxtheme.dll
0x00007ff995400000 - 0x00007ff995443000 C:\windows\SYSTEM32\dinput8.dll
0x00007ff99b530000 - 0x00007ff99b541000 C:\windows\SYSTEM32\xinput1_4.dll
0x00007ff9b8f10000 - 0x00007ff9b8f3a000 C:\windows\SYSTEM32\DEVOBJ.dll
0x00007ff9b7520000 - 0x00007ff9b754d000 C:\windows\SYSTEM32\dwmapi.dll
0x00007ff99b700000 - 0x00007ff99b81a000 C:\windows\SYSTEM32\inputhost.dll
0x00007ff9b55e0000 - 0x00007ff9b56cf000 C:\windows\SYSTEM32\PROPSYS.dll
0x00007ff9b6df0000 - 0x00007ff9b6ec4000 C:\windows\SYSTEM32\CoreMessaging.dll
0x00007ff9a4240000 - 0x00007ff9a456a000 C:\windows\SYSTEM32\CoreUIComponents.dll
0x00007ff9b4b70000 - 0x00007ff9b4cc3000 C:\windows\SYSTEM32\wintypes.dll
0x00007ff9bbda0000 - 0x00007ff9bbe64000 C:\windows\System32\OLEAUT32.dll
0x00007ff9b8170000 - 0x00007ff9b81a1000 C:\windows\SYSTEM32\ntmarta.dll
0x00007ff9ba4a0000 - 0x00007ff9ba5d5000 C:\windows\System32\MSCTF.dll
0x00007ff9b7d20000 - 0x00007ff9b7d2e000 C:\windows\SYSTEM32\HID.DLL
0x00007ff9ba6e0000 - 0x00007ff9bab50000 C:\windows\System32\SETUPAPI.DLL
0x00007ff9b99c0000 - 0x00007ff9b99e6000 C:\windows\System32\bcrypt.dll
0x00007ff9b91d0000 - 0x00007ff9b922c000 C:\windows\System32\WINTRUST.dll
0x00007ff9b9140000 - 0x00007ff9b9152000 C:\windows\System32\MSASN1.dll
0x00007ff9ba170000 - 0x00007ff9ba2b9000 C:\windows\System32\CRYPT32.dll
0x00007ff99a6e0000 - 0x00007ff99a836000 C:\windows\SYSTEM32\opengl32.dll
0x00007ff9acfd0000 - 0x00007ff9acffc000 C:\windows\SYSTEM32\GLU32.dll
0x00007ff9b7df0000 - 0x00007ff9b7e10000 C:\windows\SYSTEM32\dxcore.dll
0x00007ff96e170000 - 0x00007ff96f020000 C:\windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_d9c21d7d43c1adb3\ig9icd64.dll
0x00007ff9b7e10000 - 0x00007ff9b7efb000 C:\windows\system32\dxgi.dll
0x00007ff99f200000 - 0x00007ff9a11c8000 C:\windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_d9c21d7d43c1adb3\igc64.dll
0x00007ff9a1280000 - 0x00007ff9a139a000 C:\windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_d9c21d7d43c1adb3\igdgmm64.dll
0x00007ff99ccd0000 - 0x00007ff99cd6e000 C:\windows\System32\TextInputFramework.dll
0x00007ff9ac3e0000 - 0x00007ff9ac686000 C:\windows\System32\iertutil.dll
0x00007ff986790000 - 0x00007ff9867e8000 C:\Users\<User>\AppData\Local\Temp\lwjgl<User>\3.2.2-build-10\lwjgl_opengl.dll
0x00007ff983910000 - 0x00007ff98398f000 C:\Users\<User>\AppData\Local\Temp\lwjgl<User>\3.2.2-build-10\lwjgl_stb.dll
0x00007ff9b7a40000 - 0x00007ff9b7c34000 C:\windows\SYSTEM32\dbghelp.dll
VM Arguments:
jvm_args: -javaagent:D:\IntelliJ IDEA 2021.1.1\lib\idea_rt.jar=58472:D:\IntelliJ IDEA 2021.1.1\bin -Dfile.encoding=UTF-8
java_command: net.peanuuutz.graphics.TexturesKt
java_class_path (initial): C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\charsets.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\ext\access-bridge-64.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\ext\cldrdata.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\ext\dnsns.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\ext\jaccess.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\ext\jfxrt.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\ext\localedata.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\ext\nashorn.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\ext\sunec.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\ext\sunjce_provider.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\ext\sunmscapi.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\ext\sunpkcs11.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\ext\zipfs.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\jce.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\jfr.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\jfxswt.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\jsse.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\management-agent.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\resources.jar;C:\Users\<User>\.jdks\corretto-1.8.0_302\jre\lib\rt.jar;E:\Everyday\Amateur\CS\Kotlin\Exercises\Graphics\build\classes\kotlin\test;E:\Everyday\Amateur\CS\Kotlin\Exercises\Graphics\build\classes\kotlin\main;E:\Everyday\Amateur\CS\Kotlin\Exercises\Graphics\build\resources\main;D:\Cache\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-stdlib\1.4.32\461367948840adbb0839c51d91ed74ef4a9ccb52\kotlin-stdlib-1.4.32.jar;D:\Cache\.gradle\caches\modules-2\files-2.1\org.lwjgl\lwjgl-assimp\3.2.2\d4128312444099cea3c4dbb77f5098d19e340d\lwjgl-assimp-3.2.2.jar;D:\Cache\.gradle\caches\modules-2\files-2.1\org.lwjgl\lwjgl-glfw\3.2.2\d3ad4df38e400b8afba1de63f84338809399df5b\lwjgl-glfw-3.2.2.jar;D:\Cache\.gradle\caches\modules-2\files-2.1\org.lwjgl\lwjgl-openal\3.2.
Launcher Type: SUN_STANDARD
Environment Variables:
JAVA_HOME=C:\Program Files\Java\jdk-11.0.12
PATH=C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;D:\Python\Python39\Scripts\;D:\Python\Python39\;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64_win\compiler;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;E:\Minecraft\´´×÷\µØͼ\¹¤¾ß\WorldPainter;C:\Program Files\Java\jdk-11.0.12\bin;D:\Git\cmd;D:\MySQL\bin;D:\gradle-6.8.3\bin;C:\Program Files\nodejs\;E:\Minecraft\Replay\.minecraft\FFmpeg\bin;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;E:\Minecraft\´´×÷\µØͼ\¹¤¾ß\WorldPainter;E:\Minecraft\Replay\.minecraft\FFmpeg\bin;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;E:\Minecraft\´´×÷\µØͼ\¹¤¾ß\WorldPainter;E:\Minecraft\Replay\.minecraft\FFmpeg\bin;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\window;D:\Visual Studio Code\Microsoft VS Code\bin;D:\PyCharm 2020.3\bin;;C:\Users\<User>\AppData\Roaming\npm;D:\Fiddler
USERNAME=<User>
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 158 Stepping 13, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows 10.0 , 64 bit Build 18362 (10.0.18362.329)
CPU:total 12 (initial active 12) (6 cores per cpu, 2 threads per core) family 6 model 158 stepping 13, 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 16614584k(6470396k free), swap 25527480k(11553304k free)
vm_info: OpenJDK 64-Bit Server VM (25.302-b08) for windows-amd64 JRE (1.8.0_302-b08), built on Jul 15 2021 19:37:21 by "Administrator" with MS VC++ 12.0 (VS2013)
time: Thu Oct 07 16:20:51 2021
timezone: ?D1¨²¡À¨º¡Á?¨º¡À??
elapsed time: 0.532927 seconds (0d 0h 0m 0s)
The image is here(png, 512px), and I've saved it in the (maybe) correct place as the code shows.
So what is going on in the native environment? :(
LWJGL 3 does not support on-heap (i.e. non-direct) NIO Buffers when talking to a native library like stb_image. Non-direct/on-heap NIO Buffers are those that are wrappers of a Java byte array.
With LWJGL 3 you always need to use off-heap (i.e. direct) NIO Buffers.
See https://docs.oracle.com/javase/7/docs/api/java/nio/ByteBuffer.html#direct for a further explanation of the differences.
So, instead of
IntBuffer.allocate(1)
you should use:
ByteBuffer.allocateDirect(4).asIntBuffer()
Also you should configure the NIO Buffer to use the same endianness as your platform, since otherwise you will read garbage out of the buffer later (the default endianness of all NIO Buffers is network-byte-order i.e. big endian):
ByteBuffer.allocateDirect(4).order(ByteOrder.nativeOrder()).asIntBuffer()
and since the above is quite a mouthfull, LWJGL 3 provides a BufferUtils class with simple wrappers, like:
BufferUtils.createIntBuffer(1)
to achieve the same as above.
And last but not least, doing correct and efficient memory management in LWJGL 3 is more involved, because in this particular case, you'd be better off using a MemoryStack.
See: https://blog.lwjgl.org/memory-management-in-lwjgl-3/
Related
New problem moving from Ubuntu Impish to Jammy; Bluetooth LE Remote pairing/connecting, but not creating /dev/input
Something happened between Impish and Jammy on my device, and my Xiaomi MiTV bluetooth remote control no longer works. After upgrading to 22.04, it just stopped creating a /dev/input, and has continued not working even switching to mainline kernel 5.17 (Jammy's 5.15.x doesn't work either) and the wishful thinking that every update on apt that shows up will fix it. It's been there since the pre-release and has remained ever since. Device in question: https://xiaomi-mi.ca/accessories-tv-box/xiaomi-mi-tv-mi-tv-box-bluetooth-remote-control/ I'm running Ubuntu Mate on an Odroid H2+ (j4115-based x86 SBC) as a media player. Bluetooth has been supplied via a BCM20702A-based IOGear BT4.0 adapter (driver installed), but I've also tried a (legit) CSR8510-based BT4.0 adapter with similar results. It's a bit finicky, but pairs fine if certain steps are followed—but it's been that way with this remote and every ELEC I've had in the past that I've had in the past (PI ArmHF /Odroid ARM64). Note: It pairs and is usable on Windows, MacOS and iOS and pre-Jammy versions of Ubuntu. Addresses obfuscated to protect the innocent… REMOTE & CONTROLLER from bluetoothctl: [XiaoMi RC]# info Device F4:XX:XX:XX:XX:XX (public) Name: XiaoMi RC Alias: XiaoMi RC Appearance: 0x03c0 Paired: yes Trusted: yes Blocked: no Connected: yes WakeAllowed: yes LegacyPairing: no UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb) UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb) UUID: Immediate Alert (00001802-0000-1000-8000-00805f9b34fb) UUID: Link Loss (00001803-0000-1000-8000-00805f9b34fb) UUID: Tx Power (00001804-0000-1000-8000-00805f9b34fb) UUID: Device Information (0000180a-0000-1000-8000-00805f9b34fb) UUID: Battery Service (0000180f-0000-1000-8000-00805f9b34fb) UUID: Human Interface Device (00001812-0000-1000-8000-00805f9b34fb) UUID: Scan Parameters (00001813-0000-1000-8000-00805f9b34fb) Modalias: bluetooth:v2717p3200d0110 Battery Percentage: 0x47 (71) [XiaoMi RC]# show 5C:XX:XX:XX:XX:XX Controller 5C:XX:XX:XX:XX:XX (public) Name: mybox Alias: mybox Class: 0x00000104 Powered: yes Discoverable: no DiscoverableTimeout: 0x000000b4 Pairable: yes UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb) UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb) UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb) UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb) UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb) UUID: Device Information (0000180a-0000-1000-8000-00805f9b34fb) Modalias: usb:v1D6Bp0246d0540 Discovering: no Roles: central Roles: peripheral Advertising Features: ActiveInstances: 0x00 (0) SupportedInstances: 0x05 (5) SupportedIncludes: tx-power SupportedIncludes: appearance SupportedIncludes: local-name LSUSB: Bus 001 Device 005: ID 0a5c:21e8 Broadcom Corp. BCM20702A0 Bluetooth 4.0 busctl: busctl introspect 'org.bluez' '/org/bluez/hci0/dev_F4_XX_XX_XX_XX_XX' NAME TYPE SIGNATURE RESULT/VALUE FLAGS org.bluez.Battery1 interface - - - .Percentage property y 71 emits-change org.bluez.Device1 interface - - - .CancelPairing method - - - .Connect method - - - .ConnectProfile method s - - .Disconnect method - - - .DisconnectProfile method s - - .Pair method - - - .Adapter property o "/org/bluez/hci0" emits-change .Address property s "F4:XX:XX:XX:XX:XX" emits-change .AddressType property s "public" emits-change .Alias property s "XiaoMi RC" emits-change writable .Appearance property q 960 emits-change .Blocked property b false emits-change writable .Class property u - emits-change .Connected property b true emits-change .Icon property s - emits-change .LegacyPairing property b false emits-change .ManufacturerData property a{qv} - emits-change .Modalias property s "bluetooth:v2717p3200d0110" emits-change .Name property s "XiaoMi RC" emits-change .Paired property b true emits-change .RSSI property n - emits-change .ServiceData property a{sv} - emits-change .ServicesResolved property b true emits-change .Trusted property b true emits-change writable .TxPower property n - emits-change .UUIDs property as 9 "00001800-0000-1000-8000-00805f9b34fb… emits-change .WakeAllowed property b true emits-change writable org.freedesktop.DBus.Introspectable interface - - - .Introspect method - s - org.freedesktop.DBus.Properties interface - - - .Get method ss v - .GetAll method s a{sv} - .Set method ssv - - .PropertiesChanged signal sa{sv}as - a few odd messages in syslog, but nothing that screams "major fail": :~$ cat /var/log/syslog | grep "Blue" Apr 5 22:50:24 mybox systemd[1]: Starting Bluetooth management mechanism... Apr 5 22:50:24 mybox kernel: [ 7.337177] Bluetooth: Core ver 2.22 Apr 5 22:50:24 mybox kernel: [ 7.337217] Bluetooth: HCI device and connection manager initialized Apr 5 22:50:24 mybox kernel: [ 7.337222] Bluetooth: HCI socket layer initialized Apr 5 22:50:24 mybox kernel: [ 7.337227] Bluetooth: L2CAP socket layer initialized Apr 5 22:50:24 mybox kernel: [ 7.337234] Bluetooth: SCO socket layer initialized Apr 5 22:50:24 mybox kernel: [ 7.575381] Bluetooth: hci0: BCM: chip id 63 Apr 5 22:50:24 mybox kernel: [ 7.576384] Bluetooth: hci0: BCM: features 0x07 Apr 5 22:50:24 mybox kernel: [ 7.592401] Bluetooth: hci0: BCM20702A Apr 5 22:50:24 mybox kernel: [ 7.592411] Bluetooth: hci0: BCM20702A1 (001.002.014) build 0000 Apr 5 22:50:24 mybox kernel: [ 7.594649] Bluetooth: hci0: BCM20702A1 'brcm/BCM20702A1-0a5c-21e8.hcd' Patch Apr 5 22:50:24 mybox kernel: [ 8.196379] Bluetooth: hci0: unexpected event 0xff length: 2 > 0 Apr 5 22:50:24 mybox systemd[1]: Started Bluetooth management mechanism. Apr 5 22:50:24 mybox kernel: [ 8.518390] Bluetooth: hci0: Broadcom Bluetooth Device Apr 5 22:50:24 mybox kernel: [ 8.518400] Bluetooth: hci0: BCM20702A1 (001.002.014) build 1764 Apr 5 22:50:24 mybox systemd[1]: Starting Bluetooth service... Apr 5 22:50:24 mybox bluetoothd[970]: Bluetooth daemon 5.64 Apr 5 22:50:24 mybox systemd[1]: Started Bluetooth service. Apr 5 22:50:24 mybox NetworkManager[699]: <info> [1649213424.6320] Loaded device plugin: NMBluezManager (/usr/lib/x86_64-linux-gnu/NetworkManager/1.36.4/libnm-device-plugin-bluetooth.so) Apr 5 22:50:24 mybox systemd[1]: Reached target Bluetooth Support. Apr 5 22:50:24 mybox kernel: [ 8.948829] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 Apr 5 22:50:24 mybox kernel: [ 8.948837] Bluetooth: BNEP filters: protocol multicast Apr 5 22:50:24 mybox kernel: [ 8.948843] Bluetooth: BNEP socket layer initialized Apr 5 22:50:24 mybox bluetoothd[970]: Bluetooth management interface 1.21 initialized Apr 5 22:50:36 mybox kernel: [ 20.341197] Bluetooth: RFCOMM TTY layer initialized Apr 5 22:50:36 mybox kernel: [ 20.341222] Bluetooth: RFCOMM socket layer initialized Apr 5 22:50:36 mybox kernel: [ 20.341233] Bluetooth: RFCOMM ver 1.11 Apr 5 22:56:28 mybox systemd[1777]: Reached target Bluetooth. Apr 5 23:17:03 mybox systemd[1777]: Starting Bluetooth Manager... Apr 5 23:17:03 mybox systemd[1777]: Started Bluetooth Manager. Apr 5 23:17:25 mybox kernel: [ 1630.329450] Bluetooth: hci0: unexpected SMP command 0x0b from f4:xx:xx:xx:xx:xx Apr 5 23:17:52 mybox blueman-manager[115657]: blueman.bluez.errors.BluezDBusException: org.freedesktop.DBus.Error.InvalidArgs No such interface 'org.bluez.Battery1' Apr 6 06:21:33 mybox NetworkManager[660748]: <info> [1649240493.3391] Loaded device plugin: NMBluezManager (/usr/lib/x86_64-linux-gnu/NetworkManager/1.36.4/libnm-device-plugin-bluetooth.so) The remote pairs and connects. I can obviously see it bluetoothctl. But no event is created in /dev/input: me#mybox:~$ sudo evtest No device specified, trying to scan all of /dev/input/event* Available devices: /dev/input/event0: Power Button /dev/input/event1: Power Button /dev/input/event2: Video Bus /dev/input/event3: Logitech K400 Plus /dev/input/event4: Microsoft X-Box 360 pad /dev/input/event5: Microsoft X-Box 360 pad /dev/input/event6: Microsoft X-Box 360 pad /dev/input/event7: Pulse-Eight CEC Adapter /dev/input/event8: Microsoft X-Box 360 pad /dev/input/event9: HDA Intel PCH Mic /dev/input/event10: HDA Intel PCH Headphone /dev/input/event11: HDA Intel PCH HDMI/DP,pcm=3 /dev/input/event12: HDA Intel PCH HDMI/DP,pcm=7 /dev/input/event13: HDA Intel PCH HDMI/DP,pcm=8 /dev/input/event14: HDA Intel PCH HDMI/DP,pcm=9 /dev/input/event15: HDA Intel PCH HDMI/DP,pcm=10 Select the device event number [0-15]: showkey and xev gets no keypresses, but btmon is seeing them: me#mybox:~$ sudo btmon Bluetooth monitor ver 5.64 = Note: Linux version 5.17.1-051701-generic (x86_64) 0.026997 = Note: Bluetooth subsystem version 2.22 0.027002 = New Index: 5C:XX:XX:XX:XX:XX (Primary,USB,hci0) [hci0] 0.027004 = Open Index: 5C:XX:XX:XX:XX:XX [hci0] 0.027004 = Index Info: 5C:XX:XX:XX:XX:XX (Broadcom Corporation) [hci0] 0.027005 # MGMT Open: bluetoothd (privileged) version 1.21 {0x0001} 0.027006 > ACL Data RX: Handle 64 flags 0x02 dlen 15 #1 [hci0] 1.698718 ATT: Handle Value Notification (0x1b) len 10 Handle: 0x0032 Data: 0000510000000000 > ACL Data RX: Handle 64 flags 0x02 dlen 15 #2 [hci0] 1.774350 ATT: Handle Value Notification (0x1b) len 10 Handle: 0x0032 Data: 0000000000000000 > ACL Data RX: Handle 64 flags 0x02 dlen 15 #3 [hci0] 2.594360 ATT: Handle Value Notification (0x1b) len 10 Handle: 0x0032 Data: 0000520000000000 > ACL Data RX: Handle 64 flags 0x02 dlen 15 #4 [hci0] 2.754407 ATT: Handle Value Notification (0x1b) len 10 Handle: 0x0032 Data: 0000000000000000 > ACL Data RX: Handle 64 flags 0x02 dlen 15 #5 [hci0] 3.414342 ATT: Handle Value Notification (0x1b) len 10 Handle: 0x0032 Data: 0000500000000000 > ACL Data RX: Handle 64 flags 0x02 dlen 15 #6 [hci0] 3.574341 ATT: Handle Value Notification (0x1b) len 10 Handle: 0x0032 Data: 0000000000000000 > ACL Data RX: Handle 64 flags 0x02 dlen 15 #7 [hci0] 4.014365 ATT: Handle Value Notification (0x1b) len 10 Handle: 0x0032 Data: 00004f0000000000 > ACL Data RX: Handle 64 flags 0x02 dlen 15 #8 [hci0] 4.174358 ATT: Handle Value Notification (0x1b) len 10 Handle: 0x0032 Data: 0000000000000000 > ACL Data RX: Handle 64 flags 0x02 dlen 15 #9 [hci0] 4.674365 ATT: Handle Value Notification (0x1b) len 10 Handle: 0x0032 Data: 0000660000000000 > ACL Data RX: Handle 64 flags 0x02 dlen 15 #10 [hci0] 4.934380 ATT: Handle Value Notification (0x1b) len 10 Handle: 0x0032 Data: 0000000000000000 > ACL Data RX: Handle 64 flags 0x02 dlen 15 #11 [hci0] 5.794429 ATT: Handle Value Notification (0x1b) len 10 Handle: 0x0032 Data: 0000800000000000 > ACL Data RX: Handle 64 flags 0x02 dlen 15 #12 [hci0] 6.034380 ATT: Handle Value Notification (0x1b) len 10 Handle: 0x0032 Data: 0000000000000000 > ACL Data RX: Handle 64 flags 0x02 dlen 15 #13 [hci0] 7.194396 ATT: Handle Value Notification (0x1b) len 10 Handle: 0x0032 Data: 0000810000000000 > ACL Data RX: Handle 64 flags 0x02 dlen 15 #14 [hci0] 7.354432 ATT: Handle Value Notification (0x1b) len 10 Handle: 0x0032 Data: 0000000000000000 > ACL Data RX: Handle 64 flags 0x02 dlen 15 #15 [hci0] 8.454406 ATT: Handle Value Notification (0x1b) len 10 Handle: 0x0032 Data: 00004a0000000000 > ACL Data RX: Handle 64 flags 0x02 dlen 15 #16 [hci0] 8.694405 ATT: Handle Value Notification (0x1b) len 10 Handle: 0x0032 Data: 0000000000000000 > ACL Data RX: Handle 64 flags 0x02 dlen 15 #17 [hci0] 10.414431 ATT: Handle Value Notification (0x1b) len 10 Handle: 0x0032 Data: 0000650000000000 > ACL Data RX: Handle 64 flags 0x02 dlen 15 #18 [hci0] 10.654417 ATT: Handle Value Notification (0x1b) len 10 Handle: 0x0032 Data: 0000000000000000 > ACL Data RX: Handle 64 flags 0x02 dlen 15 #19 [hci0] 11.134410 ATT: Handle Value Notification (0x1b) len 10 Handle: 0x0032 Data: 0000f10000000000 > ACL Data RX: Handle 64 flags 0x02 dlen 15 #20 [hci0] 11.294427 ATT: Handle Value Notification (0x1b) len 10 Handle: 0x0032 Data: 0000000000000000 > ACL Data RX: Handle 64 flags 0x02 dlen 15 #21 [hci0] 12.094482 ATT: Handle Value Notification (0x1b) len 10 Handle: 0x0032 Data: 0000280000000000 > ACL Data RX: Handle 64 flags 0x02 dlen 15 #22 [hci0] 12.234598 ATT: Handle Value Notification (0x1b) len 10 Handle: 0x0032 Data: 0000000000000000 This is driving me nuts. Especially because another similar model of the same remote that uses AAA batteries instead of a coin-cell battery works (that one disconnects regularly, and is slow to reconnect however, but pairs fine, creates an input event and all keypresses are recognized).
No idea, My game keeps crashing on phones - Null Pointer Dereference
Please help, I have no idea what I am doing. I made a game on Unreal Engine 4 I launched onto phones It mostly crashes at startup. Then sometimes it works a little bit, then crashes. I found a log and attached it below The main thing says NULL POINTER DEREFERENCE, I'm not sure how to fix that in UE4 LOG STARTS: Process: com.example.game PID: 30736 Flags: 0x30c8be44 Package: com.example.game v52 (2.1) Foreground: Yes Build: BLU/BLU_G5/G0030:9/PPR1.180620.011/47349:user/release-keys Native Crash TIME: 13663417 Build fingerprint: 'BLU/BLU_G5/G0350:9/PPR1.180620.011/47349:user/release-keys' Revision: '0' ABI: 'arm64' pid: 30736, tid: 30770, name: GameThread >>> com.example <<< signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 Cause: null pointer dereference x0 0000007636ff3400 x1 0000000000000000 x2 0000000000000001 x3 ffffffffa00e6a63 x4 001d0ac365000000 x5 0000000000000000 x6 00000076e8dd5000 x7 00000000001b8a32 x8 000000000000000a x9 000000000000000a x10 000000763967cc00 x11 000000763bc74138 x12 0000000000000018 x13 000000005ff1cafb x14 002d6de553a20d9c x15 00005e7a25d77b4e x16 0000007647dc3de0 x17 00000076e6e44a10 x18 0000000012e431e0 x19 0000007636ff3400 x20 0000007647ea20b8 x21 0000000000000000 x22 00000076491df588 x23 0000000000000001 x24 0000007647e9e000 x25 0000007647e9e000 x26 00000076491df588 x27 0000007647e9e000 x28 0000007647e9e614 x29 00000076491da2e0 sp 00000076491da260 lr 000000764448d28c pc 000000764448d860 backtrace: #00 pc 0000000005494860 /data/app/com.example-3XbOYcKBOswdKKougXbCXA==/lib/arm64/libUE4.so (offset 0x4b3a000) (TProperty<FFieldPath, FProperty>::ClearValueInternal(void*) const+48) #01 pc 0000000005494288 /data/app/com.example-3XbOYcKBOswdKKougXbCXA==/lib/arm64/libUE4.so (offset 0x4b3a000) (FLinkerLoad::FinishExternalReadDependencies(double)+40) #02 pc 0000000005470bd8 /data/app/com.example-3XbOYcKBOswdKKougXbCXA==/lib/arm64/libUE4.so (offset 0x4b3a000) (FFindStronglyConnected::StrongConnectInner(UObject*)+1076) #03 pc 0000000005471cbc /data/app/com.example-3XbOYcKBOswdKKougXbCXA==/lib/arm64/libUE4.so (offset 0x4b3a000) (IncrementalPurgeGarbage(bool, float)+1220) #04 pc 0000000005472490 /data/app/com.example-3XbOYcKBOswdKKougXbCXA==/lib/arm64/libUE4.so (offset 0x4b3a000) (UnhashUnreachableObjects(bool, float)+20)
AVSpeechSynthesizer causing crashes on ios11.4
I got a crash relate AVSpeechSynthersizer. and my code is, AVSpeechUtterance *utterance = [[AVSpeechUtterance alloc] initWithString:text]; utterance.rate = rate; utterance.pitchMultiplier = pitchMultiplier; utterance.voice = [AVSpeechSynthesisVoice voiceWithLanguage:languageCode]; _startTime = [[NSDate date] timeIntervalSince1970]; [self.speechSynthesizer speakUtterance:utterance]; There is only one user case this crash. OS version is 11.4, device is iPhone6. crash stack info: Incident Identifier: 24E003DC-47C0-45B0-A22E-A351B2A8046A CrashReporter Key: c8844c975fe64b90aad2b813254959a928e4c4ea Hardware Model: iPhone7,2 Process: qcs.r [779] Path: /var/containers/Bundle/Application/0242C042-0AE5-4033-AE07-D1BECD6DD910/qcs.r.app/qcs.r Identifier: com.meituan.qcs.r.ios Version: 2.1.9 (1682) Code Type: ARM-64 Parent Process: ? [1] Date/Time: 2018-06-14 13:41:58.000 +0800 OS Version: iOS 11.4 (15F79) Report Version: 104 Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x00000000 at 0x0000000000000000 Crashed Thread: 53 Application Specific Information: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** +[NSString stringWithUTF8String:]: NULL cString UserInfo:(null)' Thread 53 Crashed: 0 CoreFoundation __exceptionPreprocess+ 228 1 libobjc.A.dylib objc_exception_throw (in libobjc.A.dylib) + 56 2 CoreFoundation -[NSException initWithCoder:]+ 0 3 Foundation +[NSString stringWithUTF8String:]+ 92 4 TTSSpeechBundle 0x0000000105f87544 0x105f70000 + 95556 5 libsystem_pthread.dylib _pthread_body (in libsystem_pthread.dylib) + 272 6 libsystem_pthread.dylib _pthread_body (in libsystem_pthread.dylib) + 0 7 libsystem_pthread.dylib thread_start (in libsystem_pthread.dylib) + 4
Could your text argument here be nil by any chance? initWithString:text
Crash JRE libc.so.6 with HTTPS
I have googled all the planet without any solution to my problem. Here is the hs_err_pid.log start file and the end Let me know if you have any clue, because I have no idea how to solve it. Excuse me for the presentation, I am beginner. Thank you guys # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007f5589b6c480, pid=7353, tid=139994995676928 # # JRE version: OpenJDK Runtime Environment (7.0_121) (build 1.7.0_121-b00) # Java VM: OpenJDK 64-Bit Server VM (24.121-b00 mixed mode linux-amd64 compressed oops) # Derivative: IcedTea 2.6.8 # Distribution: Gentoo Base System release 2.2, package Gentoo icedtea-7.2.6.8 # Problematic frame: # C [libc.so.6+0x8e480] # # Core dump written. Default location: /opt/tomcat/7.0.78/logs/core or core.7353 # # If you would like to submit a bug report, please include # instructions on how to reproduce the bug and visit: # http://icedtea.classpath.org/bugzilla # --------------- T H R E A D --------------- Current thread (0x00007f558012a000): JavaThread "http-bio-8443-exec-2" daemon [_thread_in_vm, id=7775, stack(0x00007f531fbcd000,0x00007f531ffce000)] siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x0000000000000000 Registers: RAX=0xfffffff84484b640, RBX=0x00007f558012a000, RCX=0x000000000911ea30, RDX=0x000000000488f518 RSP=0x00007f531ffcbe98, RBP=0x00007f531ffcbf10, RSI=0x0000000000000000, RDI=0x00000007b6f254a8 R8 =0x0000000000000000, R9 =0x00007f5580018598, R10=0x000000000488f528, R11=0xfffffffffffffff8 R12=0x000000000488f518, R13=0x0000000000000000, R14=0x00007f558012a1d8, R15=0x00007f5505578620 RIP=0x00007f5589b6c480, EFLAGS=0x0000000000010202, CSGSFS=0x0f19000000000033, ERR=0x0000000000000004 TRAPNO=0x000000000000000e Top of Stack: (sp=0x00007f531ffcbe98) 0x00007f531ffcbe98: 00007f5589092baa 00007f558012a000 0x00007f531ffcbea8: 0000000000000000 00007f558012a000 0x00007f531ffcbeb8: 0000000000000000 00007f531ffcbee0 0x00007f531ffcbec8: 00007f55890a3d9b 00007f558012a000 0x00007f531ffcbed8: bb924a63a8aa2700 00007f531ffcbf10 0x00007f531ffcbee8: 00007f558012a000 00007f558012a1d8 0x00007f531ffcbef8: 00007f5505578620 000000000488f518 0x00007f531ffcbf08: 0000000000000000 00007f531ffcbf60 0x00007f531ffcbf18: 00007f55890a80f1 00007f558012a1d8 0x00007f531ffcbf28: 000000000488f3b0 00007f531ffcbf60 0x00007f531ffcbf38: 00007f558012a1d8 00007f5505578620 0x00007f531ffcbf48: 00007f550488f3b0 00007f531ffcc0a8 0x00007f531ffcbf58: 0000000000000042 00007f531ffcbf90 0x00007f531ffcbf68: 00007f55033c8150 00007f5504821850 0x00007f531ffcbf78: 00007f558012a1d8 00007f5504821850 0x00007f531ffcbf88: 00007f5505578618 00007f531ffcc010 0x00007f531ffcbf98: 00007f55033c82ba 0000000400c80ec8 0x00007f531ffcbfa8: 000000428012afe8 00007f550488f2a0 0x00007f531ffcbfb8: 00007f550488ea90 00007f531ffcc000 0x00007f531ffcbfc8: 00007f55048218a0 000000b80000000a 0x00007f531ffcbfd8: bb924a63a8aa2700 0000000400c80ec8 0x00007f531ffcbfe8: 0000000400c80ec8 0000000000000000 0x00007f531ffcbff8: 0000000400c80ec0 00007f531ffcc0b0 0x00007f531ffcc008: 00007f558012a000 00007f531ffcc080 0x00007f531ffcc018: 00007f557d014e98 00007f558012b008 0x00007f531ffcc028: 00007f558012b008 00007f53fffffffe 0x00007f531ffcc038: 0000000000000000 00007f531ffcc040 0x00007f531ffcc048: 0000000400c80ec0 00007f531ffcc0b0 0x00007f531ffcc058: 0000000400c81ff8 0000000000000000 0x00007f531ffcc068: 0000000400c80ec8 0000000000000000 0x00007f531ffcc078: 00007f531ffcc0a0 00007f531ffcc0f8 0x00007f531ffcc088: 00007f557d00634b 0000000617228f10 Instructions: (pc=0x00007f5589b6c480) 0x00007f5589b6c460: 48 89 f0 48 8d 0c 12 48 29 f8 48 29 d0 48 39 c8 0x00007f5589b6c470: 0f 82 07 01 00 00 48 83 fa 10 0f 86 8b 01 00 00 0x00007f5589b6c480: f3 44 0f 6f 06 48 83 fa 20 f3 44 0f 7f 07 f3 44 0x00007f5589b6c490: 0f 6f 44 16 f0 f3 44 0f 7f 44 17 f0 77 12 48 89 Register to memory mapping: RAX=0xfffffff84484b640 is an unknown value RBX=0x00007f558012a000 is a thread RCX=0x000000000911ea30 is an unknown value RDX=0x000000000488f518 is an unknown value RSP=0x00007f531ffcbe98 is pointing into the stack for thread: 0x00007f558012a000 RBP=0x00007f531ffcbf10 is pointing into the stack for thread: 0x00007f558012a000 RSI=0x0000000000000000 is an unknown value RDI=0x00000007b6f254a8 is an unknown value R8 =0x0000000000000000 is an unknown value R9 =0x00007f5580018598 is an unknown value R10=0x000000000488f528 is an unknown value R11=0xfffffffffffffff8 is an unknown value R12=0x000000000488f518 is an unknown value R13=0x0000000000000000 is an unknown value R14=0x00007f558012a1d8 is an unknown value R15=0x00007f5505578620 is an unknown value Stack: [0x00007f531fbcd000,0x00007f531ffce000], sp=0x00007f531ffcbe98, free space=4091k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [libc.so.6+0x8e480] V [libjvm.so+0x6380f1] C [libsunec.so+0x1150] C [libsunec.so+0x12ba] Java_sun_security_ec_ECKeyPairGenerator_generateECKeyPair+0x12a j sun.security.ec.ECKeyPairGenerator.generateECKeyPair(I[B[B)[Ljava/lang/Object;+0 j sun.security.ec.ECKeyPairGenerator.generateKeyPair()Ljava/security/KeyPair;+55 j java.security.KeyPairGenerator$Delegate.generateKeyPair()Ljava/security/KeyPair;+23 j sun.security.ssl.ECDHCrypt.<init>(Ljava/lang/String;Ljava/security/SecureRandom;)V+28 j sun.security.ssl.ServerHandshaker.setupEphemeralECDHKeys()Z+88 j sun.security.ssl.ServerHandshaker.trySetCipherSuite(Lsun/security/ssl/CipherSuite;)Z+638 j sun.security.ssl.ServerHandshaker.chooseCipherSuite(Lsun/security/ssl/HandshakeMessage$ClientHello;)V+119 j sun.security.ssl.ServerHandshaker.clientHello(Lsun/security/ssl/HandshakeMessage$ClientHello;)V+1134 j sun.security.ssl.ServerHandshaker.processMessage(BI)V+127 j sun.security.ssl.Handshaker.processLoop()V+96 j sun.security.ssl.Handshaker.process_record(Lsun/security/ssl/InputRecord;Z)V+24 j sun.security.ssl.SSLSocketImpl.readRecord(Lsun/security/ssl/InputRecord;Z)V+353 j sun.security.ssl.SSLSocketImpl.performInitialHandshake()V+84 j sun.security.ssl.SSLSocketImpl.startHandshake(Z)V+13 j sun.security.ssl.SSLSocketImpl.getSession()Ljavax/net/ssl/SSLSession;+10 j org.apache.tomcat.util.net.jsse.JSSESocketFactory.handshake(Ljava/net/Socket;)V+4 j org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run()V+30 j java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V+95 j java.util.concurrent.ThreadPoolExecutor$Worker.run()V+5 j org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run()V+4 j java.lang.Thread.run()V+11 v ~StubRoutines::call_stub V [libjvm.so+0x608a84] V [libjvm.so+0x6077ae] V [libjvm.so+0x6441af] V [libjvm.so+0x940fba] V [libjvm.so+0x94135a] V [libjvm.so+0x803842] Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j sun.security.ec.ECKeyPairGenerator.generateECKeyPair(I[B[B)[Ljava/lang/Object;+0 j sun.security.ec.ECKeyPairGenerator.generateKeyPair()Ljava/security/KeyPair;+55 j java.security.KeyPairGenerator$Delegate.generateKeyPair()Ljava/security/KeyPair;+23 j sun.security.ssl.ECDHCrypt.<init>(Ljava/lang/String;Ljava/security/SecureRandom;)V+28 j sun.security.ssl.ServerHandshaker.setupEphemeralECDHKeys()Z+88 j sun.security.ssl.ServerHandshaker.trySetCipherSuite(Lsun/security/ssl/CipherSuite;)Z+638 j sun.security.ssl.ServerHandshaker.chooseCipherSuite(Lsun/security/ssl/HandshakeMessage$ClientHello;)V+119 j sun.security.ssl.ServerHandshaker.clientHello(Lsun/security/ssl/HandshakeMessage$ClientHello;)V+1134 j sun.security.ssl.ServerHandshaker.processMessage(BI)V+127 j sun.security.ssl.Handshaker.processLoop()V+96 j sun.security.ssl.Handshaker.process_record(Lsun/security/ssl/InputRecord;Z)V+24 j sun.security.ssl.SSLSocketImpl.readRecord(Lsun/security/ssl/InputRecord;Z)V+353 j sun.security.ssl.SSLSocketImpl.performInitialHandshake()V+84 j sun.security.ssl.SSLSocketImpl.startHandshake(Z)V+13 j sun.security.ssl.SSLSocketImpl.getSession()Ljavax/net/ssl/SSLSession;+10 j org.apache.tomcat.util.net.jsse.JSSESocketFactory.handshake(Ljava/net/Socket;)V+4 j org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run()V+30 j java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V+95 j java.util.concurrent.ThreadPoolExecutor$Worker.run()V+5 j org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run()V+4 j java.lang.Thread.run()V+11 v ~StubRoutines::call_stub --------------- P R O C E S S --------------- Java Threads: ( => current thread ) 0x00007f55802e0800 JavaThread "http-bio-8443-AsyncTimeout" daemon [_thread_blocked, id=7785, stack(0x00007f531d3c3000,0x00007f531d7c4000)] 0x00007f55802de800 JavaThread "http-bio-8443-Acceptor-0" daemon [_thread_in_native, id=7784, stack(0x00007f531d7c4000,0x00007f531dbc5000)] 0x00007f55802dc800 JavaThread "http-bio-8443-exec-10" daemon [_thread_blocked, id=7783, stack(0x00007f531dbc5000,0x00007f531dfc6000)] 0x00007f55802da800 JavaThread "http-bio-8443-exec-9" daemon [_thread_blocked, id=7782, stack(0x00007f531dfc6000,0x00007f531e3c7000)] ..... VM Mutex/Monitor currently owned by a thread: None Heap PSYoungGen total 1715712K, used 1187554K [0x0000000780000000, 0x0000000800000000, 0x0000000800000000) eden space 1321984K, 73% used [0x0000000780000000,0x00000007bb7b49c0,0x00000007d0b00000) from space 393728K, 54% used [0x00000007e7f80000,0x00000007f4f84178,0x0000000800000000) to space 381440K, 0% used [0x00000007d0b00000,0x00000007d0b00000,0x00000007e7f80000) ParOldGen total 6291456K, used 987789K [0x0000000600000000, 0x0000000780000000, 0x0000000780000000) object space 6291456K, 15% used [0x0000000600000000,0x000000063c4a35d8,0x0000000780000000) PSPermGen total 4194304K, used 531336K [0x0000000400000000, 0x0000000500000000, 0x0000000600000000) object space 4194304K, 12% used [0x0000000400000000,0x00000004206e23c8,0x0000000500000000) Card table byte_map: [0x00007f5584d73000,0x00007f5586d74000] byte_map_base: 0x00007f5582d73000 Polling page: 0x00007f558a6c7000 Code Cache [0x00007f557d000000, 0x00007f557dec0000, 0x00007f5580000000) total_blobs=4948 nmethods=4244 adapters=664 free_code_cache=34359Kb largest_free_block=34927552 Compilation events (10 events): Event: 133.271 Thread 0x00007f55800be800 nmethod 4792 0x00007f557ddd32d0 code [0x00007f557ddd3400, 0x00007f557ddd3498] Event: 133.282 Thread 0x00007f55800be800 4793 sun.nio.cs.CharsetMapping::readCharArray (112 bytes) Event: 133.288 Thread 0x00007f55800be800 nmethod 4793 0x00007f557de74210 code [0x00007f557de74360, 0x00007f557de74778] Event: 133.291 Thread 0x00007f55800c1000 nmethod 4791 0x00007f557de78d50 code [0x00007f557de78f40, 0x00007f557de7a1d0] Event: 133.331 Thread 0x00007f55800be800 4794 % java.util.Properties$LineReader::readLine # 21 (452 bytes) Event: 133.339 Thread 0x00007f55800be800 nmethod 4794% 0x00007f557dd8e110 code [0x00007f557dd8e2a0, 0x00007f557dd8eb98] Event: 133.456 Thread 0x00007f55800c1000 4795 java.util.Properties$LineReader::readLine (452 bytes) Event: 133.465 Thread 0x00007f55800c1000 nmethod 4795 0x00007f557dd89cd0 code [0x00007f557dd89e60, 0x00007f557dd8a618] Event: 133.838 Thread 0x00007f55800be800 4796 org.postgresql.core.Parser::parseSingleQuotes (134 bytes) Event: 133.841 Thread 0x00007f55800be800 nmethod 4796 0x00007f557de1d810 code [0x00007f557de1d960, 0x00007f557de1dbf8] GC Heap History (10 events): Event: 99.316 GC heap before {Heap before GC invocations=16 (full 0): PSYoungGen total 1662464K, used 1428685K [0x0000000780000000, 0x0000000800000000, 0x0000000800000000) eden space 1230848K, 100% used [0x0000000780000000,0x00000007cb200000,0x00000007cb200000) from space 431616K, 45% used [0x00000007cb200000,0x00000007d7333600,0x00000007e5780000) to space 425472K, 0% used [0x00000007e6080000,0x00000007e6080000,0x0000000800000000) ParOldGen total 6291456K, used 813260K [0x0000000600000000, 0x0000000780000000, 0x0000000780000000) object space 6291456K, 12% used [0x0000000600000000,0x0000000631a330c8,0x0000000780000000) PSPermGen total 4194304K, used 412966K [0x0000000400000000, 0x0000000500000000, 0x0000000600000000) object space 4194304K, 9% used [0x0000000400000000,0x0000000419349ba0,0x0000000500000000) Event: 99.399 GC heap after Heap after GC invocations=16 (full 0): PSYoungGen total 1678848K, used 196634K [0x0000000780000000, 0x0000000800000000, 0x0000000800000000) eden space 1253376K, 0% used [0x0000000780000000,0x0000000780000000,0x00000007cc800000) from space 425472K, 46% used [0x00000007e6080000,0x00000007f2086a98,0x0000000800000000) to space 418304K, 0% used [0x00000007cc800000,0x00000007cc800000,0x00000007e6080000) ParOldGen total 6291456K, used 845202K [0x0000000600000000, 0x0000000780000000, 0x0000000780000000) object space 6291456K, 13% used [0x0000000600000000,0x0000000633964900,0x0000000780000000) PSPermGen total 4194304K, used 412966K [0x0000000400000000, 0x0000000500000000, 0x0000000600000000) object space 4194304K, 9% used [0x0000000400000000,0x0000000419349ba0,0x0000000500000000) } Event: 108.691 GC heap before {Heap before GC invocations=17 (full 0): PSYoungGen total 1678848K, used 1450010K [0x0000000780000000, 0x0000000800000000, 0x0000000800000000) eden space 1253376K, 100% used [0x0000000780000000,0x00000007cc800000,0x00000007cc800000) from space 425472K, 46% used [0x00000007e6080000,0x00000007f2086a98,0x0000000800000000) to space 418304K, 0% used [0x00000007cc800000,0x00000007cc800000,0x00000007e6080000) ParOldGen total 6291456K, used 845202K [0x0000000600000000, 0x0000000780000000, 0x0000000780000000) object space 6291456K, 13% used [0x0000000600000000,0x0000000633964900,0x0000000780000000) PSPermGen total 4194304K, used 431803K [0x0000000400000000, 0x0000000500000000, 0x0000000600000000) object space 4194304K, 10% used [0x0000000400000000,0x000000041a5aeec8,0x0000000500000000) Event: 108.774 GC heap after Heap after GC invocations=17 (full 0): PSYoungGen total 1671680K, used 190846K [0x0000000780000000, 0x0000000800000000, 0x0000000800000000) eden space 1253376K, 0% used [0x0000000780000000,0x0000000780000000,0x00000007cc800000) from space 418304K, 45% used [0x00000007cc800000,0x00000007d825f840,0x00000007e6080000) to space 411648K, 0% used [0x00000007e6e00000,0x00000007e6e00000,0x0000000800000000) ParOldGen total 6291456K, used 881007K [0x0000000600000000, 0x0000000780000000, 0x0000000780000000) object space 6291456K, 14% used [0x0000000600000000,0x0000000635c5bd70,0x0000000780000000) PSPermGen total 4194304K, used 431803K [0x0000000400000000, 0x0000000500000000, 0x0000000600000000) object space 4194304K, 10% used [0x0000000400000000,0x000000041a5aeec8,0x0000000500000000) } Event: 114.421 GC heap before {Heap before GC invocations=18 (full 0): PSYoungGen total 1671680K, used 1444222K [0x0000000780000000, 0x0000000800000000, 0x0000000800000000) eden space 1253376K, 100% used [0x0000000780000000,0x00000007cc800000,0x00000007cc800000) from space 418304K, 45% used [0x00000007cc800000,0x00000007d825f840,0x00000007e6080000) to space 411648K, 0% used [0x00000007e6e00000,0x00000007e6e00000,0x0000000800000000) ParOldGen total 6291456K, used 881007K [0x0000000600000000, 0x0000000780000000, 0x0000000780000000) object space 6291456K, 14% used [0x0000000600000000,0x0000000635c5bd70,0x0000000780000000) PSPermGen total 4194304K, used 447970K [0x0000000400000000, 0x0000000500000000, 0x0000000600000000) object space 4194304K, 10% used [0x0000000400000000,0x000000041b5789f8,0x0000000500000000) Event: 114.505 GC heap after Heap after GC invocations=18 (full 0): PSYoungGen total 1697280K, used 212260K [0x0000000780000000, 0x0000000800000000, 0x0000000800000000) eden space 1285632K, 0% used [0x0000000780000000,0x0000000780000000,0x00000007ce780000) from space 411648K, 51% used [0x00000007e6e00000,0x00000007f3d49188,0x0000000800000000) to space 399872K, 0% used [0x00000007ce780000,0x00000007ce780000,0x00000007e6e00000) ParOldGen total 6291456K, used 913317K [0x0000000600000000, 0x0000000780000000, 0x0000000780000000) object space 6291456K, 14% used [0x0000000600000000,0x0000000637be9728,0x0000000780000000) PSPermGen total 4194304K, used 447970K [0x0000000400000000, 0x0000000500000000, 0x0000000600000000) object space 4194304K, 10% used [0x0000000400000000,0x000000041b5789f8,0x0000000500000000) } Event: 123.134 GC heap before {Heap before GC invocations=19 (full 0): PSYoungGen total 1697280K, used 1497892K [0x0000000780000000, 0x0000000800000000, 0x0000000800000000) eden space 1285632K, 100% used [0x0000000780000000,0x00000007ce780000,0x00000007ce780000) from space 411648K, 51% used [0x00000007e6e00000,0x00000007f3d49188,0x0000000800000000) to space 399872K, 0% used [0x00000007ce780000,0x00000007ce780000,0x00000007e6e00000) ParOldGen total 6291456K, used 913317K [0x0000000600000000, 0x0000000780000000, 0x0000000780000000) object space 6291456K, 14% used [0x0000000600000000,0x0000000637be9728,0x0000000780000000) PSPermGen total 4194304K, used 480230K [0x0000000400000000, 0x0000000500000000, 0x0000000600000000) object space 4194304K, 11% used [0x0000000400000000,0x000000041d4f9b90,0x0000000500000000) Event: 123.218 GC heap after Heap after GC invocations=19 (full 0): PSYoungGen total 1685504K, used 182843K [0x0000000780000000, 0x0000000800000000, 0x0000000800000000) eden space 1285632K, 0% used [0x0000000780000000,0x0000000780000000,0x00000007ce780000) from space 399872K, 45% used [0x00000007ce780000,0x00000007d9a0ecf0,0x00000007e6e00000) to space 393728K, 0% used [0x00000007e7f80000,0x00000007e7f80000,0x0000000800000000) ParOldGen total 6291456K, used 946748K [0x0000000600000000, 0x0000000780000000, 0x0000000780000000) object space 6291456K, 15% used [0x0000000600000000,0x0000000639c8f218,0x0000000780000000) PSPermGen total 4194304K, used 480230K [0x0000000400000000, 0x0000000500000000, 0x0000000600000000) object space 4194304K, 11% used [0x0000000400000000,0x000000041d4f9b90,0x0000000500000000) } Event: 128.937 GC heap before {Heap before GC invocations=20 (full 0): PSYoungGen total 1685504K, used 1468475K [0x0000000780000000, 0x0000000800000000, 0x0000000800000000) eden space 1285632K, 100% used [0x0000000780000000,0x00000007ce780000,0x00000007ce780000) from space 399872K, 45% used [0x00000007ce780000,0x00000007d9a0ecf0,0x00000007e6e00000) to space 393728K, 0% used [0x00000007e7f80000,0x00000007e7f80000,0x0000000800000000) ParOldGen total 6291456K, used 946748K [0x0000000600000000, 0x0000000780000000, 0x0000000780000000) object space 6291456K, 15% used [0x0000000600000000,0x0000000639c8f218,0x0000000780000000) PSPermGen total 4194304K, used 496294K [0x0000000400000000, 0x0000000500000000, 0x0000000600000000) object space 4194304K, 11% used [0x0000000400000000,0x000000041e4a9b58,0x0000000500000000) Event: 129.028 GC heap after Heap after GC invocations=20 (full 0): PSYoungGen total 1715712K, used 213008K [0x0000000780000000, 0x0000000800000000, 0x0000000800000000) eden space 1321984K, 0% used [0x0000000780000000,0x0000000780000000,0x00000007d0b00000) from space 393728K, 54% used [0x00000007e7f80000,0x00000007f4f84178,0x0000000800000000) to space 381440K, 0% used [0x00000007d0b00000,0x00000007d0b00000,0x00000007e7f80000) ParOldGen total 6291456K, used 987789K [0x0000000600000000, 0x0000000780000000, 0x0000000780000000) object space 6291456K, 15% used [0x0000000600000000,0x000000063c4a35d8,0x0000000780000000) PSPermGen total 4194304K, used 496294K [0x0000000400000000, 0x0000000500000000, 0x0000000600000000) object space 4194304K, 11% used [0x0000000400000000,0x000000041e4a9b58,0x0000000500000000) } Deoptimization events (10 events): Event: 133.447 Thread 0x00007f558015f800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00007f557d455ca4 method=java.lang.Character.isUpperCase(I)Z # 5 Event: 133.447 Thread 0x00007f558015f800 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00007f557d674dac method=java.beans.Introspector.processPropertyDescriptors()V # 91 Event: 133.448 Thread 0x00007f558015f800 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00007f557d674dac method=java.beans.Introspector.processPropertyDescriptors()V # 91 Event: 133.448 Thread 0x00007f558015f800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00007f557d4566e4 method=java.lang.Character.isUpperCase(I)Z # 5 Event: 133.449 Thread 0x00007f558015f800 Uncommon trap: reason=class_check action=maybe_recompile pc=0x00007f557d674dac method=java.beans.Introspector.processPropertyDescriptors()V # 91 Event: 133.454 Thread 0x00007f558015f800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00007f557d2cb5c4 method=java.nio.Buffer.limit(I)Ljava/nio/Buffer; # 33 Event: 133.459 Thread 0x00007f558015f800 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00007f557d7226ec method=java.nio.charset.CharsetDecoder.decode(Ljava/nio/ByteBuffer;Ljava/nio/CharBuffer;Z)Ljava/nio/charset/CoderResult; # 1 Event: 140.285 Thread 0x00007f5580128000 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00007f557dd5c1c8 method=sun.security.util.AbstractAlgorithmConstraints.checkAlgorithm([Ljava/lang/String;Ljava/lang/String;Lsun/security/util/AlgorithmDecomposer;)Z # 70 Event: 140.288 Thread 0x00007f558012a000 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00007f557d19cb90 method=java.io.ByteArrayInputStream.read([BII)I # 70 Event: 140.289 Thread 0x00007f5580128000 Uncommon trap: reason=unstable_if action=reinterpret pc=0x00007f557d19cb90 method=java.io.ByteArrayInputStream.read([BII)I # 70 Internal exceptions (10 events): Event: 133.458 Thread 0x00007f558015f800 Threw 0x00000007ae646ec0 at /var/tmp/notmpfs/portage/dev-java/icedtea-7.2.6.8/work/icedtea-2.6.8/openjdk/hotspot/src/share/vm/prims/jvm.cpp:1322 Event: 133.458 Thread 0x00007f558015f800 Threw 0x00000007ae647620 at /var/tmp/notmpfs/portage/dev-java/icedtea-7.2.6.8/work/icedtea-2.6.8/openjdk/hotspot/src/share/vm/prims/jvm.cpp:1322 Event: 133.458 Thread 0x00007f558015f800 Threw 0x00000007ae64a7c8 at /var/tmp/notmpfs/portage/dev-java/icedtea-7.2.6.8/work/icedtea-2.6.8/openjdk/hotspot/src/share/vm/prims/jvm.cpp:1322 Event: 133.458 Thread 0x00007f558015f800 Threw 0x00000007ae64af78 at /var/tmp/notmpfs/portage/dev-java/icedtea-7.2.6.8/work/icedtea-2.6.8/openjdk/hotspot/src/share/vm/prims/jvm.cpp:1322 Event: 133.459 Thread 0x00007f558015f800 Threw 0x00000007ae64e800 at /var/tmp/notmpfs/portage/dev-java/icedtea-7.2.6.8/work/icedtea-2.6.8/openjdk/hotspot/src/share/vm/prims/jvm.cpp:1322 Event: 133.459 Thread 0x00007f558015f800 Threw 0x00000007ae64f008 at /var/tmp/notmpfs/portage/dev-java/icedtea-7.2.6.8/work/icedtea-2.6.8/openjdk/hotspot/src/share/vm/prims/jvm.cpp:1322 Event: 133.460 Thread 0x00007f558015f800 Threw 0x00000007ae652348 at /var/tmp/notmpfs/portage/dev-java/icedtea-7.2.6.8/work/icedtea-2.6.8/openjdk/hotspot/src/share/vm/prims/jvm.cpp:1322 Event: 133.460 Thread 0x00007f558015f800 Threw 0x00000007ae652b58 at /var/tmp/notmpfs/portage/dev-java/icedtea-7.2.6.8/work/icedtea-2.6.8/openjdk/hotspot/src/share/vm/prims/jvm.cpp:1322 Event: 135.204 Thread 0x00007f54f4d23800 Threw 0x00000007ae82a358 at /var/tmp/notmpfs/portage/dev-java/icedtea-7.2.6.8/work/icedtea-2.6.8/openjdk/hotspot/src/share/vm/prims/jvm.cpp:1322 Event: 139.962 Thread 0x00007f54f4fab000 Threw 0x00000007aed1c080 at /var/tmp/notmpfs/portage/dev-java/icedtea-7.2.6.8/work/icedtea-2.6.8/openjdk/hotspot/src/share/vm/prims/jvm.cpp:1322 Events (10 events): Event: 140.290 loading class 0x00007f55043e2ff0 Event: 140.290 loading class 0x00007f55043e2ff0 done Event: 140.290 loading class 0x00007f55043e2da0 Event: 140.290 loading class 0x00007f55043e2da0 done Event: 140.291 loading class 0x00007f55043e3b30 Event: 140.291 loading class 0x00007f55043e3b30 done Event: 140.291 loading class 0x00007f55043e3550 Event: 140.291 loading class 0x00007f55043e3550 done Event: 140.291 loading class 0x00007f55804696e0 Event: 140.291 loading class 0x00007f55804696e0 done Dynamic libraries: 003ff000-00400000 rw-p 00000000 08:03 18490064 /opt/icedtea-bin-7.2.6.8/bin/java 00400000-00401000 r-xp 00001000 08:03 18490064 /opt/icedtea-bin-7.2.6.8/bin/java 00600000-00601000 r--p 00001000 08:03 18490064 /opt/icedtea-bin-7.2.6.8/bin/java 00601000-00602000 rw-p 00002000 08:03 18490064 /opt/icedtea-bin-7.2.6.8/bin/java 01988000-019a9000 rw-p 00000000 00:00 0 [heap] ..... VM Arguments: jvm_args: -Djava.util.logging.config.file=/opt/tomcat/7.0.78/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Xms4096m -Xmx4096m -XX:NewSize=2048m -XX:MaxNewSize=2048m -XX:PermSize=4096m -XX:MaxPermSize=4096m -XX:+DisableExplicitGC -XX:+HeapDumpOnOutOfMemoryError -Xcheck:jni -Xms8192m -Xmx8192m -XX:MaxPermSize=8192m -Xss4096k -XX:+UseParallelGC -XX:MaxGCPauseMillis=1500 -XX:GCTimeRatio=9 -XX:+DisableExplicitGC -Djava.endorsed.dirs=/opt/tomcat/7.0.78/endorsed -Dcatalina.base=/opt/tomcat/7.0.78 -Dcatalina.home=/opt/tomcat/7.0.78 -Djava.io.tmpdir=/opt/tomcat/7.0.78/temp java_command: org.apache.catalina.startup.Bootstrap start Launcher Type: SUN_STANDARD Environment Variables: JAVA_HOME=/etc/java-config-2/current-system-vm PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.4 SHELL=/bin/bash DISPLAY=localhost:10.0 Signal Handlers: SIGSEGV: [libjvm.so+0x996df0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 SIGBUS: [libjvm.so+0x996df0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 SIGFPE: [libjvm.so+0x801c80], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 SIGPIPE: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000000 SIGXFSZ: [libjvm.so+0x801c80], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 SIGILL: [libjvm.so+0x801c80], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000 SIGUSR2: [libjvm.so+0x801db0], sa_mask[0]=0x00000000, sa_flags=0x10000004 SIGHUP: [libjvm.so+0x801d00], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 SIGINT: SIG_IGN, sa_mask[0]=0x00000000, sa_flags=0x00000000 SIGTERM: [libjvm.so+0x801d00], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 SIGQUIT: [libjvm.so+0x801d00], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004 SIGTRAP: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000 --------------- S Y S T E M --------------- OS:Gentoo Base System release 2.3 uname:Linux 4.4.6-gentoo #1 SMP Fri Jul 22 14:10:27 CEST 2016 x86_64 libc:glibc 2.23 NPTL 2.23 rlimit: STACK 8192k, CORE infinity, NPROC 63651, NOFILE 4096, AS infinity load average:0.44 0.27 2.74 /proc/meminfo: MemTotal: 16328680 kB MemFree: 4797700 kB MemAvailable: 11312328 kB Buffers: 586184 kB Cached: 6091712 kB SwapCached: 6488 kB Active: 7015680 kB Inactive: 3838568 kB Active(anon): 4578024 kB Inactive(anon): 170920 kB Active(file): 2437656 kB Inactive(file): 3667648 kB Unevictable: 7444 kB Mlocked: 7444 kB SwapTotal: 972796 kB SwapFree: 860668 kB Dirty: 460 kB Writeback: 0 kB AnonPages: 4183196 kB Mapped: 712856 kB Shmem: 566544 kB Slab: 549900 kB SReclaimable: 469876 kB SUnreclaim: 80024 kB KernelStack: 13760 kB PageTables: 47748 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 9137136 kB Committed_AS: 17231004 kB VmallocTotal: 34359738367 kB VmallocUsed: 0 kB VmallocChunk: 0 kB HardwareCorrupted: 0 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 2048 kB DirectMap4k: 3195776 kB DirectMap2M: 13502464 kB DirectMap1G: 0 kB CPU:total 16 (8 cores per cpu, 2 threads per core) family 6 model 45 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, aes, ht, tsc, tscinvbit, tscinv ..... Memory: 4k page, physical 16328680k(4797700k free), swap 972796k(860668k free) vm_info: OpenJDK 64-Bit Server VM (24.121-b00) for linux-amd64 JRE (1.7.0_121-b00), built on Nov 19 2016 12:19:28 by "portage" with gcc 4.9.3 time: Fri Jun 23 11:39:29 2017 elapsed time: 140 seconds
App hangs and finally crashes, calling [NSView cursorUpdate:] n times
I have been seeing above mentioned crash upon clicking on return key or space bar, while i am editing my textfield. crash log has no reference to any line of my code. Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_PROTECTION_FAILURE at 0x00007fff54c2fff8 VM Regions Near 0x7fff54c2fff8: MALLOC_SMALL 00007f85ec000000-00007f85ee000000 [ 32.0M] rw-/rwx SM=PRV --> STACK GUARD 00007fff51430000-00007fff54c30000 [ 56.0M] ---/rwx SM=NUL stack guard for thread 0 Stack 00007fff54c30000-00007fff55430000 [ 8192K] rw-/rwx SM=COW thread 0 Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 com.apple.CoreGraphics 0x00007fff92b7b149 CGSLogTrace + 24 1 com.apple.CoreGraphics 0x00007fff92b82d9d CGSGetCurrentCursorLocation + 125 2 com.apple.CoreGraphics 0x00007fff92bb417b CGSGetWindowMouseLocation + 73 3 com.apple.AppKit 0x00007fff96d3f3cd PScurrentmouse + 74 4 com.apple.AppKit 0x00007fff96d3f32c _NSCurrentMouseLocationInWindow + 71 5 com.apple.AppKit 0x00007fff96e8cbe5 -[NSWindow(NSCarbonExtensions) _findCursorForView:] + 94 6 com.apple.AppKit 0x00007fff96e8cb42 -[NSView cursorUpdate:] + 84 7 com.apple.AppKit 0x00007fff96e8ce17 forwardMethod + 125 8 com.apple.AppKit 0x00007fff96e8cb7b -[NSView cursorUpdate:] + 141 and same thing goes on forever. Can any one help me with this? thanks a ton in advance.