TechnicPack / TechnicLauncher

Custom launcher that automatically downloads and updates modpacks
https://www.technicpack.net/
Other
152 stars 127 forks source link

Linux: Launcher keeps launching itself, never appears #1032

Open cosmicchipsocket-old opened 9 years ago

cosmicchipsocket-old commented 9 years ago

Around December 26th I started getting a strange issue where the launcher would not come up because, according to the logs, it kept launching itself over and over. I used to be able to use a workaround where I would update to the latest launcher from an old, pre-Launcher 4 version, and it would work. However, now it seems that this method doesn't work either.

Getting this result using the latest official launcher on Linux. The log looks like this:

[B#238] 2015/01/22 19:12:25 [INFO] Console Mode Activated [B#238] 2015/01/22 19:12:25 [INFO] Launching command: 'java -Xmx256m -Djava.net.preferIPv4Stack=true -Dawt.useSystemAAFontSettings=lcd -Dswing.aatext=true -cp /stuff/Games/CrossOS/Minecraft/TechnicLauncher.jar net.technicpack.launcher.LauncherMain ' [B#238] 2015/01/22 19:12:26 [INFO] Console Mode Activated [B#238] 2015/01/22 19:12:26 [INFO] Launching command: 'java -Xmx256m -Djava.net.preferIPv4Stack=true -Dawt.useSystemAAFontSettings=lcd -Dswing.aatext=true -cp /stuff/Games/CrossOS/Minecraft/TechnicLauncher.jar net.technicpack.launcher.LauncherMain ' [B#238] 2015/01/22 19:12:27 [INFO] Console Mode Activated [B#238] 2015/01/22 19:12:27 [INFO] Launching command: 'java -Xmx256m -Djava.net.preferIPv4Stack=true -Dawt.useSystemAAFontSettings=lcd -Dswing.aatext=true -cp /stuff/Games/CrossOS/Minecraft/TechnicLauncher.jar net.technicpack.launcher.LauncherMain ' [B#238] 2015/01/22 19:12:27 [INFO] Console Mode Activated [B#238] 2015/01/22 19:12:27 [INFO] Launching command: 'java -Xmx256m -Djava.net.preferIPv4Stack=true -Dawt.useSystemAAFontSettings=lcd -Dswing.aatext=true -cp /stuff/Games/CrossOS/Minecraft/TechnicLauncher.jar net.technicpack.launcher.LauncherMain ' [B#238] 2015/01/22 19:12:28 [INFO] Console Mode Activated [B#238] 2015/01/22 19:12:28 [INFO] Launching command: 'java -Xmx256m -Djava.net.preferIPv4Stack=true -Dawt.useSystemAAFontSettings=lcd -Dswing.aatext=true -cp /stuff/Games/CrossOS/Minecraft/TechnicLauncher.jar net.technicpack.launcher.LauncherMain ' [B#238] 2015/01/22 19:12:29 [INFO] Console Mode Activated [B#238] 2015/01/22 19:12:29 [INFO] Launching command: 'java -Xmx256m -Djava.net.preferIPv4Stack=true -Dawt.useSystemAAFontSettings=lcd -Dswing.aatext=true -cp /stuff/Games/CrossOS/Minecraft/TechnicLauncher.jar net.technicpack.launcher.LauncherMain '

And it goes on and on like this until I manually killall java. No window ever actually appears. It just gets stuck in a loop.

And yes, I launched it from double-clicking /stuff/Games/CrossOS/Minecraft/TechnicLauncher.jar. All it does is launch itself.

I tried deleting ~/.technic and this would bring up the "where do you want your configuration saved" dialog. If I choose either a system config or a portable installation, I get stuck in the loop after the dialog.

I also tried emptying /tmp wondering if there was some file that made it think it was still "in update mode" but that didn't work either.

CannibalVox commented 9 years ago

Linux distro & VM?

cosmicchipsocket-old commented 9 years ago

Distro is Arch Linux. Architecture is x86_64.

Tried using both jre7 and jre8 to no avail:

Java(TM) SE Runtime Environment (build 1.7.0_72-b14) Java HotSpot(TM) 64-Bit Server VM (build 24.72-b04, mixed mode)

Java(TM) SE Runtime Environment (build 1.8.0_25-b17) Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

I've been able to use the launcher just fine previously. Vanilla Minecraft launcher also continues to work.

CannibalVox commented 9 years ago

What are the contents of your java options environment variable? I believe there's an equivalent on linux.

cosmicchipsocket-old commented 9 years ago

_JAVA_OPTIONS=-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true

I set those options a while ago because I was trying to fix issues with text not getting anti-aliased nicely in other apps (mainly IntelliJ IDEA). Strangely, if I clear the variable, the launcher works as expected!

CannibalVox commented 9 years ago

That's what I suspected. If the AA settings aren't right to make the launcher look the best it can, we restart with the correct settings. I didn't think that the OS could stop us from using the settings we need, so there's no limit to the number of times this can happen. :-P I'll fix it.

CannibalVox commented 9 years ago

Fix is live in beta v4.254.

cosmicchipsocket-old commented 9 years ago

Issue still occurs in Launcher build 4.256.

Bosull commented 9 years ago

wtf

Bosull commented 9 years ago

...

Bosull commented 9 years ago

omg

Bosull commented 9 years ago

dattorz

Bosull commented 9 years ago

....

Bosull commented 9 years ago

dattorz

Bosull commented 9 years ago

lollol

Bosull commented 9 years ago

dattorz

PhoenixGamer007 commented 9 years ago

how do i fix it?

PhoenixGamer007 commented 9 years ago

pls help me !! :(

PhoenixGamer007 commented 9 years ago

|:O!

PhoenixGamer007 commented 9 years ago

i downloaded it what should i do then? :100:

DragonHDLP24 commented 9 years ago

hilft mir helpt me

Selected Pack: Hexxit

Stack Trace:

Exception: IndexOutOfBoundsException

Message: Index: 0, Size: 0

Trace:

    java.util.ArrayList.rangeCheck(Unknown Source)

    java.util.ArrayList.get(Unknown Source)

    org.spoutcraft.launcher.skin.NewsComponent.setupArticles(NewsComponent.java:60)

    org.spoutcraft.launcher.skin.NewsComponent.loadArticles(NewsComponent.java:46)

    org.spoutcraft.launcher.Launcher$2.run(Launcher.java:105)

System Information:

Operating System: Windows 7

Operating System Version: 6.1

Operating System Architecture: x86

Java version: 1.8.0_51 32 bit

Total Memory: 39 MB

Max Memory: 247 MB

Memory Free: 5 MB

CPU Cores: 4
ghost commented 8 years ago

@DragonHDLP24 Buy the game.