BluSunrize / ImmersiveEngineering

Wires, transformers, high voltage! Bzzzzt!
Other
788 stars 393 forks source link

[1.12.2] Engineer Manual Crash and missing textures with connected textures. #2761

Closed Larky2k closed 4 years ago

Larky2k commented 6 years ago

Got this crash while reading the Engineers Manual. https://pastebin.com/96Nw5ppU List of current mods (look to the right of the page) http://www.insaneftb.com/

using Forge-14.23.1.2590 (mentioned to the modpack creator to update it) and using ImmersiveEngineering-0.12-76-core.jar, ImmersiveEngineering-0.12-76.jar with Java Version: 1.8.0_161

this happens as well https://imgur.com/eyQcktX

how to reproduce with the Manual all i was doing was reading it and was looking a Capacitors, with the graphical error just place two steel scaffolding next to each other or look at one of the machines in Manual (if it doesn't crash you).

malte0811 commented 6 years ago

This is a new one... I'll see whether I can replicate the crash, debugging it may get complicated otherwise (the line it is crashing on is quite long). I don't know anything about CTM, @BluSunrize will have to look into that.

malte0811 commented 6 years ago

I wasn't able to replicate the crash, could you try this build (should be fully compatible with 0.12-76)? I fixed one way this could crash, but I'm not sure whether it's the one that happened here (because it shouldn't ever happen). I also split that line up into multiple lines to make debugging the crash easier, so if it still crashes it would be great if you could post another crashlog.

Larky2k commented 6 years ago

shall have a look

thebrightspark commented 6 years ago

I've had the crashing a few times. It tends to happen after having the manual open for a few mins. However, I don't get any crash reports.

Modpack: https://minecraft.curseforge.com/projects/affinity-infinity Immersive Engineering v0.12-76

malte0811 commented 6 years ago

That is a different crash. It is caused by minecraft being launched using an outdated and buggy Java version. The launcher includes its own version, which is ancient. You have to manually set it to use up-to-date Java. It seems like the launcher will sometimes use its own Java version anyway, so check that MC is actually using the new Java version (top right (?) of the F3 debug screen).

mindforger commented 6 years ago

up-to-date Java8

because java9 is too new yet (some managed to install it already :) )

HighwayStar54 commented 6 years ago

I have the same problem with the CTM textures. 2018-02-02_22 45 35

Larky2k commented 6 years ago

hmmm dunno how to reproduce a random crash that happens randomly with the Manuel

malte0811 commented 6 years ago

Then I'll consider that part of this issue fixed for now. If it happens again (either with the build I gave you or with IE build 77) just put a comment with a link to the new crashlog here.

Larky2k commented 6 years ago

will do

Larky2k commented 6 years ago

The graphical glitch is nothing to do with CTM I removed it and it still happened.

HighwayStar54 commented 6 years ago

Impossible. If you remove CTM the textures do not connect at all at all. By chance have you got Optifine installed?

Larky2k commented 6 years ago

no Optifine

HighwayStar54 commented 6 years ago

Hmm, this is weird. I might as wll make a post for this since it's not really getting any attention here.

MasterBuilder747 commented 6 years ago

I didn't even get a crash report from my instance in the issue referenced above

MasterBuilder747 commented 6 years ago

wait this is the same as malte0811 said above

snaiperskaya commented 6 years ago

I'm having the same issue as @Ulisse54 with the connected textures. I've tried with and without Optifine and TexFix and any combination therein.

image

BluSunrize commented 6 years ago

have you tried it with just IE and CTM?

snaiperskaya commented 6 years ago

I'll try a pared down pack and report back when I've narrowed down which interaction is causing this.

snaiperskaya commented 6 years ago

@BluSunrize I narrowed it down to some interaction with Fence Overhaul (1.3.2): https://minecraft.curseforge.com/projects/fence-overhaul/files/2507871

I can remove that for now, since none of my players are making any real use of it yet, but it might still be worth looking into for you to know what they're doing behind the scenes.

HighwayStar54 commented 6 years ago

@snaiperskaya I gained hopes of you having my same problem for a second but I don't have that mod. Guess the CTM problem will go on for a little bit more.

Lethann commented 6 years ago

Going back to the OP, I am also having issues with it crashing with the manual open. Sadly I nothing is showing up in my log files for what it is or I'd paste it. I'll be reading along on any page and BOOM the game shuts down and I get a "Sorry the game crashed" window on my minecraft launcher.

Running FTB revelation modpack 1.4.0 (manually updating a few mods though) Immersive Engineering 0.12-76

malte0811 commented 6 years ago

https://github.com/BluSunrize/ImmersiveEngineering/issues/2761#issuecomment-362494673

raltus commented 6 years ago

I had a crash last night with a pack I'm working on. After going through this I decided to download and copy FTB Revelation to MultiMC. It crashes with the Curse/Twitch launcher (no log) but not MultiMC. Everything should be the same unless I missed something so I'm wondering if it's connected to the launcher somehow like malte0811 mentioned.

snaiperskaya commented 6 years ago

@raltus Check which version of Java you're using (upper right of F3 screen). Curse defaults to an older version, which is the problem there. To fix it, choose the option for the "Jar Launcher" instead of "Native" in the Curse settings. That version seems to use the latest version available on your PC

raltus commented 6 years ago

Looks like that fixed it. I'd tried changing the java version before posting but it doesn't save like it should when you relaunch. I think the difference is MultiMC still uses the Jar Launcher as default so it picks up the java change without my having to set it. I didn't realize that the launcher option was there. Thanks

HighwayStar54 commented 6 years ago

Back to the CTM side, the problem seemed to disappear as I removed Vic's Modern Warfare, Galacticraft Mods(as well as Micdoodle core) and added optifine. Galacticraft was also crashing at startup with optifine, for some reason. Hope I helped.

tjeulink commented 6 years ago

Having the connected textures missing problem, some parts of them do render others don't. This happened when I installed an custom resource pack that only adds custom paintings to bibliocraft, I know this for sure since I made everything in that resource pack myself.

If I disable the resource pack and relaunch minecraft the bug goes away. Tried creating a new world but the problem persisted. Then i disabled every mod except ConnectedTexturesMod and ImmersiveEngineering but kept my custom resource pack enabled and the problem went away. Then i tried disabling my own custom resource pack and the problem came back. So my guess is it has to do with resource pack loading 😉

I'm using a bunch of other mods in my own custom modpack, about 85 mods(but this problem is there without any other mods too). Using forge-14.23.2.2615, immersiveEngineering-0.12-76.jar and CTM-MC1.12-0.2.3.12.jar

EDIT: Can confirm that it has to do with resource pack, tried a completely clean install with forge-14.23.2.2615, immersiveEngineering-0.12-76.jar and CTM-MC1.12-0.2.3.12.jar and MC 1.12.2 and the problem appeared as soon as I loaded my handmade resource pack, I attached the log of that session. connected-textures-glitch-after-loading-resourcepack.log

BluSunrize commented 6 years ago

It may very well be due to the resource pack then. Are you very sure that your textures are in line with the ones IE uses for its CTM integration?

tjeulink commented 6 years ago

@BluSunrize It isn't supposed to touch any of the IE textures, thats what makes it odd for me. Even if the texture pack folder only contains an pack.mcmeta file it still causes this glitch upon loading or unloading the texture pack. It doesn't seem to mind booting with the texture pack when its still loaded from an previous session but it does mind the loading or unloading of one. I'll attach the resource pack I used for testing. I specifically followed these steps:

  1. place resourcepack.zip in resourcepack folder of minecraft instance and unzip it.
  2. launch minecraft with latest IE, CTM and forge.
  3. load a singleplayer world
  4. place some heavy engineering blocks in an 3 by 3 grid
  5. press escape, go to options and load the resource pack
  6. observe the glitched textures hopefully.
  7. save and exit world
  8. terminate minecraft client
  9. reopen minecraft client
  10. rejoin world and see the textures behave normally even though the texture pack is still loaded.
unikmhz commented 6 years ago

Got a similar hard JVM crash when engineer's manual UI is opened. Using Java 8.0_162-b12 on x86-64 Linux. Forge 2611. Launched via MultiMC (so no embedded Java).

Crash log: hs_err_pid98088.log

As this is a hard crash (JVM segfault), it might have something to do with JVM options, especially GC. I might try rerunning with G1GC and report back.

malte0811 commented 6 years ago

@unikmhz Please open a new issue for that, I've never seen this happen with modern Java. I doubt it's the GC, looks more like the JIT to me (C2 CompilerThread2 is the crashing thread). (Don't answer this here, answer it in the new issue:) Is there anything unusual about your version of Java? It produced a core dump, those usually aren't produced AFAIK. I'm currently testing with your JVM arguments, it didn't crash without them. Edit: I haven't been able to reproduce the crash (using Java 8U162 (downloaded from here) on Debian). I have no idea whether this will be useful at all, but could you run MC with -XX:+PrintCompilation and upload the output to gist? The output may not be in any of the usual log files, for me it was just in the MultiMC console GUI. Does the crash happen immediately after opening the manual or do you have to wait some time?