Replay Mod Forums

ReplayMod Crashes my Java Client
    • User
    • 20 forum posts
    User53276
    #1

    Jun 27 19, 10:57 PM

    I'm really not sure what's going on here. Replay mod was working perfectly before, and then suddenly the game started crashing when initializing for some reason. All I know is if I take out Replay Mod, everything's fine. This happens with the most recent version of Replay Mod, Fabric Loader and API.

    The error the launcher gives me is:
    "The game crashed whilst initializing game
    Error: java.lang.NullPointerException: Initializing game"

    Which is helpful I'm sure.

    Here's the crash log:

    ---- Minecraft Crash Report ----
    // You're mean. -[You're mean for crashing.]

    Time: 6/27/19 1:48 PM
    Description: Initializing game

    java.lang.NullPointerException: Initializing game
    at net.minecraft.class_323.(class_323.java:21)
    at net.minecraft.class_3682.(class_3682.java:16)
    at net.minecraft.class_310.method_1503(class_310.java:464)
    at net.minecraft.class_310.method_1514(class_310.java:395)
    at net.minecraft.client.main.Main.main(Main.java:154)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:170)
    at net.fabricmc.loader.launch.knot.Knot.init(Knot.java:129)
    at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:26)

    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------

    -- Head --
    Thread: Client thread
    Stacktrace:
    at net.minecraft.class_323.(class_323.java:21)
    at net.minecraft.class_3682.(class_3682.java:16)
    at net.minecraft.class_310.method_1503(class_310.java:464)

    -- Initialization --
    Details:
    Stacktrace:
    at net.minecraft.class_310.method_1514(class_310.java:395)
    at net.minecraft.client.main.Main.main(Main.java:154)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:170)
    at net.fabricmc.loader.launch.knot.Knot.init(Knot.java:129)
    at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:26)

    -- System Details --
    Details:
    Minecraft Version: 1.14.2
    Operating System: Mac OS X (x86_64) version 10.15
    Java Version: 1.8.0_74, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 1167459728 bytes (1113 MB) / 1845493760 bytes (1760 MB) up to 2147483648 bytes (2048 MB)
    JVM Flags: 7 total; -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
    Fabric Mods:
    fabric: Fabric API 0.3.0+build.185
    fabric-api-base: fabric-api-base 0.1.0+59147463
    fabric-commands-v0: fabric-commands-v0 0.1.1+25fd0c52
    fabric-containers-v0: fabric-containers-v0 0.1.2+25fd0c52
    fabric-content-registries-v0: fabric-content-registries-v0 0.1.1+05f11b75
    fabric-crash-report-info-v1: fabric-crash-report-info-v1 0.1.0+59147463
    fabric-events-interaction-v0: fabric-events-interaction-v0 0.1.0+59147463
    fabric-events-lifecycle-v0: fabric-events-lifecycle-v0 0.1.0+59147463
    fabric-item-groups-v0: fabric-item-groups-v0 0.1.0+59147463
    fabric-keybindings-v0: fabric-keybindings-v0 0.1.1+7dfef87c
    fabric-loot-tables-v1: fabric-loot-tables-v1 0.1.0
    fabric-mining-levels-v0: fabric-mining-levels-v0 0.1.0+59147463
    fabric-models-v0: fabric-models-v0 0.1.0+59147463
    fabric-networking-blockentity-v0: fabric-networking-blockentity-v0 0.1.1+25fd0c52
    fabric-networking-v0: fabric-networking-v0 0.1.2+200eb5c2
    fabric-object-builders-v0: fabric-object-builders-v0 0.1.1+9fe2f882
    fabric-registry-sync-v0: fabric-registry-sync-v0 0.2.2+baba33ba
    fabric-renderer-api-v1: fabric-renderer-api-v1 0.1.0+02a46d5b
    fabric-renderer-indigo: fabric-renderer-indigo 0.1.7+029ec62e
    fabric-rendering-data-attachment-v1: fabric-rendering-data-attachment-v1 0.1.0+02a46d5b
    fabric-rendering-fluids-v1: fabric-rendering-fluids-v1 0.1.0+dc4c57c2
    fabric-rendering-v0: fabric-rendering-v0 0.1.1+6dad974e
    fabric-resource-loader-v0: fabric-resource-loader-v0 0.1.1+59147463
    fabric-tag-extensions-v0: fabric-tag-extensions-v0 0.1.1+c189dc5c
    fabric-textures-v0: fabric-textures-v0 0.1.4+792c1c35
    fabricloader: Fabric Loader 0.4.8+build.155
    replaymod: Replay Mod 1.14.2-2.2.0-b2
    Launched Version: fabric-loader-0.4.8+build.155-1.14.2
    LWJGL: 3.2.1 build 12
    OpenGL: NO CONTEXT
    GL Caps:
    Using VBOs: Yes
    Is Modded: Definitely; Client brand changed to 'fabric'
    Type: Client (map_client.txt)
    Resource Packs:
    Current Language: ~~ERROR~~ NullPointerException: null
    CPU:


    • Developer
    • 1883 forum posts
    User10
    #2

    Jun 28 19, 02:40 PM | Last edited: Jun 28 19, 02:40 PM

    Please post the options.txt file in your .minecraft folder and the full game log (usually at .minecraft/logs/latest.log) to https://paste.replaymod.com/ and link to it.


    • User
    • 20 forum posts
    User53276
    #3

    Jun 28 19, 06:58 PM | Last edited: Jun 28 19, 07:00 PM

    Here you go: https://paste.replaymod.com/evigixatid

    [Thanks for not turning that into a link forum...]


    • Developer
    • 1883 forum posts
    User10
    #4

    Jun 28 19, 08:14 PM

    I'm having a hard time reproducing this issue.
    The crash report also looks totally unrelated to the RM (it failed to fetch the list of available monitors), however other reports indicate that it does indeed have something to do with the RM (and may be OSX specific which would explain my difficulties reproducing it).

    Is this you or is this another independent report of the same issue? https://github.com/FabricMC/fabric/issues/282

    Another report on the forum has since been deleted without explanation, so if you find a workaround (as they might have), please don't just delete your thread but instead provide as much info about the workaround as possible. That'll help both, other people having the same issue and us in potentially narrowing it down / reproducing it.


    • User
    • 20 forum posts
    User53276
    #5

    Jun 28 19, 10:40 PM

    No that's not me.

    I can give you an interesting thing tho...MultiMC has the same problem, yet actually seems to ignore the error and continues loading. Replay Mod is unable to start a recording when loading into a world though. Maybe there's something useful in there.

    Here are the logs for that version: https://paste.replaymod.com/jobosedipa



    • Developer
    • 1883 forum posts
    User10
    #6

    Jun 28 19, 10:49 PM | Last edited: Jun 28 19, 10:51 PM

    The error in the log of both MultiMC and non-MultiMC is totally fine and expected and shouldn't be related to the crash itself. Interesting that it doesn't crash with MultiMC though, that could mean that it's a fabric or vanilla bug which is always there but RM does something to trigger it.
    Edit: It could also explain why I'm having issues reproducing the issue (I'm haven't been using the vanilla launcher in years). I'll see if I can install and reproduce it tomorrow.

    The error you're getting instead seems like a separate thing. I've fixed something similar in -b2. Could you try updating to -b3 (or -b2 if you need to stay on 1.14.2) and see if that solves it?


    • User
    • 20 forum posts
    User53276
    #7

    Jun 28 19, 11:03 PM

    B3 crashes with what looks like the same error. Had also updated Fabric and API.

    https://paste.replaymod.com/xaqoqenoze


    • Developer
    • 1883 forum posts


    B3 crashes with what looks like the same error. Had also updated Fabric and API.

    https://paste.replaymod.com/xaqoqenoze


    Is this still on MultiMC?
    The error I've fixed in -b2 is similar to the one you got on MultiMC causing the recording to fail.
    I still have no idea why it isn't working with the vanilla launcher (and won't be looking into that before tomorrow).


    • User
    • 20 forum posts
    User53276
    #9

    Jun 28 19, 11:33 PM

    B3 fails to start recording on MultiMC

    https://paste.replaymod.com/cibifuware


    • Developer
    • 1883 forum posts
    User10
    #10

    Jun 28 19, 11:42 PM | Last edited: Jun 29 19, 02:44 PM

    Oh, I see, MultiMC is using your system java (Java 12) by default. Try switching it to Java 8. I'll be looking into fixing Java 12 support tomorrow as well then.

    Edit: Fixed with 2.2.0-b4



    • User
    • 20 forum posts
    User53276
    #11

    Jun 28 19, 11:53 PM

    Recording worked!

    https://paste.replaymod.com/ibihebamay

    Setting vanilla launcher to system 1.8 instead of bundled still crashed it though.

    Here's that log just in case: https://paste.replaymod.com/detaguzabo


    • Developer
    • 1883 forum posts
    User10
    #12

    Jun 29 19, 11:10 AM | Last edited: Jun 29 19, 11:10 AM

    So, I've tried the vanilla launcher but I'm still unable to reproduce the issue.
    To narrow it down, I've decided to cut the RM in half until we either find the issue or there's nothing left.
    Please try launching this version to see if it's still affected: https://www.replaymod.com/replaymod-1.14.3-2.2.0-b3-dirty.jar
    Most visible functionality has already been removed in that version. So, to see if it actually loaded, you'll need to check the log (or ModMenu).


    • User
    • 20 forum posts
    User53276
    #13

    Jun 29 19, 06:20 PM | Last edited: Jun 29 19, 06:22 PM

    Loaded successfully! But froze on loading a world, although that's probably because of what you did to it.

    https://paste.replaymod.com/lugetusisu

    INTERESTING NOTE: The URI scheme error disappeared


    • Developer
    • 1883 forum posts
    User10
    #14

    Jun 29 19, 10:22 PM

    Yes, the game failing to load the world is expected behavior (the recording part of the mod had been removed as well). Same for the lack of the URI scheme feature (or in your case error since it's not yet implemented on OSX).

    Here's a new version with recording and some miscellaneous things re-enabled: https://www.replaymod.com/replaymod-1.14.3-2.2.0-b3-dirty-2.jar (if it launches, you should notice buttons in the main menu having been moved to make space for the RM's buttons)


    • User
    • 20 forum posts
    User53276
    #15

    Jun 29 19, 10:42 PM

    Loads fine, but crashes with "Unexpected error" (in the launcher) when loading world.

    https://paste.replaymod.com/amokajohif



    • Developer
    • 1883 forum posts
    User10
    #16

    Jun 29 19, 10:54 PM | Last edited: Jun 29 19, 10:54 PM

    Yeah, contrary to what the crash says, that is actually expected. I wouldn't bother trying to load a world, the only thing we're really interested in is whether it crashes on startup.

    Next one: https://www.replaymod.com/replaymod-1.14.3-2.2.0-b3-dirty-3.jar (main menu should now have all buttons and Replay Viewer gui should have Upload and Edit buttons)


    • User
    • 20 forum posts
    User53276
    #17

    Jun 29 19, 11:05 PM

    That crashed it.

    https://paste.replaymod.com/odozobolus


    • Developer
    • 1883 forum posts
    User10
    #18

    Jun 29 19, 11:13 PM

    Next one, main menu should look the same as with the previous one (rendering and pathing have been removed): https://www.replaymod.com/replaymod-1.14.3-2.2.0-b3-dirty-4.jar


    • User
    • 20 forum posts
    User53276
    #19

    Jun 29 19, 11:20 PM

    Crashed like a bad driver...or something.

    https://paste.replaymod.com/zijoyuraki


    • Developer
    • 1883 forum posts
    User10
    #20

    Jun 29 19, 11:23 PM

    Huh? If the crash is a different one than before, please be specific. The log looks just like before (crashes this early during game startup aren't written to the log file for some reason).



    • Developer
    • 1883 forum posts
    User10
    #21

    Jun 29 19, 11:28 PM | Last edited: Jun 29 19, 11:33 PM

    If it did crash just like before, this is the next one: https://www.replaymod.com/replaymod-1.14.3-2.2.0-b3-dirty-5.jar (compared to previous one, the Upload and Edit buttons in the Replay Viewer GUI should be gone and so should the Replay Center button).


    • User
    • 20 forum posts
    User53276
    #22

    Jun 29 19, 11:29 PM

    ?

    ...I thought you would ask for a crash log. I have no other information. I've just been posting latest.log like you told me to.

    Here: https://paste.replaymod.com/tenuqopuru


    • Developer
    • 1883 forum posts
    User10
    #23

    Jun 29 19, 11:31 PM

    Ah, yeah, that looks just like before. I was just confused because you suddenly mentioned something about a bad driver (which do exist and have caused issues numerous times in the past). Please continue with the jar I posted in my previous reply.


    • User
    • 20 forum posts
    User53276
    #24

    Jun 29 19, 11:36 PM

    Heh I was making a joke about bad CAR drivers, as in people who don't know how to drive cars.

    Sorry to scare you :)

    Anyway, that jar was not a bad driver. It worked fine.

    https://paste.replaymod.com/yiheloluni


    • Developer
    • 1883 forum posts
    User10
    #25

    Jun 29 19, 11:46 PM

    Oh, car drivers, now I get it, sorry for any confusion. I was thinking of these kind of drivers: https://en.wikipedia.org/wiki/Device_driver.

    Re-enabled the Replay Center part of the mod (I expect this one to crash): https://www.replaymod.com/replaymod-1.14.3-2.2.0-b3-dirty-6.jar



    • User
    • 20 forum posts
    User53276
    #26

    Jun 29 19, 11:52 PM

    And it did.

    https://paste.replaymod.com/mubodofano


    • Developer
    • 1883 forum posts
    User10
    #27

    Jun 30 19, 12:01 AM

    If my suspicion is correct, this one will probably still crash but produce some extra and very valuable output in the log: https://www.replaymod.com/replaymod-1.14.3-2.2.0-b3-dirty-7.jar


    • User
    • 20 forum posts
    User53276
    #28

    Jun 30 19, 12:09 AM

    I'm not seeing anything new that I can find.

    Here's both the crash log and latest.log:

    https://paste.replaymod.com/fucugujipu


    • Developer
    • 1883 forum posts
    User10
    #29

    Jun 30 19, 12:18 AM

    :( guess I was wrong, would have been too good, let's continue with the systematic search then: https://www.replaymod.com/replaymod-1.14.3-2.2.0-b3-dirty-8.jar (to make sure logging works as I'd expect it to, I've also added two lines which should read "out test 8" and "err test 8")


    • User
    • 20 forum posts
    User53276
    #30

    Jun 30 19, 12:26 AM

    That loaded fine. And I saw the test strings.

    https://paste.replaymod.com/fabibapaja



    • Developer
    • 1883 forum posts
    User10
    #31

    Jun 30 19, 12:33 AM

    I would hope this one crashes again: https://www.replaymod.com/replaymod-1.14.3-2.2.0-b3-dirty-9.jar
    It should also print some debug lines into the log which I'm interested in.


    • User
    • 20 forum posts
    User53276
    #32

    Jun 30 19, 12:41 AM

    It crashed...and there are some new thingies.

    https://paste.replaymod.com/wukojayeva


    • Developer
    • 1883 forum posts
    User10
    #33

    Jun 30 19, 12:48 AM


    • User
    • 20 forum posts
    User53276
    #34

    Jun 30 19, 12:58 AM

    10a worked, 10b did not.

    https://paste.replaymod.com/gayotelazo


    • Developer
    • 1883 forum posts
    User10
    #35

    Jun 30 19, 01:06 AM

    Thank you very much for all the testing!
    This will be the last one for today (or yesterday actually, it's 1am here): https://www.replaymod.com/replaymod-1.14.3-2.2.0-b3-dirty-11.jar
    If this doesn't crash, then I've got it narrowed down to a single line of code.
    In that case, I will extract that single line out into its own separate minimal mod (might take a bit which is why I'll do it tomorrow (or today depending on how you look at it)) for you to test to make sure it's really only that line.



    • User
    • 20 forum posts
    User53276
    #36

    Jun 30 19, 01:13 AM

    You're welcome! At least there's multiple reports of it so I know it's not me with an obscure system or something.

    But...it crashed.

    https://paste.replaymod.com/otiwonasiv


    • Developer
    • 1883 forum posts
    User10
    #37

    Jun 30 19, 01:16 AM

    Oh, that's even more interesting, could you try adding "-Djava.awt.headless=true" to the JVM arguments in the launcher and try again?


    • User
    • 20 forum posts
    User53276
    #38

    Jun 30 19, 01:23 AM

    That didn't work.

    Both crash and latest.log: https://paste.replaymod.com/tuhigidoho


    • Developer
    • 1883 forum posts
    User10
    #39

    Jun 30 19, 01:30 AM

    Oh well, I'll sleep now and will wonder about why that doesn't work later. I think I have a general idea of what needs to be fixed but it's not quite trivial to do, so I'll need quite a bit of time to do it anyway.


    • Developer
    • 1883 forum posts
    User10
    #40

    Jun 30 19, 11:38 AM | Last edited: Jun 30 19, 11:39 AM

    Alright, I've fixed what I think needed fixing. Please give this version a try: https://www.replaymod.com/replaymod-1.14.3-2.2.0-b3-2-g1b23845.jar



    • User
    • 20 forum posts
    User53276
    #41

    Jun 30 19, 05:29 PM

    It worked!

    https://paste.replaymod.com/yireqoropi