ata4 / bspsrc

A Source engine map decompiler
Other
657 stars 86 forks source link

cannot launch program, java error #178

Open scarletshadowzz opened 6 months ago

scarletshadowzz commented 6 months ago

image all i want to do is replace some textures in a map for a joke mod (repaint?), but for some reason this stupid program wont even launch

VictorMolokanov commented 5 months ago

the same issue. why?

rihi commented 5 months ago

Did you follow the instructions at https://github.com/ata4/bspsrc#running-bspsource? If so at what step did you encounter this error?

megakarlach commented 5 months ago

Mine doesnt even launch at all, even with both Java 8 and Java 21 installed. Tried using the command prompt pointing to Java 21's javaw.exe files to launch it, still nothing. Even the bspsrc-jar-only.zip version didn't work either. image

1.4.3 still works just fine however.

rihi commented 5 months ago

Mine doesnt even launch at all, even with both Java 8 and Java 21 installed. Tried using the command prompt pointing to Java 21's javaw.exe files to launch it, still nothing. Even the bspsrc-jar-only.zip version didn't work either. image

1.4.3 still works just fine however.

If you want to manually launch bspsrc you need to use the following command javaw.exe -jar <path_to_bspsrc>. Yours is missing the -jar parameter. The reason you are not getting any error is because javaw simply doesn't display them. If you want to see them, use java instead.

However normally you shouldn't need to manually run the application. Did you follow the instruction at https://github.com/ata4/bspsrc#running-bspsource? If so, which step didn't work for you?

megakarlach commented 5 months ago

Mine doesnt even launch at all, even with both Java 8 and Java 21 installed. Tried using the command prompt pointing to Java 21's javaw.exe files to launch it, still nothing. Even the bspsrc-jar-only.zip version didn't work either. image 1.4.3 still works just fine however.

If you want to manually launch bspsrc you need to use the following command javaw.exe -jar <path_to_bspsrc>. Yours is missing the -jar parameter. The reason you are not getting any error is because javaw simply doesn't display them. If you want to see them, use java instead.

However normally you shouldn't need to manually run the application. Did you follow the instruction at https://github.com/ata4/bspsrc#running-bspsource? If so, which step didn't work for you?

Tried to run with that (javaw.exe -jar <path_to_bspsrc> command), still nothing, running through WinDbg produces some errors about Access violation. On the other hand, my other PC appears to launch BSPSrc 1.4.4 just fine with the "bspsrc-windows.zip" version (but my main PC won't with both the "bspsrc-windows.zip" and the "bspsrc-jar-only.zip" running through Java 21). Also I already followed the https://github.com/ata4/bspsrc#running-bspsource instruction (and it's the last one that didnt work on both zip version). image

image

image image

Heres another one with the "bspsrc-windows.zip" version, running on Java 19 bundled in that zip, but running with java.exe instead of javaw.exe: image

And trying to run it normally through CMD and "java.exe", aswell as git bash: image

image

rihi commented 4 months ago

Thanks for the detailed response! It seems like there is a bug in Java itself, which crashes when instantiating a File Chooser dialog. It seems(?) to be related to special characters in file paths, but I really have no more idea than what is described at https://bugs.openjdk.org/browse/JDK-8305072.

I've create a new issue for this bug for now , but I'm not sure if this is really fixable as the bug stems from Java itself and its quite hard to work around.