Skip to content

Commit 030d3f3

Browse files
committed
fixed issues with previous commit working on windows
updated the about window to include the title and website
1 parent 2676a38 commit 030d3f3

5 files changed

Lines changed: 235 additions & 11 deletions

File tree

.idea/gradle.xml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/java/frc238/App.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ object App {
123123
val aboutMenu = AboutWindow()
124124
aboutMenu.application = app
125125
aboutMenu.addCreditSection("Developers", Strs(arrayOf("Hayden Mitchell")))
126+
aboutMenu.applicationName = Str("Autonomous Builder")
127+
aboutMenu.website = Str("frc238.org")
126128
aboutMenu.show()
127129
}
128130

app/src/main/java/frc238/widgets/FileUtils.kt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import frc238.App
1010
import frc238.App.initAutoList
1111
import org.jetbrains.kotlin.incremental.createDirectory
1212
import java.io.File
13-
import java.nio.file.Files
1413

1514

1615
var currentProjectFolder: String? = null
@@ -61,20 +60,22 @@ fun makeOrOpenXDGDataDir(): File {
6160
val homedir = System.getProperty("user.home") + "\\AppData\\Roaming"
6261
if (!File("$homedir\\AutoBuilder").isDirectory) {
6362
dir = File("$homedir\\AutoBuilder")
64-
dir.mkdir()
63+
dir.createDirectory()
6564
println(dir.path)
66-
File("$homedir\\AutoBuilder\\plugins").mkdir()
67-
val url = App.javaClass.classLoader.getResourceAsStream("plugins\\TrajectoryName.kts")
65+
File("$homedir\\AutoBuilder\\plugins").createDirectory()
66+
val url = App.javaClass.classLoader.getResourceAsStream("plugins/TrajectoryName.kts")
6867
val script = File(dir.path + "\\plugins\\TrajectoryName.kts")
69-
script.createNewFile()
68+
println( script.createNewFile())
7069
url!!.transferTo(script.outputStream())
70+
} else {
71+
dir = File("$homedir\\AutoBuilder")
7172
}
7273
}
7374
return dir!!
7475
}
7576

7677
fun getOrCreateDataFile(localPath: String): File {
77-
var file: File = File(makeOrOpenXDGDataDir().absolutePath + if (Platform.isWindows()) localPath.replace("/", "\\") else localPath)
78+
var file: File = File(makeOrOpenXDGDataDir().absolutePath + localPath)
7879
println(file.path)
7980
if (file.isFile) {
8081
println("is File")
@@ -89,8 +90,8 @@ fun getOrCreateDataFile(localPath: String): File {
8990
}
9091

9192
fun getPluginFolder(): File? {
92-
println("returning ${makeOrOpenXDGDataDir().path}/plugins")
93-
return File(makeOrOpenXDGDataDir().path + "/plugins")
93+
println("returning ${makeOrOpenXDGDataDir().path}${File.separator}plugins")
94+
return File("${makeOrOpenXDGDataDir().path}${File.separator}plugins")
9495
}
9596

9697

app/src/main/java/frc238/widgets/Settings.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class Settings {
6666
try {
6767
BufferedReader(
6868
FileReader(
69-
getOrCreateDataFile("/settings.json")
69+
getOrCreateDataFile("${File.separator}settings.json")
7070
)
7171
).use { br ->
7272

@@ -161,7 +161,7 @@ class Settings {
161161

162162
fun saveSettings() {
163163
println(json)
164-
val writer = FileWriter(getOrCreateDataFile("/settings.json").toPath().toString())
164+
val writer = FileWriter(getOrCreateDataFile("${File.separator}settings.json").toPath().toString())
165165
writer.write(json!!.toJSONString())
166166
writer.flush()
167167
}

hs_err_pid17860.log

Lines changed: 222 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,222 @@
1+
#
2+
# There is insufficient memory for the Java Runtime Environment to continue.
3+
# Native memory allocation (mmap) failed to map 268435456 bytes for G1 virtual space
4+
# Possible reasons:
5+
# The system is out of physical RAM or swap space
6+
# The process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap
7+
# Possible solutions:
8+
# Reduce memory load on the system
9+
# Increase physical memory or swap space
10+
# Check if swap backing store is full
11+
# Decrease Java heap size (-Xmx/-Xms)
12+
# Decrease number of Java threads
13+
# Decrease Java thread stack sizes (-Xss)
14+
# Set larger code cache with -XX:ReservedCodeCacheSize=
15+
# JVM is running with Zero Based Compressed Oops mode in which the Java heap is
16+
# placed in the first 32GB address space. The Java Heap base address is the
17+
# maximum limit for the native heap growth. Please use -XX:HeapBaseMinAddress
18+
# to set the Java Heap base and to place the Java Heap above 32GB virtual address.
19+
# This output file may be truncated or incomplete.
20+
#
21+
# Out of Memory Error (os_windows.cpp:3769), pid=17860, tid=8420
22+
#
23+
# JRE version: (17.0.6+10) (build )
24+
# Java VM: OpenJDK 64-Bit Server VM (17.0.6+10-b829.9, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
25+
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
26+
#
27+
28+
--------------- S U M M A R Y ------------
29+
30+
Command Line:
31+
32+
Host: AMD Ryzen 5 3600XT 6-Core Processor , 12 cores, 15G, Windows 10 , 64 bit Build 19041 (10.0.19041.2913)
33+
Time: Wed Aug 23 16:00:04 2023 Eastern Daylight Time elapsed time: 0.044049 seconds (0d 0h 0m 0s)
34+
35+
--------------- T H R E A D ---------------
36+
37+
Current thread (0x000002895e15ccf0): JavaThread "Unknown thread" [_thread_in_vm, id=8420, stack(0x000000f593400000,0x000000f593500000)]
38+
39+
Stack: [0x000000f593400000,0x000000f593500000]
40+
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
41+
V [jvm.dll+0x683c5a] os::platform_print_native_stack+0xca (os_windows_x86.cpp:235)
42+
V [jvm.dll+0x842764] VMError::report+0xc34 (vmError.cpp:742)
43+
V [jvm.dll+0x843f5e] VMError::report_and_die+0x78e (vmError.cpp:1557)
44+
V [jvm.dll+0x8445c3] VMError::report_and_die+0x43 (vmError.cpp:1343)
45+
V [jvm.dll+0x249b75] report_vm_out_of_memory+0x85 (debug.cpp:323)
46+
V [jvm.dll+0x680b29] os::pd_commit_memory_or_exit+0xc9 (os_windows.cpp:3777)
47+
V [jvm.dll+0x67501a] os::commit_memory_or_exit+0x2a (os.cpp:1814)
48+
V [jvm.dll+0x309acb] G1PageBasedVirtualSpace::commit+0x19b (g1PageBasedVirtualSpace.cpp:204)
49+
V [jvm.dll+0x310f86] G1RegionsLargerThanCommitSizeMapper::commit_regions+0x96 (g1RegionToSpaceMapper.cpp:100)
50+
V [jvm.dll+0x3608ee] HeapRegionManager::expand_any+0xee (heapRegionManager.cpp:363)
51+
V [jvm.dll+0x360b1f] HeapRegionManager::expand_by+0x7f (heapRegionManager.cpp:380)
52+
V [jvm.dll+0x2dfbf8] G1CollectedHeap::expand+0xb8 (g1CollectedHeap.cpp:1298)
53+
V [jvm.dll+0x2e0b64] G1CollectedHeap::initialize+0x664 (g1CollectedHeap.cpp:1719)
54+
V [jvm.dll+0x814051] universe_init+0xb1 (universe.cpp:735)
55+
V [jvm.dll+0x36e6a1] init_globals+0x31 (init.cpp:124)
56+
V [jvm.dll+0x7f358c] Threads::create_vm+0x60c (thread.cpp:2882)
57+
V [jvm.dll+0x3f0e8f] JNI_CreateJavaVM_inner+0x8f (jni.cpp:3635)
58+
V [jvm.dll+0x3f29d1] JNI_CreateJavaVM+0x11 (jni.cpp:3727)
59+
C [jli.dll+0x526b] JavaMain+0x113 (java.c:411)
60+
C [ucrtbase.dll+0x21bb2]
61+
C [KERNEL32.DLL+0x17614]
62+
C [ntdll.dll+0x526a1]
63+
64+
65+
--------------- P R O C E S S ---------------
66+
67+
Threads class SMR info:
68+
_java_thread_list=0x00007ffa4c93c058, length=0, elements={
69+
}
70+
71+
Java Threads: ( => current thread )
72+
73+
Other Threads:
74+
0x000002895e1ca770 GCTaskThread "GC Thread#0" [stack: 0x000000f593500000,0x000000f593600000] [id=12568]
75+
0x000002895e1dbd90 ConcurrentGCThread "G1 Main Marker" [stack: 0x000000f593600000,0x000000f593700000] [id=19292]
76+
0x000002895e1dc7a0 ConcurrentGCThread "G1 Conc#0" [stack: 0x000000f593700000,0x000000f593800000] [id=3424]
77+
78+
[error occurred during error reporting (printing all threads), id 0xc0000005, EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffa4c0f0797]
79+
80+
VM state: not at safepoint (not fully initialized)
81+
82+
VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
83+
[0x000002895e159c20] Heap_lock - owner thread: 0x000002895e15ccf0
84+
85+
Heap address: 0x0000000700c00000, size: 4084 MB, Compressed Oops mode: Zero based, Oop shift amount: 3
86+
87+
CDS archive(s) mapped at: [0x0000000000000000-0x0000000000000000-0x0000000000000000), size 0, SharedBaseAddress: 0x0000000800000000, ArchiveRelocationMode: 0.
88+
Narrow klass base: 0x0000000000000000, Narrow klass shift: 0, Narrow klass range: 0x0
89+
90+
GC Precious Log:
91+
<Empty>
92+
93+
Heap:
94+
garbage-first heap total 0K, used 0K [0x0000000700c00000, 0x0000000800000000)
95+
region size 2048K, 0 young (0K), 0 survivors (0K)
96+
97+
[error occurred during error reporting (printing heap information), id 0xc0000005, EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffa4c4dda49]
98+
99+
GC Heap History (0 events):
100+
No events
101+
102+
Dll operation events (1 events):
103+
Event: 0.026 Loaded shared library C:\Users\hayd6\.jdks\jbr-17.0.6\bin\java.dll
104+
105+
Deoptimization events (0 events):
106+
No events
107+
108+
Classes unloaded (0 events):
109+
No events
110+
111+
Classes redefined (0 events):
112+
No events
113+
114+
Internal exceptions (0 events):
115+
No events
116+
117+
VM Operations (0 events):
118+
No events
119+
120+
Events (0 events):
121+
No events
122+
123+
124+
Dynamic libraries:
125+
0x00007ff7ebdb0000 - 0x00007ff7ebdba000 C:\Users\hayd6\.jdks\jbr-17.0.6\bin\java.exe
126+
0x00007ffab3650000 - 0x00007ffab3848000 C:\WINDOWS\SYSTEM32\ntdll.dll
127+
0x00007ffab2460000 - 0x00007ffab251f000 C:\WINDOWS\System32\KERNEL32.DLL
128+
0x00007ffab13b0000 - 0x00007ffab16a6000 C:\WINDOWS\System32\KERNELBASE.dll
129+
0x00007ffab0e10000 - 0x00007ffab0f10000 C:\WINDOWS\System32\ucrtbase.dll
130+
0x00007ffaa75b0000 - 0x00007ffaa75c7000 C:\Users\hayd6\.jdks\jbr-17.0.6\bin\jli.dll
131+
0x00007ffab3470000 - 0x00007ffab360d000 C:\WINDOWS\System32\USER32.dll
132+
0x00007ffaa7590000 - 0x00007ffaa75ab000 C:\Users\hayd6\.jdks\jbr-17.0.6\bin\VCRUNTIME140.dll
133+
0x00007ffab0f10000 - 0x00007ffab0f32000 C:\WINDOWS\System32\win32u.dll
134+
0x00007ffa9e760000 - 0x00007ffa9e9fa000 C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.19041.1110_none_60b5254171f9507e\COMCTL32.dll
135+
0x00007ffab2910000 - 0x00007ffab293c000 C:\WINDOWS\System32\GDI32.dll
136+
0x00007ffab31a0000 - 0x00007ffab323e000 C:\WINDOWS\System32\msvcrt.dll
137+
0x00007ffab1240000 - 0x00007ffab1355000 C:\WINDOWS\System32\gdi32full.dll
138+
0x00007ffab11a0000 - 0x00007ffab123d000 C:\WINDOWS\System32\msvcp_win.dll
139+
0x00007ffab20c0000 - 0x00007ffab20f0000 C:\WINDOWS\System32\IMM32.DLL
140+
0x00007ffaa7580000 - 0x00007ffaa758c000 C:\Users\hayd6\.jdks\jbr-17.0.6\bin\vcruntime140_1.dll
141+
0x00007ffaa74f0000 - 0x00007ffaa757d000 C:\Users\hayd6\.jdks\jbr-17.0.6\bin\msvcp140.dll
142+
0x00007ffa4be00000 - 0x00007ffa4ca6e000 C:\Users\hayd6\.jdks\jbr-17.0.6\bin\server\jvm.dll
143+
0x00007ffab3240000 - 0x00007ffab32ef000 C:\WINDOWS\System32\ADVAPI32.dll
144+
0x00007ffab3370000 - 0x00007ffab340c000 C:\WINDOWS\System32\sechost.dll
145+
0x00007ffab1860000 - 0x00007ffab1986000 C:\WINDOWS\System32\RPCRT4.dll
146+
0x00007ffaa7370000 - 0x00007ffaa737a000 C:\WINDOWS\SYSTEM32\VERSION.dll
147+
0x00007ffaa6e50000 - 0x00007ffaa6e77000 C:\WINDOWS\SYSTEM32\WINMM.dll
148+
0x00007ffa9a150000 - 0x00007ffa9a159000 C:\WINDOWS\SYSTEM32\WSOCK32.dll
149+
0x00007ffab2220000 - 0x00007ffab228b000 C:\WINDOWS\System32\WS2_32.dll
150+
0x00007ffaaf560000 - 0x00007ffaaf572000 C:\WINDOWS\SYSTEM32\kernel.appcore.dll
151+
0x00007ffaa74e0000 - 0x00007ffaa74ea000 C:\Users\hayd6\.jdks\jbr-17.0.6\bin\jimage.dll
152+
0x00007ffa9fdd0000 - 0x00007ffa9ffb4000 C:\WINDOWS\SYSTEM32\DBGHELP.DLL
153+
0x00007ffa9a4c0000 - 0x00007ffa9a4f4000 C:\WINDOWS\SYSTEM32\dbgcore.DLL
154+
0x00007ffab0fb0000 - 0x00007ffab1032000 C:\WINDOWS\System32\bcryptPrimitives.dll
155+
0x00007ffaa74b0000 - 0x00007ffaa74d5000 C:\Users\hayd6\.jdks\jbr-17.0.6\bin\java.dll
156+
157+
dbghelp: loaded successfully - version: 4.0.5 - missing functions: none
158+
symbol engine: initialized successfully - sym options: 0x614 - pdb path: .;C:\Users\hayd6\.jdks\jbr-17.0.6\bin;C:\WINDOWS\SYSTEM32;C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.19041.1110_none_60b5254171f9507e;C:\Users\hayd6\.jdks\jbr-17.0.6\bin\server
159+
160+
VM Arguments:
161+
java_command: <unknown>
162+
java_class_path (initial): <not set>
163+
Launcher Type: SUN_STANDARD
164+
165+
[Global flags]
166+
intx CICompilerCount = 4 {product} {ergonomic}
167+
uint ConcGCThreads = 3 {product} {ergonomic}
168+
uint G1ConcRefinementThreads = 10 {product} {ergonomic}
169+
size_t G1HeapRegionSize = 2097152 {product} {ergonomic}
170+
uintx GCDrainStackTargetSize = 64 {product} {ergonomic}
171+
size_t InitialHeapSize = 268435456 {product} {ergonomic}
172+
size_t MarkStackSize = 4194304 {product} {ergonomic}
173+
size_t MaxHeapSize = 4282384384 {product} {ergonomic}
174+
size_t MinHeapDeltaBytes = 2097152 {product} {ergonomic}
175+
size_t MinHeapSize = 8388608 {product} {ergonomic}
176+
uintx NonNMethodCodeHeapSize = 5839372 {pd product} {ergonomic}
177+
uintx NonProfiledCodeHeapSize = 122909434 {pd product} {ergonomic}
178+
uintx ProfiledCodeHeapSize = 122909434 {pd product} {ergonomic}
179+
uintx ReservedCodeCacheSize = 251658240 {pd product} {ergonomic}
180+
bool SegmentedCodeCache = true {product} {ergonomic}
181+
size_t SoftMaxHeapSize = 4282384384 {manageable} {ergonomic}
182+
bool UseCompressedClassPointers = true {product lp64_product} {ergonomic}
183+
bool UseCompressedOops = true {product lp64_product} {ergonomic}
184+
bool UseG1GC = true {product} {ergonomic}
185+
bool UseLargePagesIndividualAllocation = false {pd product} {ergonomic}
186+
187+
Logging:
188+
Log output configuration:
189+
#0: stdout all=warning uptime,level,tags
190+
#1: stderr all=off uptime,level,tags
191+
192+
Environment Variables:
193+
PATH=C:\Program Files\Oculus\Support\oculus-runtime;C:\Users\hayd6\.jdks\jbr-17.0.6\bin;C:\Program Files (x86)\Razer Chroma SDK\bin;C:\Program Files\Razer Chroma SDK\bin;C:\Program Files (x86)\Razer\ChromaBroadcast\bin;C:\Program Files\Razer\ChromaBroadcast\bin;C:\Program Files\Microsoft MPI\Bin\;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\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\WorldPainter;C:\Program Files (x86)\Autodesk\Backburner\;C:\Program Files (x86)\Common Files\Autodesk Shared\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Users\hayd6\AppData\Local\Microsoft\WindowsApps;C:\Users\hayd6\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\hayd6\AppData\Local\GitHubDesktop\bin;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Git\cmd;C:\Program Files\GitHub CLI\;C:\ProgramData\chocolatey\bin;C:\tools\msys64\mingw64\bine;C:\Users\hayd6\AppData\Local\Programs\Python\Python310\Scripts\;C:\Users\hayd6\AppData\Local\Programs\Python\Python310\;C:\Users\hayd6\.dotnet\tools;D:\SteamLibrary\steamapps\common\Half-Life 2\hl2\..\bin;C:\Users\hayd6\AppData\Roaming\Python\Python310\site-packages;C:\Users\hayd6\Dropbox\My PC (DESKTOP-GNPM4UM)\Documents\pathstuff;C:\Users\hayd6\AppData\Local\JetBrains\Toolbox\scripts;C:\tools\msys64;c
194+
USERNAME=hayd6
195+
OS=Windows_NT
196+
PROCESSOR_IDENTIFIER=AMD64 Family 23 Model 113 Stepping 0, AuthenticAMD
197+
TMP=C:\Users\hayd6\AppData\Local\Temp
198+
TEMP=E:\Temp
199+
200+
201+
JNI global refs:
202+
203+
[error occurred during error reporting (JNI global references), id 0xc0000005, EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffa4beb7a10]
204+
205+
206+
--------------- S Y S T E M ---------------
207+
208+
OS:
209+
Windows 10 , 64 bit Build 19041 (10.0.19041.2913)
210+
OS uptime: 0 days 0:14 hours
211+
Hyper-V role detected
212+
213+
CPU: total 12 (initial active 12) (12 cores per cpu, 2 threads per core) family 23 model 113 stepping 0 microcode 0x0, cx8, cmov, fxsr, ht, mmx, 3dnowpref, sse, sse2, sse3, ssse3, sse4a, sse4.1, sse4.2, popcnt, lzcnt, tsc, tscinvbit, avx, avx2, aes, clmul, bmi1, bmi2, adx, sha, fma, vzeroupper, clflush, clflushopt, hv
214+
215+
Memory: 4k page, system-wide physical 16328M (1831M free)
216+
TotalPageFile size 16328M (AvailPageFile size 124M)
217+
current process WorkingSet (physical memory assigned to process): 37M, peak: 37M
218+
current process commit charge ("private bytes"): 90M, peak: 320M
219+
220+
vm_info: OpenJDK 64-Bit Server VM (17.0.6+10-b829.9) for windows-amd64 JRE (17.0.6+10-b829.9), built on 2023-04-09 by "builduser" with MS VC++ 16.10 / 16.11 (VS2019)
221+
222+
END.

0 commit comments

Comments
 (0)