SimpleAuth icon indicating copy to clipboard operation
SimpleAuth copied to clipboard

[BUG] [Fabric/Forge] Weird crash with JNI/Argon2

Open Merith-TK opened this issue 4 years ago • 9 comments

Mod Loader

  • [x] Fabric

Versions

  • SimpleAuth 1.6.5
  • Fabric API 0.25.1

Describe the bug When i log into my server, I am told to register, and when i do, i am free to move around however soon after the minecraft server crashes with the exact same error

[01:23:53] [Server thread/INFO]: GuardDawg2021[/192.168.0.109:6959] logged in with entity id 101 at (134.0513389586408, 75.0, -92.46390443371322)
[01:23:53] [Server thread/INFO]: GuardDawg2021 joined the game
[01:23:55] [Server thread/WARN]: Trying to add entity with duplicated UUID 39663c67-e65b-4dae-8e11-c9227d1c1a16. Existing minecraft:pig#158, new: minecraft:pig#189
[01:23:57] [Server thread/WARN]: Trying to add entity with duplicated UUID 94467775-3547-4b69-8cdf-bed397abb6d1. Existing minecraft:zombie#210, new: minecraft:zombie#211
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000000000000eb6, pid=42, tid=0x00007f9c04ba8b10
#
# JRE version: OpenJDK Runtime Environment (8.0_252-b09) (build 1.8.0_212-b04)
# Java VM: OpenJDK 64-Bit Server VM (25.252-b09 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea 3.16.0
# Distribution: Custom build (Thu Aug 13 12:46:32 UTC 2020)
# Problematic frame:
# C  0x0000000000000eb6
#
# Core dump written. Default location: /data/core or core.42
#
# An error report file with more information is saved as:
# /data/hs_err_pid42.log
[thread 140308236159760 also had an error]
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
#   https://icedtea.classpath.org/bugzilla
#

To Reproduce Have no clue, Here are the mods i have installed on my server at the moment

Expected behavior A clear and concise description of what you expected to happen.

Additional context https://mclo.gs/RQ47sDp < Latest minecraft Log hs_err_pid42.log < the core dump log.

Merith-TK avatar Nov 05 '20 00:11 Merith-TK

This does still occur without any other fabric mods aside from the API

Merith-TK avatar Nov 05 '20 00:11 Merith-TK

Thanks for reporting! That's ... unexpected 😄 I saw the conversation on Fabricord as well.

~~Does this line show every time? [01:23:55] [Server thread/WARN]: Trying to add entity with duplicated UUID 39663c67-e65b-4dae-8e11-c9227d1c1a16. Existing minecraft:pig#158, new: minecraft:pig#189 If so it might be a world - related issue, not really sure though. Could you try reproduce the line with new world? Or does it happen without simpleauth?

Have you changed any of the settings in SimpleAuths's config file? Especially premiumAutologin, which is rather new ..?~~

Edit: comment bellow is probably better.

samolego avatar Nov 05 '20 06:11 samolego

# The crash happened outside the Java Virtual Machine in native code Makes me think it may be an error with hashing ... Could you try enabling different hashing algorithm and see if it helps?

samolego avatar Nov 05 '20 07:11 samolego

Replying in order

  1. This line shows up with the same two mobs every time the crash occurrs, the only variation may be the actual UUID and numbers, but always with a Pig and a Zombie

  2. Fresh world, (deleted and recreated using same seed, 433854927151926720

  3. No i have not changed any settings as i do not understand the settings structure

  4. Tests with bcrypt show success, thank you

I am using this docker container for my minecraft server itzg/minecraft-server:latest If you want i can zip my whole minecraft server folder for you to test with? i do not have any sensitive information on my server at the moment

Merith-TK avatar Nov 05 '20 15:11 Merith-TK

Humm, this would make debugging easier, however, it may be server-specific. But if you don't mind sharing the zip, I'd be happy to see it.

No i have not changed any settings as i do not understand the settings structure

Ahm, this concerns me a bit. Any ideas to make it clearer? 😉

samolego avatar Nov 05 '20 16:11 samolego

this is a full zip of my current server, (the only difference between the non-working and the working, is that when it is working, there is now an entry for GuardDawg2021 on the wold data and SimpleAuth, along with BCrypt being enabled) https://mega.nz/file/LhB1WaTB#X5a7EyR5hCyojQmYe7Ltv9-6gaoWz7Z4EprrtBm94ds

Merith-TK avatar Nov 05 '20 17:11 Merith-TK

I'm having the same issue but in singleplayer, i've looked up how to fix it, nothing worked so far, however... i am using cracked minecraft currently, is this issue possibly caused by the game not being the official version?

ghost avatar Nov 22 '20 20:11 ghost

also, i'm not using the mods JNI or Argon2

ghost avatar Nov 22 '20 21:11 ghost

singleplayer

Mod is meant to be used on the server :) ..?

also, i'm not using the mods JNI or Argon2

Those are packed inside the SimpleAuth.

samolego avatar Nov 23 '20 07:11 samolego