Need help starting Mafia

maxxmaxx

New member
Hey there friends, I've used mafia in the past but I'm absolutely horrible at troubleshooting it.
The first time I got this error a few weeks ago, I reinstalled java from https://adoptium.net/ and it worked. I was making space on my computer last night and I think I did something that interfered with mafia, because I can no longer start it, the error is coming back. I've tried reinstalling java, I've also tried deleting my mafia folder and creating a new one. Any ideas? Also, I hate to say it, but assume I need the simplest possible explanation of anything I should try. MUCH appreciated.

I can also post more of the error if necessary.



#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_STACK_OVERFLOW (0xc00000fd) at pc=0x50191119, pid=14404, tid=15088
#
# JRE version: OpenJDK Runtime Environment Temurin-17.0.2+8 (17.0.2+8) (build 17.0.2+8)
# Java VM: OpenJDK Server VM Temurin-17.0.2+8 (17.0.2+8, mixed mode, emulated-client, sharing, tiered, g1 gc, windows-x86)
# Problematic frame:
# C [awt.dll+0xd1119]
#
# No core dump will be written. 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/adoptium/adoptium-support/issues
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#



Command Line: C:\Users\maxxl\Downloads\Mafia2\KoLmafia-26308.jar

Host: AMD Ryzen 5 2600 Six-Core Processor , 12 cores, 15G, Windows 10 , 64 bit Build 19041 (10.0.19041.1566)
Time: Sun Mar 20 16:11:20 2022 Eastern Daylight Time elapsed time: 15.341364 seconds (0d 0h 0m 15s)
 

fronobulax

Developer
Staff member
Hmmm... Since you were "making space", how much space is available on the drive where you are running mafia from?

If there are multiple versions of Java available and something grabbed the wrong one that could be factor.

If you can open a command prompt, change directory to C:\Users\maxxl\Downloads\Mafia2 ("cd C:\Users\maxxl\Downloads\Mafia2" I think) and then enter "java" what does it say? If it doesn't say something like "OpenJDK Runtime Environment Temurin-17.0.2+8 (17.0.2+8) (build 17.0.2+8)" that's your problem and we can talk about fixes. Otherwise try "java -jar KoLmafia-26308.jar".
 

maxxmaxx

New member
Followed your instructions. The "java -jar KoLmafia-26308.jar" opened up my mafia login (and when I logged in it crashed again with the same error message.

About 5GB of space left. I did realize that one possible issue was that since my last time installing mafia I had changed default download locations to my D drive, which has more space. I since switched back in case that was the issue. Redownloaded java and mafia, and these screenshots are the result.

Any ideas? Gonna try not to end every message with "you're the best!!" or something but know that I feel it in my heart.
Without mafia I lost the will to stay conscious and slept the entire afternoon LOL
 

Attachments

  • 275781582_934293460601986_1924381685182528626_n.png
    275781582_934293460601986_1924381685182528626_n.png
    63.8 KB · Views: 10
  • 275430961_1100432507412227_6066026891922211793_n.png
    275430961_1100432507412227_6066026891922211793_n.png
    12.5 KB · Views: 10

heeheehee

Developer
Staff member
Can you log in with an older build of Mafia?

It sounds like the error is at login? Before you log in, can you try clicking Help -> Start Debug Log, and then attach the DEBUG_...txt file that's generated in your Mafia directory?
 

maxxmaxx

New member
looks like trying an older version gives the same error. Here's the debug log btw.
 

Attachments

  • DEBUG_20220320.txt
    675.1 KB · Views: 4

maxxmaxx

New member
I did a bunch more tinkering, and I managed to get mafia running again by installing jdk-16.0.2+7 of Temurin. Is this...an issue? Does it make any sense?
 

MCroft

Developer
Staff member
Well, it might've written over something that was left over from your prior Java installs. 16 is supported, and above our minimum, but it's not an "LTS" or "Long Term Support" version. It will run out of updates before 11 or 17 do. It's quite possible that you could install 17 over 16 and get a working version, but unless you care, I'd leave it alone.
 

heeheehee

Developer
Staff member
Hm. That debug log doesn't contain the error at all.

I looked closer at the error message, and found this from a search, though: https://github.com/JFormDesigner/FlatLaf/issues/403

Per
Java VM: OpenJDK Server VM Temurin-17.0.2+8 (17.0.2+8, mixed mode, emulated-client, sharing, tiered, g1 gc, windows-x86)
you were indeed using 32-bit Java 17.

That github issue mentions a stack overflow in the same spot in awt.dll, and further links to https://bugs.openjdk.java.net/browse/JDK-8277299.

"Workaround is to set stack size, e.g. -Xss1m" (or downgrading Java, as you noted)

Is there a particular reason why you're using 32-bit Java?
 

maxxmaxx

New member
I just learned that x86 is 64 bit lmao. Maybe I downloaded the 5th one down instead. Could that have been my issue?
 
Top