Fork me on GitHub
#minecraft
<
2022-06-16
>
michael zhou10:06:45

hello, when I run start-client, it shows the crash error. ---- Minecraft Crash Report ---- // Quite honestly, I wouldn’t worry myself about that. Time: 2022/6/16 下午5:46 Description: Initializing game java.lang.ExceptionInInitializerError at org.lwjgl.glfw.GLFW.glfwCreateWindow(GLFW.java:1842) at dsr.<init>(SourceFile:92) at erh.a(SourceFile:21) at dyr.<init>(SourceFile:476) at net.minecraft.client.main.Main.main(SourceFile:197) Caused by: java.lang.IllegalStateException: GLFW windows may only be created on the main thread and that thread must be the first thread in the process. Please run the JVM with -XstartOnFirstThread. For offscreen rendering, make sure another window toolkit (e.g. AWT or JavaFX) is initialized before GLFW. at org.lwjgl.glfw.EventLoop$OffScreen.<clinit>(EventLoop.java:39) ... 5 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Render thread Stacktrace: at org.lwjgl.glfw.GLFW.glfwCreateWindow(GLFW.java:1842) at dsr.<init>(SourceFile:92) at erh.a(SourceFile:21) at dyr.<init>(SourceFile:476) -- Initialization -- Details: Modules: Stacktrace: at net.minecraft.client.main.Main.main(SourceFile:197) -- System Details -- Details: Minecraft Version: 1.18.2 Minecraft Version ID: 1.18.2 Operating System: Mac OS X (x86_64) version 10.13.6 Java Version: 17.0.2, Oracle Corporation Java VM Version: OpenJDK 64-Bit Server VM (mixed mode, sharing), Oracle Corporation Memory: 375498752 bytes (358 MiB) / 767557632 bytes (732 MiB) up to 1073741824 bytes (1024 MiB) CPUs: 4 Processor Vendor: GenuineIntel Processor Name: Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz Identifier: Intel64 Family 6 Model 61 Stepping 4 Microarchitecture: Broadwell (Client) Frequency (GHz): 2.70 Number of physical packages: 1 Number of physical CPUs: 2 Number of logical CPUs: 4 Graphics card #0 name: Intel Iris Graphics 6100 Graphics card #0 vendor: Intel Graphics card #0 VRAM (MB): 1536.00 Graphics card #0 deviceId: 0x162b Graphics card #0 versionInfo: Revision ID: 0x0009 Memory slot #0 capacity (MB): 4096.00 Memory slot #0 clockSpeed (GHz): 1.87 Memory slot #0 type: DDR3 Memory slot #1 capacity (MB): 4096.00 Memory slot #1 clockSpeed (GHz): 1.87 Memory slot #1 type: DDR3 Virtual memory max (MB): 10240.00 Virtual memory used (MB): 6698.41 Swap memory total (MB): 2048.00 Swap memory used (MB): 1114.25 JVM Flags: 2 total; -Xms256M -Xmx1G Launched Version: 1.18.2 Backend library: LWJGL version 3.2.1 build 12 Backend API: Unknown Window size: <not initialized> GL Caps: Using framebuffer using OpenGL 3.2 GL debug messages: <disabled> Using VBOs: Yes Is Modded: Probably not. Client jar signature and brand is untouched Type: Client (map_client.txt) anyone can help? thx.

michael zhou10:06:19

Following the tips, i add -XstartOnFirstThread to deps.edn. It still doesn’t work.

plexus10:06:19

add it directly in the script

plexus10:06:31

actually yeah not sure how @pez did it... I think maybe this will work?

JAVA_CMD="java -XstartOnFirstThread" bin/start_client

michael zhou14:06:23

Tried. Still doesn’t work.🤕

pez14:06:10

I added this after JAVA_CMD was established:

JAVA_CMD="${JAVA_CMD} -XstartOnFirstThread -Dorg.lwjgl.util.DebugLoader=true"
So probably very similar to the results with your suggestion: @plexus. You still get the same error, @zhoumin79?

pez15:06:11

In any case, I suggest you do your laptop and the climate a service and use the latest official client launcher with support for 1.19 with M1 native support. The client runs 10X faster and consumes less than 20% of the energy that way (in my limited testing).

michael zhou15:06:11

yes, still get the same error. My cpu is based intel core I5. Thanks. I will try 1.19.

pez15:06:43

Ah, I just assumed M1 was the root cause, my bad. But official client should work anyway. You might need to update MC_VERSION in the server start script. And have this in server/deps.edn deps:

com.github.cryptomorin/XSeries  {:mvn/version "8.8.0"}
(Not sure if needed, because @plexus might have updated things.)

michael zhou16:06:33

@pez thx. Official client works.

metal 1
plexus16:06:10

oh thanks for the reminder I think I still need to push out that updated version...

plexus16:06:30

lots of stuff going on and sadly a lot of it not minecraft related 😄

pez18:06:35

I'm smitten. Even if the rest of the world is not all about Minecraft I sort of map everything else there. 😃

❤️ 1
minecraft 1
plexus18:06:57

I can't express how happy it makes me to see more activity here. Thank you @pez and everyone else!

metal 3
minecraft 2
cp4n21:06:18

I don't chime in very much, but is it bad that when I try to explain why clojure is awesome to others I mention that you can use it to have fun in minecraft? 😆 Clojure is practical AND fun.

clojure-spin 3
minecraft 2
❤️ 1