Skip to content

Commit

Permalink
fix: Refactor code to improve performance and
Browse files Browse the repository at this point in the history
readability.
  • Loading branch information
jp-prud committed Nov 13, 2023
1 parent fea9b88 commit 850d1ff
Show file tree
Hide file tree
Showing 6 changed files with 12,236 additions and 0 deletions.
662 changes: 662 additions & 0 deletions android/hs_err_pid18060.log

Large diffs are not rendered by default.

675 changes: 675 additions & 0 deletions android/hs_err_pid19472.log

Large diffs are not rendered by default.

200 changes: 200 additions & 0 deletions android/hs_err_pid23532.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,200 @@
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 65536 bytes for Failed to commit area from 0x0000023b50c80000 to 0x0000023b50c90000 of length 65536.
# Possible reasons:
# The system is out of physical RAM or swap space
# The process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap
# Possible solutions:
# Reduce memory load on the system
# Increase physical memory or swap space
# Check if swap backing store is full
# Decrease Java heap size (-Xmx/-Xms)
# Decrease number of Java threads
# Decrease Java thread stack sizes (-Xss)
# Set larger code cache with -XX:ReservedCodeCacheSize=
# This output file may be truncated or incomplete.
#
# Out of Memory Error (./src/hotspot/os/windows/os_windows.cpp:3386), pid=23532, tid=14204
#
# JRE version: (11.0.18+10) (build )
# Java VM: OpenJDK 64-Bit Server VM (11.0.18+10-LTS, mixed mode, sharing, tiered, compressed oops, g1 gc, windows-amd64)
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#

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

Command Line: org.jetbrains.kotlin.cli.jvm.K2JVMCompiler @C:\Estudos\projetos\paper.me\mobile\node_modules\react-native-gesture-handler\android\build\20231110_9580573460845524983.compiler.options

Host: AMD Ryzen 5 3400G with Radeon Vega Graphics , 8 cores, 13G, Windows 11 , 64 bit Build 22621 (10.0.22621.2428)
Time: Fri Nov 10 16:28:22 2023 Hora oficial do Brasil elapsed time: 0.036845 seconds (0d 0h 0m 0s)

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

Current thread (0x0000023b34339000): JavaThread "Unknown thread" [_thread_in_vm, id=14204, stack(0x000000a05aa00000,0x000000a05ab00000)]

Stack: [0x000000a05aa00000,0x000000a05ab00000]
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [jvm.dll+0x62bf8a]
V [jvm.dll+0x7b8fb9]
V [jvm.dll+0x7ba6a8]
V [jvm.dll+0x7bad83]
V [jvm.dll+0x250248]
V [jvm.dll+0x62929a]
V [jvm.dll+0x61d855]
V [jvm.dll+0x30c32c]
V [jvm.dll+0x30c1b2]
V [jvm.dll+0x310fe0]
V [jvm.dll+0x356f35]
V [jvm.dll+0x356940]
V [jvm.dll+0x2e9348]
V [jvm.dll+0x2ea4a6]
V [jvm.dll+0x792e07]
V [jvm.dll+0x79458f]
V [jvm.dll+0x363c69]
V [jvm.dll+0x775d70]
V [jvm.dll+0x3d297f]
V [jvm.dll+0x3d4d11]
C [jli.dll+0x5207]
C [ucrtbase.dll+0x29363]
C [KERNEL32.DLL+0x1257d]
C [ntdll.dll+0x5aa78]


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

Threads class SMR info:
_java_thread_list=0x0000023b320a8210, length=0, elements={
}

Java Threads: ( => current thread )

Other Threads:
0x0000023b34351800 GCTaskThread "GC Thread#0" [stack: 0x000000a05ab00000,0x000000a05ac00000] [id=14456]
0x0000023b343a3000 ConcurrentGCThread "G1 Main Marker" [stack: 0x000000a05ac00000,0x000000a05ad00000] [id=8712]
0x0000023b343a4800 ConcurrentGCThread "G1 Conc#0" [stack: 0x000000a05ad00000,0x000000a05ae00000] [id=17720]

[error occurred during error reporting (printing all threads), id 0xc0000005, EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffcc9018b17]

VM state:not at safepoint (not fully initialized)

VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
[0x0000023b34338800] Heap_lock - owner thread: 0x0000023b34339000

Heap address: 0x0000000720c00000, size: 3572 MB, Compressed Oops mode: Non-zero based: 0x0000000720c00000
Narrow klass base: 0x0000000000000000, Narrow klass shift: 0

GC Heap History (0 events):
No events

Deoptimization events (0 events):
No events

Classes redefined (0 events):
No events

Internal exceptions (0 events):
No events

Events (1 events):
Event: 0.023 Loaded shared library C:\Program Files\Microsoft\jdk-11.0.18.10-hotspot\bin\zip.dll


Dynamic libraries:
0x00007ff6dde30000 - 0x00007ff6dde3d000 C:\Program Files\Microsoft\jdk-11.0.18.10-hotspot\bin\java.exe
0x00007ffd5c0d0000 - 0x00007ffd5c2e7000 C:\WINDOWS\SYSTEM32\ntdll.dll
0x00007ffd5a5c0000 - 0x00007ffd5a684000 C:\WINDOWS\System32\KERNEL32.DLL
0x00007ffd594c0000 - 0x00007ffd59866000 C:\WINDOWS\System32\KERNELBASE.dll
0x00007ffd59b70000 - 0x00007ffd59c81000 C:\WINDOWS\System32\ucrtbase.dll
0x00007ffd24f70000 - 0x00007ffd24f85000 C:\Program Files\Microsoft\jdk-11.0.18.10-hotspot\bin\VCRUNTIME140.dll
0x00007ffd23150000 - 0x00007ffd23167000 C:\Program Files\Microsoft\jdk-11.0.18.10-hotspot\bin\jli.dll
0x00007ffd5a710000 - 0x00007ffd5a8bd000 C:\WINDOWS\System32\USER32.dll
0x00007ffd44c00000 - 0x00007ffd44e93000 C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.22621.2361_none_2712ced57382f843\COMCTL32.dll
0x00007ffd59e00000 - 0x00007ffd59e26000 C:\WINDOWS\System32\win32u.dll
0x00007ffd59e30000 - 0x00007ffd59ed7000 C:\WINDOWS\System32\msvcrt.dll
0x00007ffd5bc40000 - 0x00007ffd5bc69000 C:\WINDOWS\System32\GDI32.dll
0x00007ffd59870000 - 0x00007ffd59988000 C:\WINDOWS\System32\gdi32full.dll
0x00007ffd59a10000 - 0x00007ffd59aaa000 C:\WINDOWS\System32\msvcp_win.dll
0x00007ffd5c050000 - 0x00007ffd5c081000 C:\WINDOWS\System32\IMM32.DLL
0x00007ffd1c240000 - 0x00007ffd1c2db000 C:\Program Files\Microsoft\jdk-11.0.18.10-hotspot\bin\msvcp140.dll
0x00007ffcc8d20000 - 0x00007ffcc98b2000 C:\Program Files\Microsoft\jdk-11.0.18.10-hotspot\bin\server\jvm.dll
0x00007ffd5bb90000 - 0x00007ffd5bc40000 C:\WINDOWS\System32\ADVAPI32.dll
0x00007ffd5bae0000 - 0x00007ffd5bb86000 C:\WINDOWS\System32\sechost.dll
0x00007ffd5a8c0000 - 0x00007ffd5a9d7000 C:\WINDOWS\System32\RPCRT4.dll
0x00007ffd5a6f0000 - 0x00007ffd5a6f8000 C:\WINDOWS\System32\PSAPI.DLL
0x00007ffd507a0000 - 0x00007ffd507d4000 C:\WINDOWS\SYSTEM32\WINMM.dll
0x00007ffd507e0000 - 0x00007ffd507ea000 C:\WINDOWS\SYSTEM32\VERSION.dll
0x00007ffd432f0000 - 0x00007ffd432f9000 C:\WINDOWS\SYSTEM32\WSOCK32.dll
0x00007ffd5ac00000 - 0x00007ffd5ac71000 C:\WINDOWS\System32\WS2_32.dll
0x00007ffd583f0000 - 0x00007ffd58408000 C:\WINDOWS\SYSTEM32\kernel.appcore.dll
0x00007ffd41250000 - 0x00007ffd41260000 C:\Program Files\Microsoft\jdk-11.0.18.10-hotspot\bin\verify.dll
0x00007ffd4d3c0000 - 0x00007ffd4d5ee000 C:\WINDOWS\SYSTEM32\DBGHELP.DLL
0x00007ffd5bc70000 - 0x00007ffd5bffa000 C:\WINDOWS\System32\combase.dll
0x00007ffd5b5e0000 - 0x00007ffd5b6b7000 C:\WINDOWS\System32\OLEAUT32.dll
0x00007ffd4ed10000 - 0x00007ffd4ed42000 C:\WINDOWS\SYSTEM32\dbgcore.DLL
0x00007ffd59990000 - 0x00007ffd59a0a000 C:\WINDOWS\System32\bcryptPrimitives.dll
0x00007ffd21f10000 - 0x00007ffd21f38000 C:\Program Files\Microsoft\jdk-11.0.18.10-hotspot\bin\java.dll
0x00007ffd40550000 - 0x00007ffd4055a000 C:\Program Files\Microsoft\jdk-11.0.18.10-hotspot\bin\jimage.dll
0x00007ffd208e0000 - 0x00007ffd208f8000 C:\Program Files\Microsoft\jdk-11.0.18.10-hotspot\bin\zip.dll

dbghelp: loaded successfully - version: 4.0.5 - missing functions: none
symbol engine: initialized successfully - sym options: 0x614 - pdb path: .;C:\Program Files\Microsoft\jdk-11.0.18.10-hotspot\bin;C:\WINDOWS\SYSTEM32;C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.22621.2361_none_2712ced57382f843;C:\Program Files\Microsoft\jdk-11.0.18.10-hotspot\bin\server

VM Arguments:
java_command: org.jetbrains.kotlin.cli.jvm.K2JVMCompiler @C:\Estudos\projetos\paper.me\mobile\node_modules\react-native-gesture-handler\android\build\20231110_9580573460845524983.compiler.options
java_class_path (initial): C:\Users\JoaoPedro\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-compiler-embeddable\1.6.21\97bdd5a752ce73b58ef16c17bc7f0ea2faff7a2e\kotlin-compiler-embeddable-1.6.21.jar;C:\Users\JoaoPedro\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-reflect\1.6.21\5dc3574d9b7bebfcb4ec6b10ada4aaa9e140bd0b\kotlin-reflect-1.6.21.jar;C:\Users\JoaoPedro\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-stdlib\1.6.21\11ef67f1900634fd951bad28c53ec957fabbe5b8\kotlin-stdlib-1.6.21.jar;C:\Users\JoaoPedro\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-script-runtime\1.6.21\99c6675100da5d6d5b1c5a1032f27f28008d101b\kotlin-script-runtime-1.6.21.jar;C:\Users\JoaoPedro\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-daemon-embeddable\1.6.21\46b78cf392e1c4f10854c3cadba44abb7b82250f\kotlin-daemon-embeddable-1.6.21.jar;C:\Users\JoaoPedro\.gradle\caches\modules-2\files-2.1\org.jetbrains.intellij.deps\trove4j\1.0.20200330\3afb14d5f9ceb459d724e907a21145e8ff394f02\trove4j-1.0.20200330.jar;C:\Users\JoaoPedro\.gradle\caches\modules-2\files-2.1\net.java.dev.jna\jna\5.6.0\330f2244e9030119ab3030fc3fededc86713d9cc\jna-5.6.0.jar;C:\Users\JoaoPedro\.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-stdlib-common\1.6.21\5e5b55c26dbc80372a920aef60eb774b714559b8\kotlin-stdlib-common-1.6.21.jar;C:\Users\JoaoPedro\.gradle\caches\modules-2\files-2.1\org.jetbrains\annotations\13.0\919f0dfe192fb4e063e7dacadee7f8bb9a2672a9\annotations-13.0.jar
Launcher Type: SUN_STANDARD

[Global flags]
intx CICompilerCount = 4 {product} {ergonomic}
uint ConcGCThreads = 2 {product} {ergonomic}
uint G1ConcRefinementThreads = 8 {product} {ergonomic}
size_t G1HeapRegionSize = 1048576 {product} {ergonomic}
uintx GCDrainStackTargetSize = 64 {product} {ergonomic}
size_t InitialHeapSize = 234881024 {product} {ergonomic}
size_t MarkStackSize = 4194304 {product} {ergonomic}
size_t MaxHeapSize = 3745513472 {product} {ergonomic}
size_t MinHeapDeltaBytes = 1048576 {product} {ergonomic}
uintx NonNMethodCodeHeapSize = 5836300 {pd product} {ergonomic}
uintx NonProfiledCodeHeapSize = 122910970 {pd product} {ergonomic}
uintx ProfiledCodeHeapSize = 122910970 {pd product} {ergonomic}
uintx ReservedCodeCacheSize = 251658240 {pd product} {ergonomic}
bool SegmentedCodeCache = true {product} {ergonomic}
bool UseCompressedClassPointers = true {lp64_product} {ergonomic}
bool UseCompressedOops = true {lp64_product} {ergonomic}
bool UseG1GC = true {product} {ergonomic}
bool UseLargePagesIndividualAllocation = false {pd product} {ergonomic}

Logging:
Log output configuration:
#0: stdout all=warning uptime,level,tags
#1: stderr all=off uptime,level,tags

Environment Variables:
JAVA_HOME=C:\Program Files\Microsoft\jdk-11.0.18.10-hotspot\
CLASSPATH=C:\Estudos\projetos\paper.me\mobile\android\\gradle\wrapper\gradle-wrapper.jar
PATH=C:\Users\JOAOPE~1\AppData\Local\Temp\yarn--1699644138798-0.3644186080240057;C:\Estudos\projetos\paper.me\mobile\node_modules\.bin;C:\Users\JoaoPedro\AppData\Local\Yarn\Data\link\node_modules\.bin;C:\Program Files\libexec\lib\node_modules\npm\bin\node-gyp-bin;C:\Program Files\lib\node_modules\npm\bin\node-gyp-bin;C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\Microsoft\jdk-11.0.18.10-hotspot\bin;C:\platform-tools;C:\Windows\System32;C:\ProgramData\chocolatey\bin;C:\Users\JoaoPedro\AppData\Local\Android\Sdk\platform-tools;C:\Program Files\OpenSSL-Win64\bin;;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Docker\Docker\resources\bin;C:\Users\JoaoPedro\AppData\Local\Microsoft\WindowsApps;C:\Users\JoaoPedro\AppData\Roaming\npm;C:\Users\JoaoPedro\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\MySQL\MySQL Server 8.0\bin;C:\MinGW\bin;C:\Users\JoaoPedro\AppData\Local\JetBrains\CLion 2021.1.2\bin;C:\Users\JoaoPedro\AppData\Local\hyper\app-3.0.2\resources\bin;C:\Users\JoaoPedro\AppData\Roaming\Composer\vendor\bin;C:\Users\JoaoPedro\AppData\Local\Programs\Hyper\resources\bin;C:\Users\JoaoPedro\AppData\Local\Yarn\bin;C:\Users\JoaoPedro\AppData\Roaming\nvm;C:\Program Files\nodejs;C:\Program Files\vtex\bin;C:\Users\JoaoPedro\AppData\Local\GitHubDesktop\bin;C:\Windows\System32;C:\Program Files\Git\bin;C:\Users\JoaoPedro\AppData\Local\Android\Sdk\platform-tools;C:\Users\Jo�o Pedro\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\JetBrains\CLion 2023.1\bin;C:\Users\JoaoPedro\AppData\Local\Programs\Fiddler;C:\Program Files\Docker\Docker\resources\bin;;C:\Users\JoaoPedro\AppData\Local\Microsoft\WindowsApps;C:\Program Files\JetBrains\PyCharm 2023.2.1\bin;;C:\Users\JoaoPedro\AppData\Local\spicetify;C:\Users\JoaoPedro\.deno\bin
USERNAME=JoaoPedro
LANG=pt_BR.UTF-8
OS=Windows_NT
PROCESSOR_IDENTIFIER=AMD64 Family 23 Model 24 Stepping 1, AuthenticAMD
TMP=C:\Users\JOAOPE~1\AppData\Local\Temp
TEMP=C:\Users\JOAOPE~1\AppData\Local\Temp



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

OS: Windows 11 , 64 bit Build 22621 (10.0.22621.2428)
OS uptime: 0 days 16:23 hours
Hyper-V role detected

CPU:total 8 (initial active 8) (8 cores per cpu, 2 threads per core) family 23 model 24 stepping 1 microcode 0x0, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, clmul, mmxext, 3dnowpref, lzcnt, sse4a, ht, tsc, tscinvbit, tscinv, bmi1, bmi2, adx, sha, fma

Memory: 4k page, system-wide physical 14284M (798M free)
TotalPageFile size 24372M (AvailPageFile size 0M)
current process WorkingSet (physical memory assigned to process): 14M, peak: 14M
current process commit charge ("private bytes"): 290M, peak: 290M

vm_info: OpenJDK 64-Bit Server VM (11.0.18+10-LTS) for windows-amd64 JRE (11.0.18+10-LTS), built on Jan 18 2023 15:56:47 by "MicrosoftCorporation" with MS VC++ 15.9 (VS2017)

END.
Loading

0 comments on commit 850d1ff

Please sign in to comment.