lucko / spark

A performance profiler for Minecraft clients, servers, and proxies.
https://spark.lucko.me/
GNU General Public License v3.0
1.05k stars 144 forks source link

M2 MacBook issues with Spark #402

Open KMFSousa opened 7 months ago

KMFSousa commented 7 months ago

Description

Any modpack like Valhelsia 5 or 6 with Spark included fail to load with Spark. Deleting it solves the issue

Val 5 Errors: https://paste.fo/aa14129833b1 Val 6 Errors: https://paste.fo/57f7dfe0a405

Reproduction Steps

Startup Minecraft with the mod installed via Forge. Try to create or open a world. Watch it crash.

MacOS 14.4 (23E214) Forge 43.3.8 Java 8 update 411

Expected Behaviour

Not crashing.

Platform Information

Spark Version

v1.10.53

Logs and Configs

Val 5 Errors: https://paste.fo/aa14129833b1 Val 6 Errors: https://paste.fo/57f7dfe0a405

Extra Details

No response

AdamBrianBright commented 5 months ago

Minecraft version 1.20.1 macOS Sonoma 14.5 on M3 Pro Java 17.0.10 Spark 1.10.53 Forge 47.2.20 Modpack: ATM 9

Crash as soon as world creation/loading starts. Disabled mod and modpack works fine. Crash logs were not created or I am blind. latest.log either didn't save properly or had no chance to log anything useful.

lordofpipes commented 4 months ago

Someone in the PrismLauncher community was able to fix this issue:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGBUS (0xa) at pc=0x0000000115a514e4, pid=6915, tid=248335
#
# JRE version: Java(TM) SE Runtime Environment (17.0.7+8) (build 17.0.7+8-LTS-224)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (17.0.7+8-LTS-224, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
# Problematic frame:
# v  ~StubRoutines::SafeFetch32
[...]
Compiled method (c1)   62955 41678       3       java.math.BigInteger::oddModPow (795 bytes)
 total in heap  [0x000000011156c310,0x00000001115709a8] = 18072
 relocation     [0x000000011156c468,0x000000011156c8d8] = 1136
[...]
Compiled method (c1)   62955 41678       3       java.math.BigInteger::oddModPow (795 bytes)
 total in heap  [0x000000011156c310,0x00000001115709a8] = 18072
[...]
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
#
Process crashed with exitcode 6.

By updating to Java 17.0.11+9

Presumably there is a Java + macOS bug that causes this.