go-java-launcher icon indicating copy to clipboard operation
go-java-launcher copied to clipboard

When JRE is not compatible with OS error message is tricky to understand

Open jamesneale opened this issue 9 years ago • 2 comments

When trying to launch using a Unix JRE on OSX go-java-launcher fails with the following error:

panic: exec format error

goroutine 1 [running]:
panic(0x166760, 0xc8200baa50)
	/usr/local/go/src/runtime/panic.go:481 +0x3e6
github.com/palantir/go-java-launcher/launchlib.execWithChecks(0xc8200cc090, 0x24, 0xc8200e0600, 0x8, 0xc)
	/home/ubuntu/.go_workspace/src/github.com/palantir/go-java-launcher/launchlib/launcher.go:93 +0x27a
github.com/palantir/go-java-launcher/launchlib.Launch(0xc8200b9e48, 0xc8200b9e18)
	/home/ubuntu/.go_workspace/src/github.com/palantir/go-java-launcher/launchlib/launcher.go:83 +0xe38
main.LaunchWithConfig(0x7fff5fbff9b2, 0x1f, 0x7fff5fbff9d2, 0x1c)
	/home/ubuntu/.go_workspace/src/github.com/palantir/go-java-launcher/go-java-launcher/main.go:39 +0x389
main.main()
	/home/ubuntu/.go_workspace/src/github.com/palantir/go-java-launcher/go-java-launcher/main.go:56 +0xf6

Very hard to debug. Would be nice to fail with a much easier to understand error.

jamesneale avatar Nov 18 '16 15:11 jamesneale

Not really sure what to do here; suggestions?

On Fri, Nov 18, 2016 at 7:15 AM James Neale [email protected] wrote:

When trying to launch using a Unix JRE on OSX go-java-launcher fails with the following error:

panic: exec format error

goroutine 1 [running]: panic(0x166760, 0xc8200baa50) /usr/local/go/src/runtime/panic.go:481 +0x3e6github.com/palantir/go-java-launcher/launchlib.execWithChecks(0xc8200cc090, 0x24, 0xc8200e0600, 0x8, 0xc) /home/ubuntu/.go_workspace/src/github.com/palantir/go-java-launcher/launchlib/launcher.go:93 +0x27agithub.com/palantir/go-java-launcher/launchlib.Launch(0xc8200b9e48, 0xc8200b9e18) /home/ubuntu/.go_workspace/src/github.com/palantir/go-java-launcher/launchlib/launcher.go:83 +0xe38 main.LaunchWithConfig(0x7fff5fbff9b2, 0x1f, 0x7fff5fbff9d2, 0x1c) /home/ubuntu/.go_workspace/src/github.com/palantir/go-java-launcher/go-java-launcher/main.go:39 +0x389 main.main() /home/ubuntu/.go_workspace/src/github.com/palantir/go-java-launcher/go-java-launcher/main.go:56 +0xf6

Very hard to debug. Would be nice to fail with a much easier to understand error.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/palantir/go-java-launcher/issues/14, or mute the thread https://github.com/notifications/unsubscribe-auth/AGOdwZTDdxt5qQ7lY6_O43LOZRpX3EE1ks5q_cEHgaJpZM4K2lYa .

uschi2000 avatar Nov 18 '16 15:11 uschi2000

No bright ideas unfortunately - at the very least I thought this might help if someone hits this error in future.

jamesneale avatar Nov 18 '16 15:11 jamesneale